Class: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings
- 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
Contain information of Nat mapping for an interface of this endpoint.
Instance Attribute Summary collapse
-
#drain_nat_ip_port_ranges ⇒ Array<String>
List of all drain IP:port-range mappings assigned to this interface.
-
#nat_ip_port_ranges ⇒ Array<String>
A list of all IP:port-range mappings assigned to this interface.
-
#num_total_drain_nat_ports ⇒ Fixnum
Total number of drain ports across all NAT IPs allocated to this interface.
-
#num_total_nat_ports ⇒ Fixnum
Total number of ports across all NAT IPs allocated to this interface.
-
#rule_mappings ⇒ Array<Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Information about mappings provided by rules in this NAT.
-
#source_alias_ip_range ⇒ String
Alias IP range for this interface endpoint.
-
#source_virtual_ip ⇒ String
Primary IP of the VM for this NIC.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings
constructor
A new instance of VmEndpointNatMappingsInterfaceNatMappings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings
Returns a new instance of VmEndpointNatMappingsInterfaceNatMappings.
47973 47974 47975 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drain_nat_ip_port_ranges ⇒ Array<String>
List of all drain 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 drainNatIpPortRanges
47936 47937 47938 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47936 def drain_nat_ip_port_ranges @drain_nat_ip_port_ranges end |
#nat_ip_port_ranges ⇒ Array<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
47943 47944 47945 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47943 def nat_ip_port_ranges @nat_ip_port_ranges end |
#num_total_drain_nat_ports ⇒ Fixnum
Total number of drain ports across all NAT IPs allocated to this interface. It
equals to the aggregated port number in the field drain_nat_ip_port_ranges.
Corresponds to the JSON property numTotalDrainNatPorts
47949 47950 47951 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47949 def num_total_drain_nat_ports @num_total_drain_nat_ports end |
#num_total_nat_ports ⇒ Fixnum
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
47955 47956 47957 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47955 def num_total_nat_ports @num_total_nat_ports end |
#rule_mappings ⇒ Array<Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Information about mappings provided by rules in this NAT.
Corresponds to the JSON property ruleMappings
47960 47961 47962 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47960 def rule_mappings @rule_mappings end |
#source_alias_ip_range ⇒ String
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
47966 47967 47968 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47966 def source_alias_ip_range @source_alias_ip_range end |
#source_virtual_ip ⇒ String
Primary IP of the VM for this NIC.
Corresponds to the JSON property sourceVirtualIp
47971 47972 47973 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47971 def source_virtual_ip @source_virtual_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47978 47979 47980 47981 47982 47983 47984 47985 47986 |
# File 'lib/google/apis/compute_v1/classes.rb', line 47978 def update!(**args) @drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges) @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges) @num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports) @num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports) @rule_mappings = args[:rule_mappings] if args.key?(:rule_mappings) @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 |