InstanceAdmin

google.spanner.admin.instance.v1. InstanceAdmin

Represents an InstanceAdmin

Constructor

new InstanceAdmin(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new InstanceAdmin service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createInstance(request, callback) → {undefined}

Calls CreateInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstanceRequest

CreateInstanceRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

createInstance(request) → {Promise.<google.longrunning.Operation>}

Calls CreateInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstanceRequest

CreateInstanceRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createInstanceConfig(request, callback) → {undefined}

Calls CreateInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstanceConfigRequest

CreateInstanceConfigRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfigCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

createInstanceConfig(request) → {Promise.<google.longrunning.Operation>}

Calls CreateInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstanceConfigRequest

CreateInstanceConfigRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createInstancePartition(request, callback) → {undefined}

Calls CreateInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstancePartitionRequest

CreateInstancePartitionRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartitionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

createInstancePartition(request) → {Promise.<google.longrunning.Operation>}

Calls CreateInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.ICreateInstancePartitionRequest

CreateInstancePartitionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteInstance(request, callback) → {undefined}

Calls DeleteInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteInstance(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteInstanceConfig(request, callback) → {undefined}

Calls DeleteInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest

DeleteInstanceConfigRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfigCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteInstanceConfig(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest

DeleteInstanceConfigRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteInstancePartition(request, callback) → {undefined}

Calls DeleteInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest

DeleteInstancePartitionRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstancePartitionCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteInstancePartition(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest

DeleteInstancePartitionRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

getInstance(request, callback) → {undefined}

Calls GetInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstanceRequest

GetInstanceRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceCallback

Node-style callback called with the error, if any, and Instance

Returns:
Type Description
undefined

getInstance(request) → {Promise.<google.spanner.admin.instance.v1.Instance>}

Calls GetInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstanceRequest

GetInstanceRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.Instance>

Promise

getInstanceConfig(request, callback) → {undefined}

Calls GetInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstanceConfigRequest

GetInstanceConfigRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfigCallback

Node-style callback called with the error, if any, and InstanceConfig

Returns:
Type Description
undefined

getInstanceConfig(request) → {Promise.<google.spanner.admin.instance.v1.InstanceConfig>}

Calls GetInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstanceConfigRequest

GetInstanceConfigRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.InstanceConfig>

Promise

getInstancePartition(request, callback) → {undefined}

Calls GetInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstancePartitionRequest

GetInstancePartitionRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.GetInstancePartitionCallback

Node-style callback called with the error, if any, and InstancePartition

Returns:
Type Description
undefined

getInstancePartition(request) → {Promise.<google.spanner.admin.instance.v1.InstancePartition>}

Calls GetInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IGetInstancePartitionRequest

GetInstancePartitionRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.InstancePartition>

Promise

listInstanceConfigOperations(request, callback) → {undefined}

Calls ListInstanceConfigOperations.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest

ListInstanceConfigOperationsRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperationsCallback

Node-style callback called with the error, if any, and ListInstanceConfigOperationsResponse

Returns:
Type Description
undefined

listInstanceConfigOperations(request) → {Promise.<google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>}

Calls ListInstanceConfigOperations.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest

ListInstanceConfigOperationsRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>

Promise

listInstanceConfigs(request, callback) → {undefined}

Calls ListInstanceConfigs.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstanceConfigsRequest

ListInstanceConfigsRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigsCallback

Node-style callback called with the error, if any, and ListInstanceConfigsResponse

Returns:
Type Description
undefined

listInstanceConfigs(request) → {Promise.<google.spanner.admin.instance.v1.ListInstanceConfigsResponse>}

Calls ListInstanceConfigs.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstanceConfigsRequest

ListInstanceConfigsRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.ListInstanceConfigsResponse>

Promise

listInstancePartitionOperations(request, callback) → {undefined}

Calls ListInstancePartitionOperations.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest

ListInstancePartitionOperationsRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperationsCallback

Node-style callback called with the error, if any, and ListInstancePartitionOperationsResponse

Returns:
Type Description
undefined

listInstancePartitionOperations(request) → {Promise.<google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse>}

Calls ListInstancePartitionOperations.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest

ListInstancePartitionOperationsRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse>

Promise

listInstancePartitions(request, callback) → {undefined}

Calls ListInstancePartitions.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancePartitionsRequest

ListInstancePartitionsRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionsCallback

Node-style callback called with the error, if any, and ListInstancePartitionsResponse

Returns:
Type Description
undefined

listInstancePartitions(request) → {Promise.<google.spanner.admin.instance.v1.ListInstancePartitionsResponse>}

Calls ListInstancePartitions.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancePartitionsRequest

ListInstancePartitionsRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.ListInstancePartitionsResponse>

Promise

listInstances(request, callback) → {undefined}

Calls ListInstances.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancesRequest

ListInstancesRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.ListInstancesCallback

Node-style callback called with the error, if any, and ListInstancesResponse

Returns:
Type Description
undefined

listInstances(request) → {Promise.<google.spanner.admin.instance.v1.ListInstancesResponse>}

Calls ListInstances.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IListInstancesRequest

ListInstancesRequest message or plain object

Returns:
Type Description
Promise.<google.spanner.admin.instance.v1.ListInstancesResponse>

Promise

moveInstance(request, callback) → {undefined}

Calls MoveInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IMoveInstanceRequest

MoveInstanceRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.MoveInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

moveInstance(request) → {Promise.<google.longrunning.Operation>}

Calls MoveInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IMoveInstanceRequest

MoveInstanceRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns:
Type Description
undefined

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

updateInstance(request, callback) → {undefined}

Calls UpdateInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

updateInstance(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateInstance.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

updateInstanceConfig(request, callback) → {undefined}

Calls UpdateInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest

UpdateInstanceConfigRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfigCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

updateInstanceConfig(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateInstanceConfig.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest

UpdateInstanceConfigRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

updateInstancePartition(request, callback) → {undefined}

Calls UpdateInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest

UpdateInstancePartitionRequest message or plain object

callback google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartitionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

updateInstancePartition(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateInstancePartition.

Parameters:
Name Type Description
request google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest

UpdateInstancePartitionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {InstanceAdmin}

Creates new InstanceAdmin service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
InstanceAdmin

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

Type Definitions

CreateInstanceCallback(error, responseopt)

Callback as used by createInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateInstanceConfigCallback(error, responseopt)

Callback as used by createInstanceConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateInstancePartitionCallback(error, responseopt)

Callback as used by createInstancePartition.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteInstanceCallback(error, responseopt)

Callback as used by deleteInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteInstanceConfigCallback(error, responseopt)

Callback as used by deleteInstanceConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteInstancePartitionCallback(error, responseopt)

Callback as used by deleteInstancePartition.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetIamPolicyCallback(error, responseopt)

Callback as used by getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetInstanceCallback(error, responseopt)

Callback as used by getInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.Instance <optional>

Instance

GetInstanceConfigCallback(error, responseopt)

Callback as used by getInstanceConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.InstanceConfig <optional>

InstanceConfig

GetInstancePartitionCallback(error, responseopt)

Callback as used by getInstancePartition.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.InstancePartition <optional>

InstancePartition

ListInstanceConfigOperationsCallback(error, responseopt)

Callback as used by listInstanceConfigOperations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse <optional>

ListInstanceConfigOperationsResponse

ListInstanceConfigsCallback(error, responseopt)

Callback as used by listInstanceConfigs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.ListInstanceConfigsResponse <optional>

ListInstanceConfigsResponse

ListInstancePartitionOperationsCallback(error, responseopt)

Callback as used by listInstancePartitionOperations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse <optional>

ListInstancePartitionOperationsResponse

ListInstancePartitionsCallback(error, responseopt)

Callback as used by listInstancePartitions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.ListInstancePartitionsResponse <optional>

ListInstancePartitionsResponse

ListInstancesCallback(error, responseopt)

Callback as used by listInstances.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.spanner.admin.instance.v1.ListInstancesResponse <optional>

ListInstancesResponse

MoveInstanceCallback(error, responseopt)

Callback as used by moveInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

SetIamPolicyCallback(error, responseopt)

Callback as used by setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UpdateInstanceCallback(error, responseopt)

Callback as used by updateInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

UpdateInstanceConfigCallback(error, responseopt)

Callback as used by updateInstanceConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

UpdateInstancePartitionCallback(error, responseopt)

Callback as used by updateInstancePartition.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation