Class protos.google.cloud.compute.v1beta.TargetVpnGateways (6.14.0)

Represents a TargetVpnGateways

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1beta.TargetVpnGateways

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TargetVpnGateways service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListTargetVpnGatewaysRequest

AggregatedListTargetVpnGatewaysRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest): Promise<google.cloud.compute.v1beta.TargetVpnGatewayAggregatedList>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListTargetVpnGatewaysRequest

AggregatedListTargetVpnGatewaysRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.TargetVpnGatewayAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TargetVpnGateways;

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

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

delete(request, callback)

public delete(request: google.cloud.compute.v1beta.IDeleteTargetVpnGatewayRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.DeleteCallback): void;

Calls Delete.

Parameters
Name Description
request IDeleteTargetVpnGatewayRequest

DeleteTargetVpnGatewayRequest message or plain object

callback DeleteCallback

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

Returns
Type Description
void

delete(request)

public delete(request: google.cloud.compute.v1beta.IDeleteTargetVpnGatewayRequest): Promise<google.cloud.compute.v1beta.Operation>;

Calls Delete.

Parameter
Name Description
request IDeleteTargetVpnGatewayRequest

DeleteTargetVpnGatewayRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1beta.IGetTargetVpnGatewayRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.GetCallback): void;

Calls Get.

Parameters
Name Description
request IGetTargetVpnGatewayRequest

GetTargetVpnGatewayRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1beta.IGetTargetVpnGatewayRequest): Promise<google.cloud.compute.v1beta.TargetVpnGateway>;

Calls Get.

Parameter
Name Description
request IGetTargetVpnGatewayRequest

GetTargetVpnGatewayRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.TargetVpnGateway>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1beta.IInsertTargetVpnGatewayRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.InsertCallback): void;

Calls Insert.

Parameters
Name Description
request IInsertTargetVpnGatewayRequest

InsertTargetVpnGatewayRequest message or plain object

callback InsertCallback

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

Returns
Type Description
void

insert(request)

public insert(request: google.cloud.compute.v1beta.IInsertTargetVpnGatewayRequest): Promise<google.cloud.compute.v1beta.Operation>;

Calls Insert.

Parameter
Name Description
request IInsertTargetVpnGatewayRequest

InsertTargetVpnGatewayRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.ListCallback): void;

Calls List.

Parameters
Name Description
request IListTargetVpnGatewaysRequest

ListTargetVpnGatewaysRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest): Promise<google.cloud.compute.v1beta.TargetVpnGatewayList>;

Calls List.

Parameter
Name Description
request IListTargetVpnGatewaysRequest

ListTargetVpnGatewaysRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.TargetVpnGatewayList>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1beta.ISetLabelsTargetVpnGatewayRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.SetLabelsCallback): void;

Calls SetLabels.

Parameters
Name Description
request ISetLabelsTargetVpnGatewayRequest

SetLabelsTargetVpnGatewayRequest message or plain object

callback SetLabelsCallback

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

Returns
Type Description
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1beta.ISetLabelsTargetVpnGatewayRequest): Promise<google.cloud.compute.v1beta.Operation>;

Calls SetLabels.

Parameter
Name Description
request ISetLabelsTargetVpnGatewayRequest

SetLabelsTargetVpnGatewayRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.Operation>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsTargetVpnGatewayRequest, callback: google.cloud.compute.v1beta.TargetVpnGateways.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
Name Description
request ITestIamPermissionsTargetVpnGatewayRequest

TestIamPermissionsTargetVpnGatewayRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
Type Description
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsTargetVpnGatewayRequest): Promise<google.cloud.compute.v1beta.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
Name Description
request ITestIamPermissionsTargetVpnGatewayRequest

TestIamPermissionsTargetVpnGatewayRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.TestPermissionsResponse>

Promise