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"]],[["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-08 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eRouterNat.Types.SourceSubnetworkIpRangesToNat\u003c/code\u003e is 3.6.0, and multiple previous versions, down to 1.0.0, are also accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouterNat.Types.SourceSubnetworkIpRangesToNat\u003c/code\u003e enum specifies options for network address translation (NAT) within Google Cloud's Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThere are three defined options for the Nat setting, \u003ccode\u003eAllSubnetworksAllIpRanges\u003c/code\u003e, \u003ccode\u003eAllSubnetworksAllPrimaryIpRanges\u003c/code\u003e, and \u003ccode\u003eListOfSubnetworks\u003c/code\u003e, alongside an \u003ccode\u003eUndefinedSourceSubnetworkIpRangesToNat\u003c/code\u003e option, which indicates an unset enum field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllSubnetworksAllIpRanges\u003c/code\u003e option allows all IP ranges in every subnetwork to undergo NAT, whereas \u003ccode\u003eAllSubnetworksAllPrimaryIpRanges\u003c/code\u003e allows only the primary IP ranges to undergo NAT.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListOfSubnetworks\u003c/code\u003e option is used to allow a specified list of subnetworks to perform NAT.\u003c/p\u003e\n"]]],[],null,[]]