Class: Google::Apis::ComputeV1::RouterStatusNatStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterStatusNatStatus

Returns a new instance of RouterStatusNatStatus.



48182
48183
48184
# File 'lib/google/apis/compute_v1/classes.rb', line 48182

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_allocated_nat_ipsArray<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

Returns:

  • (Array<String>)


48133
48134
48135
# File 'lib/google/apis/compute_v1/classes.rb', line 48133

def auto_allocated_nat_ips
  @auto_allocated_nat_ips
end

#drain_auto_allocated_nat_ipsArray<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

Returns:

  • (Array<String>)


48139
48140
48141
# File 'lib/google/apis/compute_v1/classes.rb', line 48139

def drain_auto_allocated_nat_ips
  @drain_auto_allocated_nat_ips
end

#drain_user_allocated_nat_ipsArray<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

Returns:

  • (Array<String>)


48145
48146
48147
# File 'lib/google/apis/compute_v1/classes.rb', line 48145

def drain_user_allocated_nat_ips
  @drain_user_allocated_nat_ips
end

#min_extra_nat_ips_neededFixnum

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

Returns:

  • (Fixnum)


48154
48155
48156
# File 'lib/google/apis/compute_v1/classes.rb', line 48154

def min_extra_nat_ips_needed
  @min_extra_nat_ips_needed
end

#nameString

Output only. Unique name of this NAT. Corresponds to the JSON property name

Returns:

  • (String)


48159
48160
48161
# File 'lib/google/apis/compute_v1/classes.rb', line 48159

def name
  @name
end

#num_vm_endpoints_with_nat_mappingsFixnum

Output only. Number of VM endpoints (i.e., Nics) that can use NAT. Corresponds to the JSON property numVmEndpointsWithNatMappings

Returns:

  • (Fixnum)


48164
48165
48166
# File 'lib/google/apis/compute_v1/classes.rb', line 48164

def num_vm_endpoints_with_nat_mappings
  @num_vm_endpoints_with_nat_mappings
end

#rule_statusArray<Google::Apis::ComputeV1::RouterStatusNatStatusNatRuleStatus>

Status of rules in this NAT. Corresponds to the JSON property ruleStatus



48169
48170
48171
# File 'lib/google/apis/compute_v1/classes.rb', line 48169

def rule_status
  @rule_status
end

#user_allocated_nat_ip_resourcesArray<String>

Output only. A list of fully qualified URLs of reserved IP address resources. Corresponds to the JSON property userAllocatedNatIpResources

Returns:

  • (Array<String>)


48174
48175
48176
# File 'lib/google/apis/compute_v1/classes.rb', line 48174

def user_allocated_nat_ip_resources
  @user_allocated_nat_ip_resources
end

#user_allocated_nat_ipsArray<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

Returns:

  • (Array<String>)


48180
48181
48182
# File 'lib/google/apis/compute_v1/classes.rb', line 48180

def user_allocated_nat_ips
  @user_allocated_nat_ips
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48187
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197
# File 'lib/google/apis/compute_v1/classes.rb', line 48187

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