BackendServiceGroupHealth.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 BackendServiceGroupHealth extends \Google\Collection
  19. {
  20. protected $collection_key = 'healthStatus';
  21. /**
  22. * Metadata defined as annotations on the network endpoint group.
  23. *
  24. * @var string[]
  25. */
  26. public $annotations;
  27. protected $healthStatusType = HealthStatus::class;
  28. protected $healthStatusDataType = 'array';
  29. /**
  30. * Output only. [Output Only] Type of resource.
  31. * Alwayscompute#backendServiceGroupHealth for the health of backend services.
  32. *
  33. * @var string
  34. */
  35. public $kind;
  36. /**
  37. * Metadata defined as annotations on the network endpoint group.
  38. *
  39. * @param string[] $annotations
  40. */
  41. public function setAnnotations($annotations)
  42. {
  43. $this->annotations = $annotations;
  44. }
  45. /**
  46. * @return string[]
  47. */
  48. public function getAnnotations()
  49. {
  50. return $this->annotations;
  51. }
  52. /**
  53. * Health state of the backend instances or endpoints in requested instance or
  54. * network endpoint group, determined based on configured health checks.
  55. *
  56. * @param HealthStatus[] $healthStatus
  57. */
  58. public function setHealthStatus($healthStatus)
  59. {
  60. $this->healthStatus = $healthStatus;
  61. }
  62. /**
  63. * @return HealthStatus[]
  64. */
  65. public function getHealthStatus()
  66. {
  67. return $this->healthStatus;
  68. }
  69. /**
  70. * Output only. [Output Only] Type of resource.
  71. * Alwayscompute#backendServiceGroupHealth for the health of backend services.
  72. *
  73. * @param string $kind
  74. */
  75. public function setKind($kind)
  76. {
  77. $this->kind = $kind;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getKind()
  83. {
  84. return $this->kind;
  85. }
  86. }
  87. // Adding a class alias for backwards compatibility with the previous class name.
  88. class_alias(BackendServiceGroupHealth::class, 'Google_Service_Compute_BackendServiceGroupHealth');