[e3d4e0a] | 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\Compute;
|
---|
| 19 |
|
---|
| 20 | class Scheduling extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'nodeAffinities';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $automaticRestart;
|
---|
| 27 | /**
|
---|
| 28 | * @var int
|
---|
| 29 | */
|
---|
| 30 | public $availabilityDomain;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $instanceTerminationAction;
|
---|
| 35 | protected $localSsdRecoveryTimeoutType = Duration::class;
|
---|
| 36 | protected $localSsdRecoveryTimeoutDataType = '';
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $locationHint;
|
---|
| 41 | protected $maxRunDurationType = Duration::class;
|
---|
| 42 | protected $maxRunDurationDataType = '';
|
---|
| 43 | /**
|
---|
| 44 | * @var int
|
---|
| 45 | */
|
---|
| 46 | public $minNodeCpus;
|
---|
| 47 | protected $nodeAffinitiesType = SchedulingNodeAffinity::class;
|
---|
| 48 | protected $nodeAffinitiesDataType = 'array';
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $onHostMaintenance;
|
---|
| 53 | protected $onInstanceStopActionType = SchedulingOnInstanceStopAction::class;
|
---|
| 54 | protected $onInstanceStopActionDataType = '';
|
---|
| 55 | /**
|
---|
| 56 | * @var bool
|
---|
| 57 | */
|
---|
| 58 | public $preemptible;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $provisioningModel;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $terminationTime;
|
---|
| 67 |
|
---|
| 68 | /**
|
---|
| 69 | * @param bool
|
---|
| 70 | */
|
---|
| 71 | public function setAutomaticRestart($automaticRestart)
|
---|
| 72 | {
|
---|
| 73 | $this->automaticRestart = $automaticRestart;
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * @return bool
|
---|
| 77 | */
|
---|
| 78 | public function getAutomaticRestart()
|
---|
| 79 | {
|
---|
| 80 | return $this->automaticRestart;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @param int
|
---|
| 84 | */
|
---|
| 85 | public function setAvailabilityDomain($availabilityDomain)
|
---|
| 86 | {
|
---|
| 87 | $this->availabilityDomain = $availabilityDomain;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @return int
|
---|
| 91 | */
|
---|
| 92 | public function getAvailabilityDomain()
|
---|
| 93 | {
|
---|
| 94 | return $this->availabilityDomain;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @param string
|
---|
| 98 | */
|
---|
| 99 | public function setInstanceTerminationAction($instanceTerminationAction)
|
---|
| 100 | {
|
---|
| 101 | $this->instanceTerminationAction = $instanceTerminationAction;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return string
|
---|
| 105 | */
|
---|
| 106 | public function getInstanceTerminationAction()
|
---|
| 107 | {
|
---|
| 108 | return $this->instanceTerminationAction;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param Duration
|
---|
| 112 | */
|
---|
| 113 | public function setLocalSsdRecoveryTimeout(Duration $localSsdRecoveryTimeout)
|
---|
| 114 | {
|
---|
| 115 | $this->localSsdRecoveryTimeout = $localSsdRecoveryTimeout;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return Duration
|
---|
| 119 | */
|
---|
| 120 | public function getLocalSsdRecoveryTimeout()
|
---|
| 121 | {
|
---|
| 122 | return $this->localSsdRecoveryTimeout;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param string
|
---|
| 126 | */
|
---|
| 127 | public function setLocationHint($locationHint)
|
---|
| 128 | {
|
---|
| 129 | $this->locationHint = $locationHint;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return string
|
---|
| 133 | */
|
---|
| 134 | public function getLocationHint()
|
---|
| 135 | {
|
---|
| 136 | return $this->locationHint;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @param Duration
|
---|
| 140 | */
|
---|
| 141 | public function setMaxRunDuration(Duration $maxRunDuration)
|
---|
| 142 | {
|
---|
| 143 | $this->maxRunDuration = $maxRunDuration;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @return Duration
|
---|
| 147 | */
|
---|
| 148 | public function getMaxRunDuration()
|
---|
| 149 | {
|
---|
| 150 | return $this->maxRunDuration;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @param int
|
---|
| 154 | */
|
---|
| 155 | public function setMinNodeCpus($minNodeCpus)
|
---|
| 156 | {
|
---|
| 157 | $this->minNodeCpus = $minNodeCpus;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @return int
|
---|
| 161 | */
|
---|
| 162 | public function getMinNodeCpus()
|
---|
| 163 | {
|
---|
| 164 | return $this->minNodeCpus;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @param SchedulingNodeAffinity[]
|
---|
| 168 | */
|
---|
| 169 | public function setNodeAffinities($nodeAffinities)
|
---|
| 170 | {
|
---|
| 171 | $this->nodeAffinities = $nodeAffinities;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @return SchedulingNodeAffinity[]
|
---|
| 175 | */
|
---|
| 176 | public function getNodeAffinities()
|
---|
| 177 | {
|
---|
| 178 | return $this->nodeAffinities;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @param string
|
---|
| 182 | */
|
---|
| 183 | public function setOnHostMaintenance($onHostMaintenance)
|
---|
| 184 | {
|
---|
| 185 | $this->onHostMaintenance = $onHostMaintenance;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @return string
|
---|
| 189 | */
|
---|
| 190 | public function getOnHostMaintenance()
|
---|
| 191 | {
|
---|
| 192 | return $this->onHostMaintenance;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @param SchedulingOnInstanceStopAction
|
---|
| 196 | */
|
---|
| 197 | public function setOnInstanceStopAction(SchedulingOnInstanceStopAction $onInstanceStopAction)
|
---|
| 198 | {
|
---|
| 199 | $this->onInstanceStopAction = $onInstanceStopAction;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @return SchedulingOnInstanceStopAction
|
---|
| 203 | */
|
---|
| 204 | public function getOnInstanceStopAction()
|
---|
| 205 | {
|
---|
| 206 | return $this->onInstanceStopAction;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @param bool
|
---|
| 210 | */
|
---|
| 211 | public function setPreemptible($preemptible)
|
---|
| 212 | {
|
---|
| 213 | $this->preemptible = $preemptible;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @return bool
|
---|
| 217 | */
|
---|
| 218 | public function getPreemptible()
|
---|
| 219 | {
|
---|
| 220 | return $this->preemptible;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @param string
|
---|
| 224 | */
|
---|
| 225 | public function setProvisioningModel($provisioningModel)
|
---|
| 226 | {
|
---|
| 227 | $this->provisioningModel = $provisioningModel;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @return string
|
---|
| 231 | */
|
---|
| 232 | public function getProvisioningModel()
|
---|
| 233 | {
|
---|
| 234 | return $this->provisioningModel;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @param string
|
---|
| 238 | */
|
---|
| 239 | public function setTerminationTime($terminationTime)
|
---|
| 240 | {
|
---|
| 241 | $this->terminationTime = $terminationTime;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @return string
|
---|
| 245 | */
|
---|
| 246 | public function getTerminationTime()
|
---|
| 247 | {
|
---|
| 248 | return $this->terminationTime;
|
---|
| 249 | }
|
---|
| 250 | }
|
---|
| 251 |
|
---|
| 252 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 253 | class_alias(Scheduling::class, 'Google_Service_Compute_Scheduling');
|
---|