ResourcePolicyHourlyCycle.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 ResourcePolicyHourlyCycle extends \Google\Model
  19. {
  20. /**
  21. * Output only. [Output only] Duration of the time window, automatically
  22. * chosen to be smallest possible in the given scenario.
  23. *
  24. * @var string
  25. */
  26. public $duration;
  27. /**
  28. * Defines a schedule with units measured in hours. The value determines how
  29. * many hours pass between the start of each cycle.
  30. *
  31. * @var int
  32. */
  33. public $hoursInCycle;
  34. /**
  35. * Time within the window to start the operations. It must be in format
  36. * "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
  37. *
  38. * @var string
  39. */
  40. public $startTime;
  41. /**
  42. * Output only. [Output only] Duration of the time window, automatically
  43. * chosen to be smallest possible in the given scenario.
  44. *
  45. * @param string $duration
  46. */
  47. public function setDuration($duration)
  48. {
  49. $this->duration = $duration;
  50. }
  51. /**
  52. * @return string
  53. */
  54. public function getDuration()
  55. {
  56. return $this->duration;
  57. }
  58. /**
  59. * Defines a schedule with units measured in hours. The value determines how
  60. * many hours pass between the start of each cycle.
  61. *
  62. * @param int $hoursInCycle
  63. */
  64. public function setHoursInCycle($hoursInCycle)
  65. {
  66. $this->hoursInCycle = $hoursInCycle;
  67. }
  68. /**
  69. * @return int
  70. */
  71. public function getHoursInCycle()
  72. {
  73. return $this->hoursInCycle;
  74. }
  75. /**
  76. * Time within the window to start the operations. It must be in format
  77. * "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
  78. *
  79. * @param string $startTime
  80. */
  81. public function setStartTime($startTime)
  82. {
  83. $this->startTime = $startTime;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getStartTime()
  89. {
  90. return $this->startTime;
  91. }
  92. }
  93. // Adding a class alias for backwards compatibility with the previous class name.
  94. class_alias(ResourcePolicyHourlyCycle::class, 'Google_Service_Compute_ResourcePolicyHourlyCycle');