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

/src/Google/Service/Books.php

https://github.com/leogaggl/pluspress
PHP | 6403 lines | 4799 code | 795 blank | 809 comment | 0 complexity | b346546cf50c3ac7b21c9eea0f97d303 MD5 | raw file

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 Books (v1).
  19. *
  20. * <p>
  21. * Lets you search for books and manage your Google Books library.
  22. * </p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/books/docs/v1/getting_started" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Books extends Google_Service
  32. {
  33. /** Manage your books. */
  34. const BOOKS = "https://www.googleapis.com/auth/books";
  35. public $bookshelves;
  36. public $bookshelves_volumes;
  37. public $cloudloading;
  38. public $layers;
  39. public $layers_annotationData;
  40. public $layers_volumeAnnotations;
  41. public $myconfig;
  42. public $mylibrary_annotations;
  43. public $mylibrary_bookshelves;
  44. public $mylibrary_bookshelves_volumes;
  45. public $mylibrary_readingpositions;
  46. public $volumes;
  47. public $volumes_associated;
  48. public $volumes_mybooks;
  49. public $volumes_recommended;
  50. public $volumes_useruploaded;
  51. /**
  52. * Constructs the internal representation of the Books service.
  53. *
  54. * @param Google_Client $client
  55. */
  56. public function __construct(Google_Client $client)
  57. {
  58. parent::__construct($client);
  59. $this->servicePath = 'books/v1/';
  60. $this->version = 'v1';
  61. $this->serviceName = 'books';
  62. $this->bookshelves = new Google_Service_Books_Bookshelves_Resource(
  63. $this,
  64. $this->serviceName,
  65. 'bookshelves',
  66. array(
  67. 'methods' => array(
  68. 'get' => array(
  69. 'path' => 'users/{userId}/bookshelves/{shelf}',
  70. 'httpMethod' => 'GET',
  71. 'parameters' => array(
  72. 'userId' => array(
  73. 'location' => 'path',
  74. 'type' => 'string',
  75. 'required' => true,
  76. ),
  77. 'shelf' => array(
  78. 'location' => 'path',
  79. 'type' => 'string',
  80. 'required' => true,
  81. ),
  82. 'source' => array(
  83. 'location' => 'query',
  84. 'type' => 'string',
  85. ),
  86. ),
  87. ),'list' => array(
  88. 'path' => 'users/{userId}/bookshelves',
  89. 'httpMethod' => 'GET',
  90. 'parameters' => array(
  91. 'userId' => array(
  92. 'location' => 'path',
  93. 'type' => 'string',
  94. 'required' => true,
  95. ),
  96. 'source' => array(
  97. 'location' => 'query',
  98. 'type' => 'string',
  99. ),
  100. ),
  101. ),
  102. )
  103. )
  104. );
  105. $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource(
  106. $this,
  107. $this->serviceName,
  108. 'volumes',
  109. array(
  110. 'methods' => array(
  111. 'list' => array(
  112. 'path' => 'users/{userId}/bookshelves/{shelf}/volumes',
  113. 'httpMethod' => 'GET',
  114. 'parameters' => array(
  115. 'userId' => array(
  116. 'location' => 'path',
  117. 'type' => 'string',
  118. 'required' => true,
  119. ),
  120. 'shelf' => array(
  121. 'location' => 'path',
  122. 'type' => 'string',
  123. 'required' => true,
  124. ),
  125. 'showPreorders' => array(
  126. 'location' => 'query',
  127. 'type' => 'boolean',
  128. ),
  129. 'maxResults' => array(
  130. 'location' => 'query',
  131. 'type' => 'integer',
  132. ),
  133. 'source' => array(
  134. 'location' => 'query',
  135. 'type' => 'string',
  136. ),
  137. 'startIndex' => array(
  138. 'location' => 'query',
  139. 'type' => 'integer',
  140. ),
  141. ),
  142. ),
  143. )
  144. )
  145. );
  146. $this->cloudloading = new Google_Service_Books_Cloudloading_Resource(
  147. $this,
  148. $this->serviceName,
  149. 'cloudloading',
  150. array(
  151. 'methods' => array(
  152. 'addBook' => array(
  153. 'path' => 'cloudloading/addBook',
  154. 'httpMethod' => 'POST',
  155. 'parameters' => array(
  156. 'upload_client_token' => array(
  157. 'location' => 'query',
  158. 'type' => 'string',
  159. ),
  160. 'drive_document_id' => array(
  161. 'location' => 'query',
  162. 'type' => 'string',
  163. ),
  164. 'mime_type' => array(
  165. 'location' => 'query',
  166. 'type' => 'string',
  167. ),
  168. 'name' => array(
  169. 'location' => 'query',
  170. 'type' => 'string',
  171. ),
  172. ),
  173. ),'deleteBook' => array(
  174. 'path' => 'cloudloading/deleteBook',
  175. 'httpMethod' => 'POST',
  176. 'parameters' => array(
  177. 'volumeId' => array(
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ),
  182. ),
  183. ),'updateBook' => array(
  184. 'path' => 'cloudloading/updateBook',
  185. 'httpMethod' => 'POST',
  186. 'parameters' => array(),
  187. ),
  188. )
  189. )
  190. );
  191. $this->layers = new Google_Service_Books_Layers_Resource(
  192. $this,
  193. $this->serviceName,
  194. 'layers',
  195. array(
  196. 'methods' => array(
  197. 'get' => array(
  198. 'path' => 'volumes/{volumeId}/layersummary/{summaryId}',
  199. 'httpMethod' => 'GET',
  200. 'parameters' => array(
  201. 'volumeId' => array(
  202. 'location' => 'path',
  203. 'type' => 'string',
  204. 'required' => true,
  205. ),
  206. 'summaryId' => array(
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ),
  211. 'source' => array(
  212. 'location' => 'query',
  213. 'type' => 'string',
  214. ),
  215. 'contentVersion' => array(
  216. 'location' => 'query',
  217. 'type' => 'string',
  218. ),
  219. ),
  220. ),'list' => array(
  221. 'path' => 'volumes/{volumeId}/layersummary',
  222. 'httpMethod' => 'GET',
  223. 'parameters' => array(
  224. 'volumeId' => array(
  225. 'location' => 'path',
  226. 'type' => 'string',
  227. 'required' => true,
  228. ),
  229. 'pageToken' => array(
  230. 'location' => 'query',
  231. 'type' => 'string',
  232. ),
  233. 'contentVersion' => array(
  234. 'location' => 'query',
  235. 'type' => 'string',
  236. ),
  237. 'maxResults' => array(
  238. 'location' => 'query',
  239. 'type' => 'integer',
  240. ),
  241. 'source' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ),
  245. ),
  246. ),
  247. )
  248. )
  249. );
  250. $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource(
  251. $this,
  252. $this->serviceName,
  253. 'annotationData',
  254. array(
  255. 'methods' => array(
  256. 'get' => array(
  257. 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}',
  258. 'httpMethod' => 'GET',
  259. 'parameters' => array(
  260. 'volumeId' => array(
  261. 'location' => 'path',
  262. 'type' => 'string',
  263. 'required' => true,
  264. ),
  265. 'layerId' => array(
  266. 'location' => 'path',
  267. 'type' => 'string',
  268. 'required' => true,
  269. ),
  270. 'annotationDataId' => array(
  271. 'location' => 'path',
  272. 'type' => 'string',
  273. 'required' => true,
  274. ),
  275. 'contentVersion' => array(
  276. 'location' => 'query',
  277. 'type' => 'string',
  278. 'required' => true,
  279. ),
  280. 'scale' => array(
  281. 'location' => 'query',
  282. 'type' => 'integer',
  283. ),
  284. 'source' => array(
  285. 'location' => 'query',
  286. 'type' => 'string',
  287. ),
  288. 'allowWebDefinitions' => array(
  289. 'location' => 'query',
  290. 'type' => 'boolean',
  291. ),
  292. 'h' => array(
  293. 'location' => 'query',
  294. 'type' => 'integer',
  295. ),
  296. 'locale' => array(
  297. 'location' => 'query',
  298. 'type' => 'string',
  299. ),
  300. 'w' => array(
  301. 'location' => 'query',
  302. 'type' => 'integer',
  303. ),
  304. ),
  305. ),'list' => array(
  306. 'path' => 'volumes/{volumeId}/layers/{layerId}/data',
  307. 'httpMethod' => 'GET',
  308. 'parameters' => array(
  309. 'volumeId' => array(
  310. 'location' => 'path',
  311. 'type' => 'string',
  312. 'required' => true,
  313. ),
  314. 'layerId' => array(
  315. 'location' => 'path',
  316. 'type' => 'string',
  317. 'required' => true,
  318. ),
  319. 'contentVersion' => array(
  320. 'location' => 'query',
  321. 'type' => 'string',
  322. 'required' => true,
  323. ),
  324. 'scale' => array(
  325. 'location' => 'query',
  326. 'type' => 'integer',
  327. ),
  328. 'source' => array(
  329. 'location' => 'query',
  330. 'type' => 'string',
  331. ),
  332. 'locale' => array(
  333. 'location' => 'query',
  334. 'type' => 'string',
  335. ),
  336. 'h' => array(
  337. 'location' => 'query',
  338. 'type' => 'integer',
  339. ),
  340. 'updatedMax' => array(
  341. 'location' => 'query',
  342. 'type' => 'string',
  343. ),
  344. 'maxResults' => array(
  345. 'location' => 'query',
  346. 'type' => 'integer',
  347. ),
  348. 'annotationDataId' => array(
  349. 'location' => 'query',
  350. 'type' => 'string',
  351. 'repeated' => true,
  352. ),
  353. 'pageToken' => array(
  354. 'location' => 'query',
  355. 'type' => 'string',
  356. ),
  357. 'w' => array(
  358. 'location' => 'query',
  359. 'type' => 'integer',
  360. ),
  361. 'updatedMin' => array(
  362. 'location' => 'query',
  363. 'type' => 'string',
  364. ),
  365. ),
  366. ),
  367. )
  368. )
  369. );
  370. $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource(
  371. $this,
  372. $this->serviceName,
  373. 'volumeAnnotations',
  374. array(
  375. 'methods' => array(
  376. 'get' => array(
  377. 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}',
  378. 'httpMethod' => 'GET',
  379. 'parameters' => array(
  380. 'volumeId' => array(
  381. 'location' => 'path',
  382. 'type' => 'string',
  383. 'required' => true,
  384. ),
  385. 'layerId' => array(
  386. 'location' => 'path',
  387. 'type' => 'string',
  388. 'required' => true,
  389. ),
  390. 'annotationId' => array(
  391. 'location' => 'path',
  392. 'type' => 'string',
  393. 'required' => true,
  394. ),
  395. 'locale' => array(
  396. 'location' => 'query',
  397. 'type' => 'string',
  398. ),
  399. 'source' => array(
  400. 'location' => 'query',
  401. 'type' => 'string',
  402. ),
  403. ),
  404. ),'list' => array(
  405. 'path' => 'volumes/{volumeId}/layers/{layerId}',
  406. 'httpMethod' => 'GET',
  407. 'parameters' => array(
  408. 'volumeId' => array(
  409. 'location' => 'path',
  410. 'type' => 'string',
  411. 'required' => true,
  412. ),
  413. 'layerId' => array(
  414. 'location' => 'path',
  415. 'type' => 'string',
  416. 'required' => true,
  417. ),
  418. 'contentVersion' => array(
  419. 'location' => 'query',
  420. 'type' => 'string',
  421. 'required' => true,
  422. ),
  423. 'showDeleted' => array(
  424. 'location' => 'query',
  425. 'type' => 'boolean',
  426. ),
  427. 'volumeAnnotationsVersion' => array(
  428. 'location' => 'query',
  429. 'type' => 'string',
  430. ),
  431. 'endPosition' => array(
  432. 'location' => 'query',
  433. 'type' => 'string',
  434. ),
  435. 'endOffset' => array(
  436. 'location' => 'query',
  437. 'type' => 'string',
  438. ),
  439. 'locale' => array(
  440. 'location' => 'query',
  441. 'type' => 'string',
  442. ),
  443. 'updatedMin' => array(
  444. 'location' => 'query',
  445. 'type' => 'string',
  446. ),
  447. 'updatedMax' => array(
  448. 'location' => 'query',
  449. 'type' => 'string',
  450. ),
  451. 'maxResults' => array(
  452. 'location' => 'query',
  453. 'type' => 'integer',
  454. ),
  455. 'pageToken' => array(
  456. 'location' => 'query',
  457. 'type' => 'string',
  458. ),
  459. 'source' => array(
  460. 'location' => 'query',
  461. 'type' => 'string',
  462. ),
  463. 'startOffset' => array(
  464. 'location' => 'query',
  465. 'type' => 'string',
  466. ),
  467. 'startPosition' => array(
  468. 'location' => 'query',
  469. 'type' => 'string',
  470. ),
  471. ),
  472. ),
  473. )
  474. )
  475. );
  476. $this->myconfig = new Google_Service_Books_Myconfig_Resource(
  477. $this,
  478. $this->serviceName,
  479. 'myconfig',
  480. array(
  481. 'methods' => array(
  482. 'releaseDownloadAccess' => array(
  483. 'path' => 'myconfig/releaseDownloadAccess',
  484. 'httpMethod' => 'POST',
  485. 'parameters' => array(
  486. 'volumeIds' => array(
  487. 'location' => 'query',
  488. 'type' => 'string',
  489. 'repeated' => true,
  490. 'required' => true,
  491. ),
  492. 'cpksver' => array(
  493. 'location' => 'query',
  494. 'type' => 'string',
  495. 'required' => true,
  496. ),
  497. 'locale' => array(
  498. 'location' => 'query',
  499. 'type' => 'string',
  500. ),
  501. 'source' => array(
  502. 'location' => 'query',
  503. 'type' => 'string',
  504. ),
  505. ),
  506. ),'requestAccess' => array(
  507. 'path' => 'myconfig/requestAccess',
  508. 'httpMethod' => 'POST',
  509. 'parameters' => array(
  510. 'source' => array(
  511. 'location' => 'query',
  512. 'type' => 'string',
  513. 'required' => true,
  514. ),
  515. 'volumeId' => array(
  516. 'location' => 'query',
  517. 'type' => 'string',
  518. 'required' => true,
  519. ),
  520. 'nonce' => array(
  521. 'location' => 'query',
  522. 'type' => 'string',
  523. 'required' => true,
  524. ),
  525. 'cpksver' => array(
  526. 'location' => 'query',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ),
  530. 'licenseTypes' => array(
  531. 'location' => 'query',
  532. 'type' => 'string',
  533. ),
  534. 'locale' => array(
  535. 'location' => 'query',
  536. 'type' => 'string',
  537. ),
  538. ),
  539. ),'syncVolumeLicenses' => array(
  540. 'path' => 'myconfig/syncVolumeLicenses',
  541. 'httpMethod' => 'POST',
  542. 'parameters' => array(
  543. 'source' => array(
  544. 'location' => 'query',
  545. 'type' => 'string',
  546. 'required' => true,
  547. ),
  548. 'nonce' => array(
  549. 'location' => 'query',
  550. 'type' => 'string',
  551. 'required' => true,
  552. ),
  553. 'cpksver' => array(
  554. 'location' => 'query',
  555. 'type' => 'string',
  556. 'required' => true,
  557. ),
  558. 'features' => array(
  559. 'location' => 'query',
  560. 'type' => 'string',
  561. 'repeated' => true,
  562. ),
  563. 'locale' => array(
  564. 'location' => 'query',
  565. 'type' => 'string',
  566. ),
  567. 'showPreorders' => array(
  568. 'location' => 'query',
  569. 'type' => 'boolean',
  570. ),
  571. 'volumeIds' => array(
  572. 'location' => 'query',
  573. 'type' => 'string',
  574. 'repeated' => true,
  575. ),
  576. ),
  577. ),
  578. )
  579. )
  580. );
  581. $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource(
  582. $this,
  583. $this->serviceName,
  584. 'annotations',
  585. array(
  586. 'methods' => array(
  587. 'delete' => array(
  588. 'path' => 'mylibrary/annotations/{annotationId}',
  589. 'httpMethod' => 'DELETE',
  590. 'parameters' => array(
  591. 'annotationId' => array(
  592. 'location' => 'path',
  593. 'type' => 'string',
  594. 'required' => true,
  595. ),
  596. 'source' => array(
  597. 'location' => 'query',
  598. 'type' => 'string',
  599. ),
  600. ),
  601. ),'get' => array(
  602. 'path' => 'mylibrary/annotations/{annotationId}',
  603. 'httpMethod' => 'GET',
  604. 'parameters' => array(
  605. 'annotationId' => array(
  606. 'location' => 'path',
  607. 'type' => 'string',
  608. 'required' => true,
  609. ),
  610. 'source' => array(
  611. 'location' => 'query',
  612. 'type' => 'string',
  613. ),
  614. ),
  615. ),'insert' => array(
  616. 'path' => 'mylibrary/annotations',
  617. 'httpMethod' => 'POST',
  618. 'parameters' => array(
  619. 'source' => array(
  620. 'location' => 'query',
  621. 'type' => 'string',
  622. ),
  623. 'showOnlySummaryInResponse' => array(
  624. 'location' => 'query',
  625. 'type' => 'boolean',
  626. ),
  627. ),
  628. ),'list' => array(
  629. 'path' => 'mylibrary/annotations',
  630. 'httpMethod' => 'GET',
  631. 'parameters' => array(
  632. 'showDeleted' => array(
  633. 'location' => 'query',
  634. 'type' => 'boolean',
  635. ),
  636. 'updatedMin' => array(
  637. 'location' => 'query',
  638. 'type' => 'string',
  639. ),
  640. 'layerIds' => array(
  641. 'location' => 'query',
  642. 'type' => 'string',
  643. 'repeated' => true,
  644. ),
  645. 'volumeId' => array(
  646. 'location' => 'query',
  647. 'type' => 'string',
  648. ),
  649. 'maxResults' => array(
  650. 'location' => 'query',
  651. 'type' => 'integer',
  652. ),
  653. 'pageToken' => array(
  654. 'location' => 'query',
  655. 'type' => 'string',
  656. ),
  657. 'pageIds' => array(
  658. 'location' => 'query',
  659. 'type' => 'string',
  660. 'repeated' => true,
  661. ),
  662. 'contentVersion' => array(
  663. 'location' => 'query',
  664. 'type' => 'string',
  665. ),
  666. 'source' => array(
  667. 'location' => 'query',
  668. 'type' => 'string',
  669. ),
  670. 'layerId' => array(
  671. 'location' => 'query',
  672. 'type' => 'string',
  673. ),
  674. 'updatedMax' => array(
  675. 'location' => 'query',
  676. 'type' => 'string',
  677. ),
  678. ),
  679. ),'summary' => array(
  680. 'path' => 'mylibrary/annotations/summary',
  681. 'httpMethod' => 'POST',
  682. 'parameters' => array(
  683. 'layerIds' => array(
  684. 'location' => 'query',
  685. 'type' => 'string',
  686. 'repeated' => true,
  687. 'required' => true,
  688. ),
  689. 'volumeId' => array(
  690. 'location' => 'query',
  691. 'type' => 'string',
  692. 'required' => true,
  693. ),
  694. ),
  695. ),'update' => array(
  696. 'path' => 'mylibrary/annotations/{annotationId}',
  697. 'httpMethod' => 'PUT',
  698. 'parameters' => array(
  699. 'annotationId' => array(
  700. 'location' => 'path',
  701. 'type' => 'string',
  702. 'required' => true,
  703. ),
  704. 'source' => array(
  705. 'location' => 'query',
  706. 'type' => 'string',
  707. ),
  708. ),
  709. ),
  710. )
  711. )
  712. );
  713. $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource(
  714. $this,
  715. $this->serviceName,
  716. 'bookshelves',
  717. array(
  718. 'methods' => array(
  719. 'addVolume' => array(
  720. 'path' => 'mylibrary/bookshelves/{shelf}/addVolume',
  721. 'httpMethod' => 'POST',
  722. 'parameters' => array(
  723. 'shelf' => array(
  724. 'location' => 'path',
  725. 'type' => 'string',
  726. 'required' => true,
  727. ),
  728. 'volumeId' => array(
  729. 'location' => 'query',
  730. 'type' => 'string',
  731. 'required' => true,
  732. ),
  733. 'source' => array(
  734. 'location' => 'query',
  735. 'type' => 'string',
  736. ),
  737. ),
  738. ),'clearVolumes' => array(
  739. 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes',
  740. 'httpMethod' => 'POST',
  741. 'parameters' => array(
  742. 'shelf' => array(
  743. 'location' => 'path',
  744. 'type' => 'string',
  745. 'required' => true,
  746. ),
  747. 'source' => array(
  748. 'location' => 'query',
  749. 'type' => 'string',
  750. ),
  751. ),
  752. ),'get' => array(
  753. 'path' => 'mylibrary/bookshelves/{shelf}',
  754. 'httpMethod' => 'GET',
  755. 'parameters' => array(
  756. 'shelf' => array(
  757. 'location' => 'path',
  758. 'type' => 'string',
  759. 'required' => true,
  760. ),
  761. 'source' => array(
  762. 'location' => 'query',
  763. 'type' => 'string',
  764. ),
  765. ),
  766. ),'list' => array(
  767. 'path' => 'mylibrary/bookshelves',
  768. 'httpMethod' => 'GET',
  769. 'parameters' => array(
  770. 'source' => array(
  771. 'location' => 'query',
  772. 'type' => 'string',
  773. ),
  774. ),
  775. ),'moveVolume' => array(
  776. 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume',
  777. 'httpMethod' => 'POST',
  778. 'parameters' => array(
  779. 'shelf' => array(
  780. 'location' => 'path',
  781. 'type' => 'string',
  782. 'required' => true,
  783. ),
  784. 'volumeId' => array(
  785. 'location' => 'query',
  786. 'type' => 'string',
  787. 'required' => true,
  788. ),
  789. 'volumePosition' => array(
  790. 'location' => 'query',
  791. 'type' => 'integer',
  792. 'required' => true,
  793. ),
  794. 'source' => array(
  795. 'location' => 'query',
  796. 'type' => 'string',
  797. ),
  798. ),
  799. ),'removeVolume' => array(
  800. 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume',
  801. 'httpMethod' => 'POST',
  802. 'parameters' => array(
  803. 'shelf' => array(
  804. 'location' => 'path',
  805. 'type' => 'string',
  806. 'required' => true,
  807. ),
  808. 'volumeId' => array(
  809. 'location' => 'query',
  810. 'type' => 'string',
  811. 'required' => true,
  812. ),
  813. 'source' => array(
  814. 'location' => 'query',
  815. 'type' => 'string',
  816. ),
  817. ),
  818. ),
  819. )
  820. )
  821. );
  822. $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource(
  823. $this,
  824. $this->serviceName,
  825. 'volumes',
  826. array(
  827. 'methods' => array(
  828. 'list' => array(
  829. 'path' => 'mylibrary/bookshelves/{shelf}/volumes',
  830. 'httpMethod' => 'GET',
  831. 'parameters' => array(
  832. 'shelf' => array(
  833. 'location' => 'path',
  834. 'type' => 'string',
  835. 'required' => true,
  836. ),
  837. 'projection' => array(
  838. 'location' => 'query',
  839. 'type' => 'string',
  840. ),
  841. 'country' => array(
  842. 'location' => 'query',
  843. 'type' => 'string',
  844. ),
  845. 'showPreorders' => array(
  846. 'location' => 'query',
  847. 'type' => 'boolean',
  848. ),
  849. 'maxResults' => array(
  850. 'location' => 'query',
  851. 'type' => 'integer',
  852. ),
  853. 'q' => array(
  854. 'location' => 'query',
  855. 'type' => 'string',
  856. ),
  857. 'source' => array(
  858. 'location' => 'query',
  859. 'type' => 'string',
  860. ),
  861. 'startIndex' => array(
  862. 'location' => 'query',
  863. 'type' => 'integer',
  864. ),
  865. ),
  866. ),
  867. )
  868. )
  869. );
  870. $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource(
  871. $this,
  872. $this->serviceName,
  873. 'readingpositions',
  874. array(
  875. 'methods' => array(
  876. 'get' => array(
  877. 'path' => 'mylibrary/readingpositions/{volumeId}',
  878. 'httpMethod' => 'GET',
  879. 'parameters' => array(
  880. 'volumeId' => array(
  881. 'location' => 'path',
  882. 'type' => 'string',
  883. 'required' => true,
  884. ),
  885. 'source' => array(
  886. 'location' => 'query',
  887. 'type' => 'string',
  888. ),
  889. 'contentVersion' => array(
  890. 'location' => 'query',
  891. 'type' => 'string',
  892. ),
  893. ),
  894. ),'setPosition' => array(
  895. 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition',
  896. 'httpMethod' => 'POST',
  897. 'parameters' => array(
  898. 'volumeId' => array(
  899. 'location' => 'path',
  900. 'type' => 'string',
  901. 'required' => true,
  902. ),
  903. 'timestamp' => array(
  904. 'location' => 'query',
  905. 'type' => 'string',
  906. 'required' => true,
  907. ),
  908. 'position' => array(
  909. 'location' => 'query',
  910. 'type' => 'string',
  911. 'required' => true,
  912. ),
  913. 'deviceCookie' => array(
  914. 'location' => 'query',
  915. 'type' => 'string',
  916. ),
  917. 'source' => array(
  918. 'location' => 'query',
  919. 'type' => 'string',
  920. ),
  921. 'contentVersion' => array(
  922. 'location' => 'query',
  923. 'type' => 'string',
  924. ),
  925. 'action' => array(
  926. 'location' => 'query',
  927. 'type' => 'string',
  928. ),
  929. ),
  930. ),
  931. )
  932. )
  933. );
  934. $this->volumes = new Google_Service_Books_Volumes_Resource(
  935. $this,
  936. $this->serviceName,
  937. 'volumes',
  938. array(
  939. 'methods' => array(
  940. 'get' => array(
  941. 'path' => 'volumes/{volumeId}',
  942. 'httpMethod' => 'GET',
  943. 'parameters' => array(
  944. 'volumeId' => array(
  945. 'location' => 'path',
  946. 'type' => 'string',
  947. 'required' => true,
  948. ),
  949. 'source' => array(
  950. 'location' => 'query',
  951. 'type' => 'string',
  952. ),
  953. 'country' => array(
  954. 'location' => 'query',
  955. 'type' => 'string',
  956. ),
  957. 'projection' => array(
  958. 'location' => 'query',
  959. 'type' => 'string',
  960. ),
  961. 'partner' => array(
  962. 'location' => 'query',
  963. 'type' => 'string',
  964. ),
  965. ),
  966. ),'list' => array(
  967. 'path' => 'volumes',
  968. 'httpMethod' => 'GET',
  969. 'parameters' => array(
  970. 'q' => array(
  971. 'location' => 'query',
  972. 'type' => 'string',
  973. 'required' => true,
  974. ),
  975. 'orderBy' => array(
  976. 'location' => 'query',
  977. 'type' => 'string',
  978. ),
  979. 'projection' => array(
  980. 'location' => 'query',
  981. 'type' => 'string',
  982. ),
  983. 'libraryRestrict' => array(
  984. 'location' => 'query',
  985. 'type' => 'string',
  986. ),
  987. 'langRestrict' => array(
  988. 'location' => 'query',
  989. 'type' => 'string',
  990. ),
  991. 'showPreorders' => array(
  992. 'location' => 'query',
  993. 'type' => 'boolean',
  994. ),
  995. 'printType' => array(
  996. 'location' => 'query',
  997. 'type' => 'string',
  998. ),
  999. 'maxResults' => array(
  1000. 'location' => 'query',
  1001. 'type' => 'integer',
  1002. ),
  1003. 'filter' => array(
  1004. 'location' => 'query',
  1005. 'type' => 'string',
  1006. ),
  1007. 'source' => array(
  1008. 'location' => 'query',
  1009. 'type' => 'string',
  1010. ),
  1011. 'startIndex' => array(
  1012. 'location' => 'query',
  1013. 'type' => 'integer',
  1014. ),
  1015. 'download' => array(
  1016. 'location' => 'query',
  1017. 'type' => 'string',
  1018. ),
  1019. 'partner' => array(
  1020. 'location' => 'query',
  1021. 'type' => 'string',
  1022. ),
  1023. ),
  1024. ),
  1025. )
  1026. )
  1027. );
  1028. $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource(
  1029. $this,
  1030. $this->serviceName,
  1031. 'associated',
  1032. array(
  1033. 'methods' => array(
  1034. 'list' => array(
  1035. 'path' => 'volumes/{volumeId}/associated',
  1036. 'httpMethod' => 'GET',
  1037. 'parameters' => array(
  1038. 'volumeId' => array(
  1039. 'location' => 'path',
  1040. 'type' => 'string',
  1041. 'required' => true,
  1042. ),
  1043. 'locale' => array(
  1044. 'location' => 'query',
  1045. 'type' => 'string',
  1046. ),
  1047. 'source' => array(
  1048. 'location' => 'query',
  1049. 'type' => 'string',
  1050. ),
  1051. 'association' => array(
  1052. 'location' => 'query',
  1053. 'type' => 'string',
  1054. ),
  1055. ),
  1056. ),
  1057. )
  1058. )
  1059. );
  1060. $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource(
  1061. $this,
  1062. $this->serviceName,
  1063. 'mybooks',
  1064. array(
  1065. 'methods' => array(
  1066. 'list' => array(
  1067. 'path' => 'volumes/mybooks',
  1068. 'httpMethod' => 'GET',
  1069. 'parameters' => array(
  1070. 'locale' => array(
  1071. 'location' => 'query',
  1072. 'type' => 'string',
  1073. ),
  1074. 'startIndex' => array(
  1075. 'location' => 'query',
  1076. 'type' => 'integer',
  1077. ),
  1078. 'maxResults' => array(
  1079. 'location' => 'query',
  1080. 'type' => 'integer',
  1081. ),
  1082. 'source' => array(
  1083. 'location' => 'query',
  1084. 'type' => 'string',
  1085. ),
  1086. 'acquireMethod' => array(
  1087. 'location' => 'query',
  1088. 'type' => 'string',
  1089. 'repeated' => true,
  1090. ),
  1091. 'processingState' => array(
  1092. 'location' => 'query',
  1093. 'type' => 'string',
  1094. 'repeated' => true,
  1095. ),
  1096. ),
  1097. ),
  1098. )
  1099. )
  1100. );
  1101. $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource(
  1102. $this,
  1103. $this->serviceName,
  1104. 'recommended',
  1105. array(
  1106. 'methods' => array(
  1107. 'list' => array(
  1108. 'path' => 'volumes/recommended',
  1109. 'httpMethod' => 'GET',
  1110. 'parameters' => array(
  1111. 'locale' => array(
  1112. 'location' => 'query',
  1113. 'type' => 'string',
  1114. ),
  1115. 'source' => array(
  1116. 'location' => 'query',
  1117. 'type' => 'string',
  1118. ),
  1119. ),
  1120. ),'rate' => array(
  1121. 'path' => 'volumes/recommended/rate',
  1122. 'httpMethod' => 'POST',
  1123. 'parameters' => array(
  1124. 'rating' => array(
  1125. 'location' => 'query',
  1126. 'type' => 'string',
  1127. 'required' => true,
  1128. ),
  1129. 'volumeId' => array(
  1130. 'location' => 'query',
  1131. 'type' => 'string',
  1132. 'required' => true,
  1133. ),
  1134. 'locale' => array(
  1135. 'location' => 'query',
  1136. 'type' => 'string',
  1137. ),
  1138. 'source' => array(
  1139. 'location' => 'query',
  1140. 'type' => 'string',
  1141. ),
  1142. ),
  1143. ),
  1144. )
  1145. )
  1146. );
  1147. $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource(
  1148. $this,
  1149. $this->serviceName,
  1150. 'useruploaded',
  1151. array(
  1152. 'methods' => array(
  1153. 'list' => array(
  1154. 'path' => 'volumes/useruploaded',
  1155. 'httpMethod' => 'GET',
  1156. 'parameters' => array(
  1157. 'locale' => array(
  1158. 'location' => 'query',
  1159. 'type' => 'string',
  1160. ),
  1161. 'volumeId' => array(
  1162. 'location' => 'query',
  1163. 'type' => 'string',
  1164. 'repeated' => true,
  1165. ),
  1166. 'maxResults' => array(
  1167. 'location' => 'query',
  1168. 'type' => 'integer',
  1169. ),
  1170. 'source' => array(
  1171. 'location' => 'query',
  1172. 'type' => 'string',
  1173. ),
  1174. 'startIndex' => array(
  1175. 'location' => 'query',
  1176. 'type' => 'integer',
  1177. ),
  1178. 'processingState' => array(
  1179. 'location' => 'query',
  1180. 'type' => 'string',
  1181. 'repeated' => true,
  1182. ),
  1183. ),
  1184. ),
  1185. )
  1186. )
  1187. );
  1188. }
  1189. }
  1190. /**
  1191. * The "bookshelves" collection of methods.
  1192. * Typical usage is:
  1193. * <code>
  1194. * $booksService = new Google_Service_Books(...);
  1195. * $bookshelves = $booksService->bookshelves;
  1196. * </code>
  1197. */
  1198. class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
  1199. {
  1200. /**
  1201. * Retrieves metadata for a specific bookshelf for the specified user.
  1202. * (bookshelves.get)
  1203. *
  1204. * @param string $userId
  1205. * ID of user for whom to retrieve bookshelves.
  1206. * @param string $shelf
  1207. * ID of bookshelf to retrieve.
  1208. * @param array $optParams Optional parameters.
  1209. *
  1210. * @opt_param string source
  1211. * String to identify the originator of this request.
  1212. * @return Google_Service_Books_Bookshelf
  1213. */
  1214. public function get($userId, $shelf, $optParams = array())
  1215. {
  1216. $params = array('userId' => $userId, 'shelf' => $shelf);
  1217. $params = array_merge($params, $optParams);
  1218. return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
  1219. }
  1220. /**
  1221. * Retrieves a list of public bookshelves for the specified user.
  1222. * (bookshelves.listBookshelves)
  1223. *
  1224. * @param string $userId
  1225. * ID of user for whom to retrieve bookshelves.
  1226. * @param array $optParams Optional parameters.
  1227. *
  1228. * @opt_param string source
  1229. * String to identify the originator of this request.
  1230. * @return Google_Service_Books_Bookshelves
  1231. */
  1232. public function listBookshelves($userId, $optParams = array())
  1233. {
  1234. $params = array('userId' => $userId);
  1235. $params = array_merge($params, $optParams);
  1236. return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
  1237. }
  1238. }
  1239. /**
  1240. * The "volumes" collection of methods.
  1241. * Typical usage is:
  1242. * <code>
  1243. * $booksService = new Google_Service_Books(...);
  1244. * $volumes = $booksService->volumes;
  1245. * </code>
  1246. */
  1247. class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource
  1248. {
  1249. /**
  1250. * Retrieves volumes in a specific bookshelf for the specified user.
  1251. * (volumes.listBookshelvesVolumes)
  1252. *
  1253. * @param string $userId
  1254. * ID of user for whom to retrieve bookshelf volumes.
  1255. * @param string $shelf
  1256. * ID of bookshelf to retrieve volumes.
  1257. * @param array $optParams Optional parameters.
  1258. *
  1259. * @opt_param bool showPreorders
  1260. * Set to true to show pre-ordered books. Defaults to false.
  1261. * @opt_param string maxResults
  1262. * Maximum number of results to return
  1263. * @opt_param string source
  1264. * String to identify the originator of this request.
  1265. * @opt_param string startIndex
  1266. * Index of the first element to return (starts at 0)
  1267. * @return Google_Service_Books_Volumes
  1268. */
  1269. public function listBookshelvesVolumes($userId, $shelf, $optParams = array())
  1270. {
  1271. $params = array('userId' => $userId, 'shelf' => $shelf);
  1272. $params = array_merge($params, $optParams);
  1273. return $this->call('list', array($params), "Google_Service_Books_Volumes");
  1274. }
  1275. }
  1276. /**
  1277. * The "cloudloading" collection of methods.
  1278. * Typical usage is:
  1279. * <code>
  1280. * $booksService = new Google_Service_Books(...);
  1281. * $cloudloading = $booksService->cloudloading;
  1282. * </code>
  1283. */
  1284. class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource
  1285. {
  1286. /**
  1287. * (cloudloading.addBook)
  1288. *
  1289. * @param array $optParams Optional parameters.
  1290. *
  1291. * @opt_param string uploadClientToken
  1292. *
  1293. * @opt_param string driveDocumentId
  1294. * A drive document id. The upload_client_token must not be set.
  1295. * @opt_param string mimeType
  1296. * The document MIME type. It can be set only if the drive_document_id is set.
  1297. * @opt_param string name
  1298. * The document name. It can be set only if the drive_document_id is set.
  1299. * @return Google_Service_Books_BooksCloudloadingResource
  1300. */
  1301. public function addBook($optParams = array())
  1302. {
  1303. $params = array();
  1304. $params = array_merge($params, $optParams);
  1305. return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
  1306. }
  1307. /**
  1308. * Remove the book and its contents (cloudloading.deleteBook)
  1309. *
  1310. * @param string $volumeId
  1311. * The id of the book to be removed.
  1312. * @param array $optParams Optional parameters.
  1313. */
  1314. public function deleteBook($volumeId, $optParams = array())
  1315. {
  1316. $params = array('volumeId' => $volumeId);
  1317. $params = array_merge($params, $optParams);
  1318. return $this->call('deleteBook', array($params));
  1319. }
  1320. /**
  1321. * (cloudloading.updateBook)
  1322. *
  1323. * @param Google_BooksCloudloadingResource $postBody
  1324. * @param array $optParams Optional parameters.
  1325. * @return Google_Service_Books_BooksCloudloadingResource
  1326. */
  1327. public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array())
  1328. {
  1329. $params = array('postBody' => $postBody);
  1330. $params = array_merge($params, $optParams);
  1331. return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
  1332. }
  1333. }
  1334. /**
  1335. * The "layers" collection of methods.
  1336. * Typical usage is:
  1337. * <code>
  1338. * $booksService = new Google_Service_Books(...);
  1339. * $layers = $booksService->layers;
  1340. * </code>
  1341. */
  1342. class Google_Service_Books_Layers_Resource extends Google_Service_Resource
  1343. {
  1344. /**
  1345. * Gets the layer summary for a volume. (layers.get)
  1346. *
  1347. * @param string $volumeId
  1348. * The volume to retrieve layers for.
  1349. * @param string $summaryId
  1350. * The ID for the layer to get the summary for.
  1351. * @param array $optParams Optional parameters.
  1352. *
  1353. * @opt_param string source
  1354. * String to identify the originator of this request.
  1355. * @opt_param string contentVersion
  1356. * The content version for the requested volume.
  1357. * @return Google_Service_Books_Layersummary
  1358. */
  1359. public function get($volumeId, $summaryId, $optParams = array())
  1360. {
  1361. $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
  1362. $params = array_merge($params, $optParams);
  1363. return $this->call('get', array($params), "Google_Service_Books_Layersummary");
  1364. }
  1365. /**
  1366. * List the layer summaries for a volume. (layers.listLayers)
  1367. *
  1368. * @param string $volumeId
  1369. * The volume to retrieve layers for.
  1370. * @param array $optParams Optional parameters.
  1371. *
  1372. * @opt_param string pageToken
  1373. * The value of the nextToken from the previous page.
  1374. * @opt_param string contentVersion
  1375. * The content version for the requested volume.
  1376. * @opt_param string maxResults
  1377. * Maximum number of results to return
  1378. * @opt_param string source
  1379. * String to identify the originator of this request.
  1380. * @return Google_Service_Books_Layersummaries
  1381. */
  1382. public function listLayers($volumeId, $optParams = array())
  1383. {
  1384. $params = array('volumeId' => $volumeId);
  1385. $params = array_merge($params, $optParams);
  1386. return $this->call('list', array($params), "Google_Service_Books_Layersummaries");
  1387. }
  1388. }
  1389. /**
  1390. * The "annotationData" collection of methods.
  1391. * Typical usage is:
  1392. * <code>
  1393. * $booksService = new Google_Service_Books(...);
  1394. * $annotationData = $booksService->annotationData;
  1395. * </code>
  1396. */
  1397. class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_Resource
  1398. {
  1399. /**
  1400. * Gets the annotation data. (annotationData.get)
  1401. *
  1402. * @param string $volumeId
  1403. * The volume to retrieve annotations for.
  1404. * @param string $layerId
  1405. * The ID for the layer to get the annotations.
  1406. * @param string $annotationDataId
  1407. * The ID of the annotation data to retrieve.
  1408. * @param string $contentVersion
  1409. * The content version for the volume you are trying to retrieve.
  1410. * @param array $optParams Optional parameters.
  1411. *
  1412. * @opt_param int scale
  1413. * The requested scale for the image.
  1414. * @opt_param string source
  1415. * String to identify the originator of this request.
  1416. * @opt_param bool allowWebDefinitions
  1417. * For the dictionary layer. Whether or not to allow web definitions.
  1418. * @opt_param int h
  1419. * The requested pixel height for any images. If height is provided width must also be provided.
  1420. * @opt_param string locale
  1421. * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex:
  1422. * 'en_US'.
  1423. * @opt_param int w
  1424. * The requested pixel width for any images. If width is provided height must also be provided.
  1425. * @return Google_Service_Books_Annotationdata
  1426. */
  1427. public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array())
  1428. {
  1429. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
  1430. $params = array_merge($params, $optParams);
  1431. return $this->call('get', array($params), "Google_Service_Books_Annotationdata");
  1432. }
  1433. /**
  1434. * Gets the annotation data for a volume and layer.
  1435. * (annotationData.listLayersAnnotationData)
  1436. *
  1437. * @param string $volumeId
  1438. * The volume to retrieve annotation data for.
  1439. * @param string $layerId
  1440. * The ID for the layer to get the annotation data.
  1441. * @param string $contentVersion
  1442. * The content version for the requested volume.
  1443. * @param array $optParams Optional parameters.
  1444. *
  1445. * @opt_param int scale
  1446. * The requested scale for the image.
  1447. * @opt_param string source
  1448. * String to identify the originator of this request.
  1449. * @opt_param string locale
  1450. * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex:
  1451. * 'en_US'.
  1452. * @opt_param int h
  1453. * The requested pixel height for any images. If height is provided width must also be provided.
  1454. * @opt_param string updatedMax
  1455. * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  1456. * @opt_param string maxResults
  1457. * Maximum number of results to return
  1458. * @opt_param string annotationDataId
  1459. * The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
  1460. * @opt_param string pageToken
  1461. * The value of the nextToken from the previous page.
  1462. * @opt_param int w
  1463. * The requested pixel width for any images. If width is provided height must also be provided.
  1464. * @opt_param string updatedMin
  1465. * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  1466. * @return Google_Service_Books_Annotationsdata
  1467. */
  1468. public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array())
  1469. {
  1470. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
  1471. $params = array_merge($params, $optParams);
  1472. return $this->call('list', array($params), "Google_Service_Books_Annotationsdata");
  1473. }
  1474. }
  1475. /**
  1476. * The "volumeAnnotations" collection of methods.
  1477. * Typical usage is:
  1478. * <code>
  1479. * $booksService = new Google_Service_Books(...);
  1480. * $volumeAnnotations = $booksService->volumeAnnotations;
  1481. * </code>
  1482. */
  1483. class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Service_

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