Class protos.google.cloud.compute.v1.VpnTunnel (3.1.2)

Represents a VpnTunnel.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.IVpnTunnel);

Constructs a new VpnTunnel.

Parameter
NameDescription
properties IVpnTunnel

Properties to set

Properties

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

VpnTunnel _creationTimestamp.

_description

public _description?: "description";

VpnTunnel _description.

_detailedStatus

public _detailedStatus?: "detailedStatus";

VpnTunnel _detailedStatus.

_id

public _id?: "id";

VpnTunnel _id.

_ikeVersion

public _ikeVersion?: "ikeVersion";

VpnTunnel _ikeVersion.

_kind

public _kind?: "kind";

VpnTunnel _kind.

_name

public _name?: "name";

VpnTunnel _name.

_peerExternalGateway

public _peerExternalGateway?: "peerExternalGateway";

VpnTunnel _peerExternalGateway.

_peerExternalGatewayInterface

public _peerExternalGatewayInterface?: "peerExternalGatewayInterface";

VpnTunnel _peerExternalGatewayInterface.

_peerGcpGateway

public _peerGcpGateway?: "peerGcpGateway";

VpnTunnel _peerGcpGateway.

_peerIp

public _peerIp?: "peerIp";

VpnTunnel _peerIp.

_region

public _region?: "region";

VpnTunnel _region.

_router

public _router?: "router";

VpnTunnel _router.

public _selfLink?: "selfLink";

VpnTunnel _selfLink.

_sharedSecret

public _sharedSecret?: "sharedSecret";

VpnTunnel _sharedSecret.

_sharedSecretHash

public _sharedSecretHash?: "sharedSecretHash";

VpnTunnel _sharedSecretHash.

_status

public _status?: "status";

VpnTunnel _status.

_targetVpnGateway

public _targetVpnGateway?: "targetVpnGateway";

VpnTunnel _targetVpnGateway.

_vpnGateway

public _vpnGateway?: "vpnGateway";

VpnTunnel _vpnGateway.

_vpnGatewayInterface

public _vpnGatewayInterface?: "vpnGatewayInterface";

VpnTunnel _vpnGatewayInterface.

creationTimestamp

public creationTimestamp?: (string|null);

VpnTunnel creationTimestamp.

description

public description?: (string|null);

VpnTunnel description.

detailedStatus

public detailedStatus?: (string|null);

VpnTunnel detailedStatus.

id

public id?: (number|Long|string|null);

VpnTunnel id.

ikeVersion

public ikeVersion?: (number|null);

VpnTunnel ikeVersion.

kind

public kind?: (string|null);

VpnTunnel kind.

localTrafficSelector

public localTrafficSelector: string[];

VpnTunnel localTrafficSelector.

name

public name?: (string|null);

VpnTunnel name.

peerExternalGateway

public peerExternalGateway?: (string|null);

VpnTunnel peerExternalGateway.

peerExternalGatewayInterface

public peerExternalGatewayInterface?: (number|null);

VpnTunnel peerExternalGatewayInterface.

peerGcpGateway

public peerGcpGateway?: (string|null);

VpnTunnel peerGcpGateway.

peerIp

public peerIp?: (string|null);

VpnTunnel peerIp.

region

public region?: (string|null);

VpnTunnel region.

remoteTrafficSelector

public remoteTrafficSelector: string[];

VpnTunnel remoteTrafficSelector.

router

public router?: (string|null);

VpnTunnel router.

public selfLink?: (string|null);

VpnTunnel selfLink.

sharedSecret

public sharedSecret?: (string|null);

VpnTunnel sharedSecret.

sharedSecretHash

public sharedSecretHash?: (string|null);

VpnTunnel sharedSecretHash.

status

public status?: (string|null);

VpnTunnel status.

targetVpnGateway

public targetVpnGateway?: (string|null);

VpnTunnel targetVpnGateway.

vpnGateway

public vpnGateway?: (string|null);

VpnTunnel vpnGateway.

vpnGatewayInterface

public vpnGatewayInterface?: (number|null);

VpnTunnel vpnGatewayInterface.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IVpnTunnel): google.cloud.compute.v1.VpnTunnel;

Creates a new VpnTunnel instance using the specified properties.

Parameter
NameDescription
properties IVpnTunnel

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.VpnTunnel

VpnTunnel instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.VpnTunnel;

Decodes a VpnTunnel message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.compute.v1.VpnTunnel

VpnTunnel

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.VpnTunnel;

Decodes a VpnTunnel message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.compute.v1.VpnTunnel

VpnTunnel

encode(message, writer)

public static encode(message: google.cloud.compute.v1.IVpnTunnel, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified VpnTunnel message. Does not implicitly messages.

Parameters
NameDescription
message IVpnTunnel

VpnTunnel message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.compute.v1.IVpnTunnel, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified VpnTunnel message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IVpnTunnel

VpnTunnel message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.VpnTunnel;

Creates a VpnTunnel message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.compute.v1.VpnTunnel

VpnTunnel

toJSON()

public toJSON(): { [k: string]: any };

Converts this VpnTunnel to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.VpnTunnel, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a VpnTunnel message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.compute.v1.VpnTunnel

VpnTunnel

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a VpnTunnel message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not