Reference documentation and code samples for the Compute V1 Client class NatIpAllocateOption.
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.
Protobuf type google.cloud.compute.v1.RouterNat.NatIpAllocateOption
Namespace
Google \ Cloud \ Compute \ V1 \ RouterNatMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
UNDEFINED_NAT_IP_ALLOCATE_OPTION
Value: 0
A value indicating that the enum field is not set.
Generated from protobuf enum UNDEFINED_NAT_IP_ALLOCATE_OPTION = 0;
AUTO_ONLY
Value: 182333500
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
Generated from protobuf enum AUTO_ONLY = 182333500;
MANUAL_ONLY
Value: 261251205
Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs.
Generated from protobuf enum MANUAL_ONLY = 261251205;