Class: Google::Apis::ComputeAlpha::RouterStatusNatStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RouterStatusNatStatus
- 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 contained in this router.
Instance Attribute Summary collapse
-
#auto_allocated_nat_ips ⇒ Array<String>
A list of IPs auto-allocated for NAT.
-
#drain_auto_allocated_nat_ips ⇒ Array<String>
A list of IPs auto-allocated for NAT that are in drain mode.
-
#drain_user_allocated_nat_ips ⇒ Array<String>
A list of IPs user-allocated for NAT that are in drain mode.
-
#min_extra_nat_ips_needed ⇒ Fixnum
The number of extra IPs to allocate.
-
#name ⇒ String
Unique name of this NAT.
-
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., Nics) that can use NAT.
-
#rule_status ⇒ Array<Google::Apis::ComputeAlpha::RouterStatusNatStatusNatRuleStatus>
Status of rules in this NAT.
-
#user_allocated_nat_ip_resources ⇒ Array<String>
A list of fully qualified URLs of reserved IP address resources.
-
#user_allocated_nat_ips ⇒ Array<String>
A list of IPs user-allocated for NAT.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterStatusNatStatus
constructor
A new instance of RouterStatusNatStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouterStatusNatStatus
Returns a new instance of RouterStatusNatStatus.
41091 41092 41093 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41091 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_allocated_nat_ips ⇒ Array<String>
A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
Corresponds to the JSON property autoAllocatedNatIps
41044 41045 41046 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41044 def auto_allocated_nat_ips @auto_allocated_nat_ips end |
#drain_auto_allocated_nat_ips ⇒ 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
41050 41051 41052 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41050 def drain_auto_allocated_nat_ips @drain_auto_allocated_nat_ips end |
#drain_user_allocated_nat_ips ⇒ 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
41056 41057 41058 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41056 def drain_user_allocated_nat_ips @drain_user_allocated_nat_ips end |
#min_extra_nat_ips_needed ⇒ Fixnum
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
41063 41064 41065 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41063 def min_extra_nat_ips_needed @min_extra_nat_ips_needed end |
#name ⇒ String
Unique name of this NAT.
Corresponds to the JSON property name
41068 41069 41070 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41068 def name @name end |
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Number of VM endpoints (i.e., Nics) that can use NAT.
Corresponds to the JSON property numVmEndpointsWithNatMappings
41073 41074 41075 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41073 def num_vm_endpoints_with_nat_mappings @num_vm_endpoints_with_nat_mappings end |
#rule_status ⇒ Array<Google::Apis::ComputeAlpha::RouterStatusNatStatusNatRuleStatus>
Status of rules in this NAT.
Corresponds to the JSON property ruleStatus
41078 41079 41080 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41078 def rule_status @rule_status end |
#user_allocated_nat_ip_resources ⇒ Array<String>
A list of fully qualified URLs of reserved IP address resources.
Corresponds to the JSON property userAllocatedNatIpResources
41083 41084 41085 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41083 def user_allocated_nat_ip_resources @user_allocated_nat_ip_resources end |
#user_allocated_nat_ips ⇒ 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
41089 41090 41091 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41089 def user_allocated_nat_ips @user_allocated_nat_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41096 41097 41098 41099 41100 41101 41102 41103 41104 41105 41106 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41096 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 |