|
| 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 | + |
| 18 | +namespace Google\Service\Container; |
| 19 | + |
| 20 | +class DisruptionBudget extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * Output only. The last time a disruption was performed on the control plane. |
| 24 | + * |
| 25 | + * @var string |
| 26 | + */ |
| 27 | + public $lastDisruptionTime; |
| 28 | + /** |
| 29 | + * Output only. The last time a minor version upgrade was performed on the |
| 30 | + * control plane. |
| 31 | + * |
| 32 | + * @var string |
| 33 | + */ |
| 34 | + public $lastMinorVersionDisruptionTime; |
| 35 | + /** |
| 36 | + * Optional. The minimum duration between two minor version upgrades of the |
| 37 | + * control plane. |
| 38 | + * |
| 39 | + * @var string |
| 40 | + */ |
| 41 | + public $minorVersionDisruptionInterval; |
| 42 | + /** |
| 43 | + * Optional. The minimum duration between two patch version upgrades of the |
| 44 | + * control plane. |
| 45 | + * |
| 46 | + * @var string |
| 47 | + */ |
| 48 | + public $patchVersionDisruptionInterval; |
| 49 | + |
| 50 | + /** |
| 51 | + * Output only. The last time a disruption was performed on the control plane. |
| 52 | + * |
| 53 | + * @param string $lastDisruptionTime |
| 54 | + */ |
| 55 | + public function setLastDisruptionTime($lastDisruptionTime) |
| 56 | + { |
| 57 | + $this->lastDisruptionTime = $lastDisruptionTime; |
| 58 | + } |
| 59 | + /** |
| 60 | + * @return string |
| 61 | + */ |
| 62 | + public function getLastDisruptionTime() |
| 63 | + { |
| 64 | + return $this->lastDisruptionTime; |
| 65 | + } |
| 66 | + /** |
| 67 | + * Output only. The last time a minor version upgrade was performed on the |
| 68 | + * control plane. |
| 69 | + * |
| 70 | + * @param string $lastMinorVersionDisruptionTime |
| 71 | + */ |
| 72 | + public function setLastMinorVersionDisruptionTime($lastMinorVersionDisruptionTime) |
| 73 | + { |
| 74 | + $this->lastMinorVersionDisruptionTime = $lastMinorVersionDisruptionTime; |
| 75 | + } |
| 76 | + /** |
| 77 | + * @return string |
| 78 | + */ |
| 79 | + public function getLastMinorVersionDisruptionTime() |
| 80 | + { |
| 81 | + return $this->lastMinorVersionDisruptionTime; |
| 82 | + } |
| 83 | + /** |
| 84 | + * Optional. The minimum duration between two minor version upgrades of the |
| 85 | + * control plane. |
| 86 | + * |
| 87 | + * @param string $minorVersionDisruptionInterval |
| 88 | + */ |
| 89 | + public function setMinorVersionDisruptionInterval($minorVersionDisruptionInterval) |
| 90 | + { |
| 91 | + $this->minorVersionDisruptionInterval = $minorVersionDisruptionInterval; |
| 92 | + } |
| 93 | + /** |
| 94 | + * @return string |
| 95 | + */ |
| 96 | + public function getMinorVersionDisruptionInterval() |
| 97 | + { |
| 98 | + return $this->minorVersionDisruptionInterval; |
| 99 | + } |
| 100 | + /** |
| 101 | + * Optional. The minimum duration between two patch version upgrades of the |
| 102 | + * control plane. |
| 103 | + * |
| 104 | + * @param string $patchVersionDisruptionInterval |
| 105 | + */ |
| 106 | + public function setPatchVersionDisruptionInterval($patchVersionDisruptionInterval) |
| 107 | + { |
| 108 | + $this->patchVersionDisruptionInterval = $patchVersionDisruptionInterval; |
| 109 | + } |
| 110 | + /** |
| 111 | + * @return string |
| 112 | + */ |
| 113 | + public function getPatchVersionDisruptionInterval() |
| 114 | + { |
| 115 | + return $this->patchVersionDisruptionInterval; |
| 116 | + } |
| 117 | +} |
| 118 | + |
| 119 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 120 | +class_alias(DisruptionBudget::class, 'Google_Service_Container_DisruptionBudget'); |
0 commit comments