Class protos.google.cloud.sql.v1beta4.SqlBackupRunsService (0.11.0)

Represents a SqlBackupRunsService

Inheritance

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

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SqlBackupRunsService 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): SqlBackupRunsService;

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

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

delete(request, callback)

public delete(request: google.cloud.sql.v1beta4.ISqlBackupRunsDeleteRequest, callback: google.cloud.sql.v1beta4.SqlBackupRunsService.DeleteCallback): void;

Calls Delete.

Parameters
Name Description
request ISqlBackupRunsDeleteRequest

SqlBackupRunsDeleteRequest message or plain object

callback DeleteCallback

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

Returns
Type Description
void

delete(request)

public delete(request: google.cloud.sql.v1beta4.ISqlBackupRunsDeleteRequest): Promise<google.cloud.sql.v1beta4.Operation>;

Calls Delete.

Parameter
Name Description
request ISqlBackupRunsDeleteRequest

SqlBackupRunsDeleteRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request ISqlBackupRunsGetRequest

SqlBackupRunsGetRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.sql.v1beta4.ISqlBackupRunsGetRequest): Promise<google.cloud.sql.v1beta4.BackupRun>;

Calls Get.

Parameter
Name Description
request ISqlBackupRunsGetRequest

SqlBackupRunsGetRequest message or plain object

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

Promise

insert(request, callback)

public insert(request: google.cloud.sql.v1beta4.ISqlBackupRunsInsertRequest, callback: google.cloud.sql.v1beta4.SqlBackupRunsService.InsertCallback): void;

Calls Insert.

Parameters
Name Description
request ISqlBackupRunsInsertRequest

SqlBackupRunsInsertRequest message or plain object

callback InsertCallback

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

Returns
Type Description
void

insert(request)

public insert(request: google.cloud.sql.v1beta4.ISqlBackupRunsInsertRequest): Promise<google.cloud.sql.v1beta4.Operation>;

Calls Insert.

Parameter
Name Description
request ISqlBackupRunsInsertRequest

SqlBackupRunsInsertRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request ISqlBackupRunsListRequest

SqlBackupRunsListRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.sql.v1beta4.ISqlBackupRunsListRequest): Promise<google.cloud.sql.v1beta4.BackupRunsListResponse>;

Calls List.

Parameter
Name Description
request ISqlBackupRunsListRequest

SqlBackupRunsListRequest message or plain object

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

Promise