Class protos.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin (2.4.0)

Represents an AlloyDBCSQLAdmin

Inheritance

$protobuf.rpc.Service > protos.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin

Package

@google-cloud/alloydb

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new AlloyDBCSQLAdmin service.

Parameters
Name Description
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): AlloyDBCSQLAdmin;

Creates new AlloyDBCSQLAdmin service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
AlloyDBCSQLAdmin

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

restoreFromCloudSQL(request, callback)

public restoreFromCloudSQL(request: google.cloud.alloydb.v1alpha.IRestoreFromCloudSQLRequest, callback: google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin.RestoreFromCloudSQLCallback): void;

Calls RestoreFromCloudSQL.

Parameters
Name Description
request IRestoreFromCloudSQLRequest

RestoreFromCloudSQLRequest message or plain object

callback RestoreFromCloudSQLCallback

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

Returns
Type Description
void

restoreFromCloudSQL(request)

public restoreFromCloudSQL(request: google.cloud.alloydb.v1alpha.IRestoreFromCloudSQLRequest): Promise<google.longrunning.Operation>;

Calls RestoreFromCloudSQL.

Parameter
Name Description
request IRestoreFromCloudSQLRequest

RestoreFromCloudSQLRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise