PageRenderTime 43ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/MapsEngine.php

http://github.com/moodle/moodle
PHP | 6421 lines | 4928 code | 304 blank | 1189 comment | 0 complexity | 774b9f92a20f6306fb502c895edb3b50 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for MapsEngine (v1).
  19. *
  20. * <p>
  21. * The Google Maps Engine API allows developers to store and query geospatial
  22. * vector and raster data.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/maps-engine/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_MapsEngine extends Google_Service
  32. {
  33. /** View and manage your Google My Maps data. */
  34. const MAPSENGINE =
  35. "https://www.googleapis.com/auth/mapsengine";
  36. /** View your Google My Maps data. */
  37. const MAPSENGINE_READONLY =
  38. "https://www.googleapis.com/auth/mapsengine.readonly";
  39. public $assets;
  40. public $assets_parents;
  41. public $assets_permissions;
  42. public $layers;
  43. public $layers_parents;
  44. public $layers_permissions;
  45. public $maps;
  46. public $maps_permissions;
  47. public $projects;
  48. public $projects_icons;
  49. public $rasterCollections;
  50. public $rasterCollections_parents;
  51. public $rasterCollections_permissions;
  52. public $rasterCollections_rasters;
  53. public $rasters;
  54. public $rasters_files;
  55. public $rasters_parents;
  56. public $rasters_permissions;
  57. public $tables;
  58. public $tables_features;
  59. public $tables_files;
  60. public $tables_parents;
  61. public $tables_permissions;
  62. /**
  63. * Constructs the internal representation of the MapsEngine service.
  64. *
  65. * @param Google_Client $client
  66. */
  67. public function __construct(Google_Client $client)
  68. {
  69. parent::__construct($client);
  70. $this->rootUrl = 'https://www.googleapis.com/';
  71. $this->servicePath = 'mapsengine/v1/';
  72. $this->version = 'v1';
  73. $this->serviceName = 'mapsengine';
  74. $this->assets = new Google_Service_MapsEngine_Assets_Resource(
  75. $this,
  76. $this->serviceName,
  77. 'assets',
  78. array(
  79. 'methods' => array(
  80. 'get' => array(
  81. 'path' => 'assets/{id}',
  82. 'httpMethod' => 'GET',
  83. 'parameters' => array(
  84. 'id' => array(
  85. 'location' => 'path',
  86. 'type' => 'string',
  87. 'required' => true,
  88. ),
  89. ),
  90. ),'list' => array(
  91. 'path' => 'assets',
  92. 'httpMethod' => 'GET',
  93. 'parameters' => array(
  94. 'modifiedAfter' => array(
  95. 'location' => 'query',
  96. 'type' => 'string',
  97. ),
  98. 'createdAfter' => array(
  99. 'location' => 'query',
  100. 'type' => 'string',
  101. ),
  102. 'tags' => array(
  103. 'location' => 'query',
  104. 'type' => 'string',
  105. ),
  106. 'projectId' => array(
  107. 'location' => 'query',
  108. 'type' => 'string',
  109. ),
  110. 'search' => array(
  111. 'location' => 'query',
  112. 'type' => 'string',
  113. ),
  114. 'maxResults' => array(
  115. 'location' => 'query',
  116. 'type' => 'integer',
  117. ),
  118. 'pageToken' => array(
  119. 'location' => 'query',
  120. 'type' => 'string',
  121. ),
  122. 'creatorEmail' => array(
  123. 'location' => 'query',
  124. 'type' => 'string',
  125. ),
  126. 'bbox' => array(
  127. 'location' => 'query',
  128. 'type' => 'string',
  129. ),
  130. 'modifiedBefore' => array(
  131. 'location' => 'query',
  132. 'type' => 'string',
  133. ),
  134. 'createdBefore' => array(
  135. 'location' => 'query',
  136. 'type' => 'string',
  137. ),
  138. 'role' => array(
  139. 'location' => 'query',
  140. 'type' => 'string',
  141. ),
  142. 'type' => array(
  143. 'location' => 'query',
  144. 'type' => 'string',
  145. ),
  146. ),
  147. ),
  148. )
  149. )
  150. );
  151. $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource(
  152. $this,
  153. $this->serviceName,
  154. 'parents',
  155. array(
  156. 'methods' => array(
  157. 'list' => array(
  158. 'path' => 'assets/{id}/parents',
  159. 'httpMethod' => 'GET',
  160. 'parameters' => array(
  161. 'id' => array(
  162. 'location' => 'path',
  163. 'type' => 'string',
  164. 'required' => true,
  165. ),
  166. 'pageToken' => array(
  167. 'location' => 'query',
  168. 'type' => 'string',
  169. ),
  170. 'maxResults' => array(
  171. 'location' => 'query',
  172. 'type' => 'integer',
  173. ),
  174. ),
  175. ),
  176. )
  177. )
  178. );
  179. $this->assets_permissions = new Google_Service_MapsEngine_AssetsPermissions_Resource(
  180. $this,
  181. $this->serviceName,
  182. 'permissions',
  183. array(
  184. 'methods' => array(
  185. 'list' => array(
  186. 'path' => 'assets/{id}/permissions',
  187. 'httpMethod' => 'GET',
  188. 'parameters' => array(
  189. 'id' => array(
  190. 'location' => 'path',
  191. 'type' => 'string',
  192. 'required' => true,
  193. ),
  194. ),
  195. ),
  196. )
  197. )
  198. );
  199. $this->layers = new Google_Service_MapsEngine_Layers_Resource(
  200. $this,
  201. $this->serviceName,
  202. 'layers',
  203. array(
  204. 'methods' => array(
  205. 'cancelProcessing' => array(
  206. 'path' => 'layers/{id}/cancelProcessing',
  207. 'httpMethod' => 'POST',
  208. 'parameters' => array(
  209. 'id' => array(
  210. 'location' => 'path',
  211. 'type' => 'string',
  212. 'required' => true,
  213. ),
  214. ),
  215. ),'create' => array(
  216. 'path' => 'layers',
  217. 'httpMethod' => 'POST',
  218. 'parameters' => array(
  219. 'process' => array(
  220. 'location' => 'query',
  221. 'type' => 'boolean',
  222. ),
  223. ),
  224. ),'delete' => array(
  225. 'path' => 'layers/{id}',
  226. 'httpMethod' => 'DELETE',
  227. 'parameters' => array(
  228. 'id' => array(
  229. 'location' => 'path',
  230. 'type' => 'string',
  231. 'required' => true,
  232. ),
  233. ),
  234. ),'get' => array(
  235. 'path' => 'layers/{id}',
  236. 'httpMethod' => 'GET',
  237. 'parameters' => array(
  238. 'id' => array(
  239. 'location' => 'path',
  240. 'type' => 'string',
  241. 'required' => true,
  242. ),
  243. 'version' => array(
  244. 'location' => 'query',
  245. 'type' => 'string',
  246. ),
  247. ),
  248. ),'getPublished' => array(
  249. 'path' => 'layers/{id}/published',
  250. 'httpMethod' => 'GET',
  251. 'parameters' => array(
  252. 'id' => array(
  253. 'location' => 'path',
  254. 'type' => 'string',
  255. 'required' => true,
  256. ),
  257. ),
  258. ),'list' => array(
  259. 'path' => 'layers',
  260. 'httpMethod' => 'GET',
  261. 'parameters' => array(
  262. 'modifiedAfter' => array(
  263. 'location' => 'query',
  264. 'type' => 'string',
  265. ),
  266. 'createdAfter' => array(
  267. 'location' => 'query',
  268. 'type' => 'string',
  269. ),
  270. 'processingStatus' => array(
  271. 'location' => 'query',
  272. 'type' => 'string',
  273. ),
  274. 'projectId' => array(
  275. 'location' => 'query',
  276. 'type' => 'string',
  277. ),
  278. 'tags' => array(
  279. 'location' => 'query',
  280. 'type' => 'string',
  281. ),
  282. 'search' => array(
  283. 'location' => 'query',
  284. 'type' => 'string',
  285. ),
  286. 'maxResults' => array(
  287. 'location' => 'query',
  288. 'type' => 'integer',
  289. ),
  290. 'pageToken' => array(
  291. 'location' => 'query',
  292. 'type' => 'string',
  293. ),
  294. 'creatorEmail' => array(
  295. 'location' => 'query',
  296. 'type' => 'string',
  297. ),
  298. 'bbox' => array(
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. ),
  302. 'modifiedBefore' => array(
  303. 'location' => 'query',
  304. 'type' => 'string',
  305. ),
  306. 'createdBefore' => array(
  307. 'location' => 'query',
  308. 'type' => 'string',
  309. ),
  310. 'role' => array(
  311. 'location' => 'query',
  312. 'type' => 'string',
  313. ),
  314. ),
  315. ),'listPublished' => array(
  316. 'path' => 'layers/published',
  317. 'httpMethod' => 'GET',
  318. 'parameters' => array(
  319. 'pageToken' => array(
  320. 'location' => 'query',
  321. 'type' => 'string',
  322. ),
  323. 'maxResults' => array(
  324. 'location' => 'query',
  325. 'type' => 'integer',
  326. ),
  327. 'projectId' => array(
  328. 'location' => 'query',
  329. 'type' => 'string',
  330. ),
  331. ),
  332. ),'patch' => array(
  333. 'path' => 'layers/{id}',
  334. 'httpMethod' => 'PATCH',
  335. 'parameters' => array(
  336. 'id' => array(
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ),
  341. ),
  342. ),'process' => array(
  343. 'path' => 'layers/{id}/process',
  344. 'httpMethod' => 'POST',
  345. 'parameters' => array(
  346. 'id' => array(
  347. 'location' => 'path',
  348. 'type' => 'string',
  349. 'required' => true,
  350. ),
  351. ),
  352. ),'publish' => array(
  353. 'path' => 'layers/{id}/publish',
  354. 'httpMethod' => 'POST',
  355. 'parameters' => array(
  356. 'id' => array(
  357. 'location' => 'path',
  358. 'type' => 'string',
  359. 'required' => true,
  360. ),
  361. 'force' => array(
  362. 'location' => 'query',
  363. 'type' => 'boolean',
  364. ),
  365. ),
  366. ),'unpublish' => array(
  367. 'path' => 'layers/{id}/unpublish',
  368. 'httpMethod' => 'POST',
  369. 'parameters' => array(
  370. 'id' => array(
  371. 'location' => 'path',
  372. 'type' => 'string',
  373. 'required' => true,
  374. ),
  375. ),
  376. ),
  377. )
  378. )
  379. );
  380. $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource(
  381. $this,
  382. $this->serviceName,
  383. 'parents',
  384. array(
  385. 'methods' => array(
  386. 'list' => array(
  387. 'path' => 'layers/{id}/parents',
  388. 'httpMethod' => 'GET',
  389. 'parameters' => array(
  390. 'id' => array(
  391. 'location' => 'path',
  392. 'type' => 'string',
  393. 'required' => true,
  394. ),
  395. 'pageToken' => array(
  396. 'location' => 'query',
  397. 'type' => 'string',
  398. ),
  399. 'maxResults' => array(
  400. 'location' => 'query',
  401. 'type' => 'integer',
  402. ),
  403. ),
  404. ),
  405. )
  406. )
  407. );
  408. $this->layers_permissions = new Google_Service_MapsEngine_LayersPermissions_Resource(
  409. $this,
  410. $this->serviceName,
  411. 'permissions',
  412. array(
  413. 'methods' => array(
  414. 'batchDelete' => array(
  415. 'path' => 'layers/{id}/permissions/batchDelete',
  416. 'httpMethod' => 'POST',
  417. 'parameters' => array(
  418. 'id' => array(
  419. 'location' => 'path',
  420. 'type' => 'string',
  421. 'required' => true,
  422. ),
  423. ),
  424. ),'batchUpdate' => array(
  425. 'path' => 'layers/{id}/permissions/batchUpdate',
  426. 'httpMethod' => 'POST',
  427. 'parameters' => array(
  428. 'id' => array(
  429. 'location' => 'path',
  430. 'type' => 'string',
  431. 'required' => true,
  432. ),
  433. ),
  434. ),'list' => array(
  435. 'path' => 'layers/{id}/permissions',
  436. 'httpMethod' => 'GET',
  437. 'parameters' => array(
  438. 'id' => array(
  439. 'location' => 'path',
  440. 'type' => 'string',
  441. 'required' => true,
  442. ),
  443. ),
  444. ),
  445. )
  446. )
  447. );
  448. $this->maps = new Google_Service_MapsEngine_Maps_Resource(
  449. $this,
  450. $this->serviceName,
  451. 'maps',
  452. array(
  453. 'methods' => array(
  454. 'create' => array(
  455. 'path' => 'maps',
  456. 'httpMethod' => 'POST',
  457. 'parameters' => array(),
  458. ),'delete' => array(
  459. 'path' => 'maps/{id}',
  460. 'httpMethod' => 'DELETE',
  461. 'parameters' => array(
  462. 'id' => array(
  463. 'location' => 'path',
  464. 'type' => 'string',
  465. 'required' => true,
  466. ),
  467. ),
  468. ),'get' => array(
  469. 'path' => 'maps/{id}',
  470. 'httpMethod' => 'GET',
  471. 'parameters' => array(
  472. 'id' => array(
  473. 'location' => 'path',
  474. 'type' => 'string',
  475. 'required' => true,
  476. ),
  477. 'version' => array(
  478. 'location' => 'query',
  479. 'type' => 'string',
  480. ),
  481. ),
  482. ),'getPublished' => array(
  483. 'path' => 'maps/{id}/published',
  484. 'httpMethod' => 'GET',
  485. 'parameters' => array(
  486. 'id' => array(
  487. 'location' => 'path',
  488. 'type' => 'string',
  489. 'required' => true,
  490. ),
  491. ),
  492. ),'list' => array(
  493. 'path' => 'maps',
  494. 'httpMethod' => 'GET',
  495. 'parameters' => array(
  496. 'modifiedAfter' => array(
  497. 'location' => 'query',
  498. 'type' => 'string',
  499. ),
  500. 'createdAfter' => array(
  501. 'location' => 'query',
  502. 'type' => 'string',
  503. ),
  504. 'processingStatus' => array(
  505. 'location' => 'query',
  506. 'type' => 'string',
  507. ),
  508. 'projectId' => array(
  509. 'location' => 'query',
  510. 'type' => 'string',
  511. ),
  512. 'tags' => array(
  513. 'location' => 'query',
  514. 'type' => 'string',
  515. ),
  516. 'search' => array(
  517. 'location' => 'query',
  518. 'type' => 'string',
  519. ),
  520. 'maxResults' => array(
  521. 'location' => 'query',
  522. 'type' => 'integer',
  523. ),
  524. 'pageToken' => array(
  525. 'location' => 'query',
  526. 'type' => 'string',
  527. ),
  528. 'creatorEmail' => array(
  529. 'location' => 'query',
  530. 'type' => 'string',
  531. ),
  532. 'bbox' => array(
  533. 'location' => 'query',
  534. 'type' => 'string',
  535. ),
  536. 'modifiedBefore' => array(
  537. 'location' => 'query',
  538. 'type' => 'string',
  539. ),
  540. 'createdBefore' => array(
  541. 'location' => 'query',
  542. 'type' => 'string',
  543. ),
  544. 'role' => array(
  545. 'location' => 'query',
  546. 'type' => 'string',
  547. ),
  548. ),
  549. ),'listPublished' => array(
  550. 'path' => 'maps/published',
  551. 'httpMethod' => 'GET',
  552. 'parameters' => array(
  553. 'pageToken' => array(
  554. 'location' => 'query',
  555. 'type' => 'string',
  556. ),
  557. 'maxResults' => array(
  558. 'location' => 'query',
  559. 'type' => 'integer',
  560. ),
  561. 'projectId' => array(
  562. 'location' => 'query',
  563. 'type' => 'string',
  564. ),
  565. ),
  566. ),'patch' => array(
  567. 'path' => 'maps/{id}',
  568. 'httpMethod' => 'PATCH',
  569. 'parameters' => array(
  570. 'id' => array(
  571. 'location' => 'path',
  572. 'type' => 'string',
  573. 'required' => true,
  574. ),
  575. ),
  576. ),'publish' => array(
  577. 'path' => 'maps/{id}/publish',
  578. 'httpMethod' => 'POST',
  579. 'parameters' => array(
  580. 'id' => array(
  581. 'location' => 'path',
  582. 'type' => 'string',
  583. 'required' => true,
  584. ),
  585. 'force' => array(
  586. 'location' => 'query',
  587. 'type' => 'boolean',
  588. ),
  589. ),
  590. ),'unpublish' => array(
  591. 'path' => 'maps/{id}/unpublish',
  592. 'httpMethod' => 'POST',
  593. 'parameters' => array(
  594. 'id' => array(
  595. 'location' => 'path',
  596. 'type' => 'string',
  597. 'required' => true,
  598. ),
  599. ),
  600. ),
  601. )
  602. )
  603. );
  604. $this->maps_permissions = new Google_Service_MapsEngine_MapsPermissions_Resource(
  605. $this,
  606. $this->serviceName,
  607. 'permissions',
  608. array(
  609. 'methods' => array(
  610. 'batchDelete' => array(
  611. 'path' => 'maps/{id}/permissions/batchDelete',
  612. 'httpMethod' => 'POST',
  613. 'parameters' => array(
  614. 'id' => array(
  615. 'location' => 'path',
  616. 'type' => 'string',
  617. 'required' => true,
  618. ),
  619. ),
  620. ),'batchUpdate' => array(
  621. 'path' => 'maps/{id}/permissions/batchUpdate',
  622. 'httpMethod' => 'POST',
  623. 'parameters' => array(
  624. 'id' => array(
  625. 'location' => 'path',
  626. 'type' => 'string',
  627. 'required' => true,
  628. ),
  629. ),
  630. ),'list' => array(
  631. 'path' => 'maps/{id}/permissions',
  632. 'httpMethod' => 'GET',
  633. 'parameters' => array(
  634. 'id' => array(
  635. 'location' => 'path',
  636. 'type' => 'string',
  637. 'required' => true,
  638. ),
  639. ),
  640. ),
  641. )
  642. )
  643. );
  644. $this->projects = new Google_Service_MapsEngine_Projects_Resource(
  645. $this,
  646. $this->serviceName,
  647. 'projects',
  648. array(
  649. 'methods' => array(
  650. 'list' => array(
  651. 'path' => 'projects',
  652. 'httpMethod' => 'GET',
  653. 'parameters' => array(),
  654. ),
  655. )
  656. )
  657. );
  658. $this->projects_icons = new Google_Service_MapsEngine_ProjectsIcons_Resource(
  659. $this,
  660. $this->serviceName,
  661. 'icons',
  662. array(
  663. 'methods' => array(
  664. 'create' => array(
  665. 'path' => 'projects/{projectId}/icons',
  666. 'httpMethod' => 'POST',
  667. 'parameters' => array(
  668. 'projectId' => array(
  669. 'location' => 'path',
  670. 'type' => 'string',
  671. 'required' => true,
  672. ),
  673. ),
  674. ),'get' => array(
  675. 'path' => 'projects/{projectId}/icons/{id}',
  676. 'httpMethod' => 'GET',
  677. 'parameters' => array(
  678. 'projectId' => array(
  679. 'location' => 'path',
  680. 'type' => 'string',
  681. 'required' => true,
  682. ),
  683. 'id' => array(
  684. 'location' => 'path',
  685. 'type' => 'string',
  686. 'required' => true,
  687. ),
  688. ),
  689. ),'list' => array(
  690. 'path' => 'projects/{projectId}/icons',
  691. 'httpMethod' => 'GET',
  692. 'parameters' => array(
  693. 'projectId' => array(
  694. 'location' => 'path',
  695. 'type' => 'string',
  696. 'required' => true,
  697. ),
  698. 'pageToken' => array(
  699. 'location' => 'query',
  700. 'type' => 'string',
  701. ),
  702. 'maxResults' => array(
  703. 'location' => 'query',
  704. 'type' => 'integer',
  705. ),
  706. ),
  707. ),
  708. )
  709. )
  710. );
  711. $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource(
  712. $this,
  713. $this->serviceName,
  714. 'rasterCollections',
  715. array(
  716. 'methods' => array(
  717. 'cancelProcessing' => array(
  718. 'path' => 'rasterCollections/{id}/cancelProcessing',
  719. 'httpMethod' => 'POST',
  720. 'parameters' => array(
  721. 'id' => array(
  722. 'location' => 'path',
  723. 'type' => 'string',
  724. 'required' => true,
  725. ),
  726. ),
  727. ),'create' => array(
  728. 'path' => 'rasterCollections',
  729. 'httpMethod' => 'POST',
  730. 'parameters' => array(),
  731. ),'delete' => array(
  732. 'path' => 'rasterCollections/{id}',
  733. 'httpMethod' => 'DELETE',
  734. 'parameters' => array(
  735. 'id' => array(
  736. 'location' => 'path',
  737. 'type' => 'string',
  738. 'required' => true,
  739. ),
  740. ),
  741. ),'get' => array(
  742. 'path' => 'rasterCollections/{id}',
  743. 'httpMethod' => 'GET',
  744. 'parameters' => array(
  745. 'id' => array(
  746. 'location' => 'path',
  747. 'type' => 'string',
  748. 'required' => true,
  749. ),
  750. ),
  751. ),'list' => array(
  752. 'path' => 'rasterCollections',
  753. 'httpMethod' => 'GET',
  754. 'parameters' => array(
  755. 'modifiedAfter' => array(
  756. 'location' => 'query',
  757. 'type' => 'string',
  758. ),
  759. 'createdAfter' => array(
  760. 'location' => 'query',
  761. 'type' => 'string',
  762. ),
  763. 'processingStatus' => array(
  764. 'location' => 'query',
  765. 'type' => 'string',
  766. ),
  767. 'projectId' => array(
  768. 'location' => 'query',
  769. 'type' => 'string',
  770. ),
  771. 'tags' => array(
  772. 'location' => 'query',
  773. 'type' => 'string',
  774. ),
  775. 'search' => array(
  776. 'location' => 'query',
  777. 'type' => 'string',
  778. ),
  779. 'maxResults' => array(
  780. 'location' => 'query',
  781. 'type' => 'integer',
  782. ),
  783. 'pageToken' => array(
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. ),
  787. 'creatorEmail' => array(
  788. 'location' => 'query',
  789. 'type' => 'string',
  790. ),
  791. 'bbox' => array(
  792. 'location' => 'query',
  793. 'type' => 'string',
  794. ),
  795. 'modifiedBefore' => array(
  796. 'location' => 'query',
  797. 'type' => 'string',
  798. ),
  799. 'createdBefore' => array(
  800. 'location' => 'query',
  801. 'type' => 'string',
  802. ),
  803. 'role' => array(
  804. 'location' => 'query',
  805. 'type' => 'string',
  806. ),
  807. ),
  808. ),'patch' => array(
  809. 'path' => 'rasterCollections/{id}',
  810. 'httpMethod' => 'PATCH',
  811. 'parameters' => array(
  812. 'id' => array(
  813. 'location' => 'path',
  814. 'type' => 'string',
  815. 'required' => true,
  816. ),
  817. ),
  818. ),'process' => array(
  819. 'path' => 'rasterCollections/{id}/process',
  820. 'httpMethod' => 'POST',
  821. 'parameters' => array(
  822. 'id' => array(
  823. 'location' => 'path',
  824. 'type' => 'string',
  825. 'required' => true,
  826. ),
  827. ),
  828. ),
  829. )
  830. )
  831. );
  832. $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource(
  833. $this,
  834. $this->serviceName,
  835. 'parents',
  836. array(
  837. 'methods' => array(
  838. 'list' => array(
  839. 'path' => 'rasterCollections/{id}/parents',
  840. 'httpMethod' => 'GET',
  841. 'parameters' => array(
  842. 'id' => array(
  843. 'location' => 'path',
  844. 'type' => 'string',
  845. 'required' => true,
  846. ),
  847. 'pageToken' => array(
  848. 'location' => 'query',
  849. 'type' => 'string',
  850. ),
  851. 'maxResults' => array(
  852. 'location' => 'query',
  853. 'type' => 'integer',
  854. ),
  855. ),
  856. ),
  857. )
  858. )
  859. );
  860. $this->rasterCollections_permissions = new Google_Service_MapsEngine_RasterCollectionsPermissions_Resource(
  861. $this,
  862. $this->serviceName,
  863. 'permissions',
  864. array(
  865. 'methods' => array(
  866. 'batchDelete' => array(
  867. 'path' => 'rasterCollections/{id}/permissions/batchDelete',
  868. 'httpMethod' => 'POST',
  869. 'parameters' => array(
  870. 'id' => array(
  871. 'location' => 'path',
  872. 'type' => 'string',
  873. 'required' => true,
  874. ),
  875. ),
  876. ),'batchUpdate' => array(
  877. 'path' => 'rasterCollections/{id}/permissions/batchUpdate',
  878. 'httpMethod' => 'POST',
  879. 'parameters' => array(
  880. 'id' => array(
  881. 'location' => 'path',
  882. 'type' => 'string',
  883. 'required' => true,
  884. ),
  885. ),
  886. ),'list' => array(
  887. 'path' => 'rasterCollections/{id}/permissions',
  888. 'httpMethod' => 'GET',
  889. 'parameters' => array(
  890. 'id' => array(
  891. 'location' => 'path',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ),
  895. ),
  896. ),
  897. )
  898. )
  899. );
  900. $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource(
  901. $this,
  902. $this->serviceName,
  903. 'rasters',
  904. array(
  905. 'methods' => array(
  906. 'batchDelete' => array(
  907. 'path' => 'rasterCollections/{id}/rasters/batchDelete',
  908. 'httpMethod' => 'POST',
  909. 'parameters' => array(
  910. 'id' => array(
  911. 'location' => 'path',
  912. 'type' => 'string',
  913. 'required' => true,
  914. ),
  915. ),
  916. ),'batchInsert' => array(
  917. 'path' => 'rasterCollections/{id}/rasters/batchInsert',
  918. 'httpMethod' => 'POST',
  919. 'parameters' => array(
  920. 'id' => array(
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ),
  925. ),
  926. ),'list' => array(
  927. 'path' => 'rasterCollections/{id}/rasters',
  928. 'httpMethod' => 'GET',
  929. 'parameters' => array(
  930. 'id' => array(
  931. 'location' => 'path',
  932. 'type' => 'string',
  933. 'required' => true,
  934. ),
  935. 'modifiedAfter' => array(
  936. 'location' => 'query',
  937. 'type' => 'string',
  938. ),
  939. 'createdAfter' => array(
  940. 'location' => 'query',
  941. 'type' => 'string',
  942. ),
  943. 'tags' => array(
  944. 'location' => 'query',
  945. 'type' => 'string',
  946. ),
  947. 'search' => array(
  948. 'location' => 'query',
  949. 'type' => 'string',
  950. ),
  951. 'maxResults' => array(
  952. 'location' => 'query',
  953. 'type' => 'integer',
  954. ),
  955. 'pageToken' => array(
  956. 'location' => 'query',
  957. 'type' => 'string',
  958. ),
  959. 'creatorEmail' => array(
  960. 'location' => 'query',
  961. 'type' => 'string',
  962. ),
  963. 'bbox' => array(
  964. 'location' => 'query',
  965. 'type' => 'string',
  966. ),
  967. 'modifiedBefore' => array(
  968. 'location' => 'query',
  969. 'type' => 'string',
  970. ),
  971. 'createdBefore' => array(
  972. 'location' => 'query',
  973. 'type' => 'string',
  974. ),
  975. 'role' => array(
  976. 'location' => 'query',
  977. 'type' => 'string',
  978. ),
  979. ),
  980. ),
  981. )
  982. )
  983. );
  984. $this->rasters = new Google_Service_MapsEngine_Rasters_Resource(
  985. $this,
  986. $this->serviceName,
  987. 'rasters',
  988. array(
  989. 'methods' => array(
  990. 'delete' => array(
  991. 'path' => 'rasters/{id}',
  992. 'httpMethod' => 'DELETE',
  993. 'parameters' => array(
  994. 'id' => array(
  995. 'location' => 'path',
  996. 'type' => 'string',
  997. 'required' => true,
  998. ),
  999. ),
  1000. ),'get' => array(
  1001. 'path' => 'rasters/{id}',
  1002. 'httpMethod' => 'GET',
  1003. 'parameters' => array(
  1004. 'id' => array(
  1005. 'location' => 'path',
  1006. 'type' => 'string',
  1007. 'required' => true,
  1008. ),
  1009. ),
  1010. ),'list' => array(
  1011. 'path' => 'rasters',
  1012. 'httpMethod' => 'GET',
  1013. 'parameters' => array(
  1014. 'projectId' => array(
  1015. 'location' => 'query',
  1016. 'type' => 'string',
  1017. 'required' => true,
  1018. ),
  1019. 'modifiedAfter' => array(
  1020. 'location' => 'query',
  1021. 'type' => 'string',
  1022. ),
  1023. 'createdAfter' => array(
  1024. 'location' => 'query',
  1025. 'type' => 'string',
  1026. ),
  1027. 'processingStatus' => array(
  1028. 'location' => 'query',
  1029. 'type' => 'string',
  1030. ),
  1031. 'tags' => array(
  1032. 'location' => 'query',
  1033. 'type' => 'string',
  1034. ),
  1035. 'search' => array(
  1036. 'location' => 'query',
  1037. 'type' => 'string',
  1038. ),
  1039. 'maxResults' => array(
  1040. 'location' => 'query',
  1041. 'type' => 'integer',
  1042. ),
  1043. 'pageToken' => array(
  1044. 'location' => 'query',
  1045. 'type' => 'string',
  1046. ),
  1047. 'creatorEmail' => array(
  1048. 'location' => 'query',
  1049. 'type' => 'string',
  1050. ),
  1051. 'bbox' => array(
  1052. 'location' => 'query',
  1053. 'type' => 'string',
  1054. ),
  1055. 'modifiedBefore' => array(
  1056. 'location' => 'query',
  1057. 'type' => 'string',
  1058. ),
  1059. 'createdBefore' => array(
  1060. 'location' => 'query',
  1061. 'type' => 'string',
  1062. ),
  1063. 'role' => array(
  1064. 'location' => 'query',
  1065. 'type' => 'string',
  1066. ),
  1067. ),
  1068. ),'patch' => array(
  1069. 'path' => 'rasters/{id}',
  1070. 'httpMethod' => 'PATCH',
  1071. 'parameters' => array(
  1072. 'id' => array(
  1073. 'location' => 'path',
  1074. 'type' => 'string',
  1075. 'required' => true,
  1076. ),
  1077. ),
  1078. ),'process' => array(
  1079. 'path' => 'rasters/{id}/process',
  1080. 'httpMethod' => 'POST',
  1081. 'parameters' => array(
  1082. 'id' => array(
  1083. 'location' => 'path',
  1084. 'type' => 'string',
  1085. 'required' => true,
  1086. ),
  1087. ),
  1088. ),'upload' => array(
  1089. 'path' => 'rasters/upload',
  1090. 'httpMethod' => 'POST',
  1091. 'parameters' => array(),
  1092. ),
  1093. )
  1094. )
  1095. );
  1096. $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource(
  1097. $this,
  1098. $this->serviceName,
  1099. 'files',
  1100. array(
  1101. 'methods' => array(
  1102. 'insert' => array(
  1103. 'path' => 'rasters/{id}/files',
  1104. 'httpMethod' => 'POST',
  1105. 'parameters' => array(
  1106. 'id' => array(
  1107. 'location' => 'path',
  1108. 'type' => 'string',
  1109. 'required' => true,
  1110. ),
  1111. 'filename' => array(
  1112. 'location' => 'query',
  1113. 'type' => 'string',
  1114. 'required' => true,
  1115. ),
  1116. ),
  1117. ),
  1118. )
  1119. )
  1120. );
  1121. $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource(
  1122. $this,
  1123. $this->serviceName,
  1124. 'parents',
  1125. array(
  1126. 'methods' => array(
  1127. 'list' => array(
  1128. 'path' => 'rasters/{id}/parents',
  1129. 'httpMethod' => 'GET',
  1130. 'parameters' => array(
  1131. 'id' => array(
  1132. 'location' => 'path',
  1133. 'type' => 'string',
  1134. 'required' => true,
  1135. ),
  1136. 'pageToken' => array(
  1137. 'location' => 'query',
  1138. 'type' => 'string',
  1139. ),
  1140. 'maxResults' => array(
  1141. 'location' => 'query',
  1142. 'type' => 'integer',
  1143. ),
  1144. ),
  1145. ),
  1146. )
  1147. )
  1148. );
  1149. $this->rasters_permissions = new Google_Service_MapsEngine_RastersPermissions_Resource(
  1150. $this,
  1151. $this->serviceName,
  1152. 'permissions',
  1153. array(
  1154. 'methods' => array(
  1155. 'batchDelete' => array(
  1156. 'path' => 'rasters/{id}/permissions/batchDelete',
  1157. 'httpMethod' => 'POST',
  1158. 'parameters' => array(
  1159. 'id' => array(
  1160. 'location' => 'path',
  1161. 'type' => 'string',
  1162. 'required' => true,
  1163. ),
  1164. ),
  1165. ),'batchUpdate' => array(
  1166. 'path' => 'rasters/{id}/permissions/batchUpdate',
  1167. 'httpMethod' => 'POST',
  1168. 'parameters' => array(
  1169. 'id' => array(
  1170. 'location' => 'path',
  1171. 'type' => 'string',
  1172. 'required' => true,
  1173. ),
  1174. ),
  1175. ),'list' => array(
  1176. 'path' => 'rasters/{id}/permissions',
  1177. 'httpMethod' => 'GET',
  1178. 'parameters' => array(
  1179. 'id' => array(
  1180. 'location' => 'path',
  1181. 'type' => 'string',
  1182. 'required' => true,
  1183. ),
  1184. ),
  1185. ),
  1186. )
  1187. )
  1188. );
  1189. $this->tables = new Google_Service_MapsEngine_Tables_Resource(
  1190. $this,
  1191. $this->serviceName,
  1192. 'tables',
  1193. array(
  1194. 'methods' => array(
  1195. 'create' => array(
  1196. 'path' => 'tables',
  1197. 'httpMethod' => 'POST',
  1198. 'parameters' => array(),
  1199. ),'delete' => array(
  1200. 'path' => 'tables/{id}',
  1201. 'httpMethod' => 'DELETE',
  1202. 'parameters' => array(
  1203. 'id' => array(
  1204. 'location' => 'path',
  1205. 'type' => 'string',
  1206. 'required' => true,
  1207. ),
  1208. ),
  1209. ),'get' => array(
  1210. 'path' => 'tables/{id}',
  1211. 'httpMethod' => 'GET',
  1212. 'parameters' => array(
  1213. 'id' => array(
  1214. 'location' => 'path',
  1215. 'type' => 'string',
  1216. 'required' => true,
  1217. ),
  1218. 'version' => array(
  1219. 'location' => 'query',
  1220. 'type' => 'string',
  1221. ),
  1222. ),
  1223. ),'list' => array(
  1224. 'path' => 'tables',
  1225. 'httpMethod' => 'GET',
  1226. 'parameters' => array(
  1227. 'modifiedAfter' => array(
  1228. 'location' => 'query',
  1229. 'type' => 'string',
  1230. ),
  1231. 'createdAfter' => array(
  1232. 'location' => 'query',
  1233. 'type' => 'string',
  1234. ),
  1235. 'processingStatus' => array(
  1236. 'location' => 'query',
  1237. 'type' => 'string',
  1238. ),
  1239. 'projectId' => array(
  1240. 'location' => 'query',
  1241. 'type' => 'string',
  1242. ),
  1243. 'tags' => array(
  1244. 'location' => 'query',
  1245. 'type' => 'string',
  1246. ),
  1247. 'search' => array(
  1248. 'location' => 'query',
  1249. 'type' => 'string',
  1250. ),
  1251. 'maxResults' => array(
  1252. 'location' => 'query',
  1253. 'type' => 'integer',
  1254. ),
  1255. 'pageToken' => array(
  1256. 'location' => 'query',
  1257. 'type' => 'string',
  1258. ),
  1259. 'creatorEmail' => array(
  1260. 'location' => 'query',
  1261. 'type' => 'string',
  1262. ),
  1263. 'bbox' => array(
  1264. 'location' => 'query',
  1265. 'type' => 'string',
  1266. ),
  1267. 'modifiedBefore' => array(
  1268. 'location' => 'query',
  1269. 'type' => 'string',
  1270. ),
  1271. 'createdBefore' => array(
  1272. 'location' => 'query',
  1273. 'type' => 'string',
  1274. ),
  1275. 'role' => array(
  1276. 'location' => 'query',
  1277. 'type' => 'string',
  1278. ),
  1279. ),
  1280. ),'patch' => array(
  1281. 'path' => 'tables/{id}',
  1282. 'httpMethod' => 'PATCH',
  1283. 'parameters' => array(
  1284. 'id' => array(
  1285. 'location' => 'path',
  1286. 'type' => 'string',
  1287. 'required' => true,
  1288. ),
  1289. ),
  1290. ),'process' => array(
  1291. 'path' => 'tables/{id}/process',
  1292. 'httpMethod' => 'POST',
  1293. 'parameters' => array(
  1294. 'id' => array(
  1295. 'location' => 'path',
  1296. 'type' => 'string',
  1297. 'required' => true,
  1298. ),
  1299. ),
  1300. ),'upload' => array(
  1301. 'path' => 'tables/upload',
  1302. 'httpMethod' => 'POST',
  1303. 'parameters' => array(),
  1304. ),
  1305. )
  1306. )
  1307. );
  1308. $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource(
  1309. $this,
  1310. $this->serviceName,
  1311. 'features',
  1312. array(
  1313. 'methods' => array(
  1314. 'batchDelete' => array(
  1315. 'path' => 'tables/{id}/features/batchDelete',
  1316. 'httpMethod' => 'POST',
  1317. 'parameters' => array(
  1318. 'id' => array(
  1319. 'location' => 'path',
  1320. 'type' => 'string',
  1321. 'required' => true,
  1322. ),
  1323. ),
  1324. ),'batchInsert' => array(
  1325. 'path' => 'tables/{id}/features/batchInsert',
  1326. 'httpMethod' => 'POST',
  1327. 'parameters' => array(
  1328. 'id' => array(
  1329. 'location' => 'path',
  1330. 'type' => 'string',
  1331. 'required' => true,
  1332. ),
  1333. ),
  1334. ),'batchPatch' => array(
  1335. 'path' => 'tables/{id}/features/batchPatch',
  1336. 'httpMethod' => 'POST',
  1337. 'parameters' => array(
  1338. 'id' => array(
  1339. 'location' => 'path',
  1340. 'type' => 'string',
  1341. 'required' => true,
  1342. ),
  1343. ),
  1344. ),'get' => array(
  1345. 'path' => 'tables/{tableId}/features/{id}',
  1346. 'httpMethod' => 'GET',
  1347. 'parameters' => array(
  1348. 'tableId' => array(
  1349. 'location' => 'path',
  1350. 'type' => 'string',
  1351. 'required' => true,
  1352. ),
  1353. 'id' => array(
  1354. 'location' => 'path',
  1355. 'type' => 'string',
  1356. 'required' => true,
  1357. ),
  1358. 'version' => array(
  1359. 'location' => 'query',
  1360. 'type' => 'string',
  1361. ),
  1362. 'select' => array(
  1363. 'location' => 'query',
  1364. 'type' => 'string',
  1365. ),
  1366. ),
  1367. ),'list' => array(
  1368. 'path' => 'tables/{id}/features',
  1369. 'httpMethod' => 'GET',
  1370. 'parameters' => array(
  1371. 'id' => array(
  1372. 'location' => 'path',
  1373. 'type' => 'string',
  1374. 'required' => true,
  1375. ),
  1376. 'orderBy' => array(
  1377. 'location' => 'query',
  1378. 'type' => 'string',
  1379. ),
  1380. 'intersects' => array(
  1381. 'location' => 'query',
  1382. 'type' => 'string',
  1383. ),
  1384. 'maxResults' => array(
  1385. 'location' => 'query',
  1386. 'type' => 'integer',
  1387. ),
  1388. 'pageToken' => array(
  1389. 'location' => 'query',
  1390. 'type' => 'string',
  1391. ),
  1392. 'version' => array(
  1393. 'location' => 'query',
  1394. 'type' => 'string',
  1395. ),
  1396. 'limit' => array(
  1397. 'location' => 'query',
  1398. 'type' => 'integer',
  1399. ),
  1400. 'include' => array(
  1401. 'location' => 'query',
  1402. 'type' => 'string',
  1403. ),
  1404. 'where' => array(
  1405. 'location' => 'query',
  1406. 'type' => 'string',
  1407. ),
  1408. 'select' => array(
  1409. 'location' => 'query',
  1410. 'type' => 'string',
  1411. ),
  1412. ),
  1413. ),
  1414. )
  1415. )
  1416. );
  1417. $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource(
  1418. $this,
  1419. $this->serviceName,
  1420. 'files',
  1421. array(
  1422. 'methods' => array(
  1423. 'insert' => array(
  1424. 'path' => 'tables/{id}/files',
  1425. 'httpMethod' => 'POST',
  1426. 'parameters' => array(
  1427. 'id' => array(
  1428. 'location' => 'path',
  1429. 'type' => 'string',
  1430. 'required' => true,
  1431. ),
  1432. 'filename' => array(
  1433. 'location' => 'query',
  1434. 'type' => 'string',
  1435. 'required' => true,
  1436. ),
  1437. ),
  1438. ),
  1439. )
  1440. )
  1441. );
  1442. $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource(
  1443. $this,
  1444. $this->serviceName,
  1445. 'parents',
  1446. array(
  1447. 'methods' => array(
  1448. 'list' => array(
  1449. 'path' => 'tables/{id}/parents',
  1450. 'httpMethod' => 'GET',
  1451. 'parameters' => array(
  1452. 'id' => array(
  1453. 'location' => 'path',
  1454. 'type' => 'string',
  1455. 'required' => true,
  1456. ),
  1457. 'pageToken' => array(
  1458. 'location' => 'query',
  1459. 'type' => 'string',
  1460. ),
  1461. 'maxResults' => array(
  1462. 'location' => 'query',
  1463. 'type' => 'integer',
  1464. ),
  1465. ),
  1466. ),
  1467. )
  1468. )
  1469. );
  1470. $this->tables_permissions = new Google_Service_MapsEngine_TablesPermissions_Resource(
  1471. $this,
  1472. $this->serviceName,
  1473. 'permissions',
  1474. array(
  1475. 'methods' => array(
  1476. 'batchDelete' => array(
  1477. 'path' => 'tables/{id}/permissions/batchDelete',
  1478. 'httpMethod' => 'POST',
  1479. 'parameters' => array(
  1480. 'id' => array(
  1481. 'location' => 'path',
  1482. 'type' => 'string',
  1483. 'required' => true,
  1484. ),
  1485. ),
  1486. ),'batchUpdate' => array(
  1487. 'path' => 'tables/{id}/permissions/batchUpdate',
  1488. 'httpMethod' => 'POST',
  1489. 'parameters' => array(
  1490. 'id' => array(
  1491. 'location' => 'path',
  1492. 'type' => 'string',
  1493. 'required' => true,
  1494. ),
  1495. ),
  1496. ),'list' => array(
  1497. 'path' => 'tables/{id}/permissions',
  1498. 'httpMethod' => 'GET',
  1499. 'parameters' => array(
  1500. 'id' => array(
  1501. 'location' => 'path',
  1502. 'type' => 'string',
  1503. 'required' => true,
  1504. ),
  1505. ),
  1506. ),
  1507. )
  1508. )
  1509. );
  1510. }
  1511. }
  1512. /**
  1513. * The "assets" collection of methods.
  1514. * Typical usage is:
  1515. * <code>
  1516. * $mapsengineService = new Google_Service_MapsEngine(...);
  1517. * $assets = $mapsengineService->assets;
  1518. * </code>
  1519. */
  1520. class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource
  1521. {
  1522. /**
  1523. * Return metadata for a particular asset. (assets.get)
  1524. *
  1525. * @param string $id The ID of the asset.
  1526. * @param array $optParams Optional parameters.
  1527. * @return Google_Service_MapsEngine_Asset
  1528. */
  1529. public function get($id, $optParams = array())
  1530. {
  1531. $params = array('id' => $id);
  1532. $params = array_merge($params, $optParams);
  1533. return $this->call('get', array($params), "Google_Service_MapsEngine_Asset");
  1534. }
  1535. /**
  1536. * Return all assets readable by the current user. (assets.listAssets)
  1537. *
  1538. * @param array $optParams Optional parameters.
  1539. *
  1540. * @opt_param string modifiedAfter An RFC 3339 formatted date-time value (e.g.
  1541. * 1970-01-01T00:00:00Z). Returned assets will have been modified at or after
  1542. * this time.
  1543. * @opt_param string createdAfter An RFC 3…

Large files files are truncated, but you can click here to view the full file