Class: Google::Apis::ComputeAlpha::NatIpInfo

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

Contains NAT IP information of a NAT config (i.e. usage status, mode).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NatIpInfo

Returns a new instance of NatIpInfo.



25810
25811
25812
# File 'lib/google/apis/compute_alpha/classes.rb', line 25810

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

Instance Attribute Details

#nat_ip_info_mappingsArray<Google::Apis::ComputeAlpha::NatIpInfoNatIpInfoMapping>

A list of all NAT IPs assigned to this NAT config. Corresponds to the JSON property natIpInfoMappings



25803
25804
25805
# File 'lib/google/apis/compute_alpha/classes.rb', line 25803

def nat_ip_info_mappings
  @nat_ip_info_mappings
end

#nat_nameString

Name of the NAT config which the NAT IP belongs to. Corresponds to the JSON property natName

Returns:

  • (String)


25808
25809
25810
# File 'lib/google/apis/compute_alpha/classes.rb', line 25808

def nat_name
  @nat_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25815
25816
25817
25818
# File 'lib/google/apis/compute_alpha/classes.rb', line 25815

def update!(**args)
  @nat_ip_info_mappings = args[:nat_ip_info_mappings] if args.key?(:nat_ip_info_mappings)
  @nat_name = args[:nat_name] if args.key?(:nat_name)
end