Class: Google::Apis::ComputeAlpha::RouterStatusNatStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RouterStatusNatStatus
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Status of a NAT contained in this router.
Instance Attribute Summary collapse
-
#auto_allocated_nat_ips ⇒ Array<String>
List of IPs auto-allocated for NAT.
-
#min_extra_nat_ips_needed ⇒ Fixnum
The number of extra IPs to allocate.
-
#name ⇒ String
Unique name of this NAT.
-
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., Nics) that can use NAT.
-
#user_allocated_nat_ip_resources ⇒ Array<String>
List of fully qualified URLs of reserved IP address resources.
-
#user_allocated_nat_ips ⇒ Array<String>
List of IPs user-allocated for NAT.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterStatusNatStatus
constructor
A new instance of RouterStatusNatStatus.
-
#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) ⇒ RouterStatusNatStatus
Returns a new instance of RouterStatusNatStatus
18667 18668 18669 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_allocated_nat_ips ⇒ Array<String>
List of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
Corresponds to the JSON property autoAllocatedNatIps
18637 18638 18639 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18637 def auto_allocated_nat_ips @auto_allocated_nat_ips end |
#min_extra_nat_ips_needed ⇒ Fixnum
The number of extra IPs to allocate. This will be greater than 0 only if user-
specified IPs are NOT enough to allow all configured VMs to use NAT. This
value is meaningful only when auto-allocation of NAT IPs is not used.
Corresponds to the JSON property minExtraNatIpsNeeded
18644 18645 18646 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18644 def min_extra_nat_ips_needed @min_extra_nat_ips_needed end |
#name ⇒ String
Unique name of this NAT.
Corresponds to the JSON property name
18649 18650 18651 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18649 def name @name end |
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., Nics) that can use NAT.
Corresponds to the JSON property numVmEndpointsWithNatMappings
18654 18655 18656 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18654 def num_vm_endpoints_with_nat_mappings @num_vm_endpoints_with_nat_mappings end |
#user_allocated_nat_ip_resources ⇒ Array<String>
List of fully qualified URLs of reserved IP address resources.
Corresponds to the JSON property userAllocatedNatIpResources
18659 18660 18661 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18659 def user_allocated_nat_ip_resources @user_allocated_nat_ip_resources end |
#user_allocated_nat_ips ⇒ Array<String>
List of IPs user-allocated for NAT. They will be raw IP strings like "179.12.
26.133".
Corresponds to the JSON property userAllocatedNatIps
18665 18666 18667 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18665 def user_allocated_nat_ips @user_allocated_nat_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18672 18673 18674 18675 18676 18677 18678 18679 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 18672 def update!(**args) @auto_allocated_nat_ips = args[:auto_allocated_nat_ips] if args.key?(:auto_allocated_nat_ips) @min_extra_nat_ips_needed = args[:min_extra_nat_ips_needed] if args.key?(:min_extra_nat_ips_needed) @name = args[:name] if args.key?(:name) @num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings) @user_allocated_nat_ip_resources = args[:user_allocated_nat_ip_resources] if args.key?(:user_allocated_nat_ip_resources) @user_allocated_nat_ips = args[:user_allocated_nat_ips] if args.key?(:user_allocated_nat_ips) end |