[f9c482b] | 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\Backupdr;
|
---|
| 19 |
|
---|
| 20 | class Scheduling extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'nodeAffinities';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $automaticRestart;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $instanceTerminationAction;
|
---|
| 31 | protected $localSsdRecoveryTimeoutType = SchedulingDuration::class;
|
---|
| 32 | protected $localSsdRecoveryTimeoutDataType = '';
|
---|
| 33 | /**
|
---|
| 34 | * @var int
|
---|
| 35 | */
|
---|
| 36 | public $minNodeCpus;
|
---|
| 37 | protected $nodeAffinitiesType = NodeAffinity::class;
|
---|
| 38 | protected $nodeAffinitiesDataType = 'array';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $onHostMaintenance;
|
---|
| 43 | /**
|
---|
| 44 | * @var bool
|
---|
| 45 | */
|
---|
| 46 | public $preemptible;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $provisioningModel;
|
---|
| 51 |
|
---|
| 52 | /**
|
---|
| 53 | * @param bool
|
---|
| 54 | */
|
---|
| 55 | public function setAutomaticRestart($automaticRestart)
|
---|
| 56 | {
|
---|
| 57 | $this->automaticRestart = $automaticRestart;
|
---|
| 58 | }
|
---|
| 59 | /**
|
---|
| 60 | * @return bool
|
---|
| 61 | */
|
---|
| 62 | public function getAutomaticRestart()
|
---|
| 63 | {
|
---|
| 64 | return $this->automaticRestart;
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * @param string
|
---|
| 68 | */
|
---|
| 69 | public function setInstanceTerminationAction($instanceTerminationAction)
|
---|
| 70 | {
|
---|
| 71 | $this->instanceTerminationAction = $instanceTerminationAction;
|
---|
| 72 | }
|
---|
| 73 | /**
|
---|
| 74 | * @return string
|
---|
| 75 | */
|
---|
| 76 | public function getInstanceTerminationAction()
|
---|
| 77 | {
|
---|
| 78 | return $this->instanceTerminationAction;
|
---|
| 79 | }
|
---|
| 80 | /**
|
---|
| 81 | * @param SchedulingDuration
|
---|
| 82 | */
|
---|
| 83 | public function setLocalSsdRecoveryTimeout(SchedulingDuration $localSsdRecoveryTimeout)
|
---|
| 84 | {
|
---|
| 85 | $this->localSsdRecoveryTimeout = $localSsdRecoveryTimeout;
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * @return SchedulingDuration
|
---|
| 89 | */
|
---|
| 90 | public function getLocalSsdRecoveryTimeout()
|
---|
| 91 | {
|
---|
| 92 | return $this->localSsdRecoveryTimeout;
|
---|
| 93 | }
|
---|
| 94 | /**
|
---|
| 95 | * @param int
|
---|
| 96 | */
|
---|
| 97 | public function setMinNodeCpus($minNodeCpus)
|
---|
| 98 | {
|
---|
| 99 | $this->minNodeCpus = $minNodeCpus;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @return int
|
---|
| 103 | */
|
---|
| 104 | public function getMinNodeCpus()
|
---|
| 105 | {
|
---|
| 106 | return $this->minNodeCpus;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @param NodeAffinity[]
|
---|
| 110 | */
|
---|
| 111 | public function setNodeAffinities($nodeAffinities)
|
---|
| 112 | {
|
---|
| 113 | $this->nodeAffinities = $nodeAffinities;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @return NodeAffinity[]
|
---|
| 117 | */
|
---|
| 118 | public function getNodeAffinities()
|
---|
| 119 | {
|
---|
| 120 | return $this->nodeAffinities;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @param string
|
---|
| 124 | */
|
---|
| 125 | public function setOnHostMaintenance($onHostMaintenance)
|
---|
| 126 | {
|
---|
| 127 | $this->onHostMaintenance = $onHostMaintenance;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @return string
|
---|
| 131 | */
|
---|
| 132 | public function getOnHostMaintenance()
|
---|
| 133 | {
|
---|
| 134 | return $this->onHostMaintenance;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @param bool
|
---|
| 138 | */
|
---|
| 139 | public function setPreemptible($preemptible)
|
---|
| 140 | {
|
---|
| 141 | $this->preemptible = $preemptible;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @return bool
|
---|
| 145 | */
|
---|
| 146 | public function getPreemptible()
|
---|
| 147 | {
|
---|
| 148 | return $this->preemptible;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @param string
|
---|
| 152 | */
|
---|
| 153 | public function setProvisioningModel($provisioningModel)
|
---|
| 154 | {
|
---|
| 155 | $this->provisioningModel = $provisioningModel;
|
---|
| 156 | }
|
---|
| 157 | /**
|
---|
| 158 | * @return string
|
---|
| 159 | */
|
---|
| 160 | public function getProvisioningModel()
|
---|
| 161 | {
|
---|
| 162 | return $this->provisioningModel;
|
---|
| 163 | }
|
---|
| 164 | }
|
---|
| 165 |
|
---|
| 166 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 167 | class_alias(Scheduling::class, 'Google_Service_Backupdr_Scheduling');
|
---|