Class protos.google.cloud.sql.v1beta4.SqlOperationsService (0.19.0)

Represents a SqlOperationsService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.sql.v1beta4.SqlOperationsService

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SqlOperationsService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

cancel(request, callback)

public cancel(request: google.cloud.sql.v1beta4.ISqlOperationsCancelRequest, callback: google.cloud.sql.v1beta4.SqlOperationsService.CancelCallback): void;

Calls Cancel.

Parameters
Name Description
request ISqlOperationsCancelRequest

SqlOperationsCancelRequest message or plain object

callback CancelCallback

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

Returns
Type Description
void

cancel(request)

public cancel(request: google.cloud.sql.v1beta4.ISqlOperationsCancelRequest): Promise<google.protobuf.Empty>;

Calls Cancel.

Parameter
Name Description
request ISqlOperationsCancelRequest

SqlOperationsCancelRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new SqlOperationsService 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
SqlOperationsService

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

get(request, callback)

public get(request: google.cloud.sql.v1beta4.ISqlOperationsGetRequest, callback: google.cloud.sql.v1beta4.SqlOperationsService.GetCallback): void;

Calls Get.

Parameters
Name Description
request ISqlOperationsGetRequest

SqlOperationsGetRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.sql.v1beta4.ISqlOperationsGetRequest): Promise<google.cloud.sql.v1beta4.Operation>;

Calls Get.

Parameter
Name Description
request ISqlOperationsGetRequest

SqlOperationsGetRequest message or plain object

Returns
Type Description
Promise<google.cloud.sql.v1beta4.Operation>

Promise

list(request, callback)

public list(request: google.cloud.sql.v1beta4.ISqlOperationsListRequest, callback: google.cloud.sql.v1beta4.SqlOperationsService.ListCallback): void;

Calls List.

Parameters
Name Description
request ISqlOperationsListRequest

SqlOperationsListRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.sql.v1beta4.ISqlOperationsListRequest): Promise<google.cloud.sql.v1beta4.OperationsListResponse>;

Calls List.

Parameter
Name Description
request ISqlOperationsListRequest

SqlOperationsListRequest message or plain object

Returns
Type Description
Promise<google.cloud.sql.v1beta4.OperationsListResponse>

Promise