Reservation.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  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. namespace Google\Service\Compute;
  18. class Reservation extends \Google\Collection
  19. {
  20. /**
  21. * The reserved capacity is made up of densely deployed reservation blocks.
  22. */
  23. public const DEPLOYMENT_TYPE_DENSE = 'DENSE';
  24. public const DEPLOYMENT_TYPE_DEPLOYMENT_TYPE_UNSPECIFIED = 'DEPLOYMENT_TYPE_UNSPECIFIED';
  25. /**
  26. * No early access.
  27. */
  28. public const EARLY_ACCESS_MAINTENANCE_NO_EARLY_ACCESS = 'NO_EARLY_ACCESS';
  29. /**
  30. * Wave 1: Fastest notification period
  31. */
  32. public const EARLY_ACCESS_MAINTENANCE_WAVE1 = 'WAVE1';
  33. /**
  34. * Wave 2: Medium notification period
  35. */
  36. public const EARLY_ACCESS_MAINTENANCE_WAVE2 = 'WAVE2';
  37. /**
  38. * CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) at
  39. * the data center during normal operating conditions. In the event of
  40. * infrastructure failures at data center (e.g. power and/or cooling
  41. * failures), this workload may be disrupted. As a consequence, it has a
  42. * weaker availability SLO than STANDARD.
  43. */
  44. public const PROTECTION_TIER_CAPACITY_OPTIMIZED = 'CAPACITY_OPTIMIZED';
  45. /**
  46. * Unspecified protection tier.
  47. */
  48. public const PROTECTION_TIER_PROTECTION_TIER_UNSPECIFIED = 'PROTECTION_TIER_UNSPECIFIED';
  49. /**
  50. * STANDARD protection for workload that should be protected by redundancies
  51. * (e.g. power, cooling) at the data center level. In the event of
  52. * infrastructure failures at data center (e.g. power and/or cooling
  53. * failures), this workload is expected to continue as normal using the
  54. * redundancies.
  55. */
  56. public const PROTECTION_TIER_STANDARD = 'STANDARD';
  57. /**
  58. * Maintenance on all reserved instances in the reservation is synchronized.
  59. */
  60. public const SCHEDULING_TYPE_GROUPED = 'GROUPED';
  61. /**
  62. * Unknown maintenance type.
  63. */
  64. public const SCHEDULING_TYPE_GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 'GROUP_MAINTENANCE_TYPE_UNSPECIFIED';
  65. /**
  66. * Maintenance is not synchronized for this reservation. Instead, each
  67. * instance has its own maintenance window.
  68. */
  69. public const SCHEDULING_TYPE_INDEPENDENT = 'INDEPENDENT';
  70. /**
  71. * Reservation resources are being allocated.
  72. */
  73. public const STATUS_CREATING = 'CREATING';
  74. /**
  75. * Reservation deletion is in progress.
  76. */
  77. public const STATUS_DELETING = 'DELETING';
  78. public const STATUS_INVALID = 'INVALID';
  79. /**
  80. * Reservation resources have been allocated, and the reservation is ready for
  81. * use.
  82. */
  83. public const STATUS_READY = 'READY';
  84. /**
  85. * Reservation update is in progress.
  86. */
  87. public const STATUS_UPDATING = 'UPDATING';
  88. protected $collection_key = 'linkedCommitments';
  89. protected $advancedDeploymentControlType = ReservationAdvancedDeploymentControl::class;
  90. protected $advancedDeploymentControlDataType = '';
  91. protected $aggregateReservationType = AllocationAggregateReservation::class;
  92. protected $aggregateReservationDataType = '';
  93. /**
  94. * Output only. [Output Only] Full or partial URL to a parent commitment. This
  95. * field displays for reservations that are tied to a commitment.
  96. *
  97. * @var string
  98. */
  99. public $commitment;
  100. /**
  101. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  102. *
  103. * @var string
  104. */
  105. public $creationTimestamp;
  106. protected $deleteAfterDurationType = Duration::class;
  107. protected $deleteAfterDurationDataType = '';
  108. /**
  109. * Absolute time in future when the reservation will be auto-deleted by
  110. * Compute Engine. Timestamp is represented inRFC3339 text format.
  111. *
  112. * @var string
  113. */
  114. public $deleteAtTime;
  115. /**
  116. * Specifies the deployment strategy for this reservation.
  117. *
  118. * @var string
  119. */
  120. public $deploymentType;
  121. /**
  122. * An optional description of this resource. Provide this property when you
  123. * create the resource.
  124. *
  125. * @var string
  126. */
  127. public $description;
  128. /**
  129. * Indicates the early access maintenance for the reservation. If this field
  130. * is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in
  131. * early access maintenance and the standard notice applies.
  132. *
  133. * @var string
  134. */
  135. public $earlyAccessMaintenance;
  136. /**
  137. * Indicates whether Compute Engine allows unplanned maintenance for your VMs;
  138. * for example, to fix hardware errors.
  139. *
  140. * @var bool
  141. */
  142. public $enableEmergentMaintenance;
  143. /**
  144. * Output only. [Output Only] The unique identifier for the resource. This
  145. * identifier is defined by the server.
  146. *
  147. * @var string
  148. */
  149. public $id;
  150. /**
  151. * Output only. [Output Only] Type of the resource. Alwayscompute#reservations
  152. * for reservations.
  153. *
  154. * @var string
  155. */
  156. public $kind;
  157. /**
  158. * Output only. [Output Only] Full or partial URL to parent commitments. This
  159. * field displays for reservations that are tied to multiple commitments.
  160. *
  161. * @var string[]
  162. */
  163. public $linkedCommitments;
  164. /**
  165. * The name of the resource, provided by the client when initially creating
  166. * the resource. The resource name must be 1-63 characters long, and comply
  167. * withRFC1035. Specifically, the name must be 1-63 characters long and match
  168. * the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
  169. * character must be a lowercase letter, and all following characters must be
  170. * a dash, lowercase letter, or digit, except the last character, which cannot
  171. * be a dash.
  172. *
  173. * @var string
  174. */
  175. public $name;
  176. protected $paramsType = ReservationParams::class;
  177. protected $paramsDataType = '';
  178. /**
  179. * Protection tier for the workload which specifies the workload expectations
  180. * in the event of infrastructure failures at data center (e.g. power and/or
  181. * cooling failures).
  182. *
  183. * @var string
  184. */
  185. public $protectionTier;
  186. protected $reservationSharingPolicyType = AllocationReservationSharingPolicy::class;
  187. protected $reservationSharingPolicyDataType = '';
  188. /**
  189. * Resource policies to be added to this reservation. The key is defined by
  190. * user, and the value is resource policy url. This is to define placement
  191. * policy with reservation.
  192. *
  193. * @var string[]
  194. */
  195. public $resourcePolicies;
  196. protected $resourceStatusType = AllocationResourceStatus::class;
  197. protected $resourceStatusDataType = '';
  198. /**
  199. * Output only. [Output Only] Reserved for future use.
  200. *
  201. * @var bool
  202. */
  203. public $satisfiesPzs;
  204. /**
  205. * The type of maintenance for the reservation.
  206. *
  207. * @var string
  208. */
  209. public $schedulingType;
  210. /**
  211. * Output only. [Output Only] Server-defined fully-qualified URL for this
  212. * resource.
  213. *
  214. * @var string
  215. */
  216. public $selfLink;
  217. protected $shareSettingsType = ShareSettings::class;
  218. protected $shareSettingsDataType = '';
  219. protected $specificReservationType = AllocationSpecificSKUReservation::class;
  220. protected $specificReservationDataType = '';
  221. /**
  222. * Indicates whether the reservation can be consumed by VMs with affinity for
  223. * "any" reservation. If the field is set, then only VMs that target the
  224. * reservation by name can consume from this reservation.
  225. *
  226. * @var bool
  227. */
  228. public $specificReservationRequired;
  229. /**
  230. * Output only. [Output Only] The status of the reservation. -
  231. * CREATING: Reservation resources are being allocated. - READY:
  232. * Reservation resources have been allocated, and the reservation is
  233. * ready for use. - DELETING: Reservation deletion is in progress. -
  234. * UPDATING: Reservation update is in progress.
  235. *
  236. * @var string
  237. */
  238. public $status;
  239. /**
  240. * Zone in which the reservation resides. A zone must be provided if the
  241. * reservation is created within a commitment.
  242. *
  243. * @var string
  244. */
  245. public $zone;
  246. /**
  247. * Advanced control for cluster management, applicable only to DENSE
  248. * deployment type reservations.
  249. *
  250. * @param ReservationAdvancedDeploymentControl $advancedDeploymentControl
  251. */
  252. public function setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl $advancedDeploymentControl)
  253. {
  254. $this->advancedDeploymentControl = $advancedDeploymentControl;
  255. }
  256. /**
  257. * @return ReservationAdvancedDeploymentControl
  258. */
  259. public function getAdvancedDeploymentControl()
  260. {
  261. return $this->advancedDeploymentControl;
  262. }
  263. /**
  264. * Reservation for aggregated resources, providing shape flexibility.
  265. *
  266. * @param AllocationAggregateReservation $aggregateReservation
  267. */
  268. public function setAggregateReservation(AllocationAggregateReservation $aggregateReservation)
  269. {
  270. $this->aggregateReservation = $aggregateReservation;
  271. }
  272. /**
  273. * @return AllocationAggregateReservation
  274. */
  275. public function getAggregateReservation()
  276. {
  277. return $this->aggregateReservation;
  278. }
  279. /**
  280. * Output only. [Output Only] Full or partial URL to a parent commitment. This
  281. * field displays for reservations that are tied to a commitment.
  282. *
  283. * @param string $commitment
  284. */
  285. public function setCommitment($commitment)
  286. {
  287. $this->commitment = $commitment;
  288. }
  289. /**
  290. * @return string
  291. */
  292. public function getCommitment()
  293. {
  294. return $this->commitment;
  295. }
  296. /**
  297. * Output only. [Output Only] Creation timestamp inRFC3339 text format.
  298. *
  299. * @param string $creationTimestamp
  300. */
  301. public function setCreationTimestamp($creationTimestamp)
  302. {
  303. $this->creationTimestamp = $creationTimestamp;
  304. }
  305. /**
  306. * @return string
  307. */
  308. public function getCreationTimestamp()
  309. {
  310. return $this->creationTimestamp;
  311. }
  312. /**
  313. * Duration time relative to reservation creation when Compute Engine will
  314. * automatically delete this resource.
  315. *
  316. * @param Duration $deleteAfterDuration
  317. */
  318. public function setDeleteAfterDuration(Duration $deleteAfterDuration)
  319. {
  320. $this->deleteAfterDuration = $deleteAfterDuration;
  321. }
  322. /**
  323. * @return Duration
  324. */
  325. public function getDeleteAfterDuration()
  326. {
  327. return $this->deleteAfterDuration;
  328. }
  329. /**
  330. * Absolute time in future when the reservation will be auto-deleted by
  331. * Compute Engine. Timestamp is represented inRFC3339 text format.
  332. *
  333. * @param string $deleteAtTime
  334. */
  335. public function setDeleteAtTime($deleteAtTime)
  336. {
  337. $this->deleteAtTime = $deleteAtTime;
  338. }
  339. /**
  340. * @return string
  341. */
  342. public function getDeleteAtTime()
  343. {
  344. return $this->deleteAtTime;
  345. }
  346. /**
  347. * Specifies the deployment strategy for this reservation.
  348. *
  349. * Accepted values: DENSE, DEPLOYMENT_TYPE_UNSPECIFIED
  350. *
  351. * @param self::DEPLOYMENT_TYPE_* $deploymentType
  352. */
  353. public function setDeploymentType($deploymentType)
  354. {
  355. $this->deploymentType = $deploymentType;
  356. }
  357. /**
  358. * @return self::DEPLOYMENT_TYPE_*
  359. */
  360. public function getDeploymentType()
  361. {
  362. return $this->deploymentType;
  363. }
  364. /**
  365. * An optional description of this resource. Provide this property when you
  366. * create the resource.
  367. *
  368. * @param string $description
  369. */
  370. public function setDescription($description)
  371. {
  372. $this->description = $description;
  373. }
  374. /**
  375. * @return string
  376. */
  377. public function getDescription()
  378. {
  379. return $this->description;
  380. }
  381. /**
  382. * Indicates the early access maintenance for the reservation. If this field
  383. * is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in
  384. * early access maintenance and the standard notice applies.
  385. *
  386. * Accepted values: NO_EARLY_ACCESS, WAVE1, WAVE2
  387. *
  388. * @param self::EARLY_ACCESS_MAINTENANCE_* $earlyAccessMaintenance
  389. */
  390. public function setEarlyAccessMaintenance($earlyAccessMaintenance)
  391. {
  392. $this->earlyAccessMaintenance = $earlyAccessMaintenance;
  393. }
  394. /**
  395. * @return self::EARLY_ACCESS_MAINTENANCE_*
  396. */
  397. public function getEarlyAccessMaintenance()
  398. {
  399. return $this->earlyAccessMaintenance;
  400. }
  401. /**
  402. * Indicates whether Compute Engine allows unplanned maintenance for your VMs;
  403. * for example, to fix hardware errors.
  404. *
  405. * @param bool $enableEmergentMaintenance
  406. */
  407. public function setEnableEmergentMaintenance($enableEmergentMaintenance)
  408. {
  409. $this->enableEmergentMaintenance = $enableEmergentMaintenance;
  410. }
  411. /**
  412. * @return bool
  413. */
  414. public function getEnableEmergentMaintenance()
  415. {
  416. return $this->enableEmergentMaintenance;
  417. }
  418. /**
  419. * Output only. [Output Only] The unique identifier for the resource. This
  420. * identifier is defined by the server.
  421. *
  422. * @param string $id
  423. */
  424. public function setId($id)
  425. {
  426. $this->id = $id;
  427. }
  428. /**
  429. * @return string
  430. */
  431. public function getId()
  432. {
  433. return $this->id;
  434. }
  435. /**
  436. * Output only. [Output Only] Type of the resource. Alwayscompute#reservations
  437. * for reservations.
  438. *
  439. * @param string $kind
  440. */
  441. public function setKind($kind)
  442. {
  443. $this->kind = $kind;
  444. }
  445. /**
  446. * @return string
  447. */
  448. public function getKind()
  449. {
  450. return $this->kind;
  451. }
  452. /**
  453. * Output only. [Output Only] Full or partial URL to parent commitments. This
  454. * field displays for reservations that are tied to multiple commitments.
  455. *
  456. * @param string[] $linkedCommitments
  457. */
  458. public function setLinkedCommitments($linkedCommitments)
  459. {
  460. $this->linkedCommitments = $linkedCommitments;
  461. }
  462. /**
  463. * @return string[]
  464. */
  465. public function getLinkedCommitments()
  466. {
  467. return $this->linkedCommitments;
  468. }
  469. /**
  470. * The name of the resource, provided by the client when initially creating
  471. * the resource. The resource name must be 1-63 characters long, and comply
  472. * withRFC1035. Specifically, the name must be 1-63 characters long and match
  473. * the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
  474. * character must be a lowercase letter, and all following characters must be
  475. * a dash, lowercase letter, or digit, except the last character, which cannot
  476. * be a dash.
  477. *
  478. * @param string $name
  479. */
  480. public function setName($name)
  481. {
  482. $this->name = $name;
  483. }
  484. /**
  485. * @return string
  486. */
  487. public function getName()
  488. {
  489. return $this->name;
  490. }
  491. /**
  492. * Input only. Additional params passed with the request, but not persisted as
  493. * part of resource payload.
  494. *
  495. * @param ReservationParams $params
  496. */
  497. public function setParams(ReservationParams $params)
  498. {
  499. $this->params = $params;
  500. }
  501. /**
  502. * @return ReservationParams
  503. */
  504. public function getParams()
  505. {
  506. return $this->params;
  507. }
  508. /**
  509. * Protection tier for the workload which specifies the workload expectations
  510. * in the event of infrastructure failures at data center (e.g. power and/or
  511. * cooling failures).
  512. *
  513. * Accepted values: CAPACITY_OPTIMIZED, PROTECTION_TIER_UNSPECIFIED, STANDARD
  514. *
  515. * @param self::PROTECTION_TIER_* $protectionTier
  516. */
  517. public function setProtectionTier($protectionTier)
  518. {
  519. $this->protectionTier = $protectionTier;
  520. }
  521. /**
  522. * @return self::PROTECTION_TIER_*
  523. */
  524. public function getProtectionTier()
  525. {
  526. return $this->protectionTier;
  527. }
  528. /**
  529. * Specify the reservation sharing policy. If unspecified, the reservation
  530. * will not be shared with Google Cloud managed services.
  531. *
  532. * @param AllocationReservationSharingPolicy $reservationSharingPolicy
  533. */
  534. public function setReservationSharingPolicy(AllocationReservationSharingPolicy $reservationSharingPolicy)
  535. {
  536. $this->reservationSharingPolicy = $reservationSharingPolicy;
  537. }
  538. /**
  539. * @return AllocationReservationSharingPolicy
  540. */
  541. public function getReservationSharingPolicy()
  542. {
  543. return $this->reservationSharingPolicy;
  544. }
  545. /**
  546. * Resource policies to be added to this reservation. The key is defined by
  547. * user, and the value is resource policy url. This is to define placement
  548. * policy with reservation.
  549. *
  550. * @param string[] $resourcePolicies
  551. */
  552. public function setResourcePolicies($resourcePolicies)
  553. {
  554. $this->resourcePolicies = $resourcePolicies;
  555. }
  556. /**
  557. * @return string[]
  558. */
  559. public function getResourcePolicies()
  560. {
  561. return $this->resourcePolicies;
  562. }
  563. /**
  564. * Output only. [Output Only] Status information for Reservation resource.
  565. *
  566. * @param AllocationResourceStatus $resourceStatus
  567. */
  568. public function setResourceStatus(AllocationResourceStatus $resourceStatus)
  569. {
  570. $this->resourceStatus = $resourceStatus;
  571. }
  572. /**
  573. * @return AllocationResourceStatus
  574. */
  575. public function getResourceStatus()
  576. {
  577. return $this->resourceStatus;
  578. }
  579. /**
  580. * Output only. [Output Only] Reserved for future use.
  581. *
  582. * @param bool $satisfiesPzs
  583. */
  584. public function setSatisfiesPzs($satisfiesPzs)
  585. {
  586. $this->satisfiesPzs = $satisfiesPzs;
  587. }
  588. /**
  589. * @return bool
  590. */
  591. public function getSatisfiesPzs()
  592. {
  593. return $this->satisfiesPzs;
  594. }
  595. /**
  596. * The type of maintenance for the reservation.
  597. *
  598. * Accepted values: GROUPED, GROUP_MAINTENANCE_TYPE_UNSPECIFIED, INDEPENDENT
  599. *
  600. * @param self::SCHEDULING_TYPE_* $schedulingType
  601. */
  602. public function setSchedulingType($schedulingType)
  603. {
  604. $this->schedulingType = $schedulingType;
  605. }
  606. /**
  607. * @return self::SCHEDULING_TYPE_*
  608. */
  609. public function getSchedulingType()
  610. {
  611. return $this->schedulingType;
  612. }
  613. /**
  614. * Output only. [Output Only] Server-defined fully-qualified URL for this
  615. * resource.
  616. *
  617. * @param string $selfLink
  618. */
  619. public function setSelfLink($selfLink)
  620. {
  621. $this->selfLink = $selfLink;
  622. }
  623. /**
  624. * @return string
  625. */
  626. public function getSelfLink()
  627. {
  628. return $this->selfLink;
  629. }
  630. /**
  631. * Specify share-settings to create a shared reservation. This property is
  632. * optional. For more information about the syntax and options for this field
  633. * and its subfields, see the guide for creating a shared reservation.
  634. *
  635. * @param ShareSettings $shareSettings
  636. */
  637. public function setShareSettings(ShareSettings $shareSettings)
  638. {
  639. $this->shareSettings = $shareSettings;
  640. }
  641. /**
  642. * @return ShareSettings
  643. */
  644. public function getShareSettings()
  645. {
  646. return $this->shareSettings;
  647. }
  648. /**
  649. * Reservation for instances with specific machine shapes.
  650. *
  651. * @param AllocationSpecificSKUReservation $specificReservation
  652. */
  653. public function setSpecificReservation(AllocationSpecificSKUReservation $specificReservation)
  654. {
  655. $this->specificReservation = $specificReservation;
  656. }
  657. /**
  658. * @return AllocationSpecificSKUReservation
  659. */
  660. public function getSpecificReservation()
  661. {
  662. return $this->specificReservation;
  663. }
  664. /**
  665. * Indicates whether the reservation can be consumed by VMs with affinity for
  666. * "any" reservation. If the field is set, then only VMs that target the
  667. * reservation by name can consume from this reservation.
  668. *
  669. * @param bool $specificReservationRequired
  670. */
  671. public function setSpecificReservationRequired($specificReservationRequired)
  672. {
  673. $this->specificReservationRequired = $specificReservationRequired;
  674. }
  675. /**
  676. * @return bool
  677. */
  678. public function getSpecificReservationRequired()
  679. {
  680. return $this->specificReservationRequired;
  681. }
  682. /**
  683. * Output only. [Output Only] The status of the reservation. -
  684. * CREATING: Reservation resources are being allocated. - READY:
  685. * Reservation resources have been allocated, and the reservation is
  686. * ready for use. - DELETING: Reservation deletion is in progress. -
  687. * UPDATING: Reservation update is in progress.
  688. *
  689. * Accepted values: CREATING, DELETING, INVALID, READY, UPDATING
  690. *
  691. * @param self::STATUS_* $status
  692. */
  693. public function setStatus($status)
  694. {
  695. $this->status = $status;
  696. }
  697. /**
  698. * @return self::STATUS_*
  699. */
  700. public function getStatus()
  701. {
  702. return $this->status;
  703. }
  704. /**
  705. * Zone in which the reservation resides. A zone must be provided if the
  706. * reservation is created within a commitment.
  707. *
  708. * @param string $zone
  709. */
  710. public function setZone($zone)
  711. {
  712. $this->zone = $zone;
  713. }
  714. /**
  715. * @return string
  716. */
  717. public function getZone()
  718. {
  719. return $this->zone;
  720. }
  721. }
  722. // Adding a class alias for backwards compatibility with the previous class name.
  723. class_alias(Reservation::class, 'Google_Service_Compute_Reservation');