| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\Compute;
- class VmEndpointNatMappingsInterfaceNatMappings extends \Google\Collection
- {
- protected $collection_key = 'ruleMappings';
- /**
- * Output only. 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"].
- *
- * @var string[]
- */
- public $drainNatIpPortRanges;
- /**
- * Output only. 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"].
- *
- * @var string[]
- */
- public $natIpPortRanges;
- /**
- * Output only. 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.
- *
- * @var int
- */
- public $numTotalDrainNatPorts;
- /**
- * Output only. 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.
- *
- * @var int
- */
- public $numTotalNatPorts;
- protected $ruleMappingsType = VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings::class;
- protected $ruleMappingsDataType = 'array';
- /**
- * Output only. 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".
- *
- * @var string
- */
- public $sourceAliasIpRange;
- /**
- * Output only. Primary IP of the VM for this NIC.
- *
- * @var string
- */
- public $sourceVirtualIp;
- /**
- * Output only. 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"].
- *
- * @param string[] $drainNatIpPortRanges
- */
- public function setDrainNatIpPortRanges($drainNatIpPortRanges)
- {
- $this->drainNatIpPortRanges = $drainNatIpPortRanges;
- }
- /**
- * @return string[]
- */
- public function getDrainNatIpPortRanges()
- {
- return $this->drainNatIpPortRanges;
- }
- /**
- * Output only. 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"].
- *
- * @param string[] $natIpPortRanges
- */
- public function setNatIpPortRanges($natIpPortRanges)
- {
- $this->natIpPortRanges = $natIpPortRanges;
- }
- /**
- * @return string[]
- */
- public function getNatIpPortRanges()
- {
- return $this->natIpPortRanges;
- }
- /**
- * Output only. 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.
- *
- * @param int $numTotalDrainNatPorts
- */
- public function setNumTotalDrainNatPorts($numTotalDrainNatPorts)
- {
- $this->numTotalDrainNatPorts = $numTotalDrainNatPorts;
- }
- /**
- * @return int
- */
- public function getNumTotalDrainNatPorts()
- {
- return $this->numTotalDrainNatPorts;
- }
- /**
- * Output only. 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.
- *
- * @param int $numTotalNatPorts
- */
- public function setNumTotalNatPorts($numTotalNatPorts)
- {
- $this->numTotalNatPorts = $numTotalNatPorts;
- }
- /**
- * @return int
- */
- public function getNumTotalNatPorts()
- {
- return $this->numTotalNatPorts;
- }
- /**
- * Output only. Information about mappings provided by rules in this NAT.
- *
- * @param VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings[] $ruleMappings
- */
- public function setRuleMappings($ruleMappings)
- {
- $this->ruleMappings = $ruleMappings;
- }
- /**
- * @return VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings[]
- */
- public function getRuleMappings()
- {
- return $this->ruleMappings;
- }
- /**
- * Output only. 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".
- *
- * @param string $sourceAliasIpRange
- */
- public function setSourceAliasIpRange($sourceAliasIpRange)
- {
- $this->sourceAliasIpRange = $sourceAliasIpRange;
- }
- /**
- * @return string
- */
- public function getSourceAliasIpRange()
- {
- return $this->sourceAliasIpRange;
- }
- /**
- * Output only. Primary IP of the VM for this NIC.
- *
- * @param string $sourceVirtualIp
- */
- public function setSourceVirtualIp($sourceVirtualIp)
- {
- $this->sourceVirtualIp = $sourceVirtualIp;
- }
- /**
- * @return string
- */
- public function getSourceVirtualIp()
- {
- return $this->sourceVirtualIp;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(VmEndpointNatMappingsInterfaceNatMappings::class, 'Google_Service_Compute_VmEndpointNatMappingsInterfaceNatMappings');
|