Class: Google::Apis::ComputeAlpha::VmEndpointNatMappingsInterfaceNatMappings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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



30080
30081
30082
# File 'generated/google/apis/compute_alpha/classes.rb', line 30080

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>)


30061
30062
30063
# File 'generated/google/apis/compute_alpha/classes.rb', line 30061

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)


30067
30068
30069
# File 'generated/google/apis/compute_alpha/classes.rb', line 30067

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)


30073
30074
30075
# File 'generated/google/apis/compute_alpha/classes.rb', line 30073

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)


30078
30079
30080
# File 'generated/google/apis/compute_alpha/classes.rb', line 30078

def source_virtual_ip
  @source_virtual_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30085
30086
30087
30088
30089
30090
# File 'generated/google/apis/compute_alpha/classes.rb', line 30085

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