[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 Reservation extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $aggregateReservationType = AllocationAggregateReservation::class;
|
---|
| 23 | protected $aggregateReservationDataType = '';
|
---|
| 24 | /**
|
---|
| 25 | * @var string
|
---|
| 26 | */
|
---|
| 27 | public $commitment;
|
---|
| 28 | /**
|
---|
| 29 | * @var string
|
---|
| 30 | */
|
---|
| 31 | public $creationTimestamp;
|
---|
| 32 | /**
|
---|
| 33 | * @var string
|
---|
| 34 | */
|
---|
| 35 | public $description;
|
---|
| 36 | /**
|
---|
| 37 | * @var string
|
---|
| 38 | */
|
---|
| 39 | public $id;
|
---|
| 40 | /**
|
---|
| 41 | * @var string
|
---|
| 42 | */
|
---|
| 43 | public $kind;
|
---|
| 44 | /**
|
---|
| 45 | * @var string
|
---|
| 46 | */
|
---|
| 47 | public $name;
|
---|
| 48 | /**
|
---|
| 49 | * @var string[]
|
---|
| 50 | */
|
---|
| 51 | public $resourcePolicies;
|
---|
| 52 | protected $resourceStatusType = AllocationResourceStatus::class;
|
---|
| 53 | protected $resourceStatusDataType = '';
|
---|
| 54 | /**
|
---|
| 55 | * @var bool
|
---|
| 56 | */
|
---|
| 57 | public $satisfiesPzs;
|
---|
| 58 | /**
|
---|
| 59 | * @var string
|
---|
| 60 | */
|
---|
| 61 | public $selfLink;
|
---|
| 62 | protected $shareSettingsType = ShareSettings::class;
|
---|
| 63 | protected $shareSettingsDataType = '';
|
---|
| 64 | protected $specificReservationType = AllocationSpecificSKUReservation::class;
|
---|
| 65 | protected $specificReservationDataType = '';
|
---|
| 66 | /**
|
---|
| 67 | * @var bool
|
---|
| 68 | */
|
---|
| 69 | public $specificReservationRequired;
|
---|
| 70 | /**
|
---|
| 71 | * @var string
|
---|
| 72 | */
|
---|
| 73 | public $status;
|
---|
| 74 | /**
|
---|
| 75 | * @var string
|
---|
| 76 | */
|
---|
| 77 | public $zone;
|
---|
| 78 |
|
---|
| 79 | /**
|
---|
| 80 | * @param AllocationAggregateReservation
|
---|
| 81 | */
|
---|
| 82 | public function setAggregateReservation(AllocationAggregateReservation $aggregateReservation)
|
---|
| 83 | {
|
---|
| 84 | $this->aggregateReservation = $aggregateReservation;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @return AllocationAggregateReservation
|
---|
| 88 | */
|
---|
| 89 | public function getAggregateReservation()
|
---|
| 90 | {
|
---|
| 91 | return $this->aggregateReservation;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @param string
|
---|
| 95 | */
|
---|
| 96 | public function setCommitment($commitment)
|
---|
| 97 | {
|
---|
| 98 | $this->commitment = $commitment;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @return string
|
---|
| 102 | */
|
---|
| 103 | public function getCommitment()
|
---|
| 104 | {
|
---|
| 105 | return $this->commitment;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @param string
|
---|
| 109 | */
|
---|
| 110 | public function setCreationTimestamp($creationTimestamp)
|
---|
| 111 | {
|
---|
| 112 | $this->creationTimestamp = $creationTimestamp;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @return string
|
---|
| 116 | */
|
---|
| 117 | public function getCreationTimestamp()
|
---|
| 118 | {
|
---|
| 119 | return $this->creationTimestamp;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @param string
|
---|
| 123 | */
|
---|
| 124 | public function setDescription($description)
|
---|
| 125 | {
|
---|
| 126 | $this->description = $description;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @return string
|
---|
| 130 | */
|
---|
| 131 | public function getDescription()
|
---|
| 132 | {
|
---|
| 133 | return $this->description;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @param string
|
---|
| 137 | */
|
---|
| 138 | public function setId($id)
|
---|
| 139 | {
|
---|
| 140 | $this->id = $id;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @return string
|
---|
| 144 | */
|
---|
| 145 | public function getId()
|
---|
| 146 | {
|
---|
| 147 | return $this->id;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @param string
|
---|
| 151 | */
|
---|
| 152 | public function setKind($kind)
|
---|
| 153 | {
|
---|
| 154 | $this->kind = $kind;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @return string
|
---|
| 158 | */
|
---|
| 159 | public function getKind()
|
---|
| 160 | {
|
---|
| 161 | return $this->kind;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @param string
|
---|
| 165 | */
|
---|
| 166 | public function setName($name)
|
---|
| 167 | {
|
---|
| 168 | $this->name = $name;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @return string
|
---|
| 172 | */
|
---|
| 173 | public function getName()
|
---|
| 174 | {
|
---|
| 175 | return $this->name;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @param string[]
|
---|
| 179 | */
|
---|
| 180 | public function setResourcePolicies($resourcePolicies)
|
---|
| 181 | {
|
---|
| 182 | $this->resourcePolicies = $resourcePolicies;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @return string[]
|
---|
| 186 | */
|
---|
| 187 | public function getResourcePolicies()
|
---|
| 188 | {
|
---|
| 189 | return $this->resourcePolicies;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @param AllocationResourceStatus
|
---|
| 193 | */
|
---|
| 194 | public function setResourceStatus(AllocationResourceStatus $resourceStatus)
|
---|
| 195 | {
|
---|
| 196 | $this->resourceStatus = $resourceStatus;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @return AllocationResourceStatus
|
---|
| 200 | */
|
---|
| 201 | public function getResourceStatus()
|
---|
| 202 | {
|
---|
| 203 | return $this->resourceStatus;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @param bool
|
---|
| 207 | */
|
---|
| 208 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
| 209 | {
|
---|
| 210 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @return bool
|
---|
| 214 | */
|
---|
| 215 | public function getSatisfiesPzs()
|
---|
| 216 | {
|
---|
| 217 | return $this->satisfiesPzs;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @param string
|
---|
| 221 | */
|
---|
| 222 | public function setSelfLink($selfLink)
|
---|
| 223 | {
|
---|
| 224 | $this->selfLink = $selfLink;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @return string
|
---|
| 228 | */
|
---|
| 229 | public function getSelfLink()
|
---|
| 230 | {
|
---|
| 231 | return $this->selfLink;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @param ShareSettings
|
---|
| 235 | */
|
---|
| 236 | public function setShareSettings(ShareSettings $shareSettings)
|
---|
| 237 | {
|
---|
| 238 | $this->shareSettings = $shareSettings;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @return ShareSettings
|
---|
| 242 | */
|
---|
| 243 | public function getShareSettings()
|
---|
| 244 | {
|
---|
| 245 | return $this->shareSettings;
|
---|
| 246 | }
|
---|
| 247 | /**
|
---|
| 248 | * @param AllocationSpecificSKUReservation
|
---|
| 249 | */
|
---|
| 250 | public function setSpecificReservation(AllocationSpecificSKUReservation $specificReservation)
|
---|
| 251 | {
|
---|
| 252 | $this->specificReservation = $specificReservation;
|
---|
| 253 | }
|
---|
| 254 | /**
|
---|
| 255 | * @return AllocationSpecificSKUReservation
|
---|
| 256 | */
|
---|
| 257 | public function getSpecificReservation()
|
---|
| 258 | {
|
---|
| 259 | return $this->specificReservation;
|
---|
| 260 | }
|
---|
| 261 | /**
|
---|
| 262 | * @param bool
|
---|
| 263 | */
|
---|
| 264 | public function setSpecificReservationRequired($specificReservationRequired)
|
---|
| 265 | {
|
---|
| 266 | $this->specificReservationRequired = $specificReservationRequired;
|
---|
| 267 | }
|
---|
| 268 | /**
|
---|
| 269 | * @return bool
|
---|
| 270 | */
|
---|
| 271 | public function getSpecificReservationRequired()
|
---|
| 272 | {
|
---|
| 273 | return $this->specificReservationRequired;
|
---|
| 274 | }
|
---|
| 275 | /**
|
---|
| 276 | * @param string
|
---|
| 277 | */
|
---|
| 278 | public function setStatus($status)
|
---|
| 279 | {
|
---|
| 280 | $this->status = $status;
|
---|
| 281 | }
|
---|
| 282 | /**
|
---|
| 283 | * @return string
|
---|
| 284 | */
|
---|
| 285 | public function getStatus()
|
---|
| 286 | {
|
---|
| 287 | return $this->status;
|
---|
| 288 | }
|
---|
| 289 | /**
|
---|
| 290 | * @param string
|
---|
| 291 | */
|
---|
| 292 | public function setZone($zone)
|
---|
| 293 | {
|
---|
| 294 | $this->zone = $zone;
|
---|
| 295 | }
|
---|
| 296 | /**
|
---|
| 297 | * @return string
|
---|
| 298 | */
|
---|
| 299 | public function getZone()
|
---|
| 300 | {
|
---|
| 301 | return $this->zone;
|
---|
| 302 | }
|
---|
| 303 | }
|
---|
| 304 |
|
---|
| 305 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 306 | class_alias(Reservation::class, 'Google_Service_Compute_Reservation');
|
---|