Represents an InstanceAdmin
Inheritance
$protobuf.rpc.Service > protos.google.spanner.admin.instance.v1.InstanceAdminPackage
@google-cloud/spanner!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new InstanceAdmin service.
Type | Name | Description |
---|---|---|
$protobuf.RPCImpl | rpcImpl |
RPC implementation |
boolean | requestDelimited |
Whether requests are length-delimited |
boolean | responseDelimited |
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.
Type | Name | Description |
---|---|---|
$protobuf.RPCImpl | rpcImpl |
RPC implementation |
boolean | requestDelimited |
Whether requests are length-delimited |
boolean | responseDelimited |
Whether responses are length-delimited |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
ICreateInstanceRequest | request |
CreateInstanceRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceCallback | callback |
Node-style callback called with the error, if any, and Operation |
Type | Description |
---|---|
void |
createInstance(request)
public createInstance(request: google.spanner.admin.instance.v1.ICreateInstanceRequest): Promise<google.longrunning.Operation>;
Calls CreateInstance.
Type | Name | Description |
---|---|---|
ICreateInstanceRequest | request |
CreateInstanceRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IDeleteInstanceRequest | request |
DeleteInstanceRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceCallback | callback |
Node-style callback called with the error, if any, and Empty |
Type | Description |
---|---|
void |
deleteInstance(request)
public deleteInstance(request: google.spanner.admin.instance.v1.IDeleteInstanceRequest): Promise<google.protobuf.Empty>;
Calls DeleteInstance.
Type | Name | Description |
---|---|---|
IDeleteInstanceRequest | request |
DeleteInstanceRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
google.iam.v1.IGetIamPolicyRequest | request |
GetIamPolicyRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicyCallback | callback |
Node-style callback called with the error, if any, and Policy |
Type | Description |
---|---|
void |
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls GetIamPolicy.
Type | Name | Description |
---|---|---|
google.iam.v1.IGetIamPolicyRequest | request |
GetIamPolicyRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IGetInstanceRequest | request |
GetInstanceRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceCallback | callback |
Node-style callback called with the error, if any, and Instance |
Type | Description |
---|---|
void |
getInstance(request)
public getInstance(request: google.spanner.admin.instance.v1.IGetInstanceRequest): Promise<google.spanner.admin.instance.v1.Instance>;
Calls GetInstance.
Type | Name | Description |
---|---|---|
IGetInstanceRequest | request |
GetInstanceRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
google.spanner.admin.instance.v1.IGetInstanceConfigRequest | request |
GetInstanceConfigRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfigCallback | callback |
Node-style callback called with the error, if any, and InstanceConfig |
Type | Description |
---|---|
void |
getInstanceConfig(request)
public getInstanceConfig(request: google.spanner.admin.instance.v1.IGetInstanceConfigRequest): Promise<google.spanner.admin.instance.v1.InstanceConfig>;
Calls GetInstanceConfig.
Type | Name | Description |
---|---|---|
google.spanner.admin.instance.v1.IGetInstanceConfigRequest | request |
GetInstanceConfigRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IListInstanceConfigsRequest | request |
ListInstanceConfigsRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigsCallback | callback |
Node-style callback called with the error, if any, and ListInstanceConfigsResponse |
Type | Description |
---|---|
void |
listInstanceConfigs(request)
public listInstanceConfigs(request: google.spanner.admin.instance.v1.IListInstanceConfigsRequest): Promise<google.spanner.admin.instance.v1.ListInstanceConfigsResponse>;
Calls ListInstanceConfigs.
Type | Name | Description |
---|---|---|
IListInstanceConfigsRequest | request |
ListInstanceConfigsRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
google.spanner.admin.instance.v1.IListInstancesRequest | request |
ListInstancesRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.ListInstancesCallback | callback |
Node-style callback called with the error, if any, and ListInstancesResponse |
Type | Description |
---|---|
void |
listInstances(request)
public listInstances(request: google.spanner.admin.instance.v1.IListInstancesRequest): Promise<google.spanner.admin.instance.v1.ListInstancesResponse>;
Calls ListInstances.
Type | Name | Description |
---|---|---|
google.spanner.admin.instance.v1.IListInstancesRequest | request |
ListInstancesRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
ISetIamPolicyRequest | request |
SetIamPolicyRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicyCallback | callback |
Node-style callback called with the error, if any, and Policy |
Type | Description |
---|---|
void |
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls SetIamPolicy.
Type | Name | Description |
---|---|---|
ISetIamPolicyRequest | request |
SetIamPolicyRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
google.iam.v1.ITestIamPermissionsRequest | request |
TestIamPermissionsRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissionsCallback | callback |
Node-style callback called with the error, if any, and TestIamPermissionsResponse |
Type | Description |
---|---|
void |
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;
Calls TestIamPermissions.
Type | Name | Description |
---|---|---|
google.iam.v1.ITestIamPermissionsRequest | request |
TestIamPermissionsRequest message or plain object |
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
IUpdateInstanceRequest | request |
UpdateInstanceRequest message or plain object |
google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceCallback | callback |
Node-style callback called with the error, if any, and Operation |
Type | Description |
---|---|
void |
updateInstance(request)
public updateInstance(request: google.spanner.admin.instance.v1.IUpdateInstanceRequest): Promise<google.longrunning.Operation>;
Calls UpdateInstance.
Type | Name | Description |
---|---|---|
IUpdateInstanceRequest | request |
UpdateInstanceRequest message or plain object |
Type | Description |
---|---|
Promise<google.longrunning.Operation> | Promise |