Class: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterNatSubnetworkToNat

Returns a new instance of RouterNatSubnetworkToNat.



40861
40862
40863
# File 'lib/google/apis/compute_alpha/classes.rb', line 40861

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

URL for the subnetwork resource that will use NAT. Corresponds to the JSON property name

Returns:

  • (String)


40844
40845
40846
# File 'lib/google/apis/compute_alpha/classes.rb', line 40844

def name
  @name
end

#secondary_ip_range_namesArray<String>

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

Returns:

  • (Array<String>)


40851
40852
40853
# File 'lib/google/apis/compute_alpha/classes.rb', line 40851

def secondary_ip_range_names
  @secondary_ip_range_names
end

#source_ip_ranges_to_natArray<String>

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

Returns:

  • (Array<String>)


40859
40860
40861
# File 'lib/google/apis/compute_alpha/classes.rb', line 40859

def source_ip_ranges_to_nat
  @source_ip_ranges_to_nat
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40866
40867
40868
40869
40870
# File 'lib/google/apis/compute_alpha/classes.rb', line 40866

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