class Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus

Status of a NAT Rule contained in this NAT.

Attributes

active_nat_ips[RW]

A list of active IPs for NAT. Example: [“1.1.1.1”, “179.12.26.133”]. Corresponds to the JSON property `activeNatIps` @return [Array<String>]

drain_nat_ips[RW]

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

min_extra_ips_needed[RW]

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

num_vm_endpoints_with_nat_mappings[RW]

Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. Corresponds to the JSON property `numVmEndpointsWithNatMappings` @return [Fixnum]

rule_number[RW]

Rule number of the rule. Corresponds to the JSON property `ruleNumber` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 31247
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_v1/classes.rb, line 31252
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