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

Represents a SqlConnectService

Inheritance

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

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

generateEphemeralCert(request, callback)

public generateEphemeralCert(request: google.cloud.sql.v1beta4.IGenerateEphemeralCertRequest, callback: google.cloud.sql.v1beta4.SqlConnectService.GenerateEphemeralCertCallback): void;

Calls GenerateEphemeralCert.

Parameters
Name Description
request IGenerateEphemeralCertRequest

GenerateEphemeralCertRequest message or plain object

callback GenerateEphemeralCertCallback

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

Returns
Type Description
void

generateEphemeralCert(request)

public generateEphemeralCert(request: google.cloud.sql.v1beta4.IGenerateEphemeralCertRequest): Promise<google.cloud.sql.v1beta4.GenerateEphemeralCertResponse>;

Calls GenerateEphemeralCert.

Parameter
Name Description
request IGenerateEphemeralCertRequest

GenerateEphemeralCertRequest message or plain object

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

Promise

getConnectSettings(request, callback)

public getConnectSettings(request: google.cloud.sql.v1beta4.IGetConnectSettingsRequest, callback: google.cloud.sql.v1beta4.SqlConnectService.GetConnectSettingsCallback): void;

Calls GetConnectSettings.

Parameters
Name Description
request IGetConnectSettingsRequest

GetConnectSettingsRequest message or plain object

callback GetConnectSettingsCallback

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

Returns
Type Description
void

getConnectSettings(request)

public getConnectSettings(request: google.cloud.sql.v1beta4.IGetConnectSettingsRequest): Promise<google.cloud.sql.v1beta4.ConnectSettings>;

Calls GetConnectSettings.

Parameter
Name Description
request IGetConnectSettingsRequest

GetConnectSettingsRequest message or plain object

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

Promise