AllocationResourceStatusHealthInfo.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 AllocationResourceStatusHealthInfo extends \Google\Model
  19. {
  20. /**
  21. * The reservation is degraded.
  22. */
  23. public const HEALTH_STATUS_DEGRADED = 'DEGRADED';
  24. /**
  25. * The reservation is healthy.
  26. */
  27. public const HEALTH_STATUS_HEALTHY = 'HEALTHY';
  28. /**
  29. * The health status of the reservation is unspecified.
  30. */
  31. public const HEALTH_STATUS_HEALTH_STATUS_UNSPECIFIED = 'HEALTH_STATUS_UNSPECIFIED';
  32. /**
  33. * The number of reservation blocks that are degraded.
  34. *
  35. * @var int
  36. */
  37. public $degradedBlockCount;
  38. /**
  39. * The health status of the reservation.
  40. *
  41. * @var string
  42. */
  43. public $healthStatus;
  44. /**
  45. * The number of reservation blocks that are healthy.
  46. *
  47. * @var int
  48. */
  49. public $healthyBlockCount;
  50. /**
  51. * The number of reservation blocks that are degraded.
  52. *
  53. * @param int $degradedBlockCount
  54. */
  55. public function setDegradedBlockCount($degradedBlockCount)
  56. {
  57. $this->degradedBlockCount = $degradedBlockCount;
  58. }
  59. /**
  60. * @return int
  61. */
  62. public function getDegradedBlockCount()
  63. {
  64. return $this->degradedBlockCount;
  65. }
  66. /**
  67. * The health status of the reservation.
  68. *
  69. * Accepted values: DEGRADED, HEALTHY, HEALTH_STATUS_UNSPECIFIED
  70. *
  71. * @param self::HEALTH_STATUS_* $healthStatus
  72. */
  73. public function setHealthStatus($healthStatus)
  74. {
  75. $this->healthStatus = $healthStatus;
  76. }
  77. /**
  78. * @return self::HEALTH_STATUS_*
  79. */
  80. public function getHealthStatus()
  81. {
  82. return $this->healthStatus;
  83. }
  84. /**
  85. * The number of reservation blocks that are healthy.
  86. *
  87. * @param int $healthyBlockCount
  88. */
  89. public function setHealthyBlockCount($healthyBlockCount)
  90. {
  91. $this->healthyBlockCount = $healthyBlockCount;
  92. }
  93. /**
  94. * @return int
  95. */
  96. public function getHealthyBlockCount()
  97. {
  98. return $this->healthyBlockCount;
  99. }
  100. }
  101. // Adding a class alias for backwards compatibility with the previous class name.
  102. class_alias(AllocationResourceStatusHealthInfo::class, 'Google_Service_Compute_AllocationResourceStatusHealthInfo');