Class: Google::Apis::ComputeAlpha::RouterStatusNatStatusNatRuleStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RouterStatusNatStatusNatRuleStatus
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Status of a NAT Rule contained in this NAT.
Instance Attribute Summary collapse
-
#active_nat_ips ⇒ Array<String>
Output only.
-
#drain_nat_ips ⇒ Array<String>
Output only.
-
#min_extra_ips_needed ⇒ Fixnum
Output only.
-
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Output only.
-
#rule_number ⇒ Fixnum
Output only.
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.
64654 64655 64656 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64654 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_nat_ips ⇒ Array<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
64626 64627 64628 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64626 def active_nat_ips @active_nat_ips end |
#drain_nat_ips ⇒ Array<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
64632 64633 64634 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64632 def drain_nat_ips @drain_nat_ips end |
#min_extra_ips_needed ⇒ Fixnum
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
64640 64641 64642 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64640 def min_extra_ips_needed @min_extra_ips_needed end |
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from
this
NAT Rule.
Corresponds to the JSON property numVmEndpointsWithNatMappings
64647 64648 64649 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64647 def num_vm_endpoints_with_nat_mappings @num_vm_endpoints_with_nat_mappings end |
#rule_number ⇒ Fixnum
Output only. Rule number of the rule.
Corresponds to the JSON property ruleNumber
64652 64653 64654 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64652 def rule_number @rule_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
64659 64660 64661 64662 64663 64664 64665 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 64659 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 |