Update a workspace secret
workspace_secrets.update(id, **kwargs) -> WorkspaceSecret { metadata, spec, info }
PATCH/v1/workspaces/{workspaceId}/workspace_secrets/{id}
Update a workspace secret
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
workspace_secret = cadenya.workspace_secrets.update("id", workspace_id: "workspaceId")
puts(workspace_secret){
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"value": "value"
},
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
},
"lastUsedAt": "2019-12-27T18:11:19.117Z"
}
}Returns Examples
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"value": "value"
},
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
},
"lastUsedAt": "2019-12-27T18:11:19.117Z"
}
}