PageRenderTime 34ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/google-api/contrib/Google_ComputeService.php

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