InterconnectGroupsOperationalStatusInterconnectStatus.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 InterconnectGroupsOperationalStatusInterconnectStatus extends \Google\Model
  19. {
  20. public const IS_ACTIVE_ACTIVE = 'ACTIVE';
  21. public const IS_ACTIVE_INACTIVE = 'INACTIVE';
  22. public const IS_ACTIVE_IS_ACTIVE_UNSPECIFIED = 'IS_ACTIVE_UNSPECIFIED';
  23. /**
  24. * Output only. Whether the Interconnect is enabled.
  25. *
  26. * @var bool
  27. */
  28. public $adminEnabled;
  29. protected $diagnosticsType = InterconnectDiagnostics::class;
  30. protected $diagnosticsDataType = '';
  31. /**
  32. * Output only. The URL of the Interconnect being described.
  33. *
  34. * @var string
  35. */
  36. public $interconnect;
  37. /**
  38. * Output only. Whether this interconnect is participating in the redundant
  39. * configuration.
  40. *
  41. * @var string
  42. */
  43. public $isActive;
  44. /**
  45. * Output only. Whether the Interconnect is enabled.
  46. *
  47. * @param bool $adminEnabled
  48. */
  49. public function setAdminEnabled($adminEnabled)
  50. {
  51. $this->adminEnabled = $adminEnabled;
  52. }
  53. /**
  54. * @return bool
  55. */
  56. public function getAdminEnabled()
  57. {
  58. return $this->adminEnabled;
  59. }
  60. /**
  61. * Output only. The diagnostics of the Interconnect, as returned by the
  62. * existing get-diagnostics method.
  63. *
  64. * @param InterconnectDiagnostics $diagnostics
  65. */
  66. public function setDiagnostics(InterconnectDiagnostics $diagnostics)
  67. {
  68. $this->diagnostics = $diagnostics;
  69. }
  70. /**
  71. * @return InterconnectDiagnostics
  72. */
  73. public function getDiagnostics()
  74. {
  75. return $this->diagnostics;
  76. }
  77. /**
  78. * Output only. The URL of the Interconnect being described.
  79. *
  80. * @param string $interconnect
  81. */
  82. public function setInterconnect($interconnect)
  83. {
  84. $this->interconnect = $interconnect;
  85. }
  86. /**
  87. * @return string
  88. */
  89. public function getInterconnect()
  90. {
  91. return $this->interconnect;
  92. }
  93. /**
  94. * Output only. Whether this interconnect is participating in the redundant
  95. * configuration.
  96. *
  97. * Accepted values: ACTIVE, INACTIVE, IS_ACTIVE_UNSPECIFIED
  98. *
  99. * @param self::IS_ACTIVE_* $isActive
  100. */
  101. public function setIsActive($isActive)
  102. {
  103. $this->isActive = $isActive;
  104. }
  105. /**
  106. * @return self::IS_ACTIVE_*
  107. */
  108. public function getIsActive()
  109. {
  110. return $this->isActive;
  111. }
  112. }
  113. // Adding a class alias for backwards compatibility with the previous class name.
  114. class_alias(InterconnectGroupsOperationalStatusInterconnectStatus::class, 'Google_Service_Compute_InterconnectGroupsOperationalStatusInterconnectStatus');