Compute Engine v1 API - Class RouterNatSubnetworkToNat (2.15.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
Name Description
other RouterNatSubnetworkToNat

Properties

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
Type Description
bool

Name

public string Name { get; set; }

URL for the subnetwork resource that will use NAT.

Property Value
Type Description
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
Type Description
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
Type Description
RepeatedFieldstring