Class protos.google.cloud.vpcaccess.v1.VpcAccessService (3.0.2)

Represents a VpcAccessService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.vpcaccess.v1.VpcAccessService

Package

@google-cloud/vpc-access

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createConnector(request, callback)

public createConnector(request: google.cloud.vpcaccess.v1.ICreateConnectorRequest, callback: google.cloud.vpcaccess.v1.VpcAccessService.CreateConnectorCallback): void;

Calls CreateConnector.

Parameters
NameDescription
request ICreateConnectorRequest

CreateConnectorRequest message or plain object

callback CreateConnectorCallback

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

Returns
TypeDescription
void

createConnector(request)

public createConnector(request: google.cloud.vpcaccess.v1.ICreateConnectorRequest): Promise<google.longrunning.Operation>;

Calls CreateConnector.

Parameter
NameDescription
request ICreateConnectorRequest

CreateConnectorRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteConnector(request, callback)

public deleteConnector(request: google.cloud.vpcaccess.v1.IDeleteConnectorRequest, callback: google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnectorCallback): void;

Calls DeleteConnector.

Parameters
NameDescription
request IDeleteConnectorRequest

DeleteConnectorRequest message or plain object

callback DeleteConnectorCallback

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

Returns
TypeDescription
void

deleteConnector(request)

public deleteConnector(request: google.cloud.vpcaccess.v1.IDeleteConnectorRequest): Promise<google.longrunning.Operation>;

Calls DeleteConnector.

Parameter
NameDescription
request IDeleteConnectorRequest

DeleteConnectorRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getConnector(request, callback)

public getConnector(request: google.cloud.vpcaccess.v1.IGetConnectorRequest, callback: google.cloud.vpcaccess.v1.VpcAccessService.GetConnectorCallback): void;

Calls GetConnector.

Parameters
NameDescription
request IGetConnectorRequest

GetConnectorRequest message or plain object

callback GetConnectorCallback

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

Returns
TypeDescription
void

getConnector(request)

public getConnector(request: google.cloud.vpcaccess.v1.IGetConnectorRequest): Promise<google.cloud.vpcaccess.v1.Connector>;

Calls GetConnector.

Parameter
NameDescription
request IGetConnectorRequest

GetConnectorRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vpcaccess.v1.Connector>

Promise

listConnectors(request, callback)

public listConnectors(request: google.cloud.vpcaccess.v1.IListConnectorsRequest, callback: google.cloud.vpcaccess.v1.VpcAccessService.ListConnectorsCallback): void;

Calls ListConnectors.

Parameters
NameDescription
request IListConnectorsRequest

ListConnectorsRequest message or plain object

callback ListConnectorsCallback

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

Returns
TypeDescription
void

listConnectors(request)

public listConnectors(request: google.cloud.vpcaccess.v1.IListConnectorsRequest): Promise<google.cloud.vpcaccess.v1.ListConnectorsResponse>;

Calls ListConnectors.

Parameter
NameDescription
request IListConnectorsRequest

ListConnectorsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vpcaccess.v1.ListConnectorsResponse>

Promise