Class protos.google.cloud.sql.v1.SqlUsersService (0.5.0)

Represents a SqlUsersService

Inheritance

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

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SqlUsersService service.

Parameters
NameDescription
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): SqlUsersService;

Creates new SqlUsersService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
SqlUsersService

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request ISqlUsersDeleteRequest

SqlUsersDeleteRequest message or plain object

callback DeleteCallback

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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.sql.v1.ISqlUsersDeleteRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request ISqlUsersDeleteRequest

SqlUsersDeleteRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.sql.v1.Operation>

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request ISqlUsersGetRequest

SqlUsersGetRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.sql.v1.ISqlUsersGetRequest): Promise<google.cloud.sql.v1.User>;

Calls Get.

Parameter
NameDescription
request ISqlUsersGetRequest

SqlUsersGetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.sql.v1.User>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request ISqlUsersInsertRequest

SqlUsersInsertRequest message or plain object

callback InsertCallback

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

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.sql.v1.ISqlUsersInsertRequest): Promise<google.cloud.sql.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request ISqlUsersInsertRequest

SqlUsersInsertRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.sql.v1.Operation>

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request ISqlUsersListRequest

SqlUsersListRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.sql.v1.ISqlUsersListRequest): Promise<google.cloud.sql.v1.UsersListResponse>;

Calls List.

Parameter
NameDescription
request ISqlUsersListRequest

SqlUsersListRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.sql.v1.UsersListResponse>

Promise

update(request, callback)

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

Calls Update.

Parameters
NameDescription
request ISqlUsersUpdateRequest

SqlUsersUpdateRequest message or plain object

callback UpdateCallback

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

Returns
TypeDescription
void

update(request)

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

Calls Update.

Parameter
NameDescription
request ISqlUsersUpdateRequest

SqlUsersUpdateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.sql.v1.Operation>

Promise