Compute Engine v1 API - Class RouterNatSubnetworkToNat (2.11.0)

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.

Inheritance

object > RouterNatSubnetworkToNat

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RouterNatSubnetworkToNat()

public RouterNatSubnetworkToNat()

RouterNatSubnetworkToNat(RouterNatSubnetworkToNat)

public RouterNatSubnetworkToNat(RouterNatSubnetworkToNat other)
Parameter
NameDescription
otherRouterNatSubnetworkToNat

Properties

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

Name

public string Name { get; set; }

URL for the subnetwork resource that will use NAT.

Property Value
TypeDescription
string

SecondaryIpRangeNames

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.

Property Value
TypeDescription
RepeatedFieldstring

SourceIpRangesToNat

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.

Property Value
TypeDescription
RepeatedFieldstring