Class: Google::Apis::ComputeV1::RouterStatusNatStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::RouterStatusNatStatus
- 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 contained in this router.
Instance Attribute Summary collapse
-
#auto_allocated_nat_ips ⇒ Array<String>
Output only.
-
#drain_auto_allocated_nat_ips ⇒ Array<String>
Output only.
-
#drain_user_allocated_nat_ips ⇒ Array<String>
Output only.
-
#min_extra_nat_ips_needed ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Output only.
-
#rule_status ⇒ Array<Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus>
Status of rules in this NAT.
-
#user_allocated_nat_ip_resources ⇒ Array<String>
Output only.
-
#user_allocated_nat_ips ⇒ Array<String>
Output only.
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.
46995 46996 46997 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_allocated_nat_ips ⇒ Array<String>
Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.
16.89"]
Corresponds to the JSON property autoAllocatedNatIps
46946 46947 46948 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46946 def auto_allocated_nat_ips @auto_allocated_nat_ips end |
#drain_auto_allocated_nat_ips ⇒ Array<String>
Output only. 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
46952 46953 46954 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46952 def drain_auto_allocated_nat_ips @drain_auto_allocated_nat_ips end |
#drain_user_allocated_nat_ips ⇒ Array<String>
Output only. 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
46958 46959 46960 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46958 def drain_user_allocated_nat_ips @drain_user_allocated_nat_ips end |
#min_extra_nat_ips_needed ⇒ Fixnum
Output only. 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
46967 46968 46969 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46967 def min_extra_nat_ips_needed @min_extra_nat_ips_needed end |
#name ⇒ String
Output only. Unique name of this NAT.
Corresponds to the JSON property name
46972 46973 46974 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46972 def name @name end |
#num_vm_endpoints_with_nat_mappings ⇒ Fixnum
Output only. Number of VM endpoints (i.e., Nics) that can use NAT.
Corresponds to the JSON property numVmEndpointsWithNatMappings
46977 46978 46979 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46977 def num_vm_endpoints_with_nat_mappings @num_vm_endpoints_with_nat_mappings end |
#rule_status ⇒ Array<Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus>
Status of rules in this NAT.
Corresponds to the JSON property ruleStatus
46982 46983 46984 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46982 def rule_status @rule_status end |
#user_allocated_nat_ip_resources ⇒ Array<String>
Output only. A list of fully qualified URLs of reserved IP address resources.
Corresponds to the JSON property userAllocatedNatIpResources
46987 46988 46989 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46987 def user_allocated_nat_ip_resources @user_allocated_nat_ip_resources end |
#user_allocated_nat_ips ⇒ Array<String>
Output only. 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
46993 46994 46995 |
# File 'lib/google/apis/compute_v1/classes.rb', line 46993 def user_allocated_nat_ips @user_allocated_nat_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47000 47001 47002 47003 47004 47005 47006 47007 47008 47009 47010 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47000 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 |