Class: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Overview
Defines the IP ranges that want to use NAT for a subnetwork.
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL for the subnetwork resource to use NAT. 
- 
  
    
      #secondary_ip_range_names  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of the secondary ranges of the Subnetwork that are allowed to use NAT. 
- 
  
    
      #source_ip_ranges_to_nats  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specify the options for NAT ranges in the Subnetwork. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RouterNatSubnetworkToNat 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RouterNatSubnetworkToNat. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ RouterNatSubnetworkToNat
Returns a new instance of RouterNatSubnetworkToNat
| 21368 21369 21370 | # File 'generated/google/apis/compute_alpha/classes.rb', line 21368 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#name ⇒ String
URL for the subnetwork resource to use NAT.
Corresponds to the JSON property name
| 21351 21352 21353 | # File 'generated/google/apis/compute_alpha/classes.rb', line 21351 def name @name end | 
#secondary_ip_range_names ⇒ Array<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
| 21358 21359 21360 | # File 'generated/google/apis/compute_alpha/classes.rb', line 21358 def secondary_ip_range_names @secondary_ip_range_names end | 
#source_ip_ranges_to_nats ⇒ Array<String>
Specify the options for NAT ranges in the Subnetwork. All usages of 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 sourceIpRangesToNats
| 21366 21367 21368 | # File 'generated/google/apis/compute_alpha/classes.rb', line 21366 def source_ip_ranges_to_nats @source_ip_ranges_to_nats end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 21373 21374 21375 21376 21377 | # File 'generated/google/apis/compute_alpha/classes.rb', line 21373 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_nats = args[:source_ip_ranges_to_nats] if args.key?(:source_ip_ranges_to_nats) end |