Class: Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus
- 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
-
#active_nat_ips ⇒ Array<String>
A list of active IPs for NAT.
-
#drain_nat_ips ⇒ Array<String>
A list of IPs for NAT that are in drain mode.
-
#min_extra_ips_needed ⇒ Fixnum
The number of extra IPs to allocate.
-
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
-
#rule_number ⇒ Fixnum
Rule number of the rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterStatusNatStatusNatRuleStatus
constructor
A new instance of RouterStatusNatStatusNatRuleStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouterStatusNatStatusNatRuleStatus
Returns a new instance of RouterStatusNatStatusNatRuleStatus.
36812 36813 36814 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_nat_ips ⇒ Array<String>
A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].
Corresponds to the JSON property activeNatIps
36787 36788 36789 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36787 def active_nat_ips @active_nat_ips end |
#drain_nat_ips ⇒ Array<String>
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
36793 36794 36795 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36793 def drain_nat_ips @drain_nat_ips end |
#min_extra_ips_needed ⇒ Fixnum
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
36800 36801 36802 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36800 def min_extra_ips_needed @min_extra_ips_needed end |
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
Corresponds to the JSON property numVmEndpointsWithNatMappings
36805 36806 36807 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36805 def num_vm_endpoints_with_nat_mappings @num_vm_endpoints_with_nat_mappings end |
#rule_number ⇒ Fixnum
Rule number of the rule.
Corresponds to the JSON property ruleNumber
36810 36811 36812 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36810 def rule_number @rule_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36817 36818 36819 36820 36821 36822 36823 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36817 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 |