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