VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Compute;
  18. class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends \Google\Collection
  19. {
  20. protected $collection_key = 'natIpPortRanges';
  21. /**
  22. * Output only. List of all drain IP:port-range mappings assigned to this
  23. * interface by this rule. These ranges are inclusive, that is, both the first
  24. * and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355",
  25. * "1.1.1.1:2234-2234"].
  26. *
  27. * @var string[]
  28. */
  29. public $drainNatIpPortRanges;
  30. /**
  31. * Output only. A list of all IP:port-range mappings assigned to this
  32. * interface by this rule. These ranges are inclusive, that is, both the first
  33. * and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355",
  34. * "1.1.1.1:2234-2234"].
  35. *
  36. * @var string[]
  37. */
  38. public $natIpPortRanges;
  39. /**
  40. * Output only. Total number of drain ports across all NAT IPs allocated to
  41. * this interface by this rule. It equals the aggregated port number in the
  42. * field drain_nat_ip_port_ranges.
  43. *
  44. * @var int
  45. */
  46. public $numTotalDrainNatPorts;
  47. /**
  48. * Output only. Total number of ports across all NAT IPs allocated to this
  49. * interface by this rule. It equals the aggregated port number in the field
  50. * nat_ip_port_ranges.
  51. *
  52. * @var int
  53. */
  54. public $numTotalNatPorts;
  55. /**
  56. * Output only. Rule number of the NAT Rule.
  57. *
  58. * @var int
  59. */
  60. public $ruleNumber;
  61. /**
  62. * Output only. List of all drain IP:port-range mappings assigned to this
  63. * interface by this rule. These ranges are inclusive, that is, both the first
  64. * and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355",
  65. * "1.1.1.1:2234-2234"].
  66. *
  67. * @param string[] $drainNatIpPortRanges
  68. */
  69. public function setDrainNatIpPortRanges($drainNatIpPortRanges)
  70. {
  71. $this->drainNatIpPortRanges = $drainNatIpPortRanges;
  72. }
  73. /**
  74. * @return string[]
  75. */
  76. public function getDrainNatIpPortRanges()
  77. {
  78. return $this->drainNatIpPortRanges;
  79. }
  80. /**
  81. * Output only. A list of all IP:port-range mappings assigned to this
  82. * interface by this rule. These ranges are inclusive, that is, both the first
  83. * and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355",
  84. * "1.1.1.1:2234-2234"].
  85. *
  86. * @param string[] $natIpPortRanges
  87. */
  88. public function setNatIpPortRanges($natIpPortRanges)
  89. {
  90. $this->natIpPortRanges = $natIpPortRanges;
  91. }
  92. /**
  93. * @return string[]
  94. */
  95. public function getNatIpPortRanges()
  96. {
  97. return $this->natIpPortRanges;
  98. }
  99. /**
  100. * Output only. Total number of drain ports across all NAT IPs allocated to
  101. * this interface by this rule. It equals the aggregated port number in the
  102. * field drain_nat_ip_port_ranges.
  103. *
  104. * @param int $numTotalDrainNatPorts
  105. */
  106. public function setNumTotalDrainNatPorts($numTotalDrainNatPorts)
  107. {
  108. $this->numTotalDrainNatPorts = $numTotalDrainNatPorts;
  109. }
  110. /**
  111. * @return int
  112. */
  113. public function getNumTotalDrainNatPorts()
  114. {
  115. return $this->numTotalDrainNatPorts;
  116. }
  117. /**
  118. * Output only. Total number of ports across all NAT IPs allocated to this
  119. * interface by this rule. It equals the aggregated port number in the field
  120. * nat_ip_port_ranges.
  121. *
  122. * @param int $numTotalNatPorts
  123. */
  124. public function setNumTotalNatPorts($numTotalNatPorts)
  125. {
  126. $this->numTotalNatPorts = $numTotalNatPorts;
  127. }
  128. /**
  129. * @return int
  130. */
  131. public function getNumTotalNatPorts()
  132. {
  133. return $this->numTotalNatPorts;
  134. }
  135. /**
  136. * Output only. Rule number of the NAT Rule.
  137. *
  138. * @param int $ruleNumber
  139. */
  140. public function setRuleNumber($ruleNumber)
  141. {
  142. $this->ruleNumber = $ruleNumber;
  143. }
  144. /**
  145. * @return int
  146. */
  147. public function getRuleNumber()
  148. {
  149. return $this->ruleNumber;
  150. }
  151. }
  152. // Adding a class alias for backwards compatibility with the previous class name.
  153. class_alias(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings::class, 'Google_Service_Compute_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings');