LifecycleConfig.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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\Dataproc;
  18. class LifecycleConfig extends \Google\Model
  19. {
  20. /**
  21. * Optional. The time when cluster will be auto-deleted (see JSON
  22. * representation of Timestamp (https://developers.google.com/protocol-
  23. * buffers/docs/proto3#json)).
  24. *
  25. * @var string
  26. */
  27. public $autoDeleteTime;
  28. /**
  29. * Optional. The lifetime duration of cluster. The cluster will be auto-
  30. * deleted at the end of this period. Minimum value is 10 minutes; maximum
  31. * value is 14 days (see JSON representation of Duration
  32. * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
  33. *
  34. * @var string
  35. */
  36. public $autoDeleteTtl;
  37. /**
  38. * Optional. The time when cluster will be auto-stopped (see JSON
  39. * representation of Timestamp (https://developers.google.com/protocol-
  40. * buffers/docs/proto3#json)).
  41. *
  42. * @var string
  43. */
  44. public $autoStopTime;
  45. /**
  46. * Optional. The lifetime duration of the cluster. The cluster will be auto-
  47. * stopped at the end of this period, calculated from the time of submission
  48. * of the create or update cluster request. Minimum value is 10 minutes;
  49. * maximum value is 14 days (see JSON representation of Duration
  50. * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
  51. *
  52. * @var string
  53. */
  54. public $autoStopTtl;
  55. /**
  56. * Optional. The duration to keep the cluster alive while idling (when no jobs
  57. * are running). Passing this threshold will cause the cluster to be deleted.
  58. * Minimum value is 5 minutes; maximum value is 14 days (see JSON
  59. * representation of Duration (https://developers.google.com/protocol-
  60. * buffers/docs/proto3#json)).
  61. *
  62. * @var string
  63. */
  64. public $idleDeleteTtl;
  65. /**
  66. * Output only. The time when cluster became idle (most recent job finished)
  67. * and became eligible for deletion due to idleness (see JSON representation
  68. * of Timestamp (https://developers.google.com/protocol-
  69. * buffers/docs/proto3#json)).
  70. *
  71. * @var string
  72. */
  73. public $idleStartTime;
  74. /**
  75. * Optional. The duration to keep the cluster started while idling (when no
  76. * jobs are running). Passing this threshold will cause the cluster to be
  77. * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
  78. * representation of Duration (https://developers.google.com/protocol-
  79. * buffers/docs/proto3#json)).
  80. *
  81. * @var string
  82. */
  83. public $idleStopTtl;
  84. /**
  85. * Optional. The time when cluster will be auto-deleted (see JSON
  86. * representation of Timestamp (https://developers.google.com/protocol-
  87. * buffers/docs/proto3#json)).
  88. *
  89. * @param string $autoDeleteTime
  90. */
  91. public function setAutoDeleteTime($autoDeleteTime)
  92. {
  93. $this->autoDeleteTime = $autoDeleteTime;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getAutoDeleteTime()
  99. {
  100. return $this->autoDeleteTime;
  101. }
  102. /**
  103. * Optional. The lifetime duration of cluster. The cluster will be auto-
  104. * deleted at the end of this period. Minimum value is 10 minutes; maximum
  105. * value is 14 days (see JSON representation of Duration
  106. * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
  107. *
  108. * @param string $autoDeleteTtl
  109. */
  110. public function setAutoDeleteTtl($autoDeleteTtl)
  111. {
  112. $this->autoDeleteTtl = $autoDeleteTtl;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getAutoDeleteTtl()
  118. {
  119. return $this->autoDeleteTtl;
  120. }
  121. /**
  122. * Optional. The time when cluster will be auto-stopped (see JSON
  123. * representation of Timestamp (https://developers.google.com/protocol-
  124. * buffers/docs/proto3#json)).
  125. *
  126. * @param string $autoStopTime
  127. */
  128. public function setAutoStopTime($autoStopTime)
  129. {
  130. $this->autoStopTime = $autoStopTime;
  131. }
  132. /**
  133. * @return string
  134. */
  135. public function getAutoStopTime()
  136. {
  137. return $this->autoStopTime;
  138. }
  139. /**
  140. * Optional. The lifetime duration of the cluster. The cluster will be auto-
  141. * stopped at the end of this period, calculated from the time of submission
  142. * of the create or update cluster request. Minimum value is 10 minutes;
  143. * maximum value is 14 days (see JSON representation of Duration
  144. * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
  145. *
  146. * @param string $autoStopTtl
  147. */
  148. public function setAutoStopTtl($autoStopTtl)
  149. {
  150. $this->autoStopTtl = $autoStopTtl;
  151. }
  152. /**
  153. * @return string
  154. */
  155. public function getAutoStopTtl()
  156. {
  157. return $this->autoStopTtl;
  158. }
  159. /**
  160. * Optional. The duration to keep the cluster alive while idling (when no jobs
  161. * are running). Passing this threshold will cause the cluster to be deleted.
  162. * Minimum value is 5 minutes; maximum value is 14 days (see JSON
  163. * representation of Duration (https://developers.google.com/protocol-
  164. * buffers/docs/proto3#json)).
  165. *
  166. * @param string $idleDeleteTtl
  167. */
  168. public function setIdleDeleteTtl($idleDeleteTtl)
  169. {
  170. $this->idleDeleteTtl = $idleDeleteTtl;
  171. }
  172. /**
  173. * @return string
  174. */
  175. public function getIdleDeleteTtl()
  176. {
  177. return $this->idleDeleteTtl;
  178. }
  179. /**
  180. * Output only. The time when cluster became idle (most recent job finished)
  181. * and became eligible for deletion due to idleness (see JSON representation
  182. * of Timestamp (https://developers.google.com/protocol-
  183. * buffers/docs/proto3#json)).
  184. *
  185. * @param string $idleStartTime
  186. */
  187. public function setIdleStartTime($idleStartTime)
  188. {
  189. $this->idleStartTime = $idleStartTime;
  190. }
  191. /**
  192. * @return string
  193. */
  194. public function getIdleStartTime()
  195. {
  196. return $this->idleStartTime;
  197. }
  198. /**
  199. * Optional. The duration to keep the cluster started while idling (when no
  200. * jobs are running). Passing this threshold will cause the cluster to be
  201. * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
  202. * representation of Duration (https://developers.google.com/protocol-
  203. * buffers/docs/proto3#json)).
  204. *
  205. * @param string $idleStopTtl
  206. */
  207. public function setIdleStopTtl($idleStopTtl)
  208. {
  209. $this->idleStopTtl = $idleStopTtl;
  210. }
  211. /**
  212. * @return string
  213. */
  214. public function getIdleStopTtl()
  215. {
  216. return $this->idleStopTtl;
  217. }
  218. }
  219. // Adding a class alias for backwards compatibility with the previous class name.
  220. class_alias(LifecycleConfig::class, 'Google_Service_Dataproc_LifecycleConfig');