Class protos.google.cloud.bigquery.connection.v1.ConnectionService (2.0.2)

Represents a ConnectionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.bigquery.connection.v1.ConnectionService

Package

@google-cloud/bigquery-connection

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createConnection(request, callback)

public createConnection(request: google.cloud.bigquery.connection.v1.ICreateConnectionRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.CreateConnectionCallback): void;

Calls CreateConnection.

Parameters
NameDescription
request google.cloud.bigquery.connection.v1.ICreateConnectionRequest

CreateConnectionRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.CreateConnectionCallback

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

Returns
TypeDescription
void

createConnection(request)

public createConnection(request: google.cloud.bigquery.connection.v1.ICreateConnectionRequest): Promise<google.cloud.bigquery.connection.v1.Connection>;

Calls CreateConnection.

Parameter
NameDescription
request google.cloud.bigquery.connection.v1.ICreateConnectionRequest

CreateConnectionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.connection.v1.Connection>

Promise

deleteConnection(request, callback)

public deleteConnection(request: google.cloud.bigquery.connection.v1.IDeleteConnectionRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.DeleteConnectionCallback): void;

Calls DeleteConnection.

Parameters
NameDescription
request google.cloud.bigquery.connection.v1.IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.DeleteConnectionCallback

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

Returns
TypeDescription
void

deleteConnection(request)

public deleteConnection(request: google.cloud.bigquery.connection.v1.IDeleteConnectionRequest): Promise<google.protobuf.Empty>;

Calls DeleteConnection.

Parameter
NameDescription
request google.cloud.bigquery.connection.v1.IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getConnection(request, callback)

public getConnection(request: google.cloud.bigquery.connection.v1.IGetConnectionRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.GetConnectionCallback): void;

Calls GetConnection.

Parameters
NameDescription
request google.cloud.bigquery.connection.v1.IGetConnectionRequest

GetConnectionRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.GetConnectionCallback

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

Returns
TypeDescription
void

getConnection(request)

public getConnection(request: google.cloud.bigquery.connection.v1.IGetConnectionRequest): Promise<google.cloud.bigquery.connection.v1.Connection>;

Calls GetConnection.

Parameter
NameDescription
request google.cloud.bigquery.connection.v1.IGetConnectionRequest

GetConnectionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.connection.v1.Connection>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

listConnections(request, callback)

public listConnections(request: google.cloud.bigquery.connection.v1.IListConnectionsRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.ListConnectionsCallback): void;

Calls ListConnections.

Parameters
NameDescription
request IListConnectionsRequest

ListConnectionsRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.ListConnectionsCallback

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

Returns
TypeDescription
void

listConnections(request)

public listConnections(request: google.cloud.bigquery.connection.v1.IListConnectionsRequest): Promise<google.cloud.bigquery.connection.v1.ListConnectionsResponse>;

Calls ListConnections.

Parameter
NameDescription
request IListConnectionsRequest

ListConnectionsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.connection.v1.ListConnectionsResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateConnection(request, callback)

public updateConnection(request: google.cloud.bigquery.connection.v1.IUpdateConnectionRequest, callback: google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnectionCallback): void;

Calls UpdateConnection.

Parameters
NameDescription
request IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

callback google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnectionCallback

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

Returns
TypeDescription
void

updateConnection(request)

public updateConnection(request: google.cloud.bigquery.connection.v1.IUpdateConnectionRequest): Promise<google.cloud.bigquery.connection.v1.Connection>;

Calls UpdateConnection.

Parameter
NameDescription
request IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.connection.v1.Connection>

Promise