PageRenderTime 50ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/moodle/moodle
PHP | 2485 lines | 1933 code | 120 blank | 432 comment | 0 complexity | 4da58b4442e67e70513eb10fa265d53d MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0

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 Fusiontables (v2).
  19. *
  20. * <p>
  21. * API for working with Fusion Tables data.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/fusiontables" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Fusiontables extends Google_Service
  31. {
  32. /** Manage your Fusion Tables. */
  33. const FUSIONTABLES =
  34. "https://www.googleapis.com/auth/fusiontables";
  35. /** View your Fusion Tables. */
  36. const FUSIONTABLES_READONLY =
  37. "https://www.googleapis.com/auth/fusiontables.readonly";
  38. public $column;
  39. public $query;
  40. public $style;
  41. public $table;
  42. public $task;
  43. public $template;
  44. /**
  45. * Constructs the internal representation of the Fusiontables service.
  46. *
  47. * @param Google_Client $client
  48. */
  49. public function __construct(Google_Client $client)
  50. {
  51. parent::__construct($client);
  52. $this->rootUrl = 'https://www.googleapis.com/';
  53. $this->servicePath = 'fusiontables/v2/';
  54. $this->version = 'v2';
  55. $this->serviceName = 'fusiontables';
  56. $this->column = new Google_Service_Fusiontables_Column_Resource(
  57. $this,
  58. $this->serviceName,
  59. 'column',
  60. array(
  61. 'methods' => array(
  62. 'delete' => array(
  63. 'path' => 'tables/{tableId}/columns/{columnId}',
  64. 'httpMethod' => 'DELETE',
  65. 'parameters' => array(
  66. 'tableId' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. 'columnId' => array(
  72. 'location' => 'path',
  73. 'type' => 'string',
  74. 'required' => true,
  75. ),
  76. ),
  77. ),'get' => array(
  78. 'path' => 'tables/{tableId}/columns/{columnId}',
  79. 'httpMethod' => 'GET',
  80. 'parameters' => array(
  81. 'tableId' => array(
  82. 'location' => 'path',
  83. 'type' => 'string',
  84. 'required' => true,
  85. ),
  86. 'columnId' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. ),
  92. ),'insert' => array(
  93. 'path' => 'tables/{tableId}/columns',
  94. 'httpMethod' => 'POST',
  95. 'parameters' => array(
  96. 'tableId' => array(
  97. 'location' => 'path',
  98. 'type' => 'string',
  99. 'required' => true,
  100. ),
  101. ),
  102. ),'list' => array(
  103. 'path' => 'tables/{tableId}/columns',
  104. 'httpMethod' => 'GET',
  105. 'parameters' => array(
  106. 'tableId' => array(
  107. 'location' => 'path',
  108. 'type' => 'string',
  109. 'required' => true,
  110. ),
  111. 'pageToken' => array(
  112. 'location' => 'query',
  113. 'type' => 'string',
  114. ),
  115. 'maxResults' => array(
  116. 'location' => 'query',
  117. 'type' => 'integer',
  118. ),
  119. ),
  120. ),'patch' => array(
  121. 'path' => 'tables/{tableId}/columns/{columnId}',
  122. 'httpMethod' => 'PATCH',
  123. 'parameters' => array(
  124. 'tableId' => array(
  125. 'location' => 'path',
  126. 'type' => 'string',
  127. 'required' => true,
  128. ),
  129. 'columnId' => array(
  130. 'location' => 'path',
  131. 'type' => 'string',
  132. 'required' => true,
  133. ),
  134. ),
  135. ),'update' => array(
  136. 'path' => 'tables/{tableId}/columns/{columnId}',
  137. 'httpMethod' => 'PUT',
  138. 'parameters' => array(
  139. 'tableId' => array(
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ),
  144. 'columnId' => array(
  145. 'location' => 'path',
  146. 'type' => 'string',
  147. 'required' => true,
  148. ),
  149. ),
  150. ),
  151. )
  152. )
  153. );
  154. $this->query = new Google_Service_Fusiontables_Query_Resource(
  155. $this,
  156. $this->serviceName,
  157. 'query',
  158. array(
  159. 'methods' => array(
  160. 'sql' => array(
  161. 'path' => 'query',
  162. 'httpMethod' => 'POST',
  163. 'parameters' => array(
  164. 'sql' => array(
  165. 'location' => 'query',
  166. 'type' => 'string',
  167. 'required' => true,
  168. ),
  169. 'typed' => array(
  170. 'location' => 'query',
  171. 'type' => 'boolean',
  172. ),
  173. 'hdrs' => array(
  174. 'location' => 'query',
  175. 'type' => 'boolean',
  176. ),
  177. ),
  178. ),'sqlGet' => array(
  179. 'path' => 'query',
  180. 'httpMethod' => 'GET',
  181. 'parameters' => array(
  182. 'sql' => array(
  183. 'location' => 'query',
  184. 'type' => 'string',
  185. 'required' => true,
  186. ),
  187. 'typed' => array(
  188. 'location' => 'query',
  189. 'type' => 'boolean',
  190. ),
  191. 'hdrs' => array(
  192. 'location' => 'query',
  193. 'type' => 'boolean',
  194. ),
  195. ),
  196. ),
  197. )
  198. )
  199. );
  200. $this->style = new Google_Service_Fusiontables_Style_Resource(
  201. $this,
  202. $this->serviceName,
  203. 'style',
  204. array(
  205. 'methods' => array(
  206. 'delete' => array(
  207. 'path' => 'tables/{tableId}/styles/{styleId}',
  208. 'httpMethod' => 'DELETE',
  209. 'parameters' => array(
  210. 'tableId' => array(
  211. 'location' => 'path',
  212. 'type' => 'string',
  213. 'required' => true,
  214. ),
  215. 'styleId' => array(
  216. 'location' => 'path',
  217. 'type' => 'integer',
  218. 'required' => true,
  219. ),
  220. ),
  221. ),'get' => array(
  222. 'path' => 'tables/{tableId}/styles/{styleId}',
  223. 'httpMethod' => 'GET',
  224. 'parameters' => array(
  225. 'tableId' => array(
  226. 'location' => 'path',
  227. 'type' => 'string',
  228. 'required' => true,
  229. ),
  230. 'styleId' => array(
  231. 'location' => 'path',
  232. 'type' => 'integer',
  233. 'required' => true,
  234. ),
  235. ),
  236. ),'insert' => array(
  237. 'path' => 'tables/{tableId}/styles',
  238. 'httpMethod' => 'POST',
  239. 'parameters' => array(
  240. 'tableId' => array(
  241. 'location' => 'path',
  242. 'type' => 'string',
  243. 'required' => true,
  244. ),
  245. ),
  246. ),'list' => array(
  247. 'path' => 'tables/{tableId}/styles',
  248. 'httpMethod' => 'GET',
  249. 'parameters' => array(
  250. 'tableId' => array(
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ),
  255. 'pageToken' => array(
  256. 'location' => 'query',
  257. 'type' => 'string',
  258. ),
  259. 'maxResults' => array(
  260. 'location' => 'query',
  261. 'type' => 'integer',
  262. ),
  263. ),
  264. ),'patch' => array(
  265. 'path' => 'tables/{tableId}/styles/{styleId}',
  266. 'httpMethod' => 'PATCH',
  267. 'parameters' => array(
  268. 'tableId' => array(
  269. 'location' => 'path',
  270. 'type' => 'string',
  271. 'required' => true,
  272. ),
  273. 'styleId' => array(
  274. 'location' => 'path',
  275. 'type' => 'integer',
  276. 'required' => true,
  277. ),
  278. ),
  279. ),'update' => array(
  280. 'path' => 'tables/{tableId}/styles/{styleId}',
  281. 'httpMethod' => 'PUT',
  282. 'parameters' => array(
  283. 'tableId' => array(
  284. 'location' => 'path',
  285. 'type' => 'string',
  286. 'required' => true,
  287. ),
  288. 'styleId' => array(
  289. 'location' => 'path',
  290. 'type' => 'integer',
  291. 'required' => true,
  292. ),
  293. ),
  294. ),
  295. )
  296. )
  297. );
  298. $this->table = new Google_Service_Fusiontables_Table_Resource(
  299. $this,
  300. $this->serviceName,
  301. 'table',
  302. array(
  303. 'methods' => array(
  304. 'copy' => array(
  305. 'path' => 'tables/{tableId}/copy',
  306. 'httpMethod' => 'POST',
  307. 'parameters' => array(
  308. 'tableId' => array(
  309. 'location' => 'path',
  310. 'type' => 'string',
  311. 'required' => true,
  312. ),
  313. 'copyPresentation' => array(
  314. 'location' => 'query',
  315. 'type' => 'boolean',
  316. ),
  317. ),
  318. ),'delete' => array(
  319. 'path' => 'tables/{tableId}',
  320. 'httpMethod' => 'DELETE',
  321. 'parameters' => array(
  322. 'tableId' => array(
  323. 'location' => 'path',
  324. 'type' => 'string',
  325. 'required' => true,
  326. ),
  327. ),
  328. ),'get' => array(
  329. 'path' => 'tables/{tableId}',
  330. 'httpMethod' => 'GET',
  331. 'parameters' => array(
  332. 'tableId' => array(
  333. 'location' => 'path',
  334. 'type' => 'string',
  335. 'required' => true,
  336. ),
  337. ),
  338. ),'importRows' => array(
  339. 'path' => 'tables/{tableId}/import',
  340. 'httpMethod' => 'POST',
  341. 'parameters' => array(
  342. 'tableId' => array(
  343. 'location' => 'path',
  344. 'type' => 'string',
  345. 'required' => true,
  346. ),
  347. 'startLine' => array(
  348. 'location' => 'query',
  349. 'type' => 'integer',
  350. ),
  351. 'isStrict' => array(
  352. 'location' => 'query',
  353. 'type' => 'boolean',
  354. ),
  355. 'encoding' => array(
  356. 'location' => 'query',
  357. 'type' => 'string',
  358. ),
  359. 'delimiter' => array(
  360. 'location' => 'query',
  361. 'type' => 'string',
  362. ),
  363. 'endLine' => array(
  364. 'location' => 'query',
  365. 'type' => 'integer',
  366. ),
  367. ),
  368. ),'importTable' => array(
  369. 'path' => 'tables/import',
  370. 'httpMethod' => 'POST',
  371. 'parameters' => array(
  372. 'name' => array(
  373. 'location' => 'query',
  374. 'type' => 'string',
  375. 'required' => true,
  376. ),
  377. 'delimiter' => array(
  378. 'location' => 'query',
  379. 'type' => 'string',
  380. ),
  381. 'encoding' => array(
  382. 'location' => 'query',
  383. 'type' => 'string',
  384. ),
  385. ),
  386. ),'insert' => array(
  387. 'path' => 'tables',
  388. 'httpMethod' => 'POST',
  389. 'parameters' => array(),
  390. ),'list' => array(
  391. 'path' => 'tables',
  392. 'httpMethod' => 'GET',
  393. 'parameters' => array(
  394. 'pageToken' => array(
  395. 'location' => 'query',
  396. 'type' => 'string',
  397. ),
  398. 'maxResults' => array(
  399. 'location' => 'query',
  400. 'type' => 'integer',
  401. ),
  402. ),
  403. ),'patch' => array(
  404. 'path' => 'tables/{tableId}',
  405. 'httpMethod' => 'PATCH',
  406. 'parameters' => array(
  407. 'tableId' => array(
  408. 'location' => 'path',
  409. 'type' => 'string',
  410. 'required' => true,
  411. ),
  412. 'replaceViewDefinition' => array(
  413. 'location' => 'query',
  414. 'type' => 'boolean',
  415. ),
  416. ),
  417. ),'replaceRows' => array(
  418. 'path' => 'tables/{tableId}/replace',
  419. 'httpMethod' => 'POST',
  420. 'parameters' => array(
  421. 'tableId' => array(
  422. 'location' => 'path',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ),
  426. 'startLine' => array(
  427. 'location' => 'query',
  428. 'type' => 'integer',
  429. ),
  430. 'isStrict' => array(
  431. 'location' => 'query',
  432. 'type' => 'boolean',
  433. ),
  434. 'encoding' => array(
  435. 'location' => 'query',
  436. 'type' => 'string',
  437. ),
  438. 'delimiter' => array(
  439. 'location' => 'query',
  440. 'type' => 'string',
  441. ),
  442. 'endLine' => array(
  443. 'location' => 'query',
  444. 'type' => 'integer',
  445. ),
  446. ),
  447. ),'update' => array(
  448. 'path' => 'tables/{tableId}',
  449. 'httpMethod' => 'PUT',
  450. 'parameters' => array(
  451. 'tableId' => array(
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ),
  456. 'replaceViewDefinition' => array(
  457. 'location' => 'query',
  458. 'type' => 'boolean',
  459. ),
  460. ),
  461. ),
  462. )
  463. )
  464. );
  465. $this->task = new Google_Service_Fusiontables_Task_Resource(
  466. $this,
  467. $this->serviceName,
  468. 'task',
  469. array(
  470. 'methods' => array(
  471. 'delete' => array(
  472. 'path' => 'tables/{tableId}/tasks/{taskId}',
  473. 'httpMethod' => 'DELETE',
  474. 'parameters' => array(
  475. 'tableId' => array(
  476. 'location' => 'path',
  477. 'type' => 'string',
  478. 'required' => true,
  479. ),
  480. 'taskId' => array(
  481. 'location' => 'path',
  482. 'type' => 'string',
  483. 'required' => true,
  484. ),
  485. ),
  486. ),'get' => array(
  487. 'path' => 'tables/{tableId}/tasks/{taskId}',
  488. 'httpMethod' => 'GET',
  489. 'parameters' => array(
  490. 'tableId' => array(
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ),
  495. 'taskId' => array(
  496. 'location' => 'path',
  497. 'type' => 'string',
  498. 'required' => true,
  499. ),
  500. ),
  501. ),'list' => array(
  502. 'path' => 'tables/{tableId}/tasks',
  503. 'httpMethod' => 'GET',
  504. 'parameters' => array(
  505. 'tableId' => array(
  506. 'location' => 'path',
  507. 'type' => 'string',
  508. 'required' => true,
  509. ),
  510. 'pageToken' => array(
  511. 'location' => 'query',
  512. 'type' => 'string',
  513. ),
  514. 'startIndex' => array(
  515. 'location' => 'query',
  516. 'type' => 'integer',
  517. ),
  518. 'maxResults' => array(
  519. 'location' => 'query',
  520. 'type' => 'integer',
  521. ),
  522. ),
  523. ),
  524. )
  525. )
  526. );
  527. $this->template = new Google_Service_Fusiontables_Template_Resource(
  528. $this,
  529. $this->serviceName,
  530. 'template',
  531. array(
  532. 'methods' => array(
  533. 'delete' => array(
  534. 'path' => 'tables/{tableId}/templates/{templateId}',
  535. 'httpMethod' => 'DELETE',
  536. 'parameters' => array(
  537. 'tableId' => array(
  538. 'location' => 'path',
  539. 'type' => 'string',
  540. 'required' => true,
  541. ),
  542. 'templateId' => array(
  543. 'location' => 'path',
  544. 'type' => 'integer',
  545. 'required' => true,
  546. ),
  547. ),
  548. ),'get' => array(
  549. 'path' => 'tables/{tableId}/templates/{templateId}',
  550. 'httpMethod' => 'GET',
  551. 'parameters' => array(
  552. 'tableId' => array(
  553. 'location' => 'path',
  554. 'type' => 'string',
  555. 'required' => true,
  556. ),
  557. 'templateId' => array(
  558. 'location' => 'path',
  559. 'type' => 'integer',
  560. 'required' => true,
  561. ),
  562. ),
  563. ),'insert' => array(
  564. 'path' => 'tables/{tableId}/templates',
  565. 'httpMethod' => 'POST',
  566. 'parameters' => array(
  567. 'tableId' => array(
  568. 'location' => 'path',
  569. 'type' => 'string',
  570. 'required' => true,
  571. ),
  572. ),
  573. ),'list' => array(
  574. 'path' => 'tables/{tableId}/templates',
  575. 'httpMethod' => 'GET',
  576. 'parameters' => array(
  577. 'tableId' => array(
  578. 'location' => 'path',
  579. 'type' => 'string',
  580. 'required' => true,
  581. ),
  582. 'pageToken' => array(
  583. 'location' => 'query',
  584. 'type' => 'string',
  585. ),
  586. 'maxResults' => array(
  587. 'location' => 'query',
  588. 'type' => 'integer',
  589. ),
  590. ),
  591. ),'patch' => array(
  592. 'path' => 'tables/{tableId}/templates/{templateId}',
  593. 'httpMethod' => 'PATCH',
  594. 'parameters' => array(
  595. 'tableId' => array(
  596. 'location' => 'path',
  597. 'type' => 'string',
  598. 'required' => true,
  599. ),
  600. 'templateId' => array(
  601. 'location' => 'path',
  602. 'type' => 'integer',
  603. 'required' => true,
  604. ),
  605. ),
  606. ),'update' => array(
  607. 'path' => 'tables/{tableId}/templates/{templateId}',
  608. 'httpMethod' => 'PUT',
  609. 'parameters' => array(
  610. 'tableId' => array(
  611. 'location' => 'path',
  612. 'type' => 'string',
  613. 'required' => true,
  614. ),
  615. 'templateId' => array(
  616. 'location' => 'path',
  617. 'type' => 'integer',
  618. 'required' => true,
  619. ),
  620. ),
  621. ),
  622. )
  623. )
  624. );
  625. }
  626. }
  627. /**
  628. * The "column" collection of methods.
  629. * Typical usage is:
  630. * <code>
  631. * $fusiontablesService = new Google_Service_Fusiontables(...);
  632. * $column = $fusiontablesService->column;
  633. * </code>
  634. */
  635. class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource
  636. {
  637. /**
  638. * Deletes the specified column. (column.delete)
  639. *
  640. * @param string $tableId Table from which the column is being deleted.
  641. * @param string $columnId Name or identifier for the column being deleted.
  642. * @param array $optParams Optional parameters.
  643. */
  644. public function delete($tableId, $columnId, $optParams = array())
  645. {
  646. $params = array('tableId' => $tableId, 'columnId' => $columnId);
  647. $params = array_merge($params, $optParams);
  648. return $this->call('delete', array($params));
  649. }
  650. /**
  651. * Retrieves a specific column by its ID. (column.get)
  652. *
  653. * @param string $tableId Table to which the column belongs.
  654. * @param string $columnId Name or identifier for the column that is being
  655. * requested.
  656. * @param array $optParams Optional parameters.
  657. * @return Google_Service_Fusiontables_Column
  658. */
  659. public function get($tableId, $columnId, $optParams = array())
  660. {
  661. $params = array('tableId' => $tableId, 'columnId' => $columnId);
  662. $params = array_merge($params, $optParams);
  663. return $this->call('get', array($params), "Google_Service_Fusiontables_Column");
  664. }
  665. /**
  666. * Adds a new column to the table. (column.insert)
  667. *
  668. * @param string $tableId Table for which a new column is being added.
  669. * @param Google_Column $postBody
  670. * @param array $optParams Optional parameters.
  671. * @return Google_Service_Fusiontables_Column
  672. */
  673. public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
  674. {
  675. $params = array('tableId' => $tableId, 'postBody' => $postBody);
  676. $params = array_merge($params, $optParams);
  677. return $this->call('insert', array($params), "Google_Service_Fusiontables_Column");
  678. }
  679. /**
  680. * Retrieves a list of columns. (column.listColumn)
  681. *
  682. * @param string $tableId Table whose columns are being listed.
  683. * @param array $optParams Optional parameters.
  684. *
  685. * @opt_param string pageToken Continuation token specifying which result page
  686. * to return.
  687. * @opt_param string maxResults Maximum number of columns to return. Default is
  688. * 5.
  689. * @return Google_Service_Fusiontables_ColumnList
  690. */
  691. public function listColumn($tableId, $optParams = array())
  692. {
  693. $params = array('tableId' => $tableId);
  694. $params = array_merge($params, $optParams);
  695. return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList");
  696. }
  697. /**
  698. * Updates the name or type of an existing column. This method supports patch
  699. * semantics. (column.patch)
  700. *
  701. * @param string $tableId Table for which the column is being updated.
  702. * @param string $columnId Name or identifier for the column that is being
  703. * updated.
  704. * @param Google_Column $postBody
  705. * @param array $optParams Optional parameters.
  706. * @return Google_Service_Fusiontables_Column
  707. */
  708. public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
  709. {
  710. $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
  711. $params = array_merge($params, $optParams);
  712. return $this->call('patch', array($params), "Google_Service_Fusiontables_Column");
  713. }
  714. /**
  715. * Updates the name or type of an existing column. (column.update)
  716. *
  717. * @param string $tableId Table for which the column is being updated.
  718. * @param string $columnId Name or identifier for the column that is being
  719. * updated.
  720. * @param Google_Column $postBody
  721. * @param array $optParams Optional parameters.
  722. * @return Google_Service_Fusiontables_Column
  723. */
  724. public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
  725. {
  726. $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
  727. $params = array_merge($params, $optParams);
  728. return $this->call('update', array($params), "Google_Service_Fusiontables_Column");
  729. }
  730. }
  731. /**
  732. * The "query" collection of methods.
  733. * Typical usage is:
  734. * <code>
  735. * $fusiontablesService = new Google_Service_Fusiontables(...);
  736. * $query = $fusiontablesService->query;
  737. * </code>
  738. */
  739. class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource
  740. {
  741. /**
  742. * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT
  743. * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql)
  744. *
  745. * @param string $sql A Fusion Tables SQL statement, which can be any of -
  746. * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE
  747. * @param array $optParams Optional parameters.
  748. *
  749. * @opt_param bool typed Whether typed values are returned in the (JSON)
  750. * response: numbers for numeric values and parsed geometries for KML values.
  751. * Default is true.
  752. * @opt_param bool hdrs Whether column names are included in the first row.
  753. * Default is true.
  754. * @return Google_Service_Fusiontables_Sqlresponse
  755. */
  756. public function sql($sql, $optParams = array())
  757. {
  758. $params = array('sql' => $sql);
  759. $params = array_merge($params, $optParams);
  760. return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse");
  761. }
  762. /**
  763. * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE
  764. * (query.sqlGet)
  765. *
  766. * @param string $sql A SQL statement which can be any of - SELECT - SHOW -
  767. * DESCRIBE
  768. * @param array $optParams Optional parameters.
  769. *
  770. * @opt_param bool typed Whether typed values are returned in the (JSON)
  771. * response: numbers for numeric values and parsed geometries for KML values.
  772. * Default is true.
  773. * @opt_param bool hdrs Whether column names are included (in the first row).
  774. * Default is true.
  775. * @return Google_Service_Fusiontables_Sqlresponse
  776. */
  777. public function sqlGet($sql, $optParams = array())
  778. {
  779. $params = array('sql' => $sql);
  780. $params = array_merge($params, $optParams);
  781. return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse");
  782. }
  783. }
  784. /**
  785. * The "style" collection of methods.
  786. * Typical usage is:
  787. * <code>
  788. * $fusiontablesService = new Google_Service_Fusiontables(...);
  789. * $style = $fusiontablesService->style;
  790. * </code>
  791. */
  792. class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource
  793. {
  794. /**
  795. * Deletes a style. (style.delete)
  796. *
  797. * @param string $tableId Table from which the style is being deleted
  798. * @param int $styleId Identifier (within a table) for the style being deleted
  799. * @param array $optParams Optional parameters.
  800. */
  801. public function delete($tableId, $styleId, $optParams = array())
  802. {
  803. $params = array('tableId' => $tableId, 'styleId' => $styleId);
  804. $params = array_merge($params, $optParams);
  805. return $this->call('delete', array($params));
  806. }
  807. /**
  808. * Gets a specific style. (style.get)
  809. *
  810. * @param string $tableId Table to which the requested style belongs
  811. * @param int $styleId Identifier (integer) for a specific style in a table
  812. * @param array $optParams Optional parameters.
  813. * @return Google_Service_Fusiontables_StyleSetting
  814. */
  815. public function get($tableId, $styleId, $optParams = array())
  816. {
  817. $params = array('tableId' => $tableId, 'styleId' => $styleId);
  818. $params = array_merge($params, $optParams);
  819. return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting");
  820. }
  821. /**
  822. * Adds a new style for the table. (style.insert)
  823. *
  824. * @param string $tableId Table for which a new style is being added
  825. * @param Google_StyleSetting $postBody
  826. * @param array $optParams Optional parameters.
  827. * @return Google_Service_Fusiontables_StyleSetting
  828. */
  829. public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
  830. {
  831. $params = array('tableId' => $tableId, 'postBody' => $postBody);
  832. $params = array_merge($params, $optParams);
  833. return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting");
  834. }
  835. /**
  836. * Retrieves a list of styles. (style.listStyle)
  837. *
  838. * @param string $tableId Table whose styles are being listed
  839. * @param array $optParams Optional parameters.
  840. *
  841. * @opt_param string pageToken Continuation token specifying which result page
  842. * to return. Optional.
  843. * @opt_param string maxResults Maximum number of styles to return. Optional.
  844. * Default is 5.
  845. * @return Google_Service_Fusiontables_StyleSettingList
  846. */
  847. public function listStyle($tableId, $optParams = array())
  848. {
  849. $params = array('tableId' => $tableId);
  850. $params = array_merge($params, $optParams);
  851. return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList");
  852. }
  853. /**
  854. * Updates an existing style. This method supports patch semantics.
  855. * (style.patch)
  856. *
  857. * @param string $tableId Table whose style is being updated.
  858. * @param int $styleId Identifier (within a table) for the style being updated.
  859. * @param Google_StyleSetting $postBody
  860. * @param array $optParams Optional parameters.
  861. * @return Google_Service_Fusiontables_StyleSetting
  862. */
  863. public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
  864. {
  865. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
  866. $params = array_merge($params, $optParams);
  867. return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting");
  868. }
  869. /**
  870. * Updates an existing style. (style.update)
  871. *
  872. * @param string $tableId Table whose style is being updated.
  873. * @param int $styleId Identifier (within a table) for the style being updated.
  874. * @param Google_StyleSetting $postBody
  875. * @param array $optParams Optional parameters.
  876. * @return Google_Service_Fusiontables_StyleSetting
  877. */
  878. public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
  879. {
  880. $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
  881. $params = array_merge($params, $optParams);
  882. return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting");
  883. }
  884. }
  885. /**
  886. * The "table" collection of methods.
  887. * Typical usage is:
  888. * <code>
  889. * $fusiontablesService = new Google_Service_Fusiontables(...);
  890. * $table = $fusiontablesService->table;
  891. * </code>
  892. */
  893. class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource
  894. {
  895. /**
  896. * Copies a table. (table.copy)
  897. *
  898. * @param string $tableId ID of the table that is being copied.
  899. * @param array $optParams Optional parameters.
  900. *
  901. * @opt_param bool copyPresentation Whether to also copy tabs, styles, and
  902. * templates. Default is false.
  903. * @return Google_Service_Fusiontables_Table
  904. */
  905. public function copy($tableId, $optParams = array())
  906. {
  907. $params = array('tableId' => $tableId);
  908. $params = array_merge($params, $optParams);
  909. return $this->call('copy', array($params), "Google_Service_Fusiontables_Table");
  910. }
  911. /**
  912. * Deletes a table. (table.delete)
  913. *
  914. * @param string $tableId ID of the table to be deleted.
  915. * @param array $optParams Optional parameters.
  916. */
  917. public function delete($tableId, $optParams = array())
  918. {
  919. $params = array('tableId' => $tableId);
  920. $params = array_merge($params, $optParams);
  921. return $this->call('delete', array($params));
  922. }
  923. /**
  924. * Retrieves a specific table by its ID. (table.get)
  925. *
  926. * @param string $tableId Identifier for the table being requested.
  927. * @param array $optParams Optional parameters.
  928. * @return Google_Service_Fusiontables_Table
  929. */
  930. public function get($tableId, $optParams = array())
  931. {
  932. $params = array('tableId' => $tableId);
  933. $params = array_merge($params, $optParams);
  934. return $this->call('get', array($params), "Google_Service_Fusiontables_Table");
  935. }
  936. /**
  937. * Imports more rows into a table. (table.importRows)
  938. *
  939. * @param string $tableId The table into which new rows are being imported.
  940. * @param array $optParams Optional parameters.
  941. *
  942. * @opt_param int startLine The index of the first line from which to start
  943. * importing, inclusive. Default is 0.
  944. * @opt_param bool isStrict Whether the imported CSV must have the same number
  945. * of values for each row. If false, rows with fewer values will be padded with
  946. * empty values. Default is true.
  947. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
  948. * auto-detect if you are unsure of the encoding.
  949. * @opt_param string delimiter The delimiter used to separate cell values. This
  950. * can only consist of a single character. Default is ,.
  951. * @opt_param int endLine The index of the line up to which data will be
  952. * imported. Default is to import the entire file. If endLine is negative, it is
  953. * an offset from the end of the file; the imported content will exclude the
  954. * last endLine lines.
  955. * @return Google_Service_Fusiontables_Import
  956. */
  957. public function importRows($tableId, $optParams = array())
  958. {
  959. $params = array('tableId' => $tableId);
  960. $params = array_merge($params, $optParams);
  961. return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import");
  962. }
  963. /**
  964. * Imports a new table. (table.importTable)
  965. *
  966. * @param string $name The name to be assigned to the new table.
  967. * @param array $optParams Optional parameters.
  968. *
  969. * @opt_param string delimiter The delimiter used to separate cell values. This
  970. * can only consist of a single character. Default is ,.
  971. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
  972. * auto-detect if you are unsure of the encoding.
  973. * @return Google_Service_Fusiontables_Table
  974. */
  975. public function importTable($name, $optParams = array())
  976. {
  977. $params = array('name' => $name);
  978. $params = array_merge($params, $optParams);
  979. return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table");
  980. }
  981. /**
  982. * Creates a new table. (table.insert)
  983. *
  984. * @param Google_Table $postBody
  985. * @param array $optParams Optional parameters.
  986. * @return Google_Service_Fusiontables_Table
  987. */
  988. public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array())
  989. {
  990. $params = array('postBody' => $postBody);
  991. $params = array_merge($params, $optParams);
  992. return $this->call('insert', array($params), "Google_Service_Fusiontables_Table");
  993. }
  994. /**
  995. * Retrieves a list of tables a user owns. (table.listTable)
  996. *
  997. * @param array $optParams Optional parameters.
  998. *
  999. * @opt_param string pageToken Continuation token specifying which result page
  1000. * to return.
  1001. * @opt_param string maxResults Maximum number of tables to return. Default is
  1002. * 5.
  1003. * @return Google_Service_Fusiontables_TableList
  1004. */
  1005. public function listTable($optParams = array())
  1006. {
  1007. $params = array();
  1008. $params = array_merge($params, $optParams);
  1009. return $this->call('list', array($params), "Google_Service_Fusiontables_TableList");
  1010. }
  1011. /**
  1012. * Updates an existing table. Unless explicitly requested, only the name,
  1013. * description, and attribution will be updated. This method supports patch
  1014. * semantics. (table.patch)
  1015. *
  1016. * @param string $tableId ID of the table that is being updated.
  1017. * @param Google_Table $postBody
  1018. * @param array $optParams Optional parameters.
  1019. *
  1020. * @opt_param bool replaceViewDefinition Whether the view definition is also
  1021. * updated. The specified view definition replaces the existing one. Only a view
  1022. * can be updated with a new definition.
  1023. * @return Google_Service_Fusiontables_Table
  1024. */
  1025. public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
  1026. {
  1027. $params = array('tableId' => $tableId, 'postBody' => $postBody);
  1028. $params = array_merge($params, $optParams);
  1029. return $this->call('patch', array($params), "Google_Service_Fusiontables_Table");
  1030. }
  1031. /**
  1032. * Replaces rows of an existing table. Current rows remain visible until all
  1033. * replacement rows are ready. (table.replaceRows)
  1034. *
  1035. * @param string $tableId Table whose rows will be replaced.
  1036. * @param array $optParams Optional parameters.
  1037. *
  1038. * @opt_param int startLine The index of the first line from which to start
  1039. * importing, inclusive. Default is 0.
  1040. * @opt_param bool isStrict Whether the imported CSV must have the same number
  1041. * of column values for each row. If true, throws an exception if the CSV does
  1042. * not have the same number of columns. If false, rows with fewer column values
  1043. * will be padded with empty values. Default is true.
  1044. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
  1045. * 'auto-detect' if you are unsure of the encoding.
  1046. * @opt_param string delimiter The delimiter used to separate cell values. This
  1047. * can only consist of a single character. Default is ,.
  1048. * @opt_param int endLine The index of the line up to which data will be
  1049. * imported. Default is to import the entire file. If endLine is negative, it is
  1050. * an offset from the end of the file; the imported content will exclude the
  1051. * last endLine lines.
  1052. * @return Google_Service_Fusiontables_Task
  1053. */
  1054. public function replaceRows($tableId, $optParams = array())
  1055. {
  1056. $params = array('tableId' => $tableId);
  1057. $params = array_merge($params, $optParams);
  1058. return $this->call('replaceRows', array($params), "Google_Service_Fusiontables_Task");
  1059. }
  1060. /**
  1061. * Updates an existing table. Unless explicitly requested, only the name,
  1062. * description, and attribution will be updated. (table.update)
  1063. *
  1064. * @param string $tableId ID of the table that is being updated.
  1065. * @param Google_Table $postBody
  1066. * @param array $optParams Optional parameters.
  1067. *
  1068. * @opt_param bool replaceViewDefinition Whether the view definition is also
  1069. * updated. The specified view definition replaces the existing one. Only a view
  1070. * can be updated with a new definition.
  1071. * @return Google_Service_Fusiontables_Table
  1072. */
  1073. public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
  1074. {
  1075. $params = array('tableId' => $tableId, 'postBody' => $postBody);
  1076. $params = array_merge($params, $optParams);
  1077. return $this->call('update', array($params), "Google_Service_Fusiontables_Table");
  1078. }
  1079. }
  1080. /**
  1081. * The "task" collection of methods.
  1082. * Typical usage is:
  1083. * <code>
  1084. * $fusiontablesService = new Google_Service_Fusiontables(...);
  1085. * $task = $fusiontablesService->task;
  1086. * </code>
  1087. */
  1088. class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource
  1089. {
  1090. /**
  1091. * Deletes a specific task by its ID, unless that task has already started
  1092. * running. (task.delete)
  1093. *
  1094. * @param string $tableId Table from which the task is being deleted.
  1095. * @param string $taskId The identifier of the task to delete.
  1096. * @param array $optParams Optional parameters.
  1097. */
  1098. public function delete($tableId, $taskId, $optParams = array())
  1099. {
  1100. $params = array('tableId' => $tableId, 'taskId' => $taskId);
  1101. $params = array_merge($params, $optParams);
  1102. return $this->call('delete', array($params));
  1103. }
  1104. /**
  1105. * Retrieves a specific task by its ID. (task.get)
  1106. *
  1107. * @param string $tableId Table to which the task belongs.
  1108. * @param string $taskId The identifier of the task to get.
  1109. * @param array $optParams Optional parameters.
  1110. * @return Google_Service_Fusiontables_Task
  1111. */
  1112. public function get($tableId, $taskId, $optParams = array())
  1113. {
  1114. $params = array('tableId' => $tableId, 'taskId' => $taskId);
  1115. $params = array_merge($params, $optParams);
  1116. return $this->call('get', array($params), "Google_Service_Fusiontables_Task");
  1117. }
  1118. /**
  1119. * Retrieves a list of tasks. (task.listTask)
  1120. *
  1121. * @param string $tableId Table whose tasks are being listed.
  1122. * @param array $optParams Optional parameters.
  1123. *
  1124. * @opt_param string pageToken Continuation token specifying which result page
  1125. * to return.
  1126. * @opt_param string startIndex Index of the first result returned in the
  1127. * current page.
  1128. * @opt_param string maxResults Maximum number of tasks to return. Default is 5.
  1129. * @return Google_Service_Fusiontables_TaskList
  1130. */
  1131. public function listTask($tableId, $optParams = array())
  1132. {
  1133. $params = array('tableId' => $tableId);
  1134. $params = array_merge($params, $optParams);
  1135. return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList");
  1136. }
  1137. }
  1138. /**
  1139. * The "template" collection of methods.
  1140. * Typical usage is:
  1141. * <code>
  1142. * $fusiontablesService = new Google_Service_Fusiontables(...);
  1143. * $template = $fusiontablesService->template;
  1144. * </code>
  1145. */
  1146. class Google_Service_Fusiontables_Template_Resource extends Google_Service_Resource
  1147. {
  1148. /**
  1149. * Deletes a template (template.delete)
  1150. *
  1151. * @param string $tableId Table from which the template is being deleted
  1152. * @param int $templateId Identifier for the template which is being deleted
  1153. * @param array $optParams Optional parameters.
  1154. */
  1155. public function delete($tableId, $templateId, $optParams = array())
  1156. {
  1157. $params = array('tableId' => $tableId, 'templateId' => $templateId);
  1158. $params = array_merge($params, $optParams);
  1159. return $this->call('delete', array($params));
  1160. }
  1161. /**
  1162. * Retrieves a specific template by its id (template.get)
  1163. *
  1164. * @param string $tableId Table to which the template belongs
  1165. * @param int $templateId Identifier for the template that is being requested
  1166. * @param array $optParams Optional parameters.
  1167. * @return Google_Service_Fusiontables_Template
  1168. */
  1169. public function get($tableId, $templateId, $optParams = array())
  1170. {
  1171. $params = array('tableId' => $tableId, 'templateId' => $templateId);
  1172. $params = array_merge($params, $optParams);
  1173. return $this->call('get', array($params), "Google_Service_Fusiontables_Template");
  1174. }
  1175. /**
  1176. * Creates a new template for the table. (template.insert)
  1177. *
  1178. * @param string $tableId Table for which a new template is being created
  1179. * @param Google_Template $postBody
  1180. * @param array $optParams Optional parameters.
  1181. * @return Google_Service_Fusiontables_Template
  1182. */
  1183. public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
  1184. {
  1185. $params = array('tableId' => $tableId, 'postBody' => $postBody);
  1186. $params = array_merge($params, $optParams);
  1187. return $this->call('insert', array($params), "Google_Service_Fusiontables_Template");
  1188. }
  1189. /**
  1190. * Retrieves a list of templates. (template.listTemplate)
  1191. *
  1192. * @param string $tableId Identifier for the table whose templates are being
  1193. * requested
  1194. * @param array $optParams Optional parameters.
  1195. *
  1196. * @opt_param string pageToken Continuation token specifying which results page
  1197. * to return. Optional.
  1198. * @opt_param string maxResults Maximum number of templates to return. Optional.
  1199. * Default is 5.
  1200. * @return Google_Service_Fusiontables_TemplateList
  1201. */
  1202. public function listTemplate($tableId, $optParams = array())
  1203. {
  1204. $params = array('tableId' => $tableId);
  1205. $params = array_merge($params, $optParams);
  1206. return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList");
  1207. }
  1208. /**
  1209. * Updates an existing template. This method supports patch semantics.
  1210. * (template.patch)
  1211. *
  1212. * @param string $tableId Table to which the updated template belongs
  1213. * @param int $templateId Identifier for the template that is being updated
  1214. * @param Google_Template $postBody
  1215. * @param array $optParams Optional parameters.
  1216. * @return Google_Service_Fusiontables_Template
  1217. */
  1218. public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
  1219. {
  1220. $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
  1221. $params = array_merge($params, $optParams);
  1222. return $this->call('patch', array($params), "Google_Service_Fusiontables_Template");
  1223. }
  1224. /**
  1225. * Updates an existing template (template.update)
  1226. *
  1227. * @param string $tableId Table to which the updated template belongs
  1228. * @param int $templateId Identifier for the template that is being updated
  1229. * @param Google_Template $postBody
  1230. * @param array $optParams Optional parameters.
  1231. * @return Google_Service_Fusiontables_Template
  1232. */
  1233. public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
  1234. {
  1235. $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
  1236. $params = array_merge($params, $optParams);
  1237. return $this->call('update', array($params), "Google_Service_Fusiontables_Template");
  1238. }
  1239. }
  1240. class Google_Service_Fusiontables_Bucket extends Google_Model
  1241. {
  1242. protected $internal_gapi_mappings = array(
  1243. );
  1244. public $color;
  1245. public $icon;
  1246. public $max;
  1247. public $min;
  1248. public $opacity;
  1249. public $weight;
  1250. public function setColor($color)
  1251. {
  1252. $this->color = $color;
  1253. }
  1254. public function getColor()
  1255. {
  1256. return $this->color;
  1257. }
  1258. public function setIcon($icon)
  1259. {
  1260. $this->icon = $icon;
  1261. }
  1262. public function getIcon()
  1263. {
  1264. return $this->icon;
  1265. }
  1266. public function setMax($max)
  1267. {
  1268. $this->max = $max;
  1269. }
  1270. public function getMax()
  1271. {
  1272. return $this->max;
  1273. }
  1274. public function setMin($min)
  1275. {
  1276. $this->min = $min;
  1277. }
  1278. public function getMin()
  1279. {
  1280. return $this->min;
  1281. }
  1282. public function setOpacity($opacity)
  1283. {
  1284. $this->opacity = $opacity;
  1285. }
  1286. public function getOpacity()
  1287. {
  1288. return $this->opacity;
  1289. }
  1290. public function setWeight($weight)
  1291. {
  1292. $this->weight = $weight;
  1293. }
  1294. public function getWeight()
  1295. {
  1296. return $this->weight;
  1297. }
  1298. }
  1299. class Google_Service_Fusiontables_Column extends Google_Collection
  1300. {
  1301. protected $collection_key = 'validValues';
  1302. protected $internal_gapi_mappings = array(
  1303. );
  1304. protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn';
  1305. protected $baseColumnDataType = '';
  1306. public $columnId;
  1307. public $columnJsonSchema;
  1308. public $columnPropertiesJson;
  1309. public $description;
  1310. public $formatPattern;
  1311. public $graphPredicate;
  1312. public $kind;
  1313. public $name;
  1314. public $type;
  1315. public $validValues;
  1316. public $validateData;
  1317. public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn)
  1318. {
  1319. $this->baseColumn = $baseColumn;
  1320. }
  1321. public function getBaseColumn()
  1322. {
  1323. return $this->baseColumn;
  1324. }
  1325. public function setColumnId($columnId)
  1326. {
  1327. $this->columnId = $columnId;
  1328. }
  1329. public function getColumnId()
  1330. {
  1331. return $this->columnId;
  1332. }
  1333. public function setColumnJsonSchema($columnJsonSchema)
  1334. {
  1335. $this->columnJsonSchema = $columnJsonSchema;
  1336. }
  1337. public function getColumnJsonSchema()
  1338. {
  1339. return $this->columnJsonSchema;
  1340. }
  1341. public function setColumnPropertiesJson($columnPropertiesJson)
  1342. {
  1343. $this->columnPropertiesJson = $columnPropertiesJson;
  1344. }
  1345. public function getColumnPropertiesJson()
  1346. {
  1347. return $this->columnPropertiesJson;
  1348. }
  1349. public function setDescription($description)
  1350. {
  1351. $this->description = $description;
  1352. }
  1353. public function getDescription()
  1354. {
  1355. return $this->description;
  1356. }
  1357. public function setFormatPattern($formatPattern)
  1358. {
  1359. $this->formatPattern = $formatPattern;
  1360. }
  1361. public function getFormatPattern()
  1362. {
  1363. return $this->formatPattern;
  1364. }
  1365. public function setGraphPredicate($graphPredicate)
  1366. {
  1367. $this->graphPredicate = $graphPredicate;
  1368. }
  1369. public function getGraphPredicate()
  1370. {
  1371. return $this->graphPredicate;
  1372. }
  1373. public function setKind($kind)
  1374. {
  1375. $this->kind = $kind;
  1376. }
  1377. public function getKind()
  1378. {
  1379. return $this->kind;
  1380. }
  1381. public function setName($name)
  1382. {
  1383. $this->name = $name;
  1384. }
  1385. public function getName()
  1386. {
  1387. return $this->name;
  1388. }
  1389. public function setType($type)
  1390. {
  1391. $this->type = $type;
  1392. }
  1393. public function getType()
  1394. {
  1395. return $this->type;
  1396. }
  1397. public function setValidValues($validValues)
  1398. {
  1399. $this->validValues = $validValues;
  1400. }
  1401. public function getValidValues()
  1402. {
  1403. return $this->validValues;
  1404. }
  1405. public function setValidateData($validateData)
  1406. {
  1407. $this->validateData = $validateData;
  1408. }
  1409. public function getValidateData()
  1410. {
  1411. return $this->validateData;
  1412. }
  1413. }
  1414. class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model
  1415. {
  1416. protected $internal_gapi_mappings = array(
  1417. );
  1418. public $columnId;
  1419. public $tableIndex;
  1420. public function setColumnId($columnId)
  1421. {
  1422. $this->columnId = $columnId;
  1423. }
  1424. public function getColumnId()
  1425. {
  1426. return $this->columnId;
  1427. }
  1428. public function setTableIndex($tableIndex)
  1429. {
  1430. $this->tableIndex = $tableIndex;
  1431. }
  1432. public function getTableIndex()
  1433. {
  1434. return $this->tableIndex;
  1435. }
  1436. }
  1437. class Google_Service_Fusiontables_ColumnList extends Google_Collection
  1438. {
  1439. protected $collection_key = 'items';
  1440. protected $internal_gapi_mappings = array(
  1441. );
  1442. protected $itemsType = 'Google_Service_Fusiontables_Column';
  1443. protected $itemsDataType = 'array';
  1444. p

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