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.
Enums
Name
Description
UNDEFINED_NAT_IP_ALLOCATE_OPTION
A value indicating that the enum field is not set.
AUTO_ONLY
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
MANUAL_ONLY
Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class NatIpAllocateOption (0.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.5 (latest)](/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.RouterNat.NatIpAllocateOption)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.RouterNat.NatIpAllocateOption) \n\n NatIpAllocateOption(value)\n\nSpecify the NatIpAllocateOption, which can take one of the following\nvalues: - MANUAL_ONLY: Uses only Nat IP addresses provided by\ncustomers. When there are not enough specified Nat IPs, the Nat\nservice fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by\nGoogle Cloud Platform; customers can't specify any Nat IPs. When\nchoosing AUTO_ONLY, then nat_ip should be empty."]]