Class protos.google.spanner.admin.instance.v1.InstanceAdmin (5.15.2)

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

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
NameDescription
request 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
TypeDescription
void

createInstance(request)

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

Calls CreateInstance.

Parameter
NameDescription
request ICreateInstanceRequest

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
NameDescription
request 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
TypeDescription
void

deleteInstance(request)

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

Calls DeleteInstance.

Parameter
NameDescription
request IDeleteInstanceRequest

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
NameDescription
request 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
TypeDescription
void

getIamPolicy(request)

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

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

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
NameDescription
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
TypeDescription
void

getInstance(request)

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

Calls GetInstance.

Parameter
NameDescription
request google.spanner.admin.instance.v1.IGetInstanceRequest

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
NameDescription
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
TypeDescription
void

getInstanceConfig(request)

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

Calls GetInstanceConfig.

Parameter
NameDescription
request google.spanner.admin.instance.v1.IGetInstanceConfigRequest

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
NameDescription
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
TypeDescription
void

listInstanceConfigs(request)

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

Calls ListInstanceConfigs.

Parameter
NameDescription
request google.spanner.admin.instance.v1.IListInstanceConfigsRequest

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
NameDescription
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
TypeDescription
void

listInstances(request)

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

Calls ListInstances.

Parameter
NameDescription
request google.spanner.admin.instance.v1.IListInstancesRequest

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
NameDescription
request 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
TypeDescription
void

setIamPolicy(request)

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

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

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
NameDescription
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
TypeDescription
void

testIamPermissions(request)

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

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

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
NameDescription
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
TypeDescription
void

updateInstance(request)

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

Calls UpdateInstance.

Parameter
NameDescription
request google.spanner.admin.instance.v1.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise