Class protos.google.spanner.admin.instance.v1.InstanceAdmin

Represents an InstanceAdmin

Inheritance

$protobuf.rpc.Service > protos.google.spanner.admin.instance.v1.InstanceAdmin

Package

@google-cloud/spanner!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new InstanceAdmin service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): InstanceAdmin;

Creates new InstanceAdmin service using the specified rpc implementation.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
InstanceAdmin

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

createInstance(request, callback)

public createInstance(request: google.spanner.admin.instance.v1.ICreateInstanceRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceCallback): void;

Calls CreateInstance.

Parameters
TypeNameDescription
ICreateInstanceRequestrequest

CreateInstanceRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceCallbackcallback

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

Returns
TypeDescription
void

createInstance(request)

public createInstance(request: google.spanner.admin.instance.v1.ICreateInstanceRequest): Promise<google.longrunning.Operation>;

Calls CreateInstance.

Parameter
TypeNameDescription
ICreateInstanceRequestrequest

CreateInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteInstance(request, callback)

public deleteInstance(request: google.spanner.admin.instance.v1.IDeleteInstanceRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceCallback): void;

Calls DeleteInstance.

Parameters
TypeNameDescription
IDeleteInstanceRequestrequest

DeleteInstanceRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceCallbackcallback

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

Returns
TypeDescription
void

deleteInstance(request)

public deleteInstance(request: google.spanner.admin.instance.v1.IDeleteInstanceRequest): Promise<google.protobuf.Empty>;

Calls DeleteInstance.

Parameter
TypeNameDescription
IDeleteInstanceRequestrequest

DeleteInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
TypeNameDescription
google.iam.v1.IGetIamPolicyRequestrequest

GetIamPolicyRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicyCallbackcallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
TypeNameDescription
google.iam.v1.IGetIamPolicyRequestrequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getInstance(request, callback)

public getInstance(request: google.spanner.admin.instance.v1.IGetInstanceRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceCallback): void;

Calls GetInstance.

Parameters
TypeNameDescription
IGetInstanceRequestrequest

GetInstanceRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceCallbackcallback

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

Returns
TypeDescription
void

getInstance(request)

public getInstance(request: google.spanner.admin.instance.v1.IGetInstanceRequest): Promise<google.spanner.admin.instance.v1.Instance>;

Calls GetInstance.

Parameter
TypeNameDescription
IGetInstanceRequestrequest

GetInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.spanner.admin.instance.v1.Instance>

Promise

getInstanceConfig(request, callback)

public getInstanceConfig(request: google.spanner.admin.instance.v1.IGetInstanceConfigRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfigCallback): void;

Calls GetInstanceConfig.

Parameters
TypeNameDescription
google.spanner.admin.instance.v1.IGetInstanceConfigRequestrequest

GetInstanceConfigRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfigCallbackcallback

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

Returns
TypeDescription
void

getInstanceConfig(request)

public getInstanceConfig(request: google.spanner.admin.instance.v1.IGetInstanceConfigRequest): Promise<google.spanner.admin.instance.v1.InstanceConfig>;

Calls GetInstanceConfig.

Parameter
TypeNameDescription
google.spanner.admin.instance.v1.IGetInstanceConfigRequestrequest

GetInstanceConfigRequest message or plain object

Returns
TypeDescription
Promise<google.spanner.admin.instance.v1.InstanceConfig>

Promise

listInstanceConfigs(request, callback)

public listInstanceConfigs(request: google.spanner.admin.instance.v1.IListInstanceConfigsRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigsCallback): void;

Calls ListInstanceConfigs.

Parameters
TypeNameDescription
IListInstanceConfigsRequestrequest

ListInstanceConfigsRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigsCallbackcallback

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

Returns
TypeDescription
void

listInstanceConfigs(request)

public listInstanceConfigs(request: google.spanner.admin.instance.v1.IListInstanceConfigsRequest): Promise<google.spanner.admin.instance.v1.ListInstanceConfigsResponse>;

Calls ListInstanceConfigs.

Parameter
TypeNameDescription
IListInstanceConfigsRequestrequest

ListInstanceConfigsRequest message or plain object

Returns
TypeDescription
Promise<google.spanner.admin.instance.v1.ListInstanceConfigsResponse>

Promise

listInstances(request, callback)

public listInstances(request: google.spanner.admin.instance.v1.IListInstancesRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.ListInstancesCallback): void;

Calls ListInstances.

Parameters
TypeNameDescription
google.spanner.admin.instance.v1.IListInstancesRequestrequest

ListInstancesRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.ListInstancesCallbackcallback

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

Returns
TypeDescription
void

listInstances(request)

public listInstances(request: google.spanner.admin.instance.v1.IListInstancesRequest): Promise<google.spanner.admin.instance.v1.ListInstancesResponse>;

Calls ListInstances.

Parameter
TypeNameDescription
google.spanner.admin.instance.v1.IListInstancesRequestrequest

ListInstancesRequest message or plain object

Returns
TypeDescription
Promise<google.spanner.admin.instance.v1.ListInstancesResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
TypeNameDescription
ISetIamPolicyRequestrequest

SetIamPolicyRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicyCallbackcallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
TypeNameDescription
ISetIamPolicyRequestrequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
TypeNameDescription
google.iam.v1.ITestIamPermissionsRequestrequest

TestIamPermissionsRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissionsCallbackcallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
TypeNameDescription
google.iam.v1.ITestIamPermissionsRequestrequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateInstance(request, callback)

public updateInstance(request: google.spanner.admin.instance.v1.IUpdateInstanceRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceCallback): void;

Calls UpdateInstance.

Parameters
TypeNameDescription
IUpdateInstanceRequestrequest

UpdateInstanceRequest message or plain object

google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceCallbackcallback

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

Returns
TypeDescription
void

updateInstance(request)

public updateInstance(request: google.spanner.admin.instance.v1.IUpdateInstanceRequest): Promise<google.longrunning.Operation>;

Calls UpdateInstance.

Parameter
TypeNameDescription
IUpdateInstanceRequestrequest

UpdateInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise