RouterNat class

Represents a Nat resource.

It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided.

Constructors

RouterNat({String? autoNetworkTier, List<String>? drainNatIps, bool? enableDynamicPortAllocation, bool? enableEndpointIndependentMapping, List<String>? endpointTypes, int? icmpIdleTimeoutSec, RouterNatLogConfig? logConfig, int? maxPortsPerVm, int? minPortsPerVm, String? name, String? natIpAllocateOption, List<String>? natIps, List<RouterNatRule>? rules, String? sourceSubnetworkIpRangesToNat, List<RouterNatSubnetworkToNat>? subnetworks, int? tcpEstablishedIdleTimeoutSec, int? tcpTimeWaitTimeoutSec, int? tcpTransitoryIdleTimeoutSec, String? type, int? udpIdleTimeoutSec})
RouterNat.fromJson(Map json_)

Properties

autoNetworkTier String?
The network tier to use when automatically reserving NAT IP addresses.
getter/setter pair
drainNatIps List<String>?
A list of URLs of the IP resources to be drained.
getter/setter pair
enableDynamicPortAllocation bool?
Enable Dynamic Port Allocation.
getter/setter pair
enableEndpointIndependentMapping bool?
getter/setter pair
endpointTypes List<String>?
List of NAT-ted endpoint types supported by the Nat Gateway.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icmpIdleTimeoutSec int?
Timeout (in seconds) for ICMP connections.
getter/setter pair
logConfig RouterNatLogConfig?
Configure logging on this NAT.
getter/setter pair
maxPortsPerVm int?
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
getter/setter pair
minPortsPerVm int?
Minimum number of ports allocated to a VM from this NAT config.
getter/setter pair
name String?
Unique name of this Nat service.
getter/setter pair
natIpAllocateOption String?
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
getter/setter pair
natIps List<String>?
A list of URLs of the IP resources used for this Nat service.
getter/setter pair
rules List<RouterNatRule>?
A list of rules associated with this NAT.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceSubnetworkIpRangesToNat String?
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
getter/setter pair
subnetworks List<RouterNatSubnetworkToNat>?
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
getter/setter pair
tcpEstablishedIdleTimeoutSec int?
Timeout (in seconds) for TCP established connections.
getter/setter pair
tcpTimeWaitTimeoutSec int?
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
getter/setter pair
tcpTransitoryIdleTimeoutSec int?
Timeout (in seconds) for TCP transitory connections.
getter/setter pair
type String?
Indicates whether this NAT is used for public or private IP translation.
getter/setter pair
udpIdleTimeoutSec int?
Timeout (in seconds) for UDP connections.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited