Constructor
new RouterNat(propertiesopt)
Constructs a new RouterNat.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.IRouterNat |
<optional> |
Properties to set |
- Implements:
-
- IRouterNat
Members
_enableDynamicPortAllocation
RouterNat _enableDynamicPortAllocation.
_enableEndpointIndependentMapping
RouterNat _enableEndpointIndependentMapping.
_icmpIdleTimeoutSec
RouterNat _icmpIdleTimeoutSec.
_logConfig
RouterNat _logConfig.
_maxPortsPerVm
RouterNat _maxPortsPerVm.
_minPortsPerVm
RouterNat _minPortsPerVm.
_name
RouterNat _name.
_natIpAllocateOption
RouterNat _natIpAllocateOption.
_sourceSubnetworkIpRangesToNat
RouterNat _sourceSubnetworkIpRangesToNat.
_tcpEstablishedIdleTimeoutSec
RouterNat _tcpEstablishedIdleTimeoutSec.
_tcpTimeWaitTimeoutSec
RouterNat _tcpTimeWaitTimeoutSec.
_tcpTransitoryIdleTimeoutSec
RouterNat _tcpTransitoryIdleTimeoutSec.
_udpIdleTimeoutSec
RouterNat _udpIdleTimeoutSec.
drainNatIps
RouterNat drainNatIps.
enableDynamicPortAllocation
RouterNat enableDynamicPortAllocation.
enableEndpointIndependentMapping
RouterNat enableEndpointIndependentMapping.
endpointTypes
RouterNat endpointTypes.
icmpIdleTimeoutSec
RouterNat icmpIdleTimeoutSec.
logConfig
RouterNat logConfig.
maxPortsPerVm
RouterNat maxPortsPerVm.
minPortsPerVm
RouterNat minPortsPerVm.
name
RouterNat name.
natIpAllocateOption
RouterNat natIpAllocateOption.
natIps
RouterNat natIps.
rules
RouterNat rules.
sourceSubnetworkIpRangesToNat
RouterNat sourceSubnetworkIpRangesToNat.
subnetworks
RouterNat subnetworks.
tcpEstablishedIdleTimeoutSec
RouterNat tcpEstablishedIdleTimeoutSec.
tcpTimeWaitTimeoutSec
RouterNat tcpTimeWaitTimeoutSec.
tcpTransitoryIdleTimeoutSec
RouterNat tcpTransitoryIdleTimeoutSec.
udpIdleTimeoutSec
RouterNat udpIdleTimeoutSec.
EndpointTypes
EndpointTypes enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_ENDPOINT_TYPES |
number |
UNDEFINED_ENDPOINT_TYPES value |
ENDPOINT_TYPE_SWG |
number |
ENDPOINT_TYPE_SWG value |
ENDPOINT_TYPE_VM |
number |
ENDPOINT_TYPE_VM value |
NatIpAllocateOption
NatIpAllocateOption enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_NAT_IP_ALLOCATE_OPTION |
number |
UNDEFINED_NAT_IP_ALLOCATE_OPTION value |
AUTO_ONLY |
number |
AUTO_ONLY value |
MANUAL_ONLY |
number |
MANUAL_ONLY value |
SourceSubnetworkIpRangesToNat
SourceSubnetworkIpRangesToNat enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT |
number |
UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT value |
ALL_SUBNETWORKS_ALL_IP_RANGES |
number |
ALL_SUBNETWORKS_ALL_IP_RANGES value |
ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES |
number |
ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES value |
LIST_OF_SUBNETWORKS |
number |
LIST_OF_SUBNETWORKS value |
Methods
toJSON() → {Object.<string, *>}
Converts this RouterNat to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.cloud.compute.v1.RouterNat}
Creates a new RouterNat instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.IRouterNat |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.RouterNat |
RouterNat instance |
(static) decode(reader, lengthopt) → {google.cloud.compute.v1.RouterNat}
Decodes a RouterNat message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.RouterNat |
RouterNat |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.cloud.compute.v1.RouterNat}
Decodes a RouterNat message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.RouterNat |
RouterNat |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified RouterNat message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.IRouterNat |
RouterNat message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified RouterNat message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.IRouterNat |
RouterNat message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {google.cloud.compute.v1.RouterNat}
Creates a RouterNat message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.RouterNat |
RouterNat |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for RouterNat
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a RouterNat message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.RouterNat |
RouterNat |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a RouterNat message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|