Represents a SqlDatabasesService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.sql.v1beta4.SqlDatabasesServicePackage
@google-cloud/sqlConstructors
(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.v1beta4.ISqlDatabasesDeleteRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesDeleteRequest): Promise<google.cloud.sql.v1beta4.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesDeleteRequest
SqlDatabasesDeleteRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.sql.v1beta4.ISqlDatabasesGetRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesGetRequest): Promise<google.cloud.sql.v1beta4.Database>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesGetRequest
SqlDatabasesGetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.Database> |
Promise |
insert(request, callback)
public insert(request: google.cloud.sql.v1beta4.ISqlDatabasesInsertRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesInsertRequest): Promise<google.cloud.sql.v1beta4.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesInsertRequest
SqlDatabasesInsertRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.sql.v1beta4.ISqlDatabasesListRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesListRequest): Promise<google.cloud.sql.v1beta4.DatabasesListResponse>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesListRequest
SqlDatabasesListRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.DatabasesListResponse> |
Promise |
patch(request, callback)
public patch(request: google.cloud.sql.v1beta4.ISqlDatabasesUpdateRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesUpdateRequest): Promise<google.cloud.sql.v1beta4.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesUpdateRequest
SqlDatabasesUpdateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.Operation> |
Promise |
update(request, callback)
public update(request: google.cloud.sql.v1beta4.ISqlDatabasesUpdateRequest, callback: google.cloud.sql.v1beta4.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.v1beta4.ISqlDatabasesUpdateRequest): Promise<google.cloud.sql.v1beta4.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
ISqlDatabasesUpdateRequest
SqlDatabasesUpdateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.sql.v1beta4.Operation> |
Promise |