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\u003eThis page provides documentation for the \u003ccode\u003eRouterNat.Types.SourceSubnetworkIpRangesToNat\u003c/code\u003e enum in the Google Cloud Compute Engine v1 API, with version 3.5.0 being the currently viewed one.\u003c/p\u003e\n"],["\u003cp\u003eThe enum \u003ccode\u003eRouterNat.Types.SourceSubnetworkIpRangesToNat\u003c/code\u003e specifies the options for which IP ranges are allowed to use Network Address Translation (NAT), with possible values including \u003ccode\u003eALL_SUBNETWORKS_ALL_IP_RANGES\u003c/code\u003e, \u003ccode\u003eALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES\u003c/code\u003e, and \u003ccode\u003eLIST_OF_SUBNETWORKS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers a range of versions for this API, starting from version 1.0.0 up to the latest version, 3.6.0, with links to each version's specific documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe enum is located within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFields\u003c/code\u003e section defines the different values that the enum can be set to, alongside a description of what each value represents.\u003c/p\u003e\n"]]],[],null,[]]