Represents a SqlBackupRunsService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.sql.v1.SqlBackupRunsServicePackage
@google-cloud/sqlConstructors
(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.v1.ISqlBackupRunsDeleteRequest, callback: google.cloud.sql.v1.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.v1.ISqlBackupRunsDeleteRequest): Promise<google.cloud.sql.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
ISqlBackupRunsDeleteRequest
SqlBackupRunsDeleteRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.sql.v1.ISqlBackupRunsGetRequest, callback: google.cloud.sql.v1.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.v1.ISqlBackupRunsGetRequest): Promise<google.cloud.sql.v1.BackupRun>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
ISqlBackupRunsGetRequest
SqlBackupRunsGetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1.BackupRun> |
Promise |
insert(request, callback)
public insert(request: google.cloud.sql.v1.ISqlBackupRunsInsertRequest, callback: google.cloud.sql.v1.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.v1.ISqlBackupRunsInsertRequest): Promise<google.cloud.sql.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
ISqlBackupRunsInsertRequest
SqlBackupRunsInsertRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.sql.v1.ISqlBackupRunsListRequest, callback: google.cloud.sql.v1.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.v1.ISqlBackupRunsListRequest): Promise<google.cloud.sql.v1.BackupRunsListResponse>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
ISqlBackupRunsListRequest
SqlBackupRunsListRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1.BackupRunsListResponse> |
Promise |