Class: Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Overview

Contain information of Nat mapping for an interface of this endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings

Returns a new instance of VmEndpointNatMappingsInterfaceNatMappings



27210
27211
27212
# File 'generated/google/apis/compute_beta/classes.rb', line 27210

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

Instance Attribute Details

#nat_ip_port_rangesArray<String>

A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. Corresponds to the JSON property natIpPortRanges

Returns:

  • (Array<String>)


27191
27192
27193
# File 'generated/google/apis/compute_beta/classes.rb', line 27191

def nat_ip_port_ranges
  @nat_ip_port_ranges
end

#num_total_nat_portsFixnum

Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. Corresponds to the JSON property numTotalNatPorts

Returns:

  • (Fixnum)


27197
27198
27199
# File 'generated/google/apis/compute_beta/classes.rb', line 27197

def num_total_nat_ports
  @num_total_nat_ports
end

#source_alias_ip_rangeString

Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". Corresponds to the JSON property sourceAliasIpRange

Returns:

  • (String)


27203
27204
27205
# File 'generated/google/apis/compute_beta/classes.rb', line 27203

def source_alias_ip_range
  @source_alias_ip_range
end

#source_virtual_ipString

Primary IP of the VM for this NIC. Corresponds to the JSON property sourceVirtualIp

Returns:

  • (String)


27208
27209
27210
# File 'generated/google/apis/compute_beta/classes.rb', line 27208

def source_virtual_ip
  @source_virtual_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27215
27216
27217
27218
27219
27220
# File 'generated/google/apis/compute_beta/classes.rb', line 27215

def update!(**args)
  @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
  @num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
  @source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range)
  @source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip)
end