Class protos.google.cloud.compute.v1.RouterNat (4.5.0)

Represents a RouterNat.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new RouterNat.

Parameter
Name Description
properties IRouterNat

Properties to set

Properties

_autoNetworkTier

public _autoNetworkTier?: "autoNetworkTier";

RouterNat _autoNetworkTier.

_enableDynamicPortAllocation

public _enableDynamicPortAllocation?: "enableDynamicPortAllocation";

RouterNat _enableDynamicPortAllocation.

_enableEndpointIndependentMapping

public _enableEndpointIndependentMapping?: "enableEndpointIndependentMapping";

RouterNat _enableEndpointIndependentMapping.

_icmpIdleTimeoutSec

public _icmpIdleTimeoutSec?: "icmpIdleTimeoutSec";

RouterNat _icmpIdleTimeoutSec.

_logConfig

public _logConfig?: "logConfig";

RouterNat _logConfig.

_maxPortsPerVm

public _maxPortsPerVm?: "maxPortsPerVm";

RouterNat _maxPortsPerVm.

_minPortsPerVm

public _minPortsPerVm?: "minPortsPerVm";

RouterNat _minPortsPerVm.

_name

public _name?: "name";

RouterNat _name.

_natIpAllocateOption

public _natIpAllocateOption?: "natIpAllocateOption";

RouterNat _natIpAllocateOption.

_sourceSubnetworkIpRangesToNat

public _sourceSubnetworkIpRangesToNat?: "sourceSubnetworkIpRangesToNat";

RouterNat _sourceSubnetworkIpRangesToNat.

_tcpEstablishedIdleTimeoutSec

public _tcpEstablishedIdleTimeoutSec?: "tcpEstablishedIdleTimeoutSec";

RouterNat _tcpEstablishedIdleTimeoutSec.

_tcpTimeWaitTimeoutSec

public _tcpTimeWaitTimeoutSec?: "tcpTimeWaitTimeoutSec";

RouterNat _tcpTimeWaitTimeoutSec.

_tcpTransitoryIdleTimeoutSec

public _tcpTransitoryIdleTimeoutSec?: "tcpTransitoryIdleTimeoutSec";

RouterNat _tcpTransitoryIdleTimeoutSec.

_type

public _type?: "type";

RouterNat _type.

_udpIdleTimeoutSec

public _udpIdleTimeoutSec?: "udpIdleTimeoutSec";

RouterNat _udpIdleTimeoutSec.

autoNetworkTier

public autoNetworkTier?: (string|null);

RouterNat autoNetworkTier.

drainNatIps

public drainNatIps: string[];

RouterNat drainNatIps.

enableDynamicPortAllocation

public enableDynamicPortAllocation?: (boolean|null);

RouterNat enableDynamicPortAllocation.

enableEndpointIndependentMapping

public enableEndpointIndependentMapping?: (boolean|null);

RouterNat enableEndpointIndependentMapping.

endpointTypes

public endpointTypes: string[];

RouterNat endpointTypes.

icmpIdleTimeoutSec

public icmpIdleTimeoutSec?: (number|null);

RouterNat icmpIdleTimeoutSec.

logConfig

public logConfig?: (google.cloud.compute.v1.IRouterNatLogConfig|null);

RouterNat logConfig.

maxPortsPerVm

public maxPortsPerVm?: (number|null);

RouterNat maxPortsPerVm.

minPortsPerVm

public minPortsPerVm?: (number|null);

RouterNat minPortsPerVm.

name

public name?: (string|null);

RouterNat name.

natIpAllocateOption

public natIpAllocateOption?: (string|null);

RouterNat natIpAllocateOption.

natIps

public natIps: string[];

RouterNat natIps.

rules

public rules: google.cloud.compute.v1.IRouterNatRule[];

RouterNat rules.

sourceSubnetworkIpRangesToNat

public sourceSubnetworkIpRangesToNat?: (string|null);

RouterNat sourceSubnetworkIpRangesToNat.

subnetworks

public subnetworks: google.cloud.compute.v1.IRouterNatSubnetworkToNat[];

RouterNat subnetworks.

tcpEstablishedIdleTimeoutSec

public tcpEstablishedIdleTimeoutSec?: (number|null);

RouterNat tcpEstablishedIdleTimeoutSec.

tcpTimeWaitTimeoutSec

public tcpTimeWaitTimeoutSec?: (number|null);

RouterNat tcpTimeWaitTimeoutSec.

tcpTransitoryIdleTimeoutSec

public tcpTransitoryIdleTimeoutSec?: (number|null);

RouterNat tcpTransitoryIdleTimeoutSec.

type

public type?: (string|null);

RouterNat type.

udpIdleTimeoutSec

public udpIdleTimeoutSec?: (number|null);

RouterNat udpIdleTimeoutSec.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IRouterNat): google.cloud.compute.v1.RouterNat;

Creates a new RouterNat instance using the specified properties.

Parameter
Name Description
properties IRouterNat

Properties to set

Returns
Type Description
RouterNat

RouterNat instance

decode(reader, length)

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

Decodes a RouterNat message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
RouterNat

RouterNat

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
RouterNat

RouterNat

encode(message, writer)

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

Encodes the specified RouterNat message. Does not implicitly messages.

Parameters
Name Description
message IRouterNat

RouterNat message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

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

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

Parameters
Name Description
message IRouterNat

RouterNat message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

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

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
RouterNat

RouterNat

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for RouterNat

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

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

Converts this RouterNat to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message RouterNat

RouterNat

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a RouterNat message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not