Skip to main content

Class: CloudService

cloudservice.v1.CloudService

WARNING: This service is currently experimental and may change in incompatible ways.

Hierarchy

  • Service

    CloudService

Constructors

constructor

new CloudService(rpcImpl, requestDelimited?, responseDelimited?): CloudService

Constructs a new CloudService service.

Parameters

NameTypeDescription
rpcImplRPCImplRPC implementation
requestDelimited?booleanWhether requests are length-delimited
responseDelimited?booleanWhether responses are length-delimited

Returns

CloudService

Overrides

$protobuf.rpc.Service.constructor

Properties

requestDelimited

requestDelimited: boolean

Whether requests are length-delimited.

Inherited from

$protobuf.rpc.Service.requestDelimited


responseDelimited

responseDelimited: boolean

Whether responses are length-delimited.

Inherited from

$protobuf.rpc.Service.responseDelimited


rpcImpl

rpcImpl: null | RPCImpl

RPC implementation. Becomes null once the service is ended.

Inherited from

$protobuf.rpc.Service.rpcImpl

Methods

addNamespaceRegion

addNamespaceRegion(request, callback): void

Add a new region to a namespace

Parameters

NameTypeDescription
requestIAddNamespaceRegionRequestAddNamespaceRegionRequest message or plain object
callbackAddNamespaceRegionCallbackNode-style callback called with the error, if any, and AddNamespaceRegionResponse

Returns

void

addNamespaceRegion(request): Promise<AddNamespaceRegionResponse>

Add a new region to a namespace

Parameters

NameTypeDescription
requestIAddNamespaceRegionRequestAddNamespaceRegionRequest message or plain object

Returns

Promise<AddNamespaceRegionResponse>

Promise


createApiKey

createApiKey(request, callback): void

Create an API key

Parameters

NameTypeDescription
requestICreateApiKeyRequestCreateApiKeyRequest message or plain object
callbackCreateApiKeyCallbackNode-style callback called with the error, if any, and CreateApiKeyResponse

Returns

void

createApiKey(request): Promise<CreateApiKeyResponse>

Create an API key

Parameters

NameTypeDescription
requestICreateApiKeyRequestCreateApiKeyRequest message or plain object

Returns

Promise<CreateApiKeyResponse>

Promise


createNamespace

createNamespace(request, callback): void

Create a new namespace

Parameters

NameTypeDescription
requestICreateNamespaceRequestCreateNamespaceRequest message or plain object
callbackCreateNamespaceCallbackNode-style callback called with the error, if any, and CreateNamespaceResponse

Returns

void

createNamespace(request): Promise<CreateNamespaceResponse>

Create a new namespace

Parameters

NameTypeDescription
requestICreateNamespaceRequestCreateNamespaceRequest message or plain object

Returns

Promise<CreateNamespaceResponse>

Promise


createServiceAccount

createServiceAccount(request, callback): void

Create a service account.

Parameters

NameTypeDescription
requestICreateServiceAccountRequestCreateServiceAccountRequest message or plain object
callbackCreateServiceAccountCallbackNode-style callback called with the error, if any, and CreateServiceAccountResponse

Returns

void

createServiceAccount(request): Promise<CreateServiceAccountResponse>

Create a service account.

Parameters

NameTypeDescription
requestICreateServiceAccountRequestCreateServiceAccountRequest message or plain object

Returns

Promise<CreateServiceAccountResponse>

Promise


createUser

createUser(request, callback): void

Create a user

Parameters

NameTypeDescription
requestICreateUserRequestCreateUserRequest message or plain object
callbackCreateUserCallbackNode-style callback called with the error, if any, and CreateUserResponse

Returns

void

createUser(request): Promise<CreateUserResponse>

Create a user

Parameters

NameTypeDescription
requestICreateUserRequestCreateUserRequest message or plain object

Returns

Promise<CreateUserResponse>

Promise


createUserGroup

createUserGroup(request, callback): void

Create new a user group

Parameters

NameTypeDescription
requestICreateUserGroupRequestCreateUserGroupRequest message or plain object
callbackCreateUserGroupCallbackNode-style callback called with the error, if any, and CreateUserGroupResponse

Returns

void

createUserGroup(request): Promise<CreateUserGroupResponse>

Create new a user group

Parameters

NameTypeDescription
requestICreateUserGroupRequestCreateUserGroupRequest message or plain object

Returns

Promise<CreateUserGroupResponse>

Promise


deleteApiKey

deleteApiKey(request, callback): void

Delete an API key

Parameters

NameTypeDescription
requestIDeleteApiKeyRequestDeleteApiKeyRequest message or plain object
callbackDeleteApiKeyCallbackNode-style callback called with the error, if any, and DeleteApiKeyResponse

Returns

void

deleteApiKey(request): Promise<DeleteApiKeyResponse>

Delete an API key

Parameters

NameTypeDescription
requestIDeleteApiKeyRequestDeleteApiKeyRequest message or plain object

Returns

Promise<DeleteApiKeyResponse>

Promise


deleteNamespace

deleteNamespace(request, callback): void

Delete a namespace

Parameters

NameTypeDescription
requestIDeleteNamespaceRequestDeleteNamespaceRequest message or plain object
callbackDeleteNamespaceCallbackNode-style callback called with the error, if any, and DeleteNamespaceResponse

Returns

void

deleteNamespace(request): Promise<DeleteNamespaceResponse>

Delete a namespace

Parameters

NameTypeDescription
requestIDeleteNamespaceRequestDeleteNamespaceRequest message or plain object

Returns

Promise<DeleteNamespaceResponse>

Promise


deleteServiceAccount

deleteServiceAccount(request, callback): void

Delete a service account.

Parameters

NameTypeDescription
requestIDeleteServiceAccountRequestDeleteServiceAccountRequest message or plain object
callbackDeleteServiceAccountCallbackNode-style callback called with the error, if any, and DeleteServiceAccountResponse

Returns

void

deleteServiceAccount(request): Promise<DeleteServiceAccountResponse>

Delete a service account.

Parameters

NameTypeDescription
requestIDeleteServiceAccountRequestDeleteServiceAccountRequest message or plain object

Returns

Promise<DeleteServiceAccountResponse>

Promise


deleteUser

deleteUser(request, callback): void

Delete a user

Parameters

NameTypeDescription
requestIDeleteUserRequestDeleteUserRequest message or plain object
callbackDeleteUserCallbackNode-style callback called with the error, if any, and DeleteUserResponse

Returns

void

deleteUser(request): Promise<DeleteUserResponse>

Delete a user

Parameters

NameTypeDescription
requestIDeleteUserRequestDeleteUserRequest message or plain object

Returns

Promise<DeleteUserResponse>

Promise


deleteUserGroup

deleteUserGroup(request, callback): void

Delete a user group

Parameters

NameTypeDescription
requestIDeleteUserGroupRequestDeleteUserGroupRequest message or plain object
callbackDeleteUserGroupCallbackNode-style callback called with the error, if any, and DeleteUserGroupResponse

Returns

void

deleteUserGroup(request): Promise<DeleteUserGroupResponse>

Delete a user group

Parameters

NameTypeDescription
requestIDeleteUserGroupRequestDeleteUserGroupRequest message or plain object

Returns

Promise<DeleteUserGroupResponse>

Promise


emit

emit(evt, ...args): this

Emits an event by calling its listeners with the specified arguments.

Parameters

NameTypeDescription
evtstringEvent name
...argsany[]Arguments

Returns

this

this

Inherited from

$protobuf.rpc.Service.emit


end

end(endedByRPC?): Service

Ends this service and emits the end event.

Parameters

NameTypeDescription
endedByRPC?booleanWhether the service has been ended by the RPC implementation.

Returns

Service

this

Inherited from

$protobuf.rpc.Service.end


failoverNamespaceRegion

failoverNamespaceRegion(request, callback): void

Failover a multi-region namespace

Parameters

NameTypeDescription
requestIFailoverNamespaceRegionRequestFailoverNamespaceRegionRequest message or plain object
callbackFailoverNamespaceRegionCallbackNode-style callback called with the error, if any, and FailoverNamespaceRegionResponse

Returns

void

failoverNamespaceRegion(request): Promise<FailoverNamespaceRegionResponse>

Failover a multi-region namespace

Parameters

NameTypeDescription
requestIFailoverNamespaceRegionRequestFailoverNamespaceRegionRequest message or plain object

Returns

Promise<FailoverNamespaceRegionResponse>

Promise


getApiKey

getApiKey(request, callback): void

Get an API key

Parameters

NameTypeDescription
requestIGetApiKeyRequestGetApiKeyRequest message or plain object
callbackGetApiKeyCallbackNode-style callback called with the error, if any, and GetApiKeyResponse

Returns

void

getApiKey(request): Promise<GetApiKeyResponse>

Get an API key

Parameters

NameTypeDescription
requestIGetApiKeyRequestGetApiKeyRequest message or plain object

Returns

Promise<GetApiKeyResponse>

Promise


getApiKeys

getApiKeys(request, callback): void

Get all known API keys

Parameters

NameTypeDescription
requestIGetApiKeysRequestGetApiKeysRequest message or plain object
callbackGetApiKeysCallbackNode-style callback called with the error, if any, and GetApiKeysResponse

Returns

void

getApiKeys(request): Promise<GetApiKeysResponse>

Get all known API keys

Parameters

NameTypeDescription
requestIGetApiKeysRequestGetApiKeysRequest message or plain object

Returns

Promise<GetApiKeysResponse>

Promise


getAsyncOperation

getAsyncOperation(request, callback): void

Get the latest information on an async operation

Parameters

NameTypeDescription
requestIGetAsyncOperationRequestGetAsyncOperationRequest message or plain object
callbackGetAsyncOperationCallbackNode-style callback called with the error, if any, and GetAsyncOperationResponse

Returns

void

getAsyncOperation(request): Promise<GetAsyncOperationResponse>

Get the latest information on an async operation

Parameters

NameTypeDescription
requestIGetAsyncOperationRequestGetAsyncOperationRequest message or plain object

Returns

Promise<GetAsyncOperationResponse>

Promise


getNamespace

getNamespace(request, callback): void

Get a namespace

Parameters

NameTypeDescription
requestIGetNamespaceRequestGetNamespaceRequest message or plain object
callbackGetNamespaceCallbackNode-style callback called with the error, if any, and GetNamespaceResponse

Returns

void

getNamespace(request): Promise<GetNamespaceResponse>

Get a namespace

Parameters

NameTypeDescription
requestIGetNamespaceRequestGetNamespaceRequest message or plain object

Returns

Promise<GetNamespaceResponse>

Promise


getNamespaces

getNamespaces(request, callback): void

Get all namespaces

Parameters

NameTypeDescription
requestIGetNamespacesRequestGetNamespacesRequest message or plain object
callbackGetNamespacesCallbackNode-style callback called with the error, if any, and GetNamespacesResponse

Returns

void

getNamespaces(request): Promise<GetNamespacesResponse>

Get all namespaces

Parameters

NameTypeDescription
requestIGetNamespacesRequestGetNamespacesRequest message or plain object

Returns

Promise<GetNamespacesResponse>

Promise


getRegion

getRegion(request, callback): void

Get a region

Parameters

NameTypeDescription
requestIGetRegionRequestGetRegionRequest message or plain object
callbackGetRegionCallbackNode-style callback called with the error, if any, and GetRegionResponse

Returns

void

getRegion(request): Promise<GetRegionResponse>

Get a region

Parameters

NameTypeDescription
requestIGetRegionRequestGetRegionRequest message or plain object

Returns

Promise<GetRegionResponse>

Promise


getRegions

getRegions(request, callback): void

Get all regions

Parameters

NameTypeDescription
requestIGetRegionsRequestGetRegionsRequest message or plain object
callbackGetRegionsCallbackNode-style callback called with the error, if any, and GetRegionsResponse

Returns

void

getRegions(request): Promise<GetRegionsResponse>

Get all regions

Parameters

NameTypeDescription
requestIGetRegionsRequestGetRegionsRequest message or plain object

Returns

Promise<GetRegionsResponse>

Promise


getServiceAccount

getServiceAccount(request, callback): void

Get a service account.

Parameters

NameTypeDescription
requestIGetServiceAccountRequestGetServiceAccountRequest message or plain object
callbackGetServiceAccountCallbackNode-style callback called with the error, if any, and GetServiceAccountResponse

Returns

void

getServiceAccount(request): Promise<GetServiceAccountResponse>

Get a service account.

Parameters

NameTypeDescription
requestIGetServiceAccountRequestGetServiceAccountRequest message or plain object

Returns

Promise<GetServiceAccountResponse>

Promise


getServiceAccounts

getServiceAccounts(request, callback): void

Get service accounts.

Parameters

NameTypeDescription
requestIGetServiceAccountsRequestGetServiceAccountsRequest message or plain object
callbackGetServiceAccountsCallbackNode-style callback called with the error, if any, and GetServiceAccountsResponse

Returns

void

getServiceAccounts(request): Promise<GetServiceAccountsResponse>

Get service accounts.

Parameters

NameTypeDescription
requestIGetServiceAccountsRequestGetServiceAccountsRequest message or plain object

Returns

Promise<GetServiceAccountsResponse>

Promise


getUser

getUser(request, callback): void

Get a user

Parameters

NameTypeDescription
requestIGetUserRequestGetUserRequest message or plain object
callbackGetUserCallbackNode-style callback called with the error, if any, and GetUserResponse

Returns

void

getUser(request): Promise<GetUserResponse>

Get a user

Parameters

NameTypeDescription
requestIGetUserRequestGetUserRequest message or plain object

Returns

Promise<GetUserResponse>

Promise


getUserGroup

getUserGroup(request, callback): void

Get a user group

Parameters

NameTypeDescription
requestIGetUserGroupRequestGetUserGroupRequest message or plain object
callbackGetUserGroupCallbackNode-style callback called with the error, if any, and GetUserGroupResponse

Returns

void

getUserGroup(request): Promise<GetUserGroupResponse>

Get a user group

Parameters

NameTypeDescription
requestIGetUserGroupRequestGetUserGroupRequest message or plain object

Returns

Promise<GetUserGroupResponse>

Promise


getUserGroups

getUserGroups(request, callback): void

Get all user groups

Parameters

NameTypeDescription
requestIGetUserGroupsRequestGetUserGroupsRequest message or plain object
callbackGetUserGroupsCallbackNode-style callback called with the error, if any, and GetUserGroupsResponse

Returns

void

getUserGroups(request): Promise<GetUserGroupsResponse>

Get all user groups

Parameters

NameTypeDescription
requestIGetUserGroupsRequestGetUserGroupsRequest message or plain object

Returns

Promise<GetUserGroupsResponse>

Promise


getUsers

getUsers(request, callback): void

Gets all known users

Parameters

NameTypeDescription
requestIGetUsersRequestGetUsersRequest message or plain object
callbackGetUsersCallbackNode-style callback called with the error, if any, and GetUsersResponse

Returns

void

getUsers(request): Promise<GetUsersResponse>

Gets all known users

Parameters

NameTypeDescription
requestIGetUsersRequestGetUsersRequest message or plain object

Returns

Promise<GetUsersResponse>

Promise


off

off(evt?, fn?): this

Removes an event listener or any matching listeners if arguments are omitted.

Parameters

NameTypeDescription
evt?stringEvent name. Removes all listeners if omitted.
fn?EventEmitterListenerListener to remove. Removes all listeners of evt if omitted.

Returns

this

this

Inherited from

$protobuf.rpc.Service.off


on

on(evt, fn, ctx?): this

Registers an event listener.

Parameters

NameTypeDescription
evtstringEvent name
fnEventEmitterListenerListener
ctx?anyListener context

Returns

this

this

Inherited from

$protobuf.rpc.Service.on


renameCustomSearchAttribute

renameCustomSearchAttribute(request, callback): void

Rename an existing customer search attribute

Parameters

NameTypeDescription
requestIRenameCustomSearchAttributeRequestRenameCustomSearchAttributeRequest message or plain object
callbackRenameCustomSearchAttributeCallbackNode-style callback called with the error, if any, and RenameCustomSearchAttributeResponse

Returns

void

renameCustomSearchAttribute(request): Promise<RenameCustomSearchAttributeResponse>

Rename an existing customer search attribute

Parameters

NameTypeDescription
requestIRenameCustomSearchAttributeRequestRenameCustomSearchAttributeRequest message or plain object

Returns

Promise<RenameCustomSearchAttributeResponse>

Promise


rpcCall

rpcCall<TReq, TRes>(method, requestCtor, responseCtor, request, callback): void

Calls a service method through rpcImpl.

Type parameters

NameType
TReqextends Message<TReq>
TResextends Message<TRes>

Parameters

NameTypeDescription
methodMethod | ServiceMethod<TReq, TRes>Reflected or static method
requestCtorConstructor<TReq>Request constructor
responseCtorConstructor<TRes>Response constructor
requestTReq | Properties<TReq>Request message or plain object
callbackServiceMethodCallback<TRes>Service callback

Returns

void

Inherited from

$protobuf.rpc.Service.rpcCall


setUserGroupNamespaceAccess

setUserGroupNamespaceAccess(request, callback): void

Set a user group's access to a namespace

Parameters

NameTypeDescription
requestISetUserGroupNamespaceAccessRequestSetUserGroupNamespaceAccessRequest message or plain object
callbackSetUserGroupNamespaceAccessCallbackNode-style callback called with the error, if any, and SetUserGroupNamespaceAccessResponse

Returns

void

setUserGroupNamespaceAccess(request): Promise<SetUserGroupNamespaceAccessResponse>

Set a user group's access to a namespace

Parameters

NameTypeDescription
requestISetUserGroupNamespaceAccessRequestSetUserGroupNamespaceAccessRequest message or plain object

Returns

Promise<SetUserGroupNamespaceAccessResponse>

Promise


setUserNamespaceAccess

setUserNamespaceAccess(request, callback): void

Set a user's access to a namespace

Parameters

NameTypeDescription
requestISetUserNamespaceAccessRequestSetUserNamespaceAccessRequest message or plain object
callbackSetUserNamespaceAccessCallbackNode-style callback called with the error, if any, and SetUserNamespaceAccessResponse

Returns

void

setUserNamespaceAccess(request): Promise<SetUserNamespaceAccessResponse>

Set a user's access to a namespace

Parameters

NameTypeDescription
requestISetUserNamespaceAccessRequestSetUserNamespaceAccessRequest message or plain object

Returns

Promise<SetUserNamespaceAccessResponse>

Promise


updateApiKey

updateApiKey(request, callback): void

Update an API key

Parameters

NameTypeDescription
requestIUpdateApiKeyRequestUpdateApiKeyRequest message or plain object
callbackUpdateApiKeyCallbackNode-style callback called with the error, if any, and UpdateApiKeyResponse

Returns

void

updateApiKey(request): Promise<UpdateApiKeyResponse>

Update an API key

Parameters

NameTypeDescription
requestIUpdateApiKeyRequestUpdateApiKeyRequest message or plain object

Returns

Promise<UpdateApiKeyResponse>

Promise


updateNamespace

updateNamespace(request, callback): void

Update a namespace

Parameters

NameTypeDescription
requestIUpdateNamespaceRequestUpdateNamespaceRequest message or plain object
callbackUpdateNamespaceCallbackNode-style callback called with the error, if any, and UpdateNamespaceResponse

Returns

void

updateNamespace(request): Promise<UpdateNamespaceResponse>

Update a namespace

Parameters

NameTypeDescription
requestIUpdateNamespaceRequestUpdateNamespaceRequest message or plain object

Returns

Promise<UpdateNamespaceResponse>

Promise


updateServiceAccount

updateServiceAccount(request, callback): void

Update a service account.

Parameters

NameTypeDescription
requestIUpdateServiceAccountRequestUpdateServiceAccountRequest message or plain object
callbackUpdateServiceAccountCallbackNode-style callback called with the error, if any, and UpdateServiceAccountResponse

Returns

void

updateServiceAccount(request): Promise<UpdateServiceAccountResponse>

Update a service account.

Parameters

NameTypeDescription
requestIUpdateServiceAccountRequestUpdateServiceAccountRequest message or plain object

Returns

Promise<UpdateServiceAccountResponse>

Promise


updateUser

updateUser(request, callback): void

Update a user

Parameters

NameTypeDescription
requestIUpdateUserRequestUpdateUserRequest message or plain object
callbackUpdateUserCallbackNode-style callback called with the error, if any, and UpdateUserResponse

Returns

void

updateUser(request): Promise<UpdateUserResponse>

Update a user

Parameters

NameTypeDescription
requestIUpdateUserRequestUpdateUserRequest message or plain object

Returns

Promise<UpdateUserResponse>

Promise


updateUserGroup

updateUserGroup(request, callback): void

Update a user group

Parameters

NameTypeDescription
requestIUpdateUserGroupRequestUpdateUserGroupRequest message or plain object
callbackUpdateUserGroupCallbackNode-style callback called with the error, if any, and UpdateUserGroupResponse

Returns

void

updateUserGroup(request): Promise<UpdateUserGroupResponse>

Update a user group

Parameters

NameTypeDescription
requestIUpdateUserGroupRequestUpdateUserGroupRequest message or plain object

Returns

Promise<UpdateUserGroupResponse>

Promise


create

create(rpcImpl, requestDelimited?, responseDelimited?): CloudService

Creates new CloudService service using the specified rpc implementation.

Parameters

NameTypeDescription
rpcImplRPCImplRPC implementation
requestDelimited?booleanWhether requests are length-delimited
responseDelimited?booleanWhether responses are length-delimited

Returns

CloudService

RPC service. Useful where requests and/or responses are streamed.