PageRenderTime 35ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/htdocs/xampp/src/contrib/Google_ComputeService.php

https://bitbucket.org/adarshj/convenient_website
PHP | 2629 lines | 2080 code | 72 blank | 477 comment | 74 complexity | fb9b77fb21dcd4b0482bff282a19d890 MD5 | raw file
Possible License(s): Apache-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-2-Clause, GPL-2.0, LGPL-3.0
  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "operations" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $computeService = new Google_ComputeService(...);
  20. * $operations = $computeService->operations;
  21. * </code>
  22. */
  23. class Google_OperationsServiceResource extends Google_ServiceResource {
  24. /**
  25. * Retrieves the specified operation resource. (operations.get)
  26. *
  27. * @param string $project Name of the project scoping this request.
  28. * @param string $operation Name of the operation resource to return.
  29. * @param array $optParams Optional parameters.
  30. * @return Google_Operation
  31. */
  32. public function get($project, $operation, $optParams = array()) {
  33. $params = array('project' => $project, 'operation' => $operation);
  34. $params = array_merge($params, $optParams);
  35. $data = $this->__call('get', array($params));
  36. if ($this->useObjects()) {
  37. return new Google_Operation($data);
  38. } else {
  39. return $data;
  40. }
  41. }
  42. /**
  43. * Retrieves the list of operation resources contained within the specified project.
  44. * (operations.list)
  45. *
  46. * @param string $project Name of the project scoping this request.
  47. * @param array $optParams Optional parameters.
  48. *
  49. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  50. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  51. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  52. * @return Google_OperationList
  53. */
  54. public function listOperations($project, $optParams = array()) {
  55. $params = array('project' => $project);
  56. $params = array_merge($params, $optParams);
  57. $data = $this->__call('list', array($params));
  58. if ($this->useObjects()) {
  59. return new Google_OperationList($data);
  60. } else {
  61. return $data;
  62. }
  63. }
  64. /**
  65. * Deletes the specified operation resource. (operations.delete)
  66. *
  67. * @param string $project Name of the project scoping this request.
  68. * @param string $operation Name of the operation resource to delete.
  69. * @param array $optParams Optional parameters.
  70. */
  71. public function delete($project, $operation, $optParams = array()) {
  72. $params = array('project' => $project, 'operation' => $operation);
  73. $params = array_merge($params, $optParams);
  74. $data = $this->__call('delete', array($params));
  75. return $data;
  76. }
  77. }
  78. /**
  79. * The "kernels" collection of methods.
  80. * Typical usage is:
  81. * <code>
  82. * $computeService = new Google_ComputeService(...);
  83. * $kernels = $computeService->kernels;
  84. * </code>
  85. */
  86. class Google_KernelsServiceResource extends Google_ServiceResource {
  87. /**
  88. * Retrieves the list of kernel resources available to the specified project. (kernels.list)
  89. *
  90. * @param string $project Name of the project scoping this request.
  91. * @param array $optParams Optional parameters.
  92. *
  93. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  94. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  95. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  96. * @return Google_KernelList
  97. */
  98. public function listKernels($project, $optParams = array()) {
  99. $params = array('project' => $project);
  100. $params = array_merge($params, $optParams);
  101. $data = $this->__call('list', array($params));
  102. if ($this->useObjects()) {
  103. return new Google_KernelList($data);
  104. } else {
  105. return $data;
  106. }
  107. }
  108. /**
  109. * Returns the specified kernel resource. (kernels.get)
  110. *
  111. * @param string $project Name of the project scoping this request.
  112. * @param string $kernel Name of the kernel resource to return.
  113. * @param array $optParams Optional parameters.
  114. * @return Google_Kernel
  115. */
  116. public function get($project, $kernel, $optParams = array()) {
  117. $params = array('project' => $project, 'kernel' => $kernel);
  118. $params = array_merge($params, $optParams);
  119. $data = $this->__call('get', array($params));
  120. if ($this->useObjects()) {
  121. return new Google_Kernel($data);
  122. } else {
  123. return $data;
  124. }
  125. }
  126. }
  127. /**
  128. * The "disks" collection of methods.
  129. * Typical usage is:
  130. * <code>
  131. * $computeService = new Google_ComputeService(...);
  132. * $disks = $computeService->disks;
  133. * </code>
  134. */
  135. class Google_DisksServiceResource extends Google_ServiceResource {
  136. /**
  137. * Creates a persistent disk resource in the specified project using the data included in the
  138. * request. (disks.insert)
  139. *
  140. * @param string $project Name of the project scoping this request.
  141. * @param Google_Disk $postBody
  142. * @param array $optParams Optional parameters.
  143. * @return Google_Operation
  144. */
  145. public function insert($project, Google_Disk $postBody, $optParams = array()) {
  146. $params = array('project' => $project, 'postBody' => $postBody);
  147. $params = array_merge($params, $optParams);
  148. $data = $this->__call('insert', array($params));
  149. if ($this->useObjects()) {
  150. return new Google_Operation($data);
  151. } else {
  152. return $data;
  153. }
  154. }
  155. /**
  156. * Returns the specified persistent disk resource. (disks.get)
  157. *
  158. * @param string $project Name of the project scoping this request.
  159. * @param string $disk Name of the persistent disk resource to return.
  160. * @param array $optParams Optional parameters.
  161. * @return Google_Disk
  162. */
  163. public function get($project, $disk, $optParams = array()) {
  164. $params = array('project' => $project, 'disk' => $disk);
  165. $params = array_merge($params, $optParams);
  166. $data = $this->__call('get', array($params));
  167. if ($this->useObjects()) {
  168. return new Google_Disk($data);
  169. } else {
  170. return $data;
  171. }
  172. }
  173. /**
  174. * Retrieves the list of persistent disk resources contained within the specified project.
  175. * (disks.list)
  176. *
  177. * @param string $project Name of the project scoping this request.
  178. * @param array $optParams Optional parameters.
  179. *
  180. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  181. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  182. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  183. * @return Google_DiskList
  184. */
  185. public function listDisks($project, $optParams = array()) {
  186. $params = array('project' => $project);
  187. $params = array_merge($params, $optParams);
  188. $data = $this->__call('list', array($params));
  189. if ($this->useObjects()) {
  190. return new Google_DiskList($data);
  191. } else {
  192. return $data;
  193. }
  194. }
  195. /**
  196. * Deletes the specified persistent disk resource. (disks.delete)
  197. *
  198. * @param string $project Name of the project scoping this request.
  199. * @param string $disk Name of the persistent disk resource to delete.
  200. * @param array $optParams Optional parameters.
  201. * @return Google_Operation
  202. */
  203. public function delete($project, $disk, $optParams = array()) {
  204. $params = array('project' => $project, 'disk' => $disk);
  205. $params = array_merge($params, $optParams);
  206. $data = $this->__call('delete', array($params));
  207. if ($this->useObjects()) {
  208. return new Google_Operation($data);
  209. } else {
  210. return $data;
  211. }
  212. }
  213. }
  214. /**
  215. * The "snapshots" collection of methods.
  216. * Typical usage is:
  217. * <code>
  218. * $computeService = new Google_ComputeService(...);
  219. * $snapshots = $computeService->snapshots;
  220. * </code>
  221. */
  222. class Google_SnapshotsServiceResource extends Google_ServiceResource {
  223. /**
  224. * Creates a persistent disk snapshot resource in the specified project using the data included in
  225. * the request. (snapshots.insert)
  226. *
  227. * @param string $project Name of the project scoping this request.
  228. * @param Google_Snapshot $postBody
  229. * @param array $optParams Optional parameters.
  230. * @return Google_Operation
  231. */
  232. public function insert($project, Google_Snapshot $postBody, $optParams = array()) {
  233. $params = array('project' => $project, 'postBody' => $postBody);
  234. $params = array_merge($params, $optParams);
  235. $data = $this->__call('insert', array($params));
  236. if ($this->useObjects()) {
  237. return new Google_Operation($data);
  238. } else {
  239. return $data;
  240. }
  241. }
  242. /**
  243. * Returns the specified persistent disk snapshot resource. (snapshots.get)
  244. *
  245. * @param string $project Name of the project scoping this request.
  246. * @param string $snapshot Name of the persistent disk snapshot resource to return.
  247. * @param array $optParams Optional parameters.
  248. * @return Google_Snapshot
  249. */
  250. public function get($project, $snapshot, $optParams = array()) {
  251. $params = array('project' => $project, 'snapshot' => $snapshot);
  252. $params = array_merge($params, $optParams);
  253. $data = $this->__call('get', array($params));
  254. if ($this->useObjects()) {
  255. return new Google_Snapshot($data);
  256. } else {
  257. return $data;
  258. }
  259. }
  260. /**
  261. * Retrieves the list of persistent disk snapshot resources contained within the specified project.
  262. * (snapshots.list)
  263. *
  264. * @param string $project Name of the project scoping this request.
  265. * @param array $optParams Optional parameters.
  266. *
  267. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  268. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  269. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  270. * @return Google_SnapshotList
  271. */
  272. public function listSnapshots($project, $optParams = array()) {
  273. $params = array('project' => $project);
  274. $params = array_merge($params, $optParams);
  275. $data = $this->__call('list', array($params));
  276. if ($this->useObjects()) {
  277. return new Google_SnapshotList($data);
  278. } else {
  279. return $data;
  280. }
  281. }
  282. /**
  283. * Deletes the specified persistent disk snapshot resource. (snapshots.delete)
  284. *
  285. * @param string $project Name of the project scoping this request.
  286. * @param string $snapshot Name of the persistent disk snapshot resource to delete.
  287. * @param array $optParams Optional parameters.
  288. * @return Google_Operation
  289. */
  290. public function delete($project, $snapshot, $optParams = array()) {
  291. $params = array('project' => $project, 'snapshot' => $snapshot);
  292. $params = array_merge($params, $optParams);
  293. $data = $this->__call('delete', array($params));
  294. if ($this->useObjects()) {
  295. return new Google_Operation($data);
  296. } else {
  297. return $data;
  298. }
  299. }
  300. }
  301. /**
  302. * The "zones" collection of methods.
  303. * Typical usage is:
  304. * <code>
  305. * $computeService = new Google_ComputeService(...);
  306. * $zones = $computeService->zones;
  307. * </code>
  308. */
  309. class Google_ZonesServiceResource extends Google_ServiceResource {
  310. /**
  311. * Retrieves the list of zone resources available to the specified project. (zones.list)
  312. *
  313. * @param string $project Name of the project scoping this request.
  314. * @param array $optParams Optional parameters.
  315. *
  316. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  317. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  318. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  319. * @return Google_ZoneList
  320. */
  321. public function listZones($project, $optParams = array()) {
  322. $params = array('project' => $project);
  323. $params = array_merge($params, $optParams);
  324. $data = $this->__call('list', array($params));
  325. if ($this->useObjects()) {
  326. return new Google_ZoneList($data);
  327. } else {
  328. return $data;
  329. }
  330. }
  331. /**
  332. * Returns the specified zone resource. (zones.get)
  333. *
  334. * @param string $project Name of the project scoping this request.
  335. * @param string $zone Name of the zone resource to return.
  336. * @param array $optParams Optional parameters.
  337. * @return Google_Zone
  338. */
  339. public function get($project, $zone, $optParams = array()) {
  340. $params = array('project' => $project, 'zone' => $zone);
  341. $params = array_merge($params, $optParams);
  342. $data = $this->__call('get', array($params));
  343. if ($this->useObjects()) {
  344. return new Google_Zone($data);
  345. } else {
  346. return $data;
  347. }
  348. }
  349. }
  350. /**
  351. * The "instances" collection of methods.
  352. * Typical usage is:
  353. * <code>
  354. * $computeService = new Google_ComputeService(...);
  355. * $instances = $computeService->instances;
  356. * </code>
  357. */
  358. class Google_InstancesServiceResource extends Google_ServiceResource {
  359. /**
  360. * Creates an instance resource in the specified project using the data included in the request.
  361. * (instances.insert)
  362. *
  363. * @param string $project Name of the project scoping this request.
  364. * @param Google_Instance $postBody
  365. * @param array $optParams Optional parameters.
  366. * @return Google_Operation
  367. */
  368. public function insert($project, Google_Instance $postBody, $optParams = array()) {
  369. $params = array('project' => $project, 'postBody' => $postBody);
  370. $params = array_merge($params, $optParams);
  371. $data = $this->__call('insert', array($params));
  372. if ($this->useObjects()) {
  373. return new Google_Operation($data);
  374. } else {
  375. return $data;
  376. }
  377. }
  378. /**
  379. * Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
  380. *
  381. * @param string $project Project name.
  382. * @param string $instance Instance name.
  383. * @param string $access_config Access config name.
  384. * @param string $network_interface Network interface name.
  385. * @param array $optParams Optional parameters.
  386. * @return Google_Operation
  387. */
  388. public function deleteAccessConfig($project, $instance, $access_config, $network_interface, $optParams = array()) {
  389. $params = array('project' => $project, 'instance' => $instance, 'access_config' => $access_config, 'network_interface' => $network_interface);
  390. $params = array_merge($params, $optParams);
  391. $data = $this->__call('deleteAccessConfig', array($params));
  392. if ($this->useObjects()) {
  393. return new Google_Operation($data);
  394. } else {
  395. return $data;
  396. }
  397. }
  398. /**
  399. * Returns the specified instance resource. (instances.get)
  400. *
  401. * @param string $project Name of the project scoping this request.
  402. * @param string $instance Name of the instance resource to return.
  403. * @param array $optParams Optional parameters.
  404. * @return Google_Instance
  405. */
  406. public function get($project, $instance, $optParams = array()) {
  407. $params = array('project' => $project, 'instance' => $instance);
  408. $params = array_merge($params, $optParams);
  409. $data = $this->__call('get', array($params));
  410. if ($this->useObjects()) {
  411. return new Google_Instance($data);
  412. } else {
  413. return $data;
  414. }
  415. }
  416. /**
  417. * Retrieves the list of instance resources contained within the specified project. (instances.list)
  418. *
  419. * @param string $project Name of the project scoping this request.
  420. * @param array $optParams Optional parameters.
  421. *
  422. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  423. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  424. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  425. * @return Google_InstanceList
  426. */
  427. public function listInstances($project, $optParams = array()) {
  428. $params = array('project' => $project);
  429. $params = array_merge($params, $optParams);
  430. $data = $this->__call('list', array($params));
  431. if ($this->useObjects()) {
  432. return new Google_InstanceList($data);
  433. } else {
  434. return $data;
  435. }
  436. }
  437. /**
  438. * Adds an access config to an instance's network interface. (instances.addAccessConfig)
  439. *
  440. * @param string $project Project name.
  441. * @param string $instance Instance name.
  442. * @param string $network_interface Network interface name.
  443. * @param Google_AccessConfig $postBody
  444. * @param array $optParams Optional parameters.
  445. * @return Google_Operation
  446. */
  447. public function addAccessConfig($project, $instance, $network_interface, Google_AccessConfig $postBody, $optParams = array()) {
  448. $params = array('project' => $project, 'instance' => $instance, 'network_interface' => $network_interface, 'postBody' => $postBody);
  449. $params = array_merge($params, $optParams);
  450. $data = $this->__call('addAccessConfig', array($params));
  451. if ($this->useObjects()) {
  452. return new Google_Operation($data);
  453. } else {
  454. return $data;
  455. }
  456. }
  457. /**
  458. * Deletes the specified instance resource. (instances.delete)
  459. *
  460. * @param string $project Name of the project scoping this request.
  461. * @param string $instance Name of the instance resource to delete.
  462. * @param array $optParams Optional parameters.
  463. * @return Google_Operation
  464. */
  465. public function delete($project, $instance, $optParams = array()) {
  466. $params = array('project' => $project, 'instance' => $instance);
  467. $params = array_merge($params, $optParams);
  468. $data = $this->__call('delete', array($params));
  469. if ($this->useObjects()) {
  470. return new Google_Operation($data);
  471. } else {
  472. return $data;
  473. }
  474. }
  475. }
  476. /**
  477. * The "machineTypes" collection of methods.
  478. * Typical usage is:
  479. * <code>
  480. * $computeService = new Google_ComputeService(...);
  481. * $machineTypes = $computeService->machineTypes;
  482. * </code>
  483. */
  484. class Google_MachineTypesServiceResource extends Google_ServiceResource {
  485. /**
  486. * Retrieves the list of machine type resources available to the specified project.
  487. * (machineTypes.list)
  488. *
  489. * @param string $project Name of the project scoping this request.
  490. * @param array $optParams Optional parameters.
  491. *
  492. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  493. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  494. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  495. * @return Google_MachineTypeList
  496. */
  497. public function listMachineTypes($project, $optParams = array()) {
  498. $params = array('project' => $project);
  499. $params = array_merge($params, $optParams);
  500. $data = $this->__call('list', array($params));
  501. if ($this->useObjects()) {
  502. return new Google_MachineTypeList($data);
  503. } else {
  504. return $data;
  505. }
  506. }
  507. /**
  508. * Returns the specified machine type resource. (machineTypes.get)
  509. *
  510. * @param string $project Name of the project scoping this request.
  511. * @param string $machineType Name of the machine type resource to return.
  512. * @param array $optParams Optional parameters.
  513. * @return Google_MachineType
  514. */
  515. public function get($project, $machineType, $optParams = array()) {
  516. $params = array('project' => $project, 'machineType' => $machineType);
  517. $params = array_merge($params, $optParams);
  518. $data = $this->__call('get', array($params));
  519. if ($this->useObjects()) {
  520. return new Google_MachineType($data);
  521. } else {
  522. return $data;
  523. }
  524. }
  525. }
  526. /**
  527. * The "images" collection of methods.
  528. * Typical usage is:
  529. * <code>
  530. * $computeService = new Google_ComputeService(...);
  531. * $images = $computeService->images;
  532. * </code>
  533. */
  534. class Google_ImagesServiceResource extends Google_ServiceResource {
  535. /**
  536. * Creates an image resource in the specified project using the data included in the request.
  537. * (images.insert)
  538. *
  539. * @param string $project Name of the project scoping this request.
  540. * @param Google_Image $postBody
  541. * @param array $optParams Optional parameters.
  542. * @return Google_Operation
  543. */
  544. public function insert($project, Google_Image $postBody, $optParams = array()) {
  545. $params = array('project' => $project, 'postBody' => $postBody);
  546. $params = array_merge($params, $optParams);
  547. $data = $this->__call('insert', array($params));
  548. if ($this->useObjects()) {
  549. return new Google_Operation($data);
  550. } else {
  551. return $data;
  552. }
  553. }
  554. /**
  555. * Returns the specified image resource. (images.get)
  556. *
  557. * @param string $project Name of the project scoping this request.
  558. * @param string $image Name of the image resource to return.
  559. * @param array $optParams Optional parameters.
  560. * @return Google_Image
  561. */
  562. public function get($project, $image, $optParams = array()) {
  563. $params = array('project' => $project, 'image' => $image);
  564. $params = array_merge($params, $optParams);
  565. $data = $this->__call('get', array($params));
  566. if ($this->useObjects()) {
  567. return new Google_Image($data);
  568. } else {
  569. return $data;
  570. }
  571. }
  572. /**
  573. * Retrieves the list of image resources available to the specified project. (images.list)
  574. *
  575. * @param string $project Name of the project scoping this request.
  576. * @param array $optParams Optional parameters.
  577. *
  578. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  579. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  580. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  581. * @return Google_ImageList
  582. */
  583. public function listImages($project, $optParams = array()) {
  584. $params = array('project' => $project);
  585. $params = array_merge($params, $optParams);
  586. $data = $this->__call('list', array($params));
  587. if ($this->useObjects()) {
  588. return new Google_ImageList($data);
  589. } else {
  590. return $data;
  591. }
  592. }
  593. /**
  594. * Deletes the specified image resource. (images.delete)
  595. *
  596. * @param string $project Name of the project scoping this request.
  597. * @param string $image Name of the image resource to delete.
  598. * @param array $optParams Optional parameters.
  599. * @return Google_Operation
  600. */
  601. public function delete($project, $image, $optParams = array()) {
  602. $params = array('project' => $project, 'image' => $image);
  603. $params = array_merge($params, $optParams);
  604. $data = $this->__call('delete', array($params));
  605. if ($this->useObjects()) {
  606. return new Google_Operation($data);
  607. } else {
  608. return $data;
  609. }
  610. }
  611. }
  612. /**
  613. * The "firewalls" collection of methods.
  614. * Typical usage is:
  615. * <code>
  616. * $computeService = new Google_ComputeService(...);
  617. * $firewalls = $computeService->firewalls;
  618. * </code>
  619. */
  620. class Google_FirewallsServiceResource extends Google_ServiceResource {
  621. /**
  622. * Creates a firewall resource in the specified project using the data included in the request.
  623. * (firewalls.insert)
  624. *
  625. * @param string $project Name of the project scoping this request.
  626. * @param Google_Firewall $postBody
  627. * @param array $optParams Optional parameters.
  628. * @return Google_Operation
  629. */
  630. public function insert($project, Google_Firewall $postBody, $optParams = array()) {
  631. $params = array('project' => $project, 'postBody' => $postBody);
  632. $params = array_merge($params, $optParams);
  633. $data = $this->__call('insert', array($params));
  634. if ($this->useObjects()) {
  635. return new Google_Operation($data);
  636. } else {
  637. return $data;
  638. }
  639. }
  640. /**
  641. * Returns the specified firewall resource. (firewalls.get)
  642. *
  643. * @param string $project Name of the project scoping this request.
  644. * @param string $firewall Name of the firewall resource to return.
  645. * @param array $optParams Optional parameters.
  646. * @return Google_Firewall
  647. */
  648. public function get($project, $firewall, $optParams = array()) {
  649. $params = array('project' => $project, 'firewall' => $firewall);
  650. $params = array_merge($params, $optParams);
  651. $data = $this->__call('get', array($params));
  652. if ($this->useObjects()) {
  653. return new Google_Firewall($data);
  654. } else {
  655. return $data;
  656. }
  657. }
  658. /**
  659. * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
  660. *
  661. * @param string $project Name of the project scoping this request.
  662. * @param array $optParams Optional parameters.
  663. *
  664. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  665. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  666. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  667. * @return Google_FirewallList
  668. */
  669. public function listFirewalls($project, $optParams = array()) {
  670. $params = array('project' => $project);
  671. $params = array_merge($params, $optParams);
  672. $data = $this->__call('list', array($params));
  673. if ($this->useObjects()) {
  674. return new Google_FirewallList($data);
  675. } else {
  676. return $data;
  677. }
  678. }
  679. /**
  680. * Updates the specified firewall resource with the data included in the request. (firewalls.update)
  681. *
  682. * @param string $project Name of the project scoping this request.
  683. * @param string $firewall Name of the firewall resource to update.
  684. * @param Google_Firewall $postBody
  685. * @param array $optParams Optional parameters.
  686. * @return Google_Operation
  687. */
  688. public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
  689. $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
  690. $params = array_merge($params, $optParams);
  691. $data = $this->__call('update', array($params));
  692. if ($this->useObjects()) {
  693. return new Google_Operation($data);
  694. } else {
  695. return $data;
  696. }
  697. }
  698. /**
  699. * Updates the specified firewall resource with the data included in the request. This method
  700. * supports patch semantics. (firewalls.patch)
  701. *
  702. * @param string $project Name of the project scoping this request.
  703. * @param string $firewall Name of the firewall resource to update.
  704. * @param Google_Firewall $postBody
  705. * @param array $optParams Optional parameters.
  706. * @return Google_Operation
  707. */
  708. public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
  709. $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
  710. $params = array_merge($params, $optParams);
  711. $data = $this->__call('patch', array($params));
  712. if ($this->useObjects()) {
  713. return new Google_Operation($data);
  714. } else {
  715. return $data;
  716. }
  717. }
  718. /**
  719. * Deletes the specified firewall resource. (firewalls.delete)
  720. *
  721. * @param string $project Name of the project scoping this request.
  722. * @param string $firewall Name of the firewall resource to delete.
  723. * @param array $optParams Optional parameters.
  724. * @return Google_Operation
  725. */
  726. public function delete($project, $firewall, $optParams = array()) {
  727. $params = array('project' => $project, 'firewall' => $firewall);
  728. $params = array_merge($params, $optParams);
  729. $data = $this->__call('delete', array($params));
  730. if ($this->useObjects()) {
  731. return new Google_Operation($data);
  732. } else {
  733. return $data;
  734. }
  735. }
  736. }
  737. /**
  738. * The "networks" collection of methods.
  739. * Typical usage is:
  740. * <code>
  741. * $computeService = new Google_ComputeService(...);
  742. * $networks = $computeService->networks;
  743. * </code>
  744. */
  745. class Google_NetworksServiceResource extends Google_ServiceResource {
  746. /**
  747. * Creates a network resource in the specified project using the data included in the request.
  748. * (networks.insert)
  749. *
  750. * @param string $project Name of the project scoping this request.
  751. * @param Google_Network $postBody
  752. * @param array $optParams Optional parameters.
  753. * @return Google_Operation
  754. */
  755. public function insert($project, Google_Network $postBody, $optParams = array()) {
  756. $params = array('project' => $project, 'postBody' => $postBody);
  757. $params = array_merge($params, $optParams);
  758. $data = $this->__call('insert', array($params));
  759. if ($this->useObjects()) {
  760. return new Google_Operation($data);
  761. } else {
  762. return $data;
  763. }
  764. }
  765. /**
  766. * Returns the specified network resource. (networks.get)
  767. *
  768. * @param string $project Name of the project scoping this request.
  769. * @param string $network Name of the network resource to return.
  770. * @param array $optParams Optional parameters.
  771. * @return Google_Network
  772. */
  773. public function get($project, $network, $optParams = array()) {
  774. $params = array('project' => $project, 'network' => $network);
  775. $params = array_merge($params, $optParams);
  776. $data = $this->__call('get', array($params));
  777. if ($this->useObjects()) {
  778. return new Google_Network($data);
  779. } else {
  780. return $data;
  781. }
  782. }
  783. /**
  784. * Retrieves the list of network resources available to the specified project. (networks.list)
  785. *
  786. * @param string $project Name of the project scoping this request.
  787. * @param array $optParams Optional parameters.
  788. *
  789. * @opt_param string filter Optional. Filter expression for filtering listed resources.
  790. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
  791. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
  792. * @return Google_NetworkList
  793. */
  794. public function listNetworks($project, $optParams = array()) {
  795. $params = array('project' => $project);
  796. $params = array_merge($params, $optParams);
  797. $data = $this->__call('list', array($params));
  798. if ($this->useObjects()) {
  799. return new Google_NetworkList($data);
  800. } else {
  801. return $data;
  802. }
  803. }
  804. /**
  805. * Deletes the specified network resource. (networks.delete)
  806. *
  807. * @param string $project Name of the project scoping this request.
  808. * @param string $network Name of the network resource to delete.
  809. * @param array $optParams Optional parameters.
  810. * @return Google_Operation
  811. */
  812. public function delete($project, $network, $optParams = array()) {
  813. $params = array('project' => $project, 'network' => $network);
  814. $params = array_merge($params, $optParams);
  815. $data = $this->__call('delete', array($params));
  816. if ($this->useObjects()) {
  817. return new Google_Operation($data);
  818. } else {
  819. return $data;
  820. }
  821. }
  822. }
  823. /**
  824. * The "projects" collection of methods.
  825. * Typical usage is:
  826. * <code>
  827. * $computeService = new Google_ComputeService(...);
  828. * $projects = $computeService->projects;
  829. * </code>
  830. */
  831. class Google_ProjectsServiceResource extends Google_ServiceResource {
  832. /**
  833. * Sets metadata common to all instances within the specified project using the data included in the
  834. * request. (projects.setCommonInstanceMetadata)
  835. *
  836. * @param string $project Name of the project scoping this request.
  837. * @param Google_Metadata $postBody
  838. * @param array $optParams Optional parameters.
  839. */
  840. public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
  841. $params = array('project' => $project, 'postBody' => $postBody);
  842. $params = array_merge($params, $optParams);
  843. $data = $this->__call('setCommonInstanceMetadata', array($params));
  844. return $data;
  845. }
  846. /**
  847. * Returns the specified project resource. (projects.get)
  848. *
  849. * @param string $project Name of the project resource to retrieve.
  850. * @param array $optParams Optional parameters.
  851. * @return Google_Project
  852. */
  853. public function get($project, $optParams = array()) {
  854. $params = array('project' => $project);
  855. $params = array_merge($params, $optParams);
  856. $data = $this->__call('get', array($params));
  857. if ($this->useObjects()) {
  858. return new Google_Project($data);
  859. } else {
  860. return $data;
  861. }
  862. }
  863. }
  864. /**
  865. * Service definition for Google_Compute (v1beta12).
  866. *
  867. * <p>
  868. * API for the Google Compute Engine service.
  869. * </p>
  870. *
  871. * <p>
  872. * For more information about this service, see the
  873. * <a href="https://developers.google.com/compute/docs/reference/v1beta12" target="_blank">API Documentation</a>
  874. * </p>
  875. *
  876. * @author Google, Inc.
  877. */
  878. class Google_ComputeService extends Google_Service {
  879. public $operations;
  880. public $kernels;
  881. public $disks;
  882. public $snapshots;
  883. public $zones;
  884. public $instances;
  885. public $machineTypes;
  886. public $images;
  887. public $firewalls;
  888. public $networks;
  889. public $projects;
  890. /**
  891. * Constructs the internal representation of the Compute service.
  892. *
  893. * @param Google_Client $client
  894. */
  895. public function __construct(Google_Client $client) {
  896. $this->servicePath = 'compute/v1beta12/projects/';
  897. $this->version = 'v1beta12';
  898. $this->serviceName = 'compute';
  899. $client->addService($this->serviceName, $this->version);
  900. $this->operations = new Google_OperationsServiceResource($this, $this->serviceName, 'operations', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "id": "compute.operations.get", "httpMethod": "GET", "path": "{project}/operations/{operation}", "response": {"$ref": "Operation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.operations.list", "httpMethod": "GET", "path": "{project}/operations", "response": {"$ref": "OperationList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "path": "{project}/operations/{operation}", "id": "compute.operations.delete", "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "operation": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  901. $this->kernels = new Google_KernelsServiceResource($this, $this->serviceName, 'kernels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.kernels.list", "httpMethod": "GET", "path": "{project}/kernels", "response": {"$ref": "KernelList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "kernel": {"required": true, "type": "string", "location": "path"}}, "id": "compute.kernels.get", "httpMethod": "GET", "path": "{project}/kernels/{kernel}", "response": {"$ref": "Kernel"}}}}', true));
  902. $this->disks = new Google_DisksServiceResource($this, $this->serviceName, 'disks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Disk"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/disks", "id": "compute.disks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.get", "httpMethod": "GET", "path": "{project}/disks/{disk}", "response": {"$ref": "Disk"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.disks.list", "httpMethod": "GET", "path": "{project}/disks", "response": {"$ref": "DiskList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "disk": {"required": true, "type": "string", "location": "path"}}, "id": "compute.disks.delete", "httpMethod": "DELETE", "path": "{project}/disks/{disk}", "response": {"$ref": "Operation"}}}}', true));
  903. $this->snapshots = new Google_SnapshotsServiceResource($this, $this->serviceName, 'snapshots', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Snapshot"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/snapshots", "id": "compute.snapshots.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.get", "httpMethod": "GET", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Snapshot"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.snapshots.list", "httpMethod": "GET", "path": "{project}/snapshots", "response": {"$ref": "SnapshotList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "snapshot": {"required": true, "type": "string", "location": "path"}}, "id": "compute.snapshots.delete", "httpMethod": "DELETE", "path": "{project}/snapshots/{snapshot}", "response": {"$ref": "Operation"}}}}', true));
  904. $this->zones = new Google_ZonesServiceResource($this, $this->serviceName, 'zones', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.zones.list", "httpMethod": "GET", "path": "{project}/zones", "response": {"$ref": "ZoneList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "zone": {"required": true, "type": "string", "location": "path"}}, "id": "compute.zones.get", "httpMethod": "GET", "path": "{project}/zones/{zone}", "response": {"$ref": "Zone"}}}}', true));
  905. $this->instances = new Google_InstancesServiceResource($this, $this->serviceName, 'instances', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Instance"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances", "id": "compute.instances.insert"}, "deleteAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "access_config": {"required": true, "type": "string", "location": "query"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "id": "compute.instances.deleteAccessConfig", "httpMethod": "POST", "path": "{project}/instances/{instance}/delete-access-config", "response": {"$ref": "Operation"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.get", "httpMethod": "GET", "path": "{project}/instances/{instance}", "response": {"$ref": "Instance"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.instances.list", "httpMethod": "GET", "path": "{project}/instances", "response": {"$ref": "InstanceList"}}, "addAccessConfig": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}, "network_interface": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "AccessConfig"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/instances/{instance}/add-access-config", "id": "compute.instances.addAccessConfig"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "instance": {"required": true, "type": "string", "location": "path"}}, "id": "compute.instances.delete", "httpMethod": "DELETE", "path": "{project}/instances/{instance}", "response": {"$ref": "Operation"}}}}', true));
  906. $this->machineTypes = new Google_MachineTypesServiceResource($this, $this->serviceName, 'machineTypes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.machineTypes.list", "httpMethod": "GET", "path": "{project}/machine-types", "response": {"$ref": "MachineTypeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "machineType": {"required": true, "type": "string", "location": "path"}}, "id": "compute.machineTypes.get", "httpMethod": "GET", "path": "{project}/machine-types/{machineType}", "response": {"$ref": "MachineType"}}}}', true));
  907. $this->images = new Google_ImagesServiceResource($this, $this->serviceName, 'images', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.read_only"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Image"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/images", "id": "compute.images.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.get", "httpMethod": "GET", "path": "{project}/images/{image}", "response": {"$ref": "Image"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.images.list", "httpMethod": "GET", "path": "{project}/images", "response": {"$ref": "ImageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "image": {"required": true, "type": "string", "location": "path"}}, "id": "compute.images.delete", "httpMethod": "DELETE", "path": "{project}/images/{image}", "response": {"$ref": "Operation"}}}}', true));
  908. $this->firewalls = new Google_FirewallsServiceResource($this, $this->serviceName, 'firewalls', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/firewalls", "id": "compute.firewalls.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.get", "httpMethod": "GET", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Firewall"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.firewalls.list", "httpMethod": "GET", "path": "{project}/firewalls", "response": {"$ref": "FirewallList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PUT", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "httpMethod": "PATCH", "path": "{project}/firewalls/{firewall}", "id": "compute.firewalls.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"firewall": {"required": true, "type": "string", "location": "path"}, "project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.firewalls.delete", "httpMethod": "DELETE", "path": "{project}/firewalls/{firewall}", "response": {"$ref": "Operation"}}}}', true));
  909. $this->networks = new Google_NetworksServiceResource($this, $this->serviceName, 'networks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Network"}, "response": {"$ref": "Operation"}, "httpMethod": "POST", "path": "{project}/networks", "id": "compute.networks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.get", "httpMethod": "GET", "path": "{project}/networks/{network}", "response": {"$ref": "Network"}}, "list": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"filter": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "compute.networks.list", "httpMethod": "GET", "path": "{project}/networks", "response": {"$ref": "NetworkList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}, "network": {"required": true, "type": "string", "location": "path"}}, "id": "compute.networks.delete", "httpMethod": "DELETE", "path": "{project}/networks/{network}", "response": {"$ref": "Operation"}}}}', true));
  910. $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"setCommonInstanceMetadata": {"scopes": ["https://www.googleapis.com/auth/compute"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Metadata"}, "httpMethod": "POST", "path": "{project}/set-common-instance-metadata", "id": "compute.projects.setCommonInstanceMetadata"}, "get": {"scopes": ["https://www.googleapis.com/auth/compute.readonly"], "parameters": {"project": {"required": true, "type": "string", "location": "path"}}, "id": "compute.projects.get", "httpMethod": "GET", "path": "{project}", "response": {"$ref": "Project"}}}}', true));
  911. }
  912. }
  913. class Google_AccessConfig extends Google_Model {
  914. public $kind;
  915. public $type;
  916. public $name;
  917. public $natIP;
  918. public function setKind($kind) {
  919. $this->kind = $kind;
  920. }
  921. public function getKind() {
  922. return $this->kind;
  923. }
  924. public function setType($type) {
  925. $this->type = $type;
  926. }
  927. public function getType() {
  928. return $this->type;
  929. }
  930. public function setName($name) {
  931. $this->name = $name;
  932. }
  933. public function getName() {
  934. return $this->name;
  935. }
  936. public function setNatIP($natIP) {
  937. $this->natIP = $natIP;
  938. }
  939. public function getNatIP() {
  940. return $this->natIP;
  941. }
  942. }
  943. class Google_AttachedDisk extends Google_Model {
  944. public $deviceName;
  945. public $kind;
  946. public $index;
  947. public $source;
  948. public $mode;
  949. public $deleteOnTerminate;
  950. public $type;
  951. public function setDeviceName($deviceName) {
  952. $this->deviceName = $deviceName;
  953. }
  954. public function getDeviceName() {
  955. return $this->deviceName;
  956. }
  957. public function setKind($kind) {
  958. $this->kind = $kind;
  959. }
  960. public function getKind() {
  961. return $this->kind;
  962. }
  963. public function setIndex($index) {
  964. $this->index = $index;
  965. }
  966. public function getIndex() {
  967. return $this->index;
  968. }
  969. public function setSource($source) {
  970. $this->source = $source;
  971. }
  972. public function getSource() {
  973. return $this->source;
  974. }
  975. public function setMode($mode) {
  976. $this->mode = $mode;
  977. }
  978. public function getMode() {
  979. return $this->mode;
  980. }
  981. public function setDeleteOnTerminate($deleteOnTerminate) {
  982. $this->deleteOnTerminate = $deleteOnTerminate;
  983. }
  984. public function getDeleteOnTerminate() {
  985. return $this->deleteOnTerminate;
  986. }
  987. public function setType($type) {
  988. $this->type = $type;
  989. }
  990. public function getType() {
  991. return $this->type;
  992. }
  993. }
  994. class Google_Disk extends Google_Model {
  995. public $status;
  996. public $sourceSnapshot;
  997. public $kind;
  998. public $description;
  999. public $sizeGb;
  1000. public $id;
  1001. public $sourceSnapshotId;
  1002. public $zone;
  1003. public $creationTimestamp;
  1004. public $options;
  1005. public $selfLink;
  1006. public $name;
  1007. public function setStatus($status) {
  1008. $this->status = $status;
  1009. }
  1010. public function getStatus() {
  1011. return $this->status;
  1012. }
  1013. public function setSourceSnapshot($sourceSnapshot) {
  1014. $this->sourceSnapshot = $sourceSnapshot;
  1015. }
  1016. public function getSourceSnapshot() {
  1017. return $this->sourceSnapshot;
  1018. }
  1019. public function setKind($kind) {
  1020. $this->kind = $kind;
  1021. }
  1022. public function getKind() {
  1023. return $this->kind;
  1024. }
  1025. public function setDescription($description) {
  1026. $this->description = $description;
  1027. }
  1028. public function getDescription() {
  1029. return $this->description;
  1030. }
  1031. public function setSizeGb($sizeGb) {
  1032. $this->sizeGb = $sizeGb;
  1033. }
  1034. public function getSizeGb() {
  1035. return $this->sizeGb;
  1036. }
  1037. public function setId($id) {
  1038. $this->id = $id;
  1039. }
  1040. public function getId() {
  1041. return $this->id;
  1042. }
  1043. public function setSourceSnapshotId($sourceSnapshotId) {
  1044. $this->sourceSnapshotId = $sourceSnapshotId;
  1045. }
  1046. public function getSourceSnapshotId() {
  1047. return $this->sourceSnapshotId;
  1048. }
  1049. public function setZone($zone) {
  1050. $this->zone = $zone;
  1051. }
  1052. public function getZone() {
  1053. return $this->zone;
  1054. }
  1055. public function setCreationTimestamp($creationTimestamp) {
  1056. $this->creationTimestamp = $creationTimestamp;
  1057. }
  1058. public function getCreationTimestamp() {
  1059. return $this->creationTimestamp;
  1060. }
  1061. public function setOptions($options) {
  1062. $this->options = $options;
  1063. }
  1064. public function getOptions() {
  1065. return $this->options;
  1066. }
  1067. public function setSelfLink($selfLink) {
  1068. $this->selfLink = $selfLink;
  1069. }
  1070. public function getSelfLink() {
  1071. return $this->selfLink;
  1072. }
  1073. public function setName($name) {
  1074. $this->name = $name;
  1075. }
  1076. public function getName() {
  1077. return $this->name;
  1078. }
  1079. }
  1080. class Google_DiskList extends Google_Model {
  1081. public $nextPageToken;
  1082. protected $__itemsType = 'Google_Disk';
  1083. protected $__itemsDataType = 'array';
  1084. public $items;
  1085. public $kind;
  1086. public $id;
  1087. public $selfLink;
  1088. public function setNextPageToken($nextPageToken) {
  1089. $this->nextPageToken = $nextPageToken;
  1090. }
  1091. public function getNextPageToken() {
  1092. return $this->nextPageToken;
  1093. }
  1094. public function setItems($items) {
  1095. $this->assertIsArray($items, 'Google_Disk', __METHOD__);
  1096. $this->items = $items;
  1097. }
  1098. public function getItems() {
  1099. return $this->items;
  1100. }
  1101. public function setKind($kind) {
  1102. $this->kind = $kind;
  1103. }
  1104. public function getKind() {
  1105. return $this->kind;
  1106. }
  1107. public function setId($id) {
  1108. $this->id = $id;
  1109. }
  1110. public function getId() {
  1111. return $this->id;
  1112. }
  1113. public function setSelfLink($selfLink) {
  1114. $this->selfLink = $selfLink;
  1115. }
  1116. public function getSelfLink() {
  1117. return $this->selfLink;
  1118. }
  1119. }
  1120. class Google_Firewall extends Google_Model {
  1121. public $kind;
  1122. public $description;
  1123. public $sourceTags;
  1124. public $sourceRanges;
  1125. public $network;
  1126. public $targetTags;
  1127. protected $__allowedType = 'Google_FirewallAllowed';
  1128. protected $__allowedDataType = 'array';
  1129. public $allowed;
  1130. public $creationTimestamp;
  1131. public $id;
  1132. public $selfLink;
  1133. public $name;
  1134. public function setKind($kind) {
  1135. $this->kind = $kind;
  1136. }
  1137. public function getKind() {
  1138. return $this->kind;
  1139. }
  1140. public function setDescription($description) {
  1141. $this->description = $description;
  1142. }
  1143. public function getDescription() {
  1144. return $this->description;
  1145. }
  1146. public function setSourceTags($sourceTags) {
  1147. $this->sourceTags = $sourceTags;
  1148. }
  1149. public function getSourceTags() {
  1150. return $this->sourceTags;
  1151. }
  1152. public function setSourceRanges($sourceRanges) {
  1153. $this->sourceRanges = $sourceRanges;
  1154. }
  1155. public function getSourceRanges() {
  1156. return $this->sourceRanges;
  1157. }
  1158. public function setNetwork($network) {
  1159. $this->network = $network;
  1160. }
  1161. public function getNetwork() {
  1162. return $this->network;
  1163. }
  1164. public function setTargetTags($targetTags) {
  1165. $this->targetTags = $targetTags;
  1166. }
  1167. public function getTargetTags() {
  1168. return $this->targetTags;
  1169. }
  1170. public function setAllowed($allowed) {
  1171. $this->assertIsArray($allowed, 'Google_FirewallAllowed', __METHOD__);
  1172. $this->allowed = $allowed;
  1173. }
  1174. public function getAllowed() {
  1175. return $this->allowed;
  1176. }
  1177. public function setCreationTimestamp($creationTimestamp) {
  1178. $this->creationTimestamp = $creationTimestamp;
  1179. }
  1180. public function getCreationTimestamp() {
  1181. return $this->creationTimestamp;
  1182. }
  1183. public function setId($id) {
  1184. $this->id = $id;
  1185. }
  1186. public function getId() {
  1187. return $this->id;
  1188. }
  1189. public function setSelfLink($selfLink) {
  1190. $this->selfLink = $selfLink;
  1191. }
  1192. public function getSelfLink() {
  1193. return $this->selfLink;
  1194. }
  1195. public function setName($name) {
  1196. $this->name = $name;
  1197. }
  1198. public function getName() {
  1199. return $this->name;
  1200. }
  1201. }
  1202. class Google_FirewallAllowed extends Google_Model {
  1203. public $IPProtocol;
  1204. public $ports;
  1205. public function setIPProtocol($IPProtocol) {
  1206. $this->IPProtocol = $IPProtocol;
  1207. }
  1208. public function getIPProtocol() {
  1209. return $this->IPProtocol;
  1210. }
  1211. public function setPorts($ports) {
  1212. $this->ports = $ports;
  1213. }
  1214. public function getPorts() {
  1215. return $this->ports;
  1216. }
  1217. }
  1218. class Google_FirewallList extends Google_Model {
  1219. public $nextPageToken;
  1220. protected $__itemsType = 'Google_Firewall';
  1221. protected $__itemsDataType = 'array';
  1222. public $items;
  1223. public $kind;
  1224. public $id;
  1225. public $selfLink;
  1226. public function setNextPageToken($nextPageToken) {
  1227. $this->nextPageToken = $nextPageToken;
  1228. }
  1229. public function getNextPageToken() {
  1230. return $this->nextPageToken;
  1231. }
  1232. public function setItems($items) {
  1233. $this->assertIsArray($items, 'Google_Firewall', __METHOD__);
  1234. $this->items = $items;
  1235. }
  1236. public function getItems() {
  1237. return $this->items;
  1238. }
  1239. public function setKind($kind) {
  1240. $this->kind = $kind;
  1241. }
  1242. public function getKind() {
  1243. return $this->kind;
  1244. }
  1245. public function setId($id) {
  1246. $this->id = $id;
  1247. }
  1248. public function getId() {
  1249. return $this->id;
  1250. }
  1251. public function setSelfLink($selfLink) {
  1252. $this->selfLink = $selfLink;
  1253. }
  1254. public function getSelfLink() {
  1255. return $this->selfLink;
  1256. }
  1257. }
  1258. class Google_Image extends Google_Model {
  1259. public $kind;
  1260. public $description;
  1261. protected $__rawDiskType = 'Google_ImageRawDisk';
  1262. protected $__rawDiskDataType = '';
  1263. public $rawDisk;
  1264. public $preferredKernel;
  1265. protected $__diskSnapshotType = 'Google_ImageDiskSnapshot';
  1266. protected $__diskSnapshotDataType = '';
  1267. public $diskSnapshot;
  1268. public $sourceType;
  1269. public $creationTimestamp;
  1270. public $id;
  1271. public $selfLink;
  1272. public $name;
  1273. public function setKind($kind) {
  1274. $this->kind = $kind;
  1275. }
  1276. public function getKind() {
  1277. return $this->kind;
  1278. }
  1279. public function setDescription($description) {
  1280. $this->description = $description;
  1281. }
  1282. public function getDescription() {
  1283. return $this->description;
  1284. }
  1285. public function setRawDisk(Google_ImageRawDisk $rawDisk) {
  1286. $this->rawDisk = $rawDisk;
  1287. }
  1288. public function getRawDisk() {
  1289. return $this->rawDisk;
  1290. }
  1291. public function setPreferredKernel($preferredKernel) {
  1292. $this->preferredKernel = $preferredKernel;
  1293. }
  1294. public function getPreferredKernel() {
  1295. return $this->preferredKernel;
  1296. }
  1297. public function setDiskSnapshot(Google_ImageDiskSnapshot $diskSnapshot) {
  1298. $this->diskSnapshot = $diskSnapshot;
  1299. }
  1300. public function getDiskSnapshot() {
  1301. return $this->diskSnapshot;
  1302. }
  1303. public function setSourceType($sourceType) {
  1304. $this->sourceType = $sourceType;
  1305. }
  1306. public function getSourceType() {
  1307. return $this->sourceType;
  1308. }
  1309. public function setCreationTimestamp($creationTimestamp) {
  1310. $this->creationTimestamp = $creationTimestamp;
  1311. }
  1312. public function getCreationTimestamp() {
  1313. return $this->creationTimestamp;
  1314. }
  1315. public function setId($id) {
  1316. $this->id = $id;
  1317. }
  1318. public function getId() {
  1319. return $this->id;
  1320. }
  1321. public function setSelfLink($selfLink) {
  1322. $this->selfLink = $selfLink;
  1323. }
  1324. public function getSelfLink() {
  1325. return $this->selfLink;
  1326. }
  1327. public function setName($name) {
  1328. $this->name = $name;
  1329. }
  1330. public function getName() {
  1331. return $this->name;
  1332. }
  1333. }
  1334. class Google_ImageDiskSnapshot extends Google_Model {
  1335. public $source;
  1336. public function setSource($source) {
  1337. $this->source = $source;
  1338. }
  1339. public function getSource() {
  1340. return $this->source;
  1341. }
  1342. }
  1343. class Google_ImageList extends Google_Model {
  1344. public $nextPageToken;
  1345. protected $__itemsType = 'Google_Image';
  1346. protected $__itemsDataType = 'array';
  1347. public $items;
  1348. public $kind;
  1349. public $id;
  1350. public $selfLink;
  1351. public function setNextPageToken($nextPageToken) {
  1352. $this->nextPageToken = $nextPageToken;
  1353. }
  1354. public function getNextPageToken() {
  1355. return $this->nextPageToken;
  1356. }
  1357. public function setItems($items) {
  1358. $this->assertIsArray($items, 'Google_Image', __METHOD__);
  1359. $this->items = $items;
  1360. }
  1361. public function getItems() {
  1362. return $this->items;
  1363. }
  1364. public function setKind($kind) {
  1365. $this->kind = $kind;
  1366. }
  1367. public function getKind() {
  1368. return $this->kind;
  1369. }
  1370. public function setId($id) {
  1371. $this->id = $id;
  1372. }
  1373. public function getId() {
  1374. return $this->id;
  1375. }
  1376. public function setSelfLink($selfLink) {
  1377. $this->selfLink = $selfLink;
  1378. }
  1379. public function getSelfLink() {
  1380. return $this->selfLink;
  1381. }
  1382. }
  1383. class Google_ImageRawDisk extends Google_Model {
  1384. public $containerType;
  1385. public $source;
  1386. public $sha1Checksum;
  1387. public function setContainerType($containerType) {
  1388. $this->containerType = $containerType;
  1389. }
  1390. public function getContainerType() {
  1391. return $this->containerType;
  1392. }
  1393. public function setSource($source) {
  1394. $this->source = $source;
  1395. }
  1396. public function getSource() {
  1397. return $this->source;
  1398. }
  1399. public function setSha1Checksum($sha1Checksum) {
  1400. $this->sha1Checksum = $sha1Checksum;
  1401. }
  1402. public function getSha1Checksum() {
  1403. return $this->sha1Checksum;
  1404. }
  1405. }
  1406. class Google_Instance extends Google_Model {
  1407. public $status;
  1408. public $kind;
  1409. public $machineType;
  1410. public $description;
  1411. public $zone;
  1412. public $tags;
  1413. public $image;
  1414. protected $__disksType = 'Google_AttachedDisk';
  1415. protected $__disksDataType = 'array';
  1416. public $disks;
  1417. public $name;
  1418. public $statusMessage;
  1419. protected $__serviceAccountsType = 'Google_ServiceAccount';
  1420. protected $__serviceAccountsDataType = 'array';
  1421. public $serviceAccounts;
  1422. protected $__networkInterfacesType = 'Google_NetworkInterface';
  1423. protected $__networkInterfacesDataType = 'array';
  1424. public $networkInterfaces;
  1425. public $creationTimestamp;
  1426. public $id;
  1427. public $selfLink;
  1428. protected $__metadataType = 'Google_Metadata';
  1429. protected $__metadataDataType = '';
  1430. public $metadata;
  1431. public function setStatus($status) {
  1432. $this->status = $status;
  1433. }
  1434. public function getStatus() {
  1435. return $this->status;
  1436. }
  1437. public function setKind($kind) {
  1438. $this->kind = $kind;
  1439. }
  1440. public function getKind() {
  1441. return $this->kind;
  1442. }
  1443. public function setMachineType($machineType) {
  1444. $this->machineType = $machineType;
  1445. }
  1446. public function getMachineType() {
  1447. return $this->machineType;
  1448. }
  1449. public function setDescription($description) {
  1450. $this->description = $description;
  1451. }
  1452. public function getDescription() {
  1453. return $this->description;
  1454. }
  1455. public function setZone($zone) {
  1456. $this->zone = $zone;
  1457. }
  1458. public function getZone() {
  1459. return $this->zone;
  1460. }
  1461. public function setTags($tags) {
  1462. $this->tags = $tags;
  1463. }
  1464. public function getTags() {
  1465. return $this->tags;
  1466. }
  1467. public function setImage($image) {
  1468. $this->image = $image;
  1469. }
  1470. public function getImage() {
  1471. return $this->image;
  1472. }
  1473. public function setDisks($disks) {
  1474. $this->assertIsArray($disks, 'Google_AttachedDisk', __METHOD__);
  1475. $this->disks = $disks;
  1476. }
  1477. public function getDisks() {
  1478. return $this->disks;
  1479. }
  1480. public function setName($name) {
  1481. $this->name = $name;
  1482. }
  1483. public function getName() {
  1484. return $this->name;
  1485. }
  1486. public function setStatusMessage($statusMessage) {
  1487. $this->statusMessage = $statusMessage;
  1488. }
  1489. public function getStatusMessage() {
  1490. return $this->statusMessage;
  1491. }
  1492. public function setServiceAccounts($serviceAccounts) {
  1493. $this->assertIsArray($serviceAccounts, 'Google_ServiceAccount', __METHOD__);
  1494. $this->serviceAccounts = $serviceAccounts;
  1495. }
  1496. public function getServiceAccounts() {
  1497. return $this->serviceAccounts;
  1498. }
  1499. public function setNetworkInterfaces($networkInterfaces) {
  1500. $this->assertIsArray($networkInterfaces, 'Google_NetworkInterface', __METHOD__);
  1501. $this->networkInterfaces = $networkInterfaces;
  1502. }
  1503. public function getNetworkInterfaces() {
  1504. return $this->networkInterfaces;
  1505. }
  1506. public function setCreationTimestamp($creationTimestamp) {
  1507. $this->creationTimestamp = $creationTimestamp;
  1508. }
  1509. public function getCreationTimestamp() {
  1510. return $this->creationTimestamp;
  1511. }
  1512. public function setId($id) {
  1513. $this->id = $id;
  1514. }
  1515. public function getId() {
  1516. return $this->id;
  1517. }
  1518. public function setSelfLink($selfLink) {
  1519. $this->selfLink = $selfLink;
  1520. }
  1521. public function getSelfLink() {
  1522. return $this->selfLink;
  1523. }
  1524. public function setMetadata(Google_Metadata $metadata) {
  1525. $this->metadata = $metadata;
  1526. }
  1527. public function getMetadata() {
  1528. return $this->metadata;
  1529. }
  1530. }
  1531. class Google_InstanceList extends Google_Model {
  1532. public $nextPageToken;
  1533. protected $__itemsType = 'Google_Instance';
  1534. protected $__itemsDataType = 'array';
  1535. public $items;
  1536. public $kind;
  1537. public $id;
  1538. public $selfLink;
  1539. public function setNextPageToken($nextPageToken) {
  1540. $this->nextPageToken = $nextPageToken;
  1541. }
  1542. public function getNextPageToken() {
  1543. return $this->nextPageToken;
  1544. }
  1545. public function setItems($items) {
  1546. $this->assertIsArray($items, 'Google_Instance', __METHOD__);
  1547. $this->items = $items;
  1548. }
  1549. public function getItems() {
  1550. return $this->items;
  1551. }
  1552. public function setKind($kind) {
  1553. $this->kind = $kind;
  1554. }
  1555. public function getKind() {
  1556. return $this->kind;
  1557. }
  1558. public function setId($id) {
  1559. $this->id = $id;
  1560. }
  1561. public function getId() {
  1562. return $this->id;
  1563. }
  1564. public function setSelfLink($selfLink) {
  1565. $this->selfLink = $selfLink;
  1566. }
  1567. public function getSelfLink() {
  1568. return $this->selfLink;
  1569. }
  1570. }
  1571. class Google_Kernel extends Google_Model {
  1572. public $kind;
  1573. public $description;
  1574. public $creationTimestamp;
  1575. public $id;
  1576. public $selfLink;
  1577. public $name;
  1578. public function setKind($kind) {
  1579. $this->kind = $kind;
  1580. }
  1581. public function getKind() {
  1582. return $this->kind;
  1583. }
  1584. public function setDescription($description) {
  1585. $this->description = $description;
  1586. }
  1587. public function getDescription() {
  1588. return $this->description;
  1589. }
  1590. public function setCreationTimestamp($creationTimestamp) {
  1591. $this->creationTimestamp = $creationTimestamp;
  1592. }
  1593. public function getCreationTimestamp() {
  1594. return $this->creationTimestamp;
  1595. }
  1596. public function setId($id) {
  1597. $this->id = $id;
  1598. }
  1599. public function getId() {
  1600. return $this->id;
  1601. }
  1602. public function setSelfLink($selfLink) {
  1603. $this->selfLink = $selfLink;
  1604. }
  1605. public function getSelfLink() {
  1606. return $this->selfLink;
  1607. }
  1608. public function setName($name) {
  1609. $this->name = $name;
  1610. }
  1611. public function getName() {
  1612. return $this->name;
  1613. }
  1614. }
  1615. class Google_KernelList extends Google_Model {
  1616. public $nextPageToken;
  1617. protected $__itemsType = 'Google_Kernel';
  1618. protected $__itemsDataType = 'array';
  1619. public $items;
  1620. public $kind;
  1621. public $id;
  1622. public $selfLink;
  1623. public function setNextPageToken($nextPageToken) {
  1624. $this->nextPageToken = $nextPageToken;
  1625. }
  1626. public function getNextPageToken() {
  1627. return $this->nextPageToken;
  1628. }
  1629. public function setItems($items) {
  1630. $this->assertIsArray($items, 'Google_Kernel', __METHOD__);
  1631. $this->items = $items;
  1632. }
  1633. public function getItems() {
  1634. return $this->items;
  1635. }
  1636. public function setKind($kind) {
  1637. $this->kind = $kind;
  1638. }
  1639. public function getKind() {
  1640. return $this->kind;
  1641. }
  1642. public function setId($id) {
  1643. $this->id = $id;
  1644. }
  1645. public function getId() {
  1646. return $this->id;
  1647. }
  1648. public function setSelfLink($selfLink) {
  1649. $this->selfLink = $selfLink;
  1650. }
  1651. public function getSelfLink() {
  1652. return $this->selfLink;
  1653. }
  1654. }
  1655. class Google_MachineType extends Google_Model {
  1656. public $guestCpus;
  1657. public $imageSpaceGb;
  1658. public $kind;
  1659. protected $__ephemeralDisksType = 'Google_MachineTypeEphemeralDisks';
  1660. protected $__ephemeralDisksDataType = 'array';
  1661. public $ephemeralDisks;
  1662. public $maximumPersistentDisksSizeGb;
  1663. public $description;
  1664. public $maximumPersistentDisks;
  1665. public $name;
  1666. public $memoryMb;
  1667. public $availableZone;
  1668. public $creationTimestamp;
  1669. public $id;
  1670. public $selfLink;
  1671. public $hostCpus;
  1672. public function setGuestCpus($guestCpus) {
  1673. $this->guestCpus = $guestCpus;
  1674. }
  1675. public function getGuestCpus() {
  1676. return $this->guestCpus;
  1677. }
  1678. public function setImageSpaceGb($imageSpaceGb) {
  1679. $this->imageSpaceGb = $imageSpaceGb;
  1680. }
  1681. public function getImageSpaceGb() {
  1682. return $this->imageSpaceGb;
  1683. }
  1684. public function setKind($kind) {
  1685. $this->kind = $kind;
  1686. }
  1687. public function getKind() {
  1688. return $this->kind;
  1689. }
  1690. public function setEphemeralDisks($ephemeralDisks) {
  1691. $this->assertIsArray($ephemeralDisks, 'Google_MachineTypeEphemeralDisks', __METHOD__);
  1692. $this->ephemeralDisks = $ephemeralDisks;
  1693. }
  1694. public function getEphemeralDisks() {
  1695. return $this->ephemeralDisks;
  1696. }
  1697. public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) {
  1698. $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb;
  1699. }
  1700. public function getMaximumPersistentDisksSizeGb() {
  1701. return $this->maximumPersistentDisksSizeGb;
  1702. }
  1703. public function setDescription($description) {
  1704. $this->description = $description;
  1705. }
  1706. public function getDescription() {
  1707. return $this->description;
  1708. }
  1709. public function setMaximumPersistentDisks($maximumPersistentDisks) {
  1710. $this->maximumPersistentDisks = $maximumPersistentDisks;
  1711. }
  1712. public function getMaximumPersistentDisks() {
  1713. return $this->maximumPersistentDisks;
  1714. }
  1715. public function setName($name) {
  1716. $this->name = $name;
  1717. }
  1718. public function getName() {
  1719. return $this->name;
  1720. }
  1721. public function setMemoryMb($memoryMb) {
  1722. $this->memoryMb = $memoryMb;
  1723. }
  1724. public function getMemoryMb() {
  1725. return $this->memoryMb;
  1726. }
  1727. public function setAvailableZone($availableZone) {
  1728. $this->availableZone = $availableZone;
  1729. }
  1730. public function getAvailableZone() {
  1731. return $this->availableZone;
  1732. }
  1733. public function setCreationTimestamp($creationTimestamp) {
  1734. $this->creationTimestamp = $creationTimestamp;
  1735. }
  1736. public function getCreationTimestamp() {
  1737. return $this->creationTimestamp;
  1738. }
  1739. public function setId($id) {
  1740. $this->id = $id;
  1741. }
  1742. public function getId() {
  1743. return $this->id;
  1744. }
  1745. public function setSelfLink($selfLink) {
  1746. $this->selfLink = $selfLink;
  1747. }
  1748. public function getSelfLink() {
  1749. return $this->selfLink;
  1750. }
  1751. public function setHostCpus($hostCpus) {
  1752. $this->hostCpus = $hostCpus;
  1753. }
  1754. public function getHostCpus() {
  1755. return $this->hostCpus;
  1756. }
  1757. }
  1758. class Google_MachineTypeEphemeralDisks extends Google_Model {
  1759. public $diskGb;
  1760. public function setDiskGb($diskGb) {
  1761. $this->diskGb = $diskGb;
  1762. }
  1763. public function getDiskGb() {
  1764. return $this->diskGb;
  1765. }
  1766. }
  1767. class Google_MachineTypeList extends Google_Model {
  1768. public $nextPageToken;
  1769. protected $__itemsType = 'Google_MachineType';
  1770. protected $__itemsDataType = 'array';
  1771. public $items;
  1772. public $kind;
  1773. public $id;
  1774. public $selfLink;
  1775. public function setNextPageToken($nextPageToken) {
  1776. $this->nextPageToken = $nextPageToken;
  1777. }
  1778. public function getNextPageToken() {
  1779. return $this->nextPageToken;
  1780. }
  1781. public function setItems($items) {
  1782. $this->assertIsArray($items, 'Google_MachineType', __METHOD__);
  1783. $this->items = $items;
  1784. }
  1785. public function getItems() {
  1786. return $this->items;
  1787. }
  1788. public function setKind($kind) {
  1789. $this->kind = $kind;
  1790. }
  1791. public function getKind() {
  1792. return $this->kind;
  1793. }
  1794. public function setId($id) {
  1795. $this->id = $id;
  1796. }
  1797. public function getId() {
  1798. return $this->id;
  1799. }
  1800. public function setSelfLink($selfLink) {
  1801. $this->selfLink = $selfLink;
  1802. }
  1803. public function getSelfLink() {
  1804. return $this->selfLink;
  1805. }
  1806. }
  1807. class Google_Metadata extends Google_Model {
  1808. protected $__itemsType = 'Google_MetadataItems';
  1809. protected $__itemsDataType = 'array';
  1810. public $items;
  1811. public $kind;
  1812. public function setItems($items) {
  1813. $this->assertIsArray($items, 'Google_MetadataItems', __METHOD__);
  1814. $this->items = $items;
  1815. }
  1816. public function getItems() {
  1817. return $this->items;
  1818. }
  1819. public function setKind($kind) {
  1820. $this->kind = $kind;
  1821. }
  1822. public function getKind() {
  1823. return $this->kind;
  1824. }
  1825. }
  1826. class Google_MetadataItems extends Google_Model {
  1827. public $value;
  1828. public $key;
  1829. public function setValue($value) {
  1830. $this->value = $value;
  1831. }
  1832. public function getValue() {
  1833. return $this->value;
  1834. }
  1835. public function setKey($key) {
  1836. $this->key = $key;
  1837. }
  1838. public function getKey() {
  1839. return $this->key;
  1840. }
  1841. }
  1842. class Google_Network extends Google_Model {
  1843. public $kind;
  1844. public $description;
  1845. public $IPv4Range;
  1846. public $gatewayIPv4;
  1847. public $creationTimestamp;
  1848. public $id;
  1849. public $selfLink;
  1850. public $name;
  1851. public function setKind($kind) {
  1852. $this->kind = $kind;
  1853. }
  1854. public function getKind() {
  1855. return $this->kind;
  1856. }
  1857. public function setDescription($description) {
  1858. $this->description = $description;
  1859. }
  1860. public function getDescription() {
  1861. return $this->description;
  1862. }
  1863. public function setIPv4Range($IPv4Range) {
  1864. $this->IPv4Range = $IPv4Range;
  1865. }
  1866. public function getIPv4Range() {
  1867. return $this->IPv4Range;
  1868. }
  1869. public function setGatewayIPv4($gatewayIPv4) {
  1870. $this->gatewayIPv4 = $gatewayIPv4;
  1871. }
  1872. public function getGatewayIPv4() {
  1873. return $this->gatewayIPv4;
  1874. }
  1875. public function setCreationTimestamp($creationTimestamp) {
  1876. $this->creationTimestamp = $creationTimestamp;
  1877. }
  1878. public function getCreationTimestamp() {
  1879. return $this->creationTimestamp;
  1880. }
  1881. public function setId($id) {
  1882. $this->id = $id;
  1883. }
  1884. public function getId() {
  1885. return $this->id;
  1886. }
  1887. public function setSelfLink($selfLink) {
  1888. $this->selfLink = $selfLink;
  1889. }
  1890. public function getSelfLink() {
  1891. return $this->selfLink;
  1892. }
  1893. public function setName($name) {
  1894. $this->name = $name;
  1895. }
  1896. public function getName() {
  1897. return $this->name;
  1898. }
  1899. }
  1900. class Google_NetworkInterface extends Google_Model {
  1901. public $network;
  1902. protected $__accessConfigsType = 'Google_AccessConfig';
  1903. protected $__accessConfigsDataType = 'array';
  1904. public $accessConfigs;
  1905. public $networkIP;
  1906. public $kind;
  1907. public $name;
  1908. public function setNetwork($network) {
  1909. $this->network = $network;
  1910. }
  1911. public function getNetwork() {
  1912. return $this->network;
  1913. }
  1914. public function setAccessConfigs($accessConfigs) {
  1915. $this->assertIsArray($accessConfigs, 'Google_AccessConfig', __METHOD__);
  1916. $this->accessConfigs = $accessConfigs;
  1917. }
  1918. public function getAccessConfigs() {
  1919. return $this->accessConfigs;
  1920. }
  1921. public function setNetworkIP($networkIP) {
  1922. $this->networkIP = $networkIP;
  1923. }
  1924. public function getNetworkIP() {
  1925. return $this->networkIP;
  1926. }
  1927. public function setKind($kind) {
  1928. $this->kind = $kind;
  1929. }
  1930. public function getKind() {
  1931. return $this->kind;
  1932. }
  1933. public function setName($name) {
  1934. $this->name = $name;
  1935. }
  1936. public function getName() {
  1937. return $this->name;
  1938. }
  1939. }
  1940. class Google_NetworkList extends Google_Model {
  1941. public $nextPageToken;
  1942. protected $__itemsType = 'Google_Network';
  1943. protected $__itemsDataType = 'array';
  1944. public $items;
  1945. public $kind;
  1946. public $id;
  1947. public $selfLink;
  1948. public function setNextPageToken($nextPageToken) {
  1949. $this->nextPageToken = $nextPageToken;
  1950. }
  1951. public function getNextPageToken() {
  1952. return $this->nextPageToken;
  1953. }
  1954. public function setItems($items) {
  1955. $this->assertIsArray($items, 'Google_Network', __METHOD__);
  1956. $this->items = $items;
  1957. }
  1958. public function getItems() {
  1959. return $this->items;
  1960. }
  1961. public function setKind($kind) {
  1962. $this->kind = $kind;
  1963. }
  1964. public function getKind() {
  1965. return $this->kind;
  1966. }
  1967. public function setId($id) {
  1968. $this->id = $id;
  1969. }
  1970. public function getId() {
  1971. return $this->id;
  1972. }
  1973. public function setSelfLink($selfLink) {
  1974. $this->selfLink = $selfLink;
  1975. }
  1976. public function getSelfLink() {
  1977. return $this->selfLink;
  1978. }
  1979. }
  1980. class Google_Operation extends Google_Model {
  1981. public $status;
  1982. public $kind;
  1983. public $name;
  1984. public $startTime;
  1985. public $httpErrorStatusCode;
  1986. public $user;
  1987. protected $__errorType = 'Google_OperationError';
  1988. protected $__errorDataType = '';
  1989. public $error;
  1990. public $targetId;
  1991. public $operationType;
  1992. public $statusMessage;
  1993. public $insertTime;
  1994. public $httpErrorMessage;
  1995. public $progress;
  1996. public $clientOperationId;
  1997. public $endTime;
  1998. public $creationTimestamp;
  1999. public $id;
  2000. public $selfLink;
  2001. public $targetLink;
  2002. public function setStatus($status) {
  2003. $this->status = $status;
  2004. }
  2005. public function getStatus() {
  2006. return $this->status;
  2007. }
  2008. public function setKind($kind) {
  2009. $this->kind = $kind;
  2010. }
  2011. public function getKind() {
  2012. return $this->kind;
  2013. }
  2014. public function setName($name) {
  2015. $this->name = $name;
  2016. }
  2017. public function getName() {
  2018. return $this->name;
  2019. }
  2020. public function setStartTime($startTime) {
  2021. $this->startTime = $startTime;
  2022. }
  2023. public function getStartTime() {
  2024. return $this->startTime;
  2025. }
  2026. public function setHttpErrorStatusCode($httpErrorStatusCode) {
  2027. $this->httpErrorStatusCode = $httpErrorStatusCode;
  2028. }
  2029. public function getHttpErrorStatusCode() {
  2030. return $this->httpErrorStatusCode;
  2031. }
  2032. public function setUser($user) {
  2033. $this->user = $user;
  2034. }
  2035. public function getUser() {
  2036. return $this->user;
  2037. }
  2038. public function setError(Google_OperationError $error) {
  2039. $this->error = $error;
  2040. }
  2041. public function getError() {
  2042. return $this->error;
  2043. }
  2044. public function setTargetId($targetId) {
  2045. $this->targetId = $targetId;
  2046. }
  2047. public function getTargetId() {
  2048. return $this->targetId;
  2049. }
  2050. public function setOperationType($operationType) {
  2051. $this->operationType = $operationType;
  2052. }
  2053. public function getOperationType() {
  2054. return $this->operationType;
  2055. }
  2056. public function setStatusMessage($statusMessage) {
  2057. $this->statusMessage = $statusMessage;
  2058. }
  2059. public function getStatusMessage() {
  2060. return $this->statusMessage;
  2061. }
  2062. public function setInsertTime($insertTime) {
  2063. $this->insertTime = $insertTime;
  2064. }
  2065. public function getInsertTime() {
  2066. return $this->insertTime;
  2067. }
  2068. public function setHttpErrorMessage($httpErrorMessage) {
  2069. $this->httpErrorMessage = $httpErrorMessage;
  2070. }
  2071. public function getHttpErrorMessage() {
  2072. return $this->httpErrorMessage;
  2073. }
  2074. public function setProgress($progress) {
  2075. $this->progress = $progress;
  2076. }
  2077. public function getProgress() {
  2078. return $this->progress;
  2079. }
  2080. public function setClientOperationId($clientOperationId) {
  2081. $this->clientOperationId = $clientOperationId;
  2082. }
  2083. public function getClientOperationId() {
  2084. return $this->clientOperationId;
  2085. }
  2086. public function setEndTime($endTime) {
  2087. $this->endTime = $endTime;
  2088. }
  2089. public function getEndTime() {
  2090. return $this->endTime;
  2091. }
  2092. public function setCreationTimestamp($creationTimestamp) {
  2093. $this->creationTimestamp = $creationTimestamp;
  2094. }
  2095. public function getCreationTimestamp() {
  2096. return $this->creationTimestamp;
  2097. }
  2098. public function setId($id) {
  2099. $this->id = $id;
  2100. }
  2101. public function getId() {
  2102. return $this->id;
  2103. }
  2104. public function setSelfLink($selfLink) {
  2105. $this->selfLink = $selfLink;
  2106. }
  2107. public function getSelfLink() {
  2108. return $this->selfLink;
  2109. }
  2110. public function setTargetLink($targetLink) {
  2111. $this->targetLink = $targetLink;
  2112. }
  2113. public function getTargetLink() {
  2114. return $this->targetLink;
  2115. }
  2116. }
  2117. class Google_OperationError extends Google_Model {
  2118. protected $__errorsType = 'Google_OperationErrorErrors';
  2119. protected $__errorsDataType = 'array';
  2120. public $errors;
  2121. public function setErrors($errors) {
  2122. $this->assertIsArray($errors, 'Google_OperationErrorErrors', __METHOD__);
  2123. $this->errors = $errors;
  2124. }
  2125. public function getErrors() {
  2126. return $this->errors;
  2127. }
  2128. }
  2129. class Google_OperationErrorErrors extends Google_Model {
  2130. public $message;
  2131. public $code;
  2132. public $location;
  2133. public function setMessage($message) {
  2134. $this->message = $message;
  2135. }
  2136. public function getMessage() {
  2137. return $this->message;
  2138. }
  2139. public function setCode($code) {
  2140. $this->code = $code;
  2141. }
  2142. public function getCode() {
  2143. return $this->code;
  2144. }
  2145. public function setLocation($location) {
  2146. $this->location = $location;
  2147. }
  2148. public function getLocation() {
  2149. return $this->location;
  2150. }
  2151. }
  2152. class Google_OperationList extends Google_Model {
  2153. public $nextPageToken;
  2154. protected $__itemsType = 'Google_Operation';
  2155. protected $__itemsDataType = 'array';
  2156. public $items;
  2157. public $kind;
  2158. public $id;
  2159. public $selfLink;
  2160. public function setNextPageToken($nextPageToken) {
  2161. $this->nextPageToken = $nextPageToken;
  2162. }
  2163. public function getNextPageToken() {
  2164. return $this->nextPageToken;
  2165. }
  2166. public function setItems($items) {
  2167. $this->assertIsArray($items, 'Google_Operation', __METHOD__);
  2168. $this->items = $items;
  2169. }
  2170. public function getItems() {
  2171. return $this->items;
  2172. }
  2173. public function setKind($kind) {
  2174. $this->kind = $kind;
  2175. }
  2176. public function getKind() {
  2177. return $this->kind;
  2178. }
  2179. public function setId($id) {
  2180. $this->id = $id;
  2181. }
  2182. public function getId() {
  2183. return $this->id;
  2184. }
  2185. public function setSelfLink($selfLink) {
  2186. $this->selfLink = $selfLink;
  2187. }
  2188. public function getSelfLink() {
  2189. return $this->selfLink;
  2190. }
  2191. }
  2192. class Google_Project extends Google_Model {
  2193. public $kind;
  2194. public $description;
  2195. protected $__commonInstanceMetadataType = 'Google_Metadata';
  2196. protected $__commonInstanceMetadataDataType = '';
  2197. public $commonInstanceMetadata;
  2198. public $externalIpAddresses;
  2199. protected $__quotasType = 'Google_ProjectQuotas';
  2200. protected $__quotasDataType = 'array';
  2201. public $quotas;
  2202. public $creationTimestamp;
  2203. public $id;
  2204. public $selfLink;
  2205. public $name;
  2206. public function setKind($kind) {
  2207. $this->kind = $kind;
  2208. }
  2209. public function getKind() {
  2210. return $this->kind;
  2211. }
  2212. public function setDescription($description) {
  2213. $this->description = $description;
  2214. }
  2215. public function getDescription() {
  2216. return $this->description;
  2217. }
  2218. public function setCommonInstanceMetadata(Google_Metadata $commonInstanceMetadata) {
  2219. $this->commonInstanceMetadata = $commonInstanceMetadata;
  2220. }
  2221. public function getCommonInstanceMetadata() {
  2222. return $this->commonInstanceMetadata;
  2223. }
  2224. public function setExternalIpAddresses($externalIpAddresses) {
  2225. $this->externalIpAddresses = $externalIpAddresses;
  2226. }
  2227. public function getExternalIpAddresses() {
  2228. return $this->externalIpAddresses;
  2229. }
  2230. public function setQuotas($quotas) {
  2231. $this->assertIsArray($quotas, 'Google_ProjectQuotas', __METHOD__);
  2232. $this->quotas = $quotas;
  2233. }
  2234. public function getQuotas() {
  2235. return $this->quotas;
  2236. }
  2237. public function setCreationTimestamp($creationTimestamp) {
  2238. $this->creationTimestamp = $creationTimestamp;
  2239. }
  2240. public function getCreationTimestamp() {
  2241. return $this->creationTimestamp;
  2242. }
  2243. public function setId($id) {
  2244. $this->id = $id;
  2245. }
  2246. public function getId() {
  2247. return $this->id;
  2248. }
  2249. public function setSelfLink($selfLink) {
  2250. $this->selfLink = $selfLink;
  2251. }
  2252. public function getSelfLink() {
  2253. return $this->selfLink;
  2254. }
  2255. public function setName($name) {
  2256. $this->name = $name;
  2257. }
  2258. public function getName() {
  2259. return $this->name;
  2260. }
  2261. }
  2262. class Google_ProjectQuotas extends Google_Model {
  2263. public $usage;
  2264. public $metric;
  2265. public $limit;
  2266. public function setUsage($usage) {
  2267. $this->usage = $usage;
  2268. }
  2269. public function getUsage() {
  2270. return $this->usage;
  2271. }
  2272. public function setMetric($metric) {
  2273. $this->metric = $metric;
  2274. }
  2275. public function getMetric() {
  2276. return $this->metric;
  2277. }
  2278. public function setLimit($limit) {
  2279. $this->limit = $limit;
  2280. }
  2281. public function getLimit() {
  2282. return $this->limit;
  2283. }
  2284. }
  2285. class Google_ServiceAccount extends Google_Model {
  2286. public $scopes;
  2287. public $kind;
  2288. public $email;
  2289. public function setScopes($scopes) {
  2290. $this->scopes = $scopes;
  2291. }
  2292. public function getScopes() {
  2293. return $this->scopes;
  2294. }
  2295. public function setKind($kind) {
  2296. $this->kind = $kind;
  2297. }
  2298. public function getKind() {
  2299. return $this->kind;
  2300. }
  2301. public function setEmail($email) {
  2302. $this->email = $email;
  2303. }
  2304. public function getEmail() {
  2305. return $this->email;
  2306. }
  2307. }
  2308. class Google_Snapshot extends Google_Model {
  2309. public $status;
  2310. public $kind;
  2311. public $description;
  2312. public $sourceDisk;
  2313. public $sourceDiskId;
  2314. public $diskSizeGb;
  2315. public $creationTimestamp;
  2316. public $id;
  2317. public $selfLink;
  2318. public $name;
  2319. public function setStatus($status) {
  2320. $this->status = $status;
  2321. }
  2322. public function getStatus() {
  2323. return $this->status;
  2324. }
  2325. public function setKind($kind) {
  2326. $this->kind = $kind;
  2327. }
  2328. public function getKind() {
  2329. return $this->kind;
  2330. }
  2331. public function setDescription($description) {
  2332. $this->description = $description;
  2333. }
  2334. public function getDescription() {
  2335. return $this->description;
  2336. }
  2337. public function setSourceDisk($sourceDisk) {
  2338. $this->sourceDisk = $sourceDisk;
  2339. }
  2340. public function getSourceDisk() {
  2341. return $this->sourceDisk;
  2342. }
  2343. public function setSourceDiskId($sourceDiskId) {
  2344. $this->sourceDiskId = $sourceDiskId;
  2345. }
  2346. public function getSourceDiskId() {
  2347. return $this->sourceDiskId;
  2348. }
  2349. public function setDiskSizeGb($diskSizeGb) {
  2350. $this->diskSizeGb = $diskSizeGb;
  2351. }
  2352. public function getDiskSizeGb() {
  2353. return $this->diskSizeGb;
  2354. }
  2355. public function setCreationTimestamp($creationTimestamp) {
  2356. $this->creationTimestamp = $creationTimestamp;
  2357. }
  2358. public function getCreationTimestamp() {
  2359. return $this->creationTimestamp;
  2360. }
  2361. public function setId($id) {
  2362. $this->id = $id;
  2363. }
  2364. public function getId() {
  2365. return $this->id;
  2366. }
  2367. public function setSelfLink($selfLink) {
  2368. $this->selfLink = $selfLink;
  2369. }
  2370. public function getSelfLink() {
  2371. return $this->selfLink;
  2372. }
  2373. public function setName($name) {
  2374. $this->name = $name;
  2375. }
  2376. public function getName() {
  2377. return $this->name;
  2378. }
  2379. }
  2380. class Google_SnapshotList extends Google_Model {
  2381. public $nextPageToken;
  2382. protected $__itemsType = 'Google_Snapshot';
  2383. protected $__itemsDataType = 'array';
  2384. public $items;
  2385. public $kind;
  2386. public $id;
  2387. public $selfLink;
  2388. public function setNextPageToken($nextPageToken) {
  2389. $this->nextPageToken = $nextPageToken;
  2390. }
  2391. public function getNextPageToken() {
  2392. return $this->nextPageToken;
  2393. }
  2394. public function setItems($items) {
  2395. $this->assertIsArray($items, 'Google_Snapshot', __METHOD__);
  2396. $this->items = $items;
  2397. }
  2398. public function getItems() {
  2399. return $this->items;
  2400. }
  2401. public function setKind($kind) {
  2402. $this->kind = $kind;
  2403. }
  2404. public function getKind() {
  2405. return $this->kind;
  2406. }
  2407. public function setId($id) {
  2408. $this->id = $id;
  2409. }
  2410. public function getId() {
  2411. return $this->id;
  2412. }
  2413. public function setSelfLink($selfLink) {
  2414. $this->selfLink = $selfLink;
  2415. }
  2416. public function getSelfLink() {
  2417. return $this->selfLink;
  2418. }
  2419. }
  2420. class Google_Zone extends Google_Model {
  2421. public $status;
  2422. public $kind;
  2423. public $availableMachineType;
  2424. public $description;
  2425. protected $__maintenanceWindowsType = 'Google_ZoneMaintenanceWindows';
  2426. protected $__maintenanceWindowsDataType = 'array';
  2427. public $maintenanceWindows;
  2428. public $creationTimestamp;
  2429. public $id;
  2430. public $selfLink;
  2431. public $name;
  2432. public function setStatus($status) {
  2433. $this->status = $status;
  2434. }
  2435. public function getStatus() {
  2436. return $this->status;
  2437. }
  2438. public function setKind($kind) {
  2439. $this->kind = $kind;
  2440. }
  2441. public function getKind() {
  2442. return $this->kind;
  2443. }
  2444. public function setAvailableMachineType($availableMachineType) {
  2445. $this->availableMachineType = $availableMachineType;
  2446. }
  2447. public function getAvailableMachineType() {
  2448. return $this->availableMachineType;
  2449. }
  2450. public function setDescription($description) {
  2451. $this->description = $description;
  2452. }
  2453. public function getDescription() {
  2454. return $this->description;
  2455. }
  2456. public function setMaintenanceWindows($maintenanceWindows) {
  2457. $this->assertIsArray($maintenanceWindows, 'Google_ZoneMaintenanceWindows', __METHOD__);
  2458. $this->maintenanceWindows = $maintenanceWindows;
  2459. }
  2460. public function getMaintenanceWindows() {
  2461. return $this->maintenanceWindows;
  2462. }
  2463. public function setCreationTimestamp($creationTimestamp) {
  2464. $this->creationTimestamp = $creationTimestamp;
  2465. }
  2466. public function getCreationTimestamp() {
  2467. return $this->creationTimestamp;
  2468. }
  2469. public function setId($id) {
  2470. $this->id = $id;
  2471. }
  2472. public function getId() {
  2473. return $this->id;
  2474. }
  2475. public function setSelfLink($selfLink) {
  2476. $this->selfLink = $selfLink;
  2477. }
  2478. public function getSelfLink() {
  2479. return $this->selfLink;
  2480. }
  2481. public function setName($name) {
  2482. $this->name = $name;
  2483. }
  2484. public function getName() {
  2485. return $this->name;
  2486. }
  2487. }
  2488. class Google_ZoneList extends Google_Model {
  2489. public $nextPageToken;
  2490. protected $__itemsType = 'Google_Zone';
  2491. protected $__itemsDataType = 'array';
  2492. public $items;
  2493. public $kind;
  2494. public $id;
  2495. public $selfLink;
  2496. public function setNextPageToken($nextPageToken) {
  2497. $this->nextPageToken = $nextPageToken;
  2498. }
  2499. public function getNextPageToken() {
  2500. return $this->nextPageToken;
  2501. }
  2502. public function setItems($items) {
  2503. $this->assertIsArray($items, 'Google_Zone', __METHOD__);
  2504. $this->items = $items;
  2505. }
  2506. public function getItems() {
  2507. return $this->items;
  2508. }
  2509. public function setKind($kind) {
  2510. $this->kind = $kind;
  2511. }
  2512. public function getKind() {
  2513. return $this->kind;
  2514. }
  2515. public function setId($id) {
  2516. $this->id = $id;
  2517. }
  2518. public function getId() {
  2519. return $this->id;
  2520. }
  2521. public function setSelfLink($selfLink) {
  2522. $this->selfLink = $selfLink;
  2523. }
  2524. public function getSelfLink() {
  2525. return $this->selfLink;
  2526. }
  2527. }
  2528. class Google_ZoneMaintenanceWindows extends Google_Model {
  2529. public $endTime;
  2530. public $beginTime;
  2531. public $name;
  2532. public $description;
  2533. public function setEndTime($endTime) {
  2534. $this->endTime = $endTime;
  2535. }
  2536. public function getEndTime() {
  2537. return $this->endTime;
  2538. }
  2539. public function setBeginTime($beginTime) {
  2540. $this->beginTime = $beginTime;
  2541. }
  2542. public function getBeginTime() {
  2543. return $this->beginTime;
  2544. }
  2545. public function setName($name) {
  2546. $this->name = $name;
  2547. }
  2548. public function getName() {
  2549. return $this->name;
  2550. }
  2551. public function setDescription($description) {
  2552. $this->description = $description;
  2553. }
  2554. public function getDescription() {
  2555. return $this->description;
  2556. }
  2557. }