public sealed class RouterNatSubnetworkToNat : IMessage<RouterNatSubnetworkToNat>, IEquatable<RouterNatSubnetworkToNat>, IDeepCloneable<RouterNatSubnetworkToNat>, IBufferMessage, IMessage
Defines the IP ranges that want to use NAT for a subnetwork.
public RepeatedField<string> SecondaryIpRangeNames { get; }
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
public RepeatedField<string> SourceIpRangesToNat { get; }
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES]
Check the SourceIpRangesToNat enum for the list of possible values.
[[["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 \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e class defines IP ranges for subnetwork NAT usage within the Google Cloud Compute V1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest documented version for \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e is 3.6.0, but this page provides a history from version 1.0.0 onwards.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e class allows setting the subnetwork resource URL, secondary IP ranges allowed for NAT, and the source IP ranges for NAT.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epublic RouterNatSubnetworkToNat()\u003c/code\u003e constructor provides a way to instantiate the object, while \u003ccode\u003epublic RouterNatSubnetworkToNat(RouterNatSubnetworkToNat other)\u003c/code\u003e provides a way to create a new instance of this class from an existing one.\u003c/p\u003e\n"]]],[],null,[]]