RouterBgpPeerBfd.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 RouterBgpPeerBfd extends \Google\Model
  19. {
  20. public const SESSION_INITIALIZATION_MODE_ACTIVE = 'ACTIVE';
  21. public const SESSION_INITIALIZATION_MODE_DISABLED = 'DISABLED';
  22. public const SESSION_INITIALIZATION_MODE_PASSIVE = 'PASSIVE';
  23. /**
  24. * The minimum interval, in milliseconds, between BFD control packets received
  25. * from the peer router. The actual value is negotiated between the two
  26. * routers and is equal to the greater of this value and the transmit interval
  27. * of the other router.
  28. *
  29. * If set, this value must be between 1000 and 30000.
  30. *
  31. * The default is 1000.
  32. *
  33. * @var string
  34. */
  35. public $minReceiveInterval;
  36. /**
  37. * The minimum interval, in milliseconds, between BFD control packets
  38. * transmitted to the peer router. The actual value is negotiated between the
  39. * two routers and is equal to the greater of this value and the corresponding
  40. * receive interval of the other router.
  41. *
  42. * If set, this value must be between 1000 and 30000.
  43. *
  44. * The default is 1000.
  45. *
  46. * @var string
  47. */
  48. public $minTransmitInterval;
  49. /**
  50. * The number of consecutive BFD packets that must be missed before BFD
  51. * declares that a peer is unavailable.
  52. *
  53. * If set, the value must be a value between 5 and 16.
  54. *
  55. * The default is 5.
  56. *
  57. * @var string
  58. */
  59. public $multiplier;
  60. /**
  61. * The BFD session initialization mode for this BGP peer.
  62. *
  63. * If set to ACTIVE, the Cloud Router will initiate the BFD session for this
  64. * BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router
  65. * to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is
  66. * disabled for this BGP peer. The default is DISABLED.
  67. *
  68. * @var string
  69. */
  70. public $sessionInitializationMode;
  71. /**
  72. * The minimum interval, in milliseconds, between BFD control packets received
  73. * from the peer router. The actual value is negotiated between the two
  74. * routers and is equal to the greater of this value and the transmit interval
  75. * of the other router.
  76. *
  77. * If set, this value must be between 1000 and 30000.
  78. *
  79. * The default is 1000.
  80. *
  81. * @param string $minReceiveInterval
  82. */
  83. public function setMinReceiveInterval($minReceiveInterval)
  84. {
  85. $this->minReceiveInterval = $minReceiveInterval;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getMinReceiveInterval()
  91. {
  92. return $this->minReceiveInterval;
  93. }
  94. /**
  95. * The minimum interval, in milliseconds, between BFD control packets
  96. * transmitted to the peer router. The actual value is negotiated between the
  97. * two routers and is equal to the greater of this value and the corresponding
  98. * receive interval of the other router.
  99. *
  100. * If set, this value must be between 1000 and 30000.
  101. *
  102. * The default is 1000.
  103. *
  104. * @param string $minTransmitInterval
  105. */
  106. public function setMinTransmitInterval($minTransmitInterval)
  107. {
  108. $this->minTransmitInterval = $minTransmitInterval;
  109. }
  110. /**
  111. * @return string
  112. */
  113. public function getMinTransmitInterval()
  114. {
  115. return $this->minTransmitInterval;
  116. }
  117. /**
  118. * The number of consecutive BFD packets that must be missed before BFD
  119. * declares that a peer is unavailable.
  120. *
  121. * If set, the value must be a value between 5 and 16.
  122. *
  123. * The default is 5.
  124. *
  125. * @param string $multiplier
  126. */
  127. public function setMultiplier($multiplier)
  128. {
  129. $this->multiplier = $multiplier;
  130. }
  131. /**
  132. * @return string
  133. */
  134. public function getMultiplier()
  135. {
  136. return $this->multiplier;
  137. }
  138. /**
  139. * The BFD session initialization mode for this BGP peer.
  140. *
  141. * If set to ACTIVE, the Cloud Router will initiate the BFD session for this
  142. * BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router
  143. * to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is
  144. * disabled for this BGP peer. The default is DISABLED.
  145. *
  146. * Accepted values: ACTIVE, DISABLED, PASSIVE
  147. *
  148. * @param self::SESSION_INITIALIZATION_MODE_* $sessionInitializationMode
  149. */
  150. public function setSessionInitializationMode($sessionInitializationMode)
  151. {
  152. $this->sessionInitializationMode = $sessionInitializationMode;
  153. }
  154. /**
  155. * @return self::SESSION_INITIALIZATION_MODE_*
  156. */
  157. public function getSessionInitializationMode()
  158. {
  159. return $this->sessionInitializationMode;
  160. }
  161. }
  162. // Adding a class alias for backwards compatibility with the previous class name.
  163. class_alias(RouterBgpPeerBfd::class, 'Google_Service_Compute_RouterBgpPeerBfd');