class Google::Apis::ComputeBeta::RouterStatusNatStatus

Status of a NAT contained in this router.

Attributes

auto_allocated_nat_ips[RW]

A list of IPs auto-allocated for NAT. Example: [“1.1.1.1”, “129.2.16.89”] Corresponds to the JSON property `autoAllocatedNatIps` @return [Array<String>]

drain_auto_allocated_nat_ips[RW]

A list of IPs auto-allocated for NAT that are in drain mode. Example: [“1.1.1. 1”, “179.12.26.133”]. Corresponds to the JSON property `drainAutoAllocatedNatIps` @return [Array<String>]

drain_user_allocated_nat_ips[RW]

A list of IPs user-allocated for NAT that are in drain mode. Example: [“1.1.1. 1”, “179.12.26.133”]. Corresponds to the JSON property `drainUserAllocatedNatIps` @return [Array<String>]

min_extra_nat_ips_needed[RW]

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` @return [Fixnum]

name[RW]

Unique name of this NAT. Corresponds to the JSON property `name` @return [String]

num_vm_endpoints_with_nat_mappings[RW]

Number of VM endpoints (i.e., Nics) that can use NAT. Corresponds to the JSON property `numVmEndpointsWithNatMappings` @return [Fixnum]

user_allocated_nat_ip_resources[RW]

A list of fully qualified URLs of reserved IP address resources. Corresponds to the JSON property `userAllocatedNatIpResources` @return [Array<String>]

user_allocated_nat_ips[RW]

A list of IPs user-allocated for NAT. They will be raw IP strings like “179.12. 26.133”. Corresponds to the JSON property `userAllocatedNatIps` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 30221
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_beta/classes.rb, line 30226
def update!(**args)
  @auto_allocated_nat_ips = args[:auto_allocated_nat_ips] if args.key?(:auto_allocated_nat_ips)
  @drain_auto_allocated_nat_ips = args[:drain_auto_allocated_nat_ips] if args.key?(:drain_auto_allocated_nat_ips)
  @drain_user_allocated_nat_ips = args[:drain_user_allocated_nat_ips] if args.key?(:drain_user_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