Represents a VpcAccessService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.vpcaccess.v1.VpcAccessServicePackage
@google-cloud/vpc-accessConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new VpcAccessService 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): VpcAccessService;
Creates new VpcAccessService 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 |
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 | |
---|---|
Name | Description |
request |
ICreateConnectorRequest
CreateConnectorRequest message or plain object |
callback |
CreateConnectorCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createConnector(request)
public createConnector(request: google.cloud.vpcaccess.v1.ICreateConnectorRequest): Promise<google.longrunning.Operation>;
Calls CreateConnector.
Parameter | |
---|---|
Name | Description |
request |
ICreateConnectorRequest
CreateConnectorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteConnectorRequest
DeleteConnectorRequest message or plain object |
callback |
DeleteConnectorCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteConnector(request)
public deleteConnector(request: google.cloud.vpcaccess.v1.IDeleteConnectorRequest): Promise<google.longrunning.Operation>;
Calls DeleteConnector.
Parameter | |
---|---|
Name | Description |
request |
IDeleteConnectorRequest
DeleteConnectorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetConnectorRequest
GetConnectorRequest message or plain object |
callback |
GetConnectorCallback
Node-style callback called with the error, if any, and Connector |
Returns | |
---|---|
Type | Description |
void |
getConnector(request)
public getConnector(request: google.cloud.vpcaccess.v1.IGetConnectorRequest): Promise<google.cloud.vpcaccess.v1.Connector>;
Calls GetConnector.
Parameter | |
---|---|
Name | Description |
request |
IGetConnectorRequest
GetConnectorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListConnectorsRequest
ListConnectorsRequest message or plain object |
callback |
ListConnectorsCallback
Node-style callback called with the error, if any, and ListConnectorsResponse |
Returns | |
---|---|
Type | Description |
void |
listConnectors(request)
public listConnectors(request: google.cloud.vpcaccess.v1.IListConnectorsRequest): Promise<google.cloud.vpcaccess.v1.ListConnectorsResponse>;
Calls ListConnectors.
Parameter | |
---|---|
Name | Description |
request |
IListConnectorsRequest
ListConnectorsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.vpcaccess.v1.ListConnectorsResponse> | Promise |