class Google::Apis::ComputeV1::RouterStatusNatStatus
Status of a NAT contained in this router.
Attributes
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>]
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>]
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>]
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]
Unique name of this NAT. Corresponds to the JSON property `name` @return [String]
Number of VM endpoints (i.e., Nics) that can use NAT. Corresponds to the JSON property `numVmEndpointsWithNatMappings` @return [Fixnum]
Status of rules in this NAT. Corresponds to the JSON property `ruleStatus` @return [Array<Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus>]
A list of fully qualified URLs of reserved IP address resources. Corresponds to the JSON property `userAllocatedNatIpResources` @return [Array<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` @return [Array<String>]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 30739 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 30744 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) @rule_status = args[:rule_status] if args.key?(:rule_status) @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