Class protos.google.cloud.compute.v1.VpnGateways (4.3.0)

Represents a VpnGateways

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.VpnGateways

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new VpnGateways service.

Parameters
NameDescription
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.v1.IAggregatedListVpnGatewaysRequest, callback: google.cloud.compute.v1.VpnGateways.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListVpnGatewaysRequest

AggregatedListVpnGatewaysRequest message or plain object

callback AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest): Promise<google.cloud.compute.v1.VpnGatewayAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListVpnGatewaysRequest

AggregatedListVpnGatewaysRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.VpnGatewayAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteVpnGatewayRequest

DeleteVpnGatewayRequest message or plain object

callback DeleteCallback

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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteVpnGatewayRequest

DeleteVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.GetCallback): void;

Calls Get.

Parameters
NameDescription
request IGetVpnGatewayRequest

GetVpnGatewayRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetVpnGatewayRequest): Promise<google.cloud.compute.v1.VpnGateway>;

Calls Get.

Parameter
NameDescription
request IGetVpnGatewayRequest

GetVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.VpnGateway>

Promise

getStatus(request, callback)

public getStatus(request: google.cloud.compute.v1.IGetStatusVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.GetStatusCallback): void;

Calls GetStatus.

Parameters
NameDescription
request IGetStatusVpnGatewayRequest

GetStatusVpnGatewayRequest message or plain object

callback GetStatusCallback

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

Returns
TypeDescription
void

getStatus(request)

public getStatus(request: google.cloud.compute.v1.IGetStatusVpnGatewayRequest): Promise<google.cloud.compute.v1.VpnGatewaysGetStatusResponse>;

Calls GetStatus.

Parameter
NameDescription
request IGetStatusVpnGatewayRequest

GetStatusVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.VpnGatewaysGetStatusResponse>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.InsertCallback): void;

Calls Insert.

Parameters
NameDescription
request IInsertVpnGatewayRequest

InsertVpnGatewayRequest message or plain object

callback InsertCallback

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

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request IInsertVpnGatewayRequest

InsertVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListVpnGatewaysRequest, callback: google.cloud.compute.v1.VpnGateways.ListCallback): void;

Calls List.

Parameters
NameDescription
request IListVpnGatewaysRequest

ListVpnGatewaysRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListVpnGatewaysRequest): Promise<google.cloud.compute.v1.VpnGatewayList>;

Calls List.

Parameter
NameDescription
request IListVpnGatewaysRequest

ListVpnGatewaysRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.VpnGatewayList>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1.ISetLabelsVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.SetLabelsCallback): void;

Calls SetLabels.

Parameters
NameDescription
request ISetLabelsVpnGatewayRequest

SetLabelsVpnGatewayRequest message or plain object

callback SetLabelsCallback

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

Returns
TypeDescription
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1.ISetLabelsVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
NameDescription
request ISetLabelsVpnGatewayRequest

SetLabelsVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsVpnGatewayRequest

TestIamPermissionsVpnGatewayRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsVpnGatewayRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsVpnGatewayRequest

TestIamPermissionsVpnGatewayRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise