InterconnectGroupsOperationalStatus.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 InterconnectGroupsOperationalStatus extends \Google\Collection
  19. {
  20. public const GROUP_STATUS_DEGRADED = 'DEGRADED';
  21. public const GROUP_STATUS_FULLY_DOWN = 'FULLY_DOWN';
  22. public const GROUP_STATUS_FULLY_UP = 'FULLY_UP';
  23. public const GROUP_STATUS_GROUPS_STATUS_UNSPECIFIED = 'GROUPS_STATUS_UNSPECIFIED';
  24. protected $collection_key = 'interconnectStatuses';
  25. protected $configuredType = InterconnectGroupConfigured::class;
  26. protected $configuredDataType = '';
  27. /**
  28. * Output only. Summarizes the status of the group.
  29. *
  30. * @var string
  31. */
  32. public $groupStatus;
  33. protected $intentType = InterconnectGroupIntent::class;
  34. protected $intentDataType = '';
  35. protected $interconnectStatusesType = InterconnectGroupsOperationalStatusInterconnectStatus::class;
  36. protected $interconnectStatusesDataType = 'array';
  37. protected $operationalType = InterconnectGroupConfigured::class;
  38. protected $operationalDataType = '';
  39. /**
  40. * Output only. The configuration analysis, as returned by Get.
  41. *
  42. * @param InterconnectGroupConfigured $configured
  43. */
  44. public function setConfigured(InterconnectGroupConfigured $configured)
  45. {
  46. $this->configured = $configured;
  47. }
  48. /**
  49. * @return InterconnectGroupConfigured
  50. */
  51. public function getConfigured()
  52. {
  53. return $this->configured;
  54. }
  55. /**
  56. * Output only. Summarizes the status of the group.
  57. *
  58. * Accepted values: DEGRADED, FULLY_DOWN, FULLY_UP, GROUPS_STATUS_UNSPECIFIED
  59. *
  60. * @param self::GROUP_STATUS_* $groupStatus
  61. */
  62. public function setGroupStatus($groupStatus)
  63. {
  64. $this->groupStatus = $groupStatus;
  65. }
  66. /**
  67. * @return self::GROUP_STATUS_*
  68. */
  69. public function getGroupStatus()
  70. {
  71. return $this->groupStatus;
  72. }
  73. /**
  74. * Output only. The intent of the resource, as returned by Get.
  75. *
  76. * @param InterconnectGroupIntent $intent
  77. */
  78. public function setIntent(InterconnectGroupIntent $intent)
  79. {
  80. $this->intent = $intent;
  81. }
  82. /**
  83. * @return InterconnectGroupIntent
  84. */
  85. public function getIntent()
  86. {
  87. return $this->intent;
  88. }
  89. /**
  90. * @param InterconnectGroupsOperationalStatusInterconnectStatus[] $interconnectStatuses
  91. */
  92. public function setInterconnectStatuses($interconnectStatuses)
  93. {
  94. $this->interconnectStatuses = $interconnectStatuses;
  95. }
  96. /**
  97. * @return InterconnectGroupsOperationalStatusInterconnectStatus[]
  98. */
  99. public function getInterconnectStatuses()
  100. {
  101. return $this->interconnectStatuses;
  102. }
  103. /**
  104. * Output only. The operational state of the group, including only active
  105. * Interconnects.
  106. *
  107. * @param InterconnectGroupConfigured $operational
  108. */
  109. public function setOperational(InterconnectGroupConfigured $operational)
  110. {
  111. $this->operational = $operational;
  112. }
  113. /**
  114. * @return InterconnectGroupConfigured
  115. */
  116. public function getOperational()
  117. {
  118. return $this->operational;
  119. }
  120. }
  121. // Adding a class alias for backwards compatibility with the previous class name.
  122. class_alias(InterconnectGroupsOperationalStatus::class, 'Google_Service_Compute_InterconnectGroupsOperationalStatus');