Class: Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Status of a NAT Rule contained in this NAT.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterStatusNatStatusNatRuleStatus

Returns a new instance of RouterStatusNatStatusNatRuleStatus.



54460
54461
54462
# File 'lib/google/apis/compute_v1/classes.rb', line 54460

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

Instance Attribute Details

#active_nat_ipsArray<String>

Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. Corresponds to the JSON property activeNatIps

Returns:

  • (Array<String>)


54432
54433
54434
# File 'lib/google/apis/compute_v1/classes.rb', line 54432

def active_nat_ips
  @active_nat_ips
end

#drain_nat_ipsArray<String>

Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. Corresponds to the JSON property drainNatIps

Returns:

  • (Array<String>)


54438
54439
54440
# File 'lib/google/apis/compute_v1/classes.rb', line 54438

def drain_nat_ips
  @drain_nat_ips
end

#min_extra_ips_neededFixnum

Output only. The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. Corresponds to the JSON property minExtraIpsNeeded

Returns:

  • (Fixnum)


54446
54447
54448
# File 'lib/google/apis/compute_v1/classes.rb', line 54446

def min_extra_ips_needed
  @min_extra_ips_needed
end

#num_vm_endpoints_with_nat_mappingsFixnum

Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. Corresponds to the JSON property numVmEndpointsWithNatMappings

Returns:

  • (Fixnum)


54453
54454
54455
# File 'lib/google/apis/compute_v1/classes.rb', line 54453

def num_vm_endpoints_with_nat_mappings
  @num_vm_endpoints_with_nat_mappings
end

#rule_numberFixnum

Output only. Rule number of the rule. Corresponds to the JSON property ruleNumber

Returns:

  • (Fixnum)


54458
54459
54460
# File 'lib/google/apis/compute_v1/classes.rb', line 54458

def rule_number
  @rule_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54465
54466
54467
54468
54469
54470
54471
# File 'lib/google/apis/compute_v1/classes.rb', line 54465

def update!(**args)
  @active_nat_ips = args[:active_nat_ips] if args.key?(:active_nat_ips)
  @drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
  @min_extra_ips_needed = args[:min_extra_ips_needed] if args.key?(:min_extra_ips_needed)
  @num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings)
  @rule_number = args[:rule_number] if args.key?(:rule_number)
end