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 Games (v1).
20 *
21 * <p>
22 * The API for Google Play Game Services.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/games/services/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_Games extends Google_Service
32{
33  /** View and manage its own configuration data in your Google Drive. */
34  const DRIVE_APPDATA =
35      "https://www.googleapis.com/auth/drive.appdata";
36  /** Create, edit, and delete your Google Play Games activity. */
37  const GAMES =
38      "https://www.googleapis.com/auth/games";
39  /** Associate you with your personal info on Google. */
40  const PLUS_ME =
41      "https://www.googleapis.com/auth/plus.me";
42
43  public $achievementDefinitions;
44  public $achievements;
45  public $applications;
46  public $events;
47  public $leaderboards;
48  public $metagame;
49  public $players;
50  public $pushtokens;
51  public $questMilestones;
52  public $quests;
53  public $revisions;
54  public $rooms;
55  public $scores;
56  public $snapshots;
57  public $turnBasedMatches;
58
59  /**
60   * Constructs the internal representation of the Games service.
61   *
62   * @param Google_Client $client
63   */
64  public function __construct(Google_Client $client)
65  {
66    parent::__construct($client);
67    $this->rootUrl = 'https://www.googleapis.com/';
68    $this->servicePath = 'games/v1/';
69    $this->batchPath = 'batch/games/v1';
70    $this->version = 'v1';
71    $this->serviceName = 'games';
72
73    $this->achievementDefinitions = new Google_Service_Games_Resource_AchievementDefinitions(
74        $this,
75        $this->serviceName,
76        'achievementDefinitions',
77        array(
78          'methods' => array(
79            'list' => array(
80              'path' => 'achievements',
81              'httpMethod' => 'GET',
82              'parameters' => array(
83                'language' => array(
84                  'location' => 'query',
85                  'type' => 'string',
86                ),
87                'maxResults' => array(
88                  'location' => 'query',
89                  'type' => 'integer',
90                ),
91                'pageToken' => array(
92                  'location' => 'query',
93                  'type' => 'string',
94                ),
95              ),
96            ),
97          )
98        )
99    );
100    $this->achievements = new Google_Service_Games_Resource_Achievements(
101        $this,
102        $this->serviceName,
103        'achievements',
104        array(
105          'methods' => array(
106            'increment' => array(
107              'path' => 'achievements/{achievementId}/increment',
108              'httpMethod' => 'POST',
109              'parameters' => array(
110                'achievementId' => array(
111                  'location' => 'path',
112                  'type' => 'string',
113                  'required' => true,
114                ),
115                'stepsToIncrement' => array(
116                  'location' => 'query',
117                  'type' => 'integer',
118                  'required' => true,
119                ),
120                'requestId' => array(
121                  'location' => 'query',
122                  'type' => 'string',
123                ),
124              ),
125            ),'list' => array(
126              'path' => 'players/{playerId}/achievements',
127              'httpMethod' => 'GET',
128              'parameters' => array(
129                'playerId' => array(
130                  'location' => 'path',
131                  'type' => 'string',
132                  'required' => true,
133                ),
134                'language' => array(
135                  'location' => 'query',
136                  'type' => 'string',
137                ),
138                'maxResults' => array(
139                  'location' => 'query',
140                  'type' => 'integer',
141                ),
142                'pageToken' => array(
143                  'location' => 'query',
144                  'type' => 'string',
145                ),
146                'state' => array(
147                  'location' => 'query',
148                  'type' => 'string',
149                ),
150              ),
151            ),'reveal' => array(
152              'path' => 'achievements/{achievementId}/reveal',
153              'httpMethod' => 'POST',
154              'parameters' => array(
155                'achievementId' => array(
156                  'location' => 'path',
157                  'type' => 'string',
158                  'required' => true,
159                ),
160              ),
161            ),'setStepsAtLeast' => array(
162              'path' => 'achievements/{achievementId}/setStepsAtLeast',
163              'httpMethod' => 'POST',
164              'parameters' => array(
165                'achievementId' => array(
166                  'location' => 'path',
167                  'type' => 'string',
168                  'required' => true,
169                ),
170                'steps' => array(
171                  'location' => 'query',
172                  'type' => 'integer',
173                  'required' => true,
174                ),
175              ),
176            ),'unlock' => array(
177              'path' => 'achievements/{achievementId}/unlock',
178              'httpMethod' => 'POST',
179              'parameters' => array(
180                'achievementId' => array(
181                  'location' => 'path',
182                  'type' => 'string',
183                  'required' => true,
184                ),
185                'builtinGameId' => array(
186                  'location' => 'query',
187                  'type' => 'string',
188                ),
189              ),
190            ),'updateMultiple' => array(
191              'path' => 'achievements/updateMultiple',
192              'httpMethod' => 'POST',
193              'parameters' => array(
194                'builtinGameId' => array(
195                  'location' => 'query',
196                  'type' => 'string',
197                ),
198              ),
199            ),
200          )
201        )
202    );
203    $this->applications = new Google_Service_Games_Resource_Applications(
204        $this,
205        $this->serviceName,
206        'applications',
207        array(
208          'methods' => array(
209            'get' => array(
210              'path' => 'applications/{applicationId}',
211              'httpMethod' => 'GET',
212              'parameters' => array(
213                'applicationId' => array(
214                  'location' => 'path',
215                  'type' => 'string',
216                  'required' => true,
217                ),
218                'language' => array(
219                  'location' => 'query',
220                  'type' => 'string',
221                ),
222                'platformType' => array(
223                  'location' => 'query',
224                  'type' => 'string',
225                ),
226              ),
227            ),'played' => array(
228              'path' => 'applications/played',
229              'httpMethod' => 'POST',
230              'parameters' => array(
231                'builtinGameId' => array(
232                  'location' => 'query',
233                  'type' => 'string',
234                ),
235              ),
236            ),'verify' => array(
237              'path' => 'applications/{applicationId}/verify',
238              'httpMethod' => 'GET',
239              'parameters' => array(
240                'applicationId' => array(
241                  'location' => 'path',
242                  'type' => 'string',
243                  'required' => true,
244                ),
245              ),
246            ),
247          )
248        )
249    );
250    $this->events = new Google_Service_Games_Resource_Events(
251        $this,
252        $this->serviceName,
253        'events',
254        array(
255          'methods' => array(
256            'listByPlayer' => array(
257              'path' => 'events',
258              'httpMethod' => 'GET',
259              'parameters' => array(
260                'language' => array(
261                  'location' => 'query',
262                  'type' => 'string',
263                ),
264                'maxResults' => array(
265                  'location' => 'query',
266                  'type' => 'integer',
267                ),
268                'pageToken' => array(
269                  'location' => 'query',
270                  'type' => 'string',
271                ),
272              ),
273            ),'listDefinitions' => array(
274              'path' => 'eventDefinitions',
275              'httpMethod' => 'GET',
276              'parameters' => array(
277                'language' => array(
278                  'location' => 'query',
279                  'type' => 'string',
280                ),
281                'maxResults' => array(
282                  'location' => 'query',
283                  'type' => 'integer',
284                ),
285                'pageToken' => array(
286                  'location' => 'query',
287                  'type' => 'string',
288                ),
289              ),
290            ),'record' => array(
291              'path' => 'events',
292              'httpMethod' => 'POST',
293              'parameters' => array(
294                'language' => array(
295                  'location' => 'query',
296                  'type' => 'string',
297                ),
298              ),
299            ),
300          )
301        )
302    );
303    $this->leaderboards = new Google_Service_Games_Resource_Leaderboards(
304        $this,
305        $this->serviceName,
306        'leaderboards',
307        array(
308          'methods' => array(
309            'get' => array(
310              'path' => 'leaderboards/{leaderboardId}',
311              'httpMethod' => 'GET',
312              'parameters' => array(
313                'leaderboardId' => array(
314                  'location' => 'path',
315                  'type' => 'string',
316                  'required' => true,
317                ),
318                'language' => array(
319                  'location' => 'query',
320                  'type' => 'string',
321                ),
322              ),
323            ),'list' => array(
324              'path' => 'leaderboards',
325              'httpMethod' => 'GET',
326              'parameters' => array(
327                'language' => array(
328                  'location' => 'query',
329                  'type' => 'string',
330                ),
331                'maxResults' => array(
332                  'location' => 'query',
333                  'type' => 'integer',
334                ),
335                'pageToken' => array(
336                  'location' => 'query',
337                  'type' => 'string',
338                ),
339              ),
340            ),
341          )
342        )
343    );
344    $this->metagame = new Google_Service_Games_Resource_Metagame(
345        $this,
346        $this->serviceName,
347        'metagame',
348        array(
349          'methods' => array(
350            'getMetagameConfig' => array(
351              'path' => 'metagameConfig',
352              'httpMethod' => 'GET',
353              'parameters' => array(),
354            ),'listCategoriesByPlayer' => array(
355              'path' => 'players/{playerId}/categories/{collection}',
356              'httpMethod' => 'GET',
357              'parameters' => array(
358                'playerId' => array(
359                  'location' => 'path',
360                  'type' => 'string',
361                  'required' => true,
362                ),
363                'collection' => array(
364                  'location' => 'path',
365                  'type' => 'string',
366                  'required' => true,
367                ),
368                'language' => array(
369                  'location' => 'query',
370                  'type' => 'string',
371                ),
372                'maxResults' => array(
373                  'location' => 'query',
374                  'type' => 'integer',
375                ),
376                'pageToken' => array(
377                  'location' => 'query',
378                  'type' => 'string',
379                ),
380              ),
381            ),
382          )
383        )
384    );
385    $this->players = new Google_Service_Games_Resource_Players(
386        $this,
387        $this->serviceName,
388        'players',
389        array(
390          'methods' => array(
391            'get' => array(
392              'path' => 'players/{playerId}',
393              'httpMethod' => 'GET',
394              'parameters' => array(
395                'playerId' => array(
396                  'location' => 'path',
397                  'type' => 'string',
398                  'required' => true,
399                ),
400                'language' => array(
401                  'location' => 'query',
402                  'type' => 'string',
403                ),
404              ),
405            ),'list' => array(
406              'path' => 'players/me/players/{collection}',
407              'httpMethod' => 'GET',
408              'parameters' => array(
409                'collection' => array(
410                  'location' => 'path',
411                  'type' => 'string',
412                  'required' => true,
413                ),
414                'language' => array(
415                  'location' => 'query',
416                  'type' => 'string',
417                ),
418                'maxResults' => array(
419                  'location' => 'query',
420                  'type' => 'integer',
421                ),
422                'pageToken' => array(
423                  'location' => 'query',
424                  'type' => 'string',
425                ),
426              ),
427            ),
428          )
429        )
430    );
431    $this->pushtokens = new Google_Service_Games_Resource_Pushtokens(
432        $this,
433        $this->serviceName,
434        'pushtokens',
435        array(
436          'methods' => array(
437            'remove' => array(
438              'path' => 'pushtokens/remove',
439              'httpMethod' => 'POST',
440              'parameters' => array(),
441            ),'update' => array(
442              'path' => 'pushtokens',
443              'httpMethod' => 'PUT',
444              'parameters' => array(),
445            ),
446          )
447        )
448    );
449    $this->questMilestones = new Google_Service_Games_Resource_QuestMilestones(
450        $this,
451        $this->serviceName,
452        'questMilestones',
453        array(
454          'methods' => array(
455            'claim' => array(
456              'path' => 'quests/{questId}/milestones/{milestoneId}/claim',
457              'httpMethod' => 'PUT',
458              'parameters' => array(
459                'questId' => array(
460                  'location' => 'path',
461                  'type' => 'string',
462                  'required' => true,
463                ),
464                'milestoneId' => array(
465                  'location' => 'path',
466                  'type' => 'string',
467                  'required' => true,
468                ),
469                'requestId' => array(
470                  'location' => 'query',
471                  'type' => 'string',
472                  'required' => true,
473                ),
474              ),
475            ),
476          )
477        )
478    );
479    $this->quests = new Google_Service_Games_Resource_Quests(
480        $this,
481        $this->serviceName,
482        'quests',
483        array(
484          'methods' => array(
485            'accept' => array(
486              'path' => 'quests/{questId}/accept',
487              'httpMethod' => 'POST',
488              'parameters' => array(
489                'questId' => array(
490                  'location' => 'path',
491                  'type' => 'string',
492                  'required' => true,
493                ),
494                'language' => array(
495                  'location' => 'query',
496                  'type' => 'string',
497                ),
498              ),
499            ),'list' => array(
500              'path' => 'players/{playerId}/quests',
501              'httpMethod' => 'GET',
502              'parameters' => array(
503                'playerId' => array(
504                  'location' => 'path',
505                  'type' => 'string',
506                  'required' => true,
507                ),
508                'language' => array(
509                  'location' => 'query',
510                  'type' => 'string',
511                ),
512                'maxResults' => array(
513                  'location' => 'query',
514                  'type' => 'integer',
515                ),
516                'pageToken' => array(
517                  'location' => 'query',
518                  'type' => 'string',
519                ),
520              ),
521            ),
522          )
523        )
524    );
525    $this->revisions = new Google_Service_Games_Resource_Revisions(
526        $this,
527        $this->serviceName,
528        'revisions',
529        array(
530          'methods' => array(
531            'check' => array(
532              'path' => 'revisions/check',
533              'httpMethod' => 'GET',
534              'parameters' => array(
535                'clientRevision' => array(
536                  'location' => 'query',
537                  'type' => 'string',
538                  'required' => true,
539                ),
540              ),
541            ),
542          )
543        )
544    );
545    $this->rooms = new Google_Service_Games_Resource_Rooms(
546        $this,
547        $this->serviceName,
548        'rooms',
549        array(
550          'methods' => array(
551            'create' => array(
552              'path' => 'rooms/create',
553              'httpMethod' => 'POST',
554              'parameters' => array(
555                'language' => array(
556                  'location' => 'query',
557                  'type' => 'string',
558                ),
559              ),
560            ),'decline' => array(
561              'path' => 'rooms/{roomId}/decline',
562              'httpMethod' => 'POST',
563              'parameters' => array(
564                'roomId' => array(
565                  'location' => 'path',
566                  'type' => 'string',
567                  'required' => true,
568                ),
569                'language' => array(
570                  'location' => 'query',
571                  'type' => 'string',
572                ),
573              ),
574            ),'dismiss' => array(
575              'path' => 'rooms/{roomId}/dismiss',
576              'httpMethod' => 'POST',
577              'parameters' => array(
578                'roomId' => array(
579                  'location' => 'path',
580                  'type' => 'string',
581                  'required' => true,
582                ),
583              ),
584            ),'get' => array(
585              'path' => 'rooms/{roomId}',
586              'httpMethod' => 'GET',
587              'parameters' => array(
588                'roomId' => array(
589                  'location' => 'path',
590                  'type' => 'string',
591                  'required' => true,
592                ),
593                'language' => array(
594                  'location' => 'query',
595                  'type' => 'string',
596                ),
597              ),
598            ),'join' => array(
599              'path' => 'rooms/{roomId}/join',
600              'httpMethod' => 'POST',
601              'parameters' => array(
602                'roomId' => array(
603                  'location' => 'path',
604                  'type' => 'string',
605                  'required' => true,
606                ),
607                'language' => array(
608                  'location' => 'query',
609                  'type' => 'string',
610                ),
611              ),
612            ),'leave' => array(
613              'path' => 'rooms/{roomId}/leave',
614              'httpMethod' => 'POST',
615              'parameters' => array(
616                'roomId' => array(
617                  'location' => 'path',
618                  'type' => 'string',
619                  'required' => true,
620                ),
621                'language' => array(
622                  'location' => 'query',
623                  'type' => 'string',
624                ),
625              ),
626            ),'list' => array(
627              'path' => 'rooms',
628              'httpMethod' => 'GET',
629              'parameters' => array(
630                'language' => array(
631                  'location' => 'query',
632                  'type' => 'string',
633                ),
634                'maxResults' => array(
635                  'location' => 'query',
636                  'type' => 'integer',
637                ),
638                'pageToken' => array(
639                  'location' => 'query',
640                  'type' => 'string',
641                ),
642              ),
643            ),'reportStatus' => array(
644              'path' => 'rooms/{roomId}/reportstatus',
645              'httpMethod' => 'POST',
646              'parameters' => array(
647                'roomId' => array(
648                  'location' => 'path',
649                  'type' => 'string',
650                  'required' => true,
651                ),
652                'language' => array(
653                  'location' => 'query',
654                  'type' => 'string',
655                ),
656              ),
657            ),
658          )
659        )
660    );
661    $this->scores = new Google_Service_Games_Resource_Scores(
662        $this,
663        $this->serviceName,
664        'scores',
665        array(
666          'methods' => array(
667            'get' => array(
668              'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}',
669              'httpMethod' => 'GET',
670              'parameters' => array(
671                'playerId' => array(
672                  'location' => 'path',
673                  'type' => 'string',
674                  'required' => true,
675                ),
676                'leaderboardId' => array(
677                  'location' => 'path',
678                  'type' => 'string',
679                  'required' => true,
680                ),
681                'timeSpan' => array(
682                  'location' => 'path',
683                  'type' => 'string',
684                  'required' => true,
685                ),
686                'includeRankType' => array(
687                  'location' => 'query',
688                  'type' => 'string',
689                ),
690                'language' => array(
691                  'location' => 'query',
692                  'type' => 'string',
693                ),
694                'maxResults' => array(
695                  'location' => 'query',
696                  'type' => 'integer',
697                ),
698                'pageToken' => array(
699                  'location' => 'query',
700                  'type' => 'string',
701                ),
702              ),
703            ),'list' => array(
704              'path' => 'leaderboards/{leaderboardId}/scores/{collection}',
705              'httpMethod' => 'GET',
706              'parameters' => array(
707                'leaderboardId' => array(
708                  'location' => 'path',
709                  'type' => 'string',
710                  'required' => true,
711                ),
712                'collection' => array(
713                  'location' => 'path',
714                  'type' => 'string',
715                  'required' => true,
716                ),
717                'timeSpan' => array(
718                  'location' => 'query',
719                  'type' => 'string',
720                  'required' => true,
721                ),
722                'language' => array(
723                  'location' => 'query',
724                  'type' => 'string',
725                ),
726                'maxResults' => array(
727                  'location' => 'query',
728                  'type' => 'integer',
729                ),
730                'pageToken' => array(
731                  'location' => 'query',
732                  'type' => 'string',
733                ),
734              ),
735            ),'listWindow' => array(
736              'path' => 'leaderboards/{leaderboardId}/window/{collection}',
737              'httpMethod' => 'GET',
738              'parameters' => array(
739                'leaderboardId' => array(
740                  'location' => 'path',
741                  'type' => 'string',
742                  'required' => true,
743                ),
744                'collection' => array(
745                  'location' => 'path',
746                  'type' => 'string',
747                  'required' => true,
748                ),
749                'timeSpan' => array(
750                  'location' => 'query',
751                  'type' => 'string',
752                  'required' => true,
753                ),
754                'language' => array(
755                  'location' => 'query',
756                  'type' => 'string',
757                ),
758                'maxResults' => array(
759                  'location' => 'query',
760                  'type' => 'integer',
761                ),
762                'pageToken' => array(
763                  'location' => 'query',
764                  'type' => 'string',
765                ),
766                'resultsAbove' => array(
767                  'location' => 'query',
768                  'type' => 'integer',
769                ),
770                'returnTopIfAbsent' => array(
771                  'location' => 'query',
772                  'type' => 'boolean',
773                ),
774              ),
775            ),'submit' => array(
776              'path' => 'leaderboards/{leaderboardId}/scores',
777              'httpMethod' => 'POST',
778              'parameters' => array(
779                'leaderboardId' => array(
780                  'location' => 'path',
781                  'type' => 'string',
782                  'required' => true,
783                ),
784                'score' => array(
785                  'location' => 'query',
786                  'type' => 'string',
787                  'required' => true,
788                ),
789                'language' => array(
790                  'location' => 'query',
791                  'type' => 'string',
792                ),
793                'scoreTag' => array(
794                  'location' => 'query',
795                  'type' => 'string',
796                ),
797              ),
798            ),'submitMultiple' => array(
799              'path' => 'leaderboards/scores',
800              'httpMethod' => 'POST',
801              'parameters' => array(
802                'language' => array(
803                  'location' => 'query',
804                  'type' => 'string',
805                ),
806              ),
807            ),
808          )
809        )
810    );
811    $this->snapshots = new Google_Service_Games_Resource_Snapshots(
812        $this,
813        $this->serviceName,
814        'snapshots',
815        array(
816          'methods' => array(
817            'get' => array(
818              'path' => 'snapshots/{snapshotId}',
819              'httpMethod' => 'GET',
820              'parameters' => array(
821                'snapshotId' => array(
822                  'location' => 'path',
823                  'type' => 'string',
824                  'required' => true,
825                ),
826                'language' => array(
827                  'location' => 'query',
828                  'type' => 'string',
829                ),
830              ),
831            ),'list' => array(
832              'path' => 'players/{playerId}/snapshots',
833              'httpMethod' => 'GET',
834              'parameters' => array(
835                'playerId' => array(
836                  'location' => 'path',
837                  'type' => 'string',
838                  'required' => true,
839                ),
840                'language' => array(
841                  'location' => 'query',
842                  'type' => 'string',
843                ),
844                'maxResults' => array(
845                  'location' => 'query',
846                  'type' => 'integer',
847                ),
848                'pageToken' => array(
849                  'location' => 'query',
850                  'type' => 'string',
851                ),
852              ),
853            ),
854          )
855        )
856    );
857    $this->turnBasedMatches = new Google_Service_Games_Resource_TurnBasedMatches(
858        $this,
859        $this->serviceName,
860        'turnBasedMatches',
861        array(
862          'methods' => array(
863            'cancel' => array(
864              'path' => 'turnbasedmatches/{matchId}/cancel',
865              'httpMethod' => 'PUT',
866              'parameters' => array(
867                'matchId' => array(
868                  'location' => 'path',
869                  'type' => 'string',
870                  'required' => true,
871                ),
872              ),
873            ),'create' => array(
874              'path' => 'turnbasedmatches/create',
875              'httpMethod' => 'POST',
876              'parameters' => array(
877                'language' => array(
878                  'location' => 'query',
879                  'type' => 'string',
880                ),
881              ),
882            ),'decline' => array(
883              'path' => 'turnbasedmatches/{matchId}/decline',
884              'httpMethod' => 'PUT',
885              'parameters' => array(
886                'matchId' => array(
887                  'location' => 'path',
888                  'type' => 'string',
889                  'required' => true,
890                ),
891                'language' => array(
892                  'location' => 'query',
893                  'type' => 'string',
894                ),
895              ),
896            ),'dismiss' => array(
897              'path' => 'turnbasedmatches/{matchId}/dismiss',
898              'httpMethod' => 'PUT',
899              'parameters' => array(
900                'matchId' => array(
901                  'location' => 'path',
902                  'type' => 'string',
903                  'required' => true,
904                ),
905              ),
906            ),'finish' => array(
907              'path' => 'turnbasedmatches/{matchId}/finish',
908              'httpMethod' => 'PUT',
909              'parameters' => array(
910                'matchId' => array(
911                  'location' => 'path',
912                  'type' => 'string',
913                  'required' => true,
914                ),
915                'language' => array(
916                  'location' => 'query',
917                  'type' => 'string',
918                ),
919              ),
920            ),'get' => array(
921              'path' => 'turnbasedmatches/{matchId}',
922              'httpMethod' => 'GET',
923              'parameters' => array(
924                'matchId' => array(
925                  'location' => 'path',
926                  'type' => 'string',
927                  'required' => true,
928                ),
929                'includeMatchData' => array(
930                  'location' => 'query',
931                  'type' => 'boolean',
932                ),
933                'language' => array(
934                  'location' => 'query',
935                  'type' => 'string',
936                ),
937              ),
938            ),'join' => array(
939              'path' => 'turnbasedmatches/{matchId}/join',
940              'httpMethod' => 'PUT',
941              'parameters' => array(
942                'matchId' => array(
943                  'location' => 'path',
944                  'type' => 'string',
945                  'required' => true,
946                ),
947                'language' => array(
948                  'location' => 'query',
949                  'type' => 'string',
950                ),
951              ),
952            ),'leave' => array(
953              'path' => 'turnbasedmatches/{matchId}/leave',
954              'httpMethod' => 'PUT',
955              'parameters' => array(
956                'matchId' => array(
957                  'location' => 'path',
958                  'type' => 'string',
959                  'required' => true,
960                ),
961                'language' => array(
962                  'location' => 'query',
963                  'type' => 'string',
964                ),
965              ),
966            ),'leaveTurn' => array(
967              'path' => 'turnbasedmatches/{matchId}/leaveTurn',
968              'httpMethod' => 'PUT',
969              'parameters' => array(
970                'matchId' => array(
971                  'location' => 'path',
972                  'type' => 'string',
973                  'required' => true,
974                ),
975                'matchVersion' => array(
976                  'location' => 'query',
977                  'type' => 'integer',
978                  'required' => true,
979                ),
980                'language' => array(
981                  'location' => 'query',
982                  'type' => 'string',
983                ),
984                'pendingParticipantId' => array(
985                  'location' => 'query',
986                  'type' => 'string',
987                ),
988              ),
989            ),'list' => array(
990              'path' => 'turnbasedmatches',
991              'httpMethod' => 'GET',
992              'parameters' => array(
993                'includeMatchData' => array(
994                  'location' => 'query',
995                  'type' => 'boolean',
996                ),
997                'language' => array(
998                  'location' => 'query',
999                  'type' => 'string',
1000                ),
1001                'maxCompletedMatches' => array(
1002                  'location' => 'query',
1003                  'type' => 'integer',
1004                ),
1005                'maxResults' => array(
1006                  'location' => 'query',
1007                  'type' => 'integer',
1008                ),
1009                'pageToken' => array(
1010                  'location' => 'query',
1011                  'type' => 'string',
1012                ),
1013              ),
1014            ),'rematch' => array(
1015              'path' => 'turnbasedmatches/{matchId}/rematch',
1016              'httpMethod' => 'POST',
1017              'parameters' => array(
1018                'matchId' => array(
1019                  'location' => 'path',
1020                  'type' => 'string',
1021                  'required' => true,
1022                ),
1023                'language' => array(
1024                  'location' => 'query',
1025                  'type' => 'string',
1026                ),
1027                'requestId' => array(
1028                  'location' => 'query',
1029                  'type' => 'string',
1030                ),
1031              ),
1032            ),'sync' => array(
1033              'path' => 'turnbasedmatches/sync',
1034              'httpMethod' => 'GET',
1035              'parameters' => array(
1036                'includeMatchData' => array(
1037                  'location' => 'query',
1038                  'type' => 'boolean',
1039                ),
1040                'language' => array(
1041                  'location' => 'query',
1042                  'type' => 'string',
1043                ),
1044                'maxCompletedMatches' => array(
1045                  'location' => 'query',
1046                  'type' => 'integer',
1047                ),
1048                'maxResults' => array(
1049                  'location' => 'query',
1050                  'type' => 'integer',
1051                ),
1052                'pageToken' => array(
1053                  'location' => 'query',
1054                  'type' => 'string',
1055                ),
1056              ),
1057            ),'takeTurn' => array(
1058              'path' => 'turnbasedmatches/{matchId}/turn',
1059              'httpMethod' => 'PUT',
1060              'parameters' => array(
1061                'matchId' => array(
1062                  'location' => 'path',
1063                  'type' => 'string',
1064                  'required' => true,
1065                ),
1066                'language' => array(
1067                  'location' => 'query',
1068                  'type' => 'string',
1069                ),
1070              ),
1071            ),
1072          )
1073        )
1074    );
1075  }
1076}
1077