ScalingScheduleStatus.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 ScalingScheduleStatus extends \Google\Model
  19. {
  20. /**
  21. * The current autoscaling recommendation is influenced by this scaling
  22. * schedule.
  23. */
  24. public const STATE_ACTIVE = 'ACTIVE';
  25. /**
  26. * This scaling schedule has been disabled by the user.
  27. */
  28. public const STATE_DISABLED = 'DISABLED';
  29. /**
  30. * This scaling schedule will never become active again.
  31. */
  32. public const STATE_OBSOLETE = 'OBSOLETE';
  33. /**
  34. * The current autoscaling recommendation is not influenced by this scaling
  35. * schedule.
  36. */
  37. public const STATE_READY = 'READY';
  38. /**
  39. * [Output Only] The last time the scaling schedule became active. Note: this
  40. * is a timestamp when a schedule actually became active, not when it was
  41. * planned to do so. The timestamp is in RFC3339 text format.
  42. *
  43. * @var string
  44. */
  45. public $lastStartTime;
  46. /**
  47. * [Output Only] The next time the scaling schedule is to become active. Note:
  48. * this is a timestamp when a schedule is planned to run, but the actual time
  49. * might be slightly different. The timestamp is in RFC3339 text format.
  50. *
  51. * @var string
  52. */
  53. public $nextStartTime;
  54. /**
  55. * [Output Only] The current state of a scaling schedule.
  56. *
  57. * @var string
  58. */
  59. public $state;
  60. /**
  61. * [Output Only] The last time the scaling schedule became active. Note: this
  62. * is a timestamp when a schedule actually became active, not when it was
  63. * planned to do so. The timestamp is in RFC3339 text format.
  64. *
  65. * @param string $lastStartTime
  66. */
  67. public function setLastStartTime($lastStartTime)
  68. {
  69. $this->lastStartTime = $lastStartTime;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getLastStartTime()
  75. {
  76. return $this->lastStartTime;
  77. }
  78. /**
  79. * [Output Only] The next time the scaling schedule is to become active. Note:
  80. * this is a timestamp when a schedule is planned to run, but the actual time
  81. * might be slightly different. The timestamp is in RFC3339 text format.
  82. *
  83. * @param string $nextStartTime
  84. */
  85. public function setNextStartTime($nextStartTime)
  86. {
  87. $this->nextStartTime = $nextStartTime;
  88. }
  89. /**
  90. * @return string
  91. */
  92. public function getNextStartTime()
  93. {
  94. return $this->nextStartTime;
  95. }
  96. /**
  97. * [Output Only] The current state of a scaling schedule.
  98. *
  99. * Accepted values: ACTIVE, DISABLED, OBSOLETE, READY
  100. *
  101. * @param self::STATE_* $state
  102. */
  103. public function setState($state)
  104. {
  105. $this->state = $state;
  106. }
  107. /**
  108. * @return self::STATE_*
  109. */
  110. public function getState()
  111. {
  112. return $this->state;
  113. }
  114. }
  115. // Adding a class alias for backwards compatibility with the previous class name.
  116. class_alias(ScalingScheduleStatus::class, 'Google_Service_Compute_ScalingScheduleStatus');