Class: Google::Apis::ComputeAlpha::RouterStatusNatStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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. Next tag: 9

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RouterStatusNatStatus

Returns a new instance of RouterStatusNatStatus.



29466
29467
29468
# File 'generated/google/apis/compute_alpha/classes.rb', line 29466

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

Instance Attribute Details

#auto_allocated_nat_ipsArray<String>

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] Corresponds to the JSON property autoAllocatedNatIps

Returns:

  • (Array<String>)


29424
29425
29426
# File 'generated/google/apis/compute_alpha/classes.rb', line 29424

def auto_allocated_nat_ips
  @auto_allocated_nat_ips
end

#drain_auto_allocated_nat_ipsArray<String>

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

Returns:

  • (Array<String>)


29430
29431
29432
# File 'generated/google/apis/compute_alpha/classes.rb', line 29430

def drain_auto_allocated_nat_ips
  @drain_auto_allocated_nat_ips
end

#drain_user_allocated_nat_ipsArray<String>

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

Returns:

  • (Array<String>)


29436
29437
29438
# File 'generated/google/apis/compute_alpha/classes.rb', line 29436

def drain_user_allocated_nat_ips
  @drain_user_allocated_nat_ips
end

#min_extra_nat_ips_neededFixnum

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

Returns:

  • (Fixnum)


29443
29444
29445
# File 'generated/google/apis/compute_alpha/classes.rb', line 29443

def min_extra_nat_ips_needed
  @min_extra_nat_ips_needed
end

#nameString

Unique name of this NAT. Corresponds to the JSON property name

Returns:

  • (String)


29448
29449
29450
# File 'generated/google/apis/compute_alpha/classes.rb', line 29448

def name
  @name
end

#num_vm_endpoints_with_nat_mappingsFixnum

Number of VM endpoints (i.e., Nics) that can use NAT. Corresponds to the JSON property numVmEndpointsWithNatMappings

Returns:

  • (Fixnum)


29453
29454
29455
# File 'generated/google/apis/compute_alpha/classes.rb', line 29453

def num_vm_endpoints_with_nat_mappings
  @num_vm_endpoints_with_nat_mappings
end

#user_allocated_nat_ip_resourcesArray<String>

A list of fully qualified URLs of reserved IP address resources. Corresponds to the JSON property userAllocatedNatIpResources

Returns:

  • (Array<String>)


29458
29459
29460
# File 'generated/google/apis/compute_alpha/classes.rb', line 29458

def user_allocated_nat_ip_resources
  @user_allocated_nat_ip_resources
end

#user_allocated_nat_ipsArray<String>

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

Returns:

  • (Array<String>)


29464
29465
29466
# File 'generated/google/apis/compute_alpha/classes.rb', line 29464

def user_allocated_nat_ips
  @user_allocated_nat_ips
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
# File 'generated/google/apis/compute_alpha/classes.rb', line 29471

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