| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\Dataproc;
- class LifecycleConfig extends \Google\Model
- {
- /**
- * Optional. The time when cluster will be auto-deleted (see JSON
- * representation of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $autoDeleteTime;
- /**
- * Optional. The lifetime duration of cluster. The cluster will be auto-
- * deleted at the end of this period. Minimum value is 10 minutes; maximum
- * value is 14 days (see JSON representation of Duration
- * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $autoDeleteTtl;
- /**
- * Optional. The time when cluster will be auto-stopped (see JSON
- * representation of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $autoStopTime;
- /**
- * Optional. The lifetime duration of the cluster. The cluster will be auto-
- * stopped at the end of this period, calculated from the time of submission
- * of the create or update cluster request. Minimum value is 10 minutes;
- * maximum value is 14 days (see JSON representation of Duration
- * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $autoStopTtl;
- /**
- * Optional. The duration to keep the cluster alive while idling (when no jobs
- * are running). Passing this threshold will cause the cluster to be deleted.
- * Minimum value is 5 minutes; maximum value is 14 days (see JSON
- * representation of Duration (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $idleDeleteTtl;
- /**
- * Output only. The time when cluster became idle (most recent job finished)
- * and became eligible for deletion due to idleness (see JSON representation
- * of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $idleStartTime;
- /**
- * Optional. The duration to keep the cluster started while idling (when no
- * jobs are running). Passing this threshold will cause the cluster to be
- * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
- * representation of Duration (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @var string
- */
- public $idleStopTtl;
- /**
- * Optional. The time when cluster will be auto-deleted (see JSON
- * representation of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @param string $autoDeleteTime
- */
- public function setAutoDeleteTime($autoDeleteTime)
- {
- $this->autoDeleteTime = $autoDeleteTime;
- }
- /**
- * @return string
- */
- public function getAutoDeleteTime()
- {
- return $this->autoDeleteTime;
- }
- /**
- * Optional. The lifetime duration of cluster. The cluster will be auto-
- * deleted at the end of this period. Minimum value is 10 minutes; maximum
- * value is 14 days (see JSON representation of Duration
- * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
- *
- * @param string $autoDeleteTtl
- */
- public function setAutoDeleteTtl($autoDeleteTtl)
- {
- $this->autoDeleteTtl = $autoDeleteTtl;
- }
- /**
- * @return string
- */
- public function getAutoDeleteTtl()
- {
- return $this->autoDeleteTtl;
- }
- /**
- * Optional. The time when cluster will be auto-stopped (see JSON
- * representation of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @param string $autoStopTime
- */
- public function setAutoStopTime($autoStopTime)
- {
- $this->autoStopTime = $autoStopTime;
- }
- /**
- * @return string
- */
- public function getAutoStopTime()
- {
- return $this->autoStopTime;
- }
- /**
- * Optional. The lifetime duration of the cluster. The cluster will be auto-
- * stopped at the end of this period, calculated from the time of submission
- * of the create or update cluster request. Minimum value is 10 minutes;
- * maximum value is 14 days (see JSON representation of Duration
- * (https://developers.google.com/protocol-buffers/docs/proto3#json)).
- *
- * @param string $autoStopTtl
- */
- public function setAutoStopTtl($autoStopTtl)
- {
- $this->autoStopTtl = $autoStopTtl;
- }
- /**
- * @return string
- */
- public function getAutoStopTtl()
- {
- return $this->autoStopTtl;
- }
- /**
- * Optional. The duration to keep the cluster alive while idling (when no jobs
- * are running). Passing this threshold will cause the cluster to be deleted.
- * Minimum value is 5 minutes; maximum value is 14 days (see JSON
- * representation of Duration (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @param string $idleDeleteTtl
- */
- public function setIdleDeleteTtl($idleDeleteTtl)
- {
- $this->idleDeleteTtl = $idleDeleteTtl;
- }
- /**
- * @return string
- */
- public function getIdleDeleteTtl()
- {
- return $this->idleDeleteTtl;
- }
- /**
- * Output only. The time when cluster became idle (most recent job finished)
- * and became eligible for deletion due to idleness (see JSON representation
- * of Timestamp (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @param string $idleStartTime
- */
- public function setIdleStartTime($idleStartTime)
- {
- $this->idleStartTime = $idleStartTime;
- }
- /**
- * @return string
- */
- public function getIdleStartTime()
- {
- return $this->idleStartTime;
- }
- /**
- * Optional. The duration to keep the cluster started while idling (when no
- * jobs are running). Passing this threshold will cause the cluster to be
- * stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
- * representation of Duration (https://developers.google.com/protocol-
- * buffers/docs/proto3#json)).
- *
- * @param string $idleStopTtl
- */
- public function setIdleStopTtl($idleStopTtl)
- {
- $this->idleStopTtl = $idleStopTtl;
- }
- /**
- * @return string
- */
- public function getIdleStopTtl()
- {
- return $this->idleStopTtl;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(LifecycleConfig::class, 'Google_Service_Dataproc_LifecycleConfig');
|