class Google::Apis::ComputeV1::RouterNatSubnetworkToNat

Defines the IP ranges that want to use NAT for a subnetwork.

Attributes

name[RW]

URL for the subnetwork resource that will use NAT. Corresponds to the JSON property `name` @return [String]

secondary_ip_range_names[RW]

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. Corresponds to the JSON property `secondaryIpRangeNames` @return [Array<String>]

source_ip_ranges_to_nat[RW]

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] Corresponds to the JSON property `sourceIpRangesToNat` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 28352
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 28357
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @secondary_ip_range_names = args[:secondary_ip_range_names] if args.key?(:secondary_ip_range_names)
  @source_ip_ranges_to_nat = args[:source_ip_ranges_to_nat] if args.key?(:source_ip_ranges_to_nat)
end