Reference documentation and code samples for the Compute Engine v1 API enum RouterNat.Types.SourceSubnetworkIpRangesToNat.
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. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[[["The `RouterNat.Types.SourceSubnetworkIpRangesToNat` enum in the Compute Engine v1 API defines options for specifying which IP ranges in a subnetwork are allowed to use Network Address Translation (NAT)."],["The available options are `ALL_SUBNETWORKS_ALL_IP_RANGES` for allowing all IP ranges in every subnetwork, `ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES` for only primary IP ranges, and `LIST_OF_SUBNETWORKS` to restrict it to a specific set of subnetworks."],["The default value for the NAT option is `SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED`, and using `ALL_SUBNETWORKS_ALL_IP_RANGES` prevents other Router.Nat configurations in the same region."],["The document lists multiple versions of the API, ranging from version 1.0.0 to the latest 3.6.0, showing its evolution and allowing you to navigate the differences between versions."],["The enum includes a `UndefinedSourceSubnetworkIpRangesToNat` field that indicates if the field is unset."]]],[]]