Class protos.google.cloud.sql.v1.SqlDatabasesService (0.11.0)

Represents a SqlDatabasesService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.sql.v1.SqlDatabasesService

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

delete(request, callback)

public delete(request: google.cloud.sql.v1.ISqlDatabasesDeleteRequest, callback: google.cloud.sql.v1.SqlDatabasesService.DeleteCallback): void;

Calls Delete.

Parameters
Name Description
request ISqlDatabasesDeleteRequest

SqlDatabasesDeleteRequest 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.ISqlDatabasesDeleteRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Delete.

Parameter
Name Description
request ISqlDatabasesDeleteRequest

SqlDatabasesDeleteRequest message or plain object

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

Promise

get(request, callback)

public get(request: google.cloud.sql.v1.ISqlDatabasesGetRequest, callback: google.cloud.sql.v1.SqlDatabasesService.GetCallback): void;

Calls Get.

Parameters
Name Description
request ISqlDatabasesGetRequest

SqlDatabasesGetRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.sql.v1.ISqlDatabasesGetRequest): Promise<google.cloud.sql.v1.Database>;

Calls Get.

Parameter
Name Description
request ISqlDatabasesGetRequest

SqlDatabasesGetRequest message or plain object

Returns
Type Description
Promise<google.cloud.sql.v1.Database>

Promise

insert(request, callback)

public insert(request: google.cloud.sql.v1.ISqlDatabasesInsertRequest, callback: google.cloud.sql.v1.SqlDatabasesService.InsertCallback): void;

Calls Insert.

Parameters
Name Description
request ISqlDatabasesInsertRequest

SqlDatabasesInsertRequest 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.ISqlDatabasesInsertRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Insert.

Parameter
Name Description
request ISqlDatabasesInsertRequest

SqlDatabasesInsertRequest message or plain object

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

Promise

list(request, callback)

public list(request: google.cloud.sql.v1.ISqlDatabasesListRequest, callback: google.cloud.sql.v1.SqlDatabasesService.ListCallback): void;

Calls List.

Parameters
Name Description
request ISqlDatabasesListRequest

SqlDatabasesListRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.sql.v1.ISqlDatabasesListRequest): Promise<google.cloud.sql.v1.DatabasesListResponse>;

Calls List.

Parameter
Name Description
request ISqlDatabasesListRequest

SqlDatabasesListRequest message or plain object

Returns
Type Description
Promise<google.cloud.sql.v1.DatabasesListResponse>

Promise

patch(request, callback)

public patch(request: google.cloud.sql.v1.ISqlDatabasesUpdateRequest, callback: google.cloud.sql.v1.SqlDatabasesService.PatchCallback): void;

Calls Patch.

Parameters
Name Description
request ISqlDatabasesUpdateRequest

SqlDatabasesUpdateRequest message or plain object

callback PatchCallback

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

Returns
Type Description
void

patch(request)

public patch(request: google.cloud.sql.v1.ISqlDatabasesUpdateRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Patch.

Parameter
Name Description
request ISqlDatabasesUpdateRequest

SqlDatabasesUpdateRequest message or plain object

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

Promise

update(request, callback)

public update(request: google.cloud.sql.v1.ISqlDatabasesUpdateRequest, callback: google.cloud.sql.v1.SqlDatabasesService.UpdateCallback): void;

Calls Update.

Parameters
Name Description
request ISqlDatabasesUpdateRequest

SqlDatabasesUpdateRequest message or plain object

callback UpdateCallback

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

Returns
Type Description
void

update(request)

public update(request: google.cloud.sql.v1.ISqlDatabasesUpdateRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Update.

Parameter
Name Description
request ISqlDatabasesUpdateRequest

SqlDatabasesUpdateRequest message or plain object

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

Promise