public sealed class RouterNatSubnetworkToNat : IMessage<RouterNatSubnetworkToNat>, IEquatable<RouterNatSubnetworkToNat>, IDeepCloneable<RouterNatSubnetworkToNat>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class RouterNatSubnetworkToNat.
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\u003eThis document provides reference information for the \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e class in the Google Cloud Compute Engine v1 API, detailing its implementation and usage across various versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API class \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e is 3.6.0, with prior versions available dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e defines the IP ranges that want to use Network Address Translation (NAT) for a subnetwork, including properties like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eSecondaryIpRangeNames\u003c/code\u003e, and \u003ccode\u003eSourceIpRangesToNat\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and the class contains two constructors, a default and one that accepts another \u003ccode\u003eRouterNatSubnetworkToNat\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties that allow you to get the subnetwork resource name that will use NAT, as well as specifying which secondary ip ranges are allowed to use NAT, and options for NAT ranges.\u003c/p\u003e\n"]]],[],null,[]]