InterconnectLocationRegionInfo.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 InterconnectLocationRegionInfo extends \Google\Model
  19. {
  20. /**
  21. * This region is not in any common network presence with this
  22. * InterconnectLocation.
  23. */
  24. public const LOCATION_PRESENCE_GLOBAL = 'GLOBAL';
  25. /**
  26. * This region shares the same regional network presence as this
  27. * InterconnectLocation.
  28. */
  29. public const LOCATION_PRESENCE_LOCAL_REGION = 'LOCAL_REGION';
  30. /**
  31. * [Deprecated] This region is not in any common network presence with this
  32. * InterconnectLocation.
  33. */
  34. public const LOCATION_PRESENCE_LP_GLOBAL = 'LP_GLOBAL';
  35. /**
  36. * [Deprecated] This region shares the same regional network presence as this
  37. * InterconnectLocation.
  38. */
  39. public const LOCATION_PRESENCE_LP_LOCAL_REGION = 'LP_LOCAL_REGION';
  40. /**
  41. * Output only. Expected round-trip time in milliseconds, from this
  42. * InterconnectLocation to a VM in this region.
  43. *
  44. * @var string
  45. */
  46. public $expectedRttMs;
  47. /**
  48. * Output only. Identifies whether L2 Interconnect Attachments can be created
  49. * in this region for interconnects that are in this location.
  50. *
  51. * @var bool
  52. */
  53. public $l2ForwardingEnabled;
  54. /**
  55. * Output only. Identifies the network presence of this location.
  56. *
  57. * @var string
  58. */
  59. public $locationPresence;
  60. /**
  61. * Output only. URL for the region of this location.
  62. *
  63. * @var string
  64. */
  65. public $region;
  66. /**
  67. * Output only. Expected round-trip time in milliseconds, from this
  68. * InterconnectLocation to a VM in this region.
  69. *
  70. * @param string $expectedRttMs
  71. */
  72. public function setExpectedRttMs($expectedRttMs)
  73. {
  74. $this->expectedRttMs = $expectedRttMs;
  75. }
  76. /**
  77. * @return string
  78. */
  79. public function getExpectedRttMs()
  80. {
  81. return $this->expectedRttMs;
  82. }
  83. /**
  84. * Output only. Identifies whether L2 Interconnect Attachments can be created
  85. * in this region for interconnects that are in this location.
  86. *
  87. * @param bool $l2ForwardingEnabled
  88. */
  89. public function setL2ForwardingEnabled($l2ForwardingEnabled)
  90. {
  91. $this->l2ForwardingEnabled = $l2ForwardingEnabled;
  92. }
  93. /**
  94. * @return bool
  95. */
  96. public function getL2ForwardingEnabled()
  97. {
  98. return $this->l2ForwardingEnabled;
  99. }
  100. /**
  101. * Output only. Identifies the network presence of this location.
  102. *
  103. * Accepted values: GLOBAL, LOCAL_REGION, LP_GLOBAL, LP_LOCAL_REGION
  104. *
  105. * @param self::LOCATION_PRESENCE_* $locationPresence
  106. */
  107. public function setLocationPresence($locationPresence)
  108. {
  109. $this->locationPresence = $locationPresence;
  110. }
  111. /**
  112. * @return self::LOCATION_PRESENCE_*
  113. */
  114. public function getLocationPresence()
  115. {
  116. return $this->locationPresence;
  117. }
  118. /**
  119. * Output only. URL for the region of this location.
  120. *
  121. * @param string $region
  122. */
  123. public function setRegion($region)
  124. {
  125. $this->region = $region;
  126. }
  127. /**
  128. * @return string
  129. */
  130. public function getRegion()
  131. {
  132. return $this->region;
  133. }
  134. }
  135. // Adding a class alias for backwards compatibility with the previous class name.
  136. class_alias(InterconnectLocationRegionInfo::class, 'Google_Service_Compute_InterconnectLocationRegionInfo');