Class protos.google.cloud.compute.v1.VpnTunnels (4.8.0)

Represents a VpnTunnels

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new VpnTunnels 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.v1.IAggregatedListVpnTunnelsRequest, callback: google.cloud.compute.v1.VpnTunnels.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListVpnTunnelsRequest

AggregatedListVpnTunnelsRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest): Promise<google.cloud.compute.v1.VpnTunnelAggregatedList>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListVpnTunnelsRequest

AggregatedListVpnTunnelsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.VpnTunnelAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
Name Description
request IDeleteVpnTunnelRequest

DeleteVpnTunnelRequest 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.v1.IDeleteVpnTunnelRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
Name Description
request IDeleteVpnTunnelRequest

DeleteVpnTunnelRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetVpnTunnelRequest

GetVpnTunnelRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetVpnTunnelRequest): Promise<google.cloud.compute.v1.VpnTunnel>;

Calls Get.

Parameter
Name Description
request IGetVpnTunnelRequest

GetVpnTunnelRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.VpnTunnel>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
Name Description
request IInsertVpnTunnelRequest

InsertVpnTunnelRequest 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.v1.IInsertVpnTunnelRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
Name Description
request IInsertVpnTunnelRequest

InsertVpnTunnelRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListVpnTunnelsRequest

ListVpnTunnelsRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListVpnTunnelsRequest): Promise<google.cloud.compute.v1.VpnTunnelList>;

Calls List.

Parameter
Name Description
request IListVpnTunnelsRequest

ListVpnTunnelsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.VpnTunnelList>

Promise

setLabels(request, callback)

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

Calls SetLabels.

Parameters
Name Description
request ISetLabelsVpnTunnelRequest

SetLabelsVpnTunnelRequest 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.v1.ISetLabelsVpnTunnelRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
Name Description
request ISetLabelsVpnTunnelRequest

SetLabelsVpnTunnelRequest message or plain object

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

Promise