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 GamesManagement (v1management).
20 *
21 * <p>
22 * The Management 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_GamesManagement extends Google_Service
32{
33  /** Create, edit, and delete your Google Play Games activity. */
34  const GAMES =
35      "https://www.googleapis.com/auth/games";
36
37  public $achievements;
38  public $applications;
39  public $events;
40  public $players;
41  public $quests;
42  public $rooms;
43  public $scores;
44  public $turnBasedMatches;
45
46  /**
47   * Constructs the internal representation of the GamesManagement service.
48   *
49   * @param Google_Client $client
50   */
51  public function __construct(Google_Client $client)
52  {
53    parent::__construct($client);
54    $this->rootUrl = 'https://www.googleapis.com/';
55    $this->servicePath = 'games/v1management/';
56    $this->batchPath = 'batch/gamesManagement/v1management';
57    $this->version = 'v1management';
58    $this->serviceName = 'gamesManagement';
59
60    $this->achievements = new Google_Service_GamesManagement_Resource_Achievements(
61        $this,
62        $this->serviceName,
63        'achievements',
64        array(
65          'methods' => array(
66            'reset' => array(
67              'path' => 'achievements/{achievementId}/reset',
68              'httpMethod' => 'POST',
69              'parameters' => array(
70                'achievementId' => array(
71                  'location' => 'path',
72                  'type' => 'string',
73                  'required' => true,
74                ),
75              ),
76            ),'resetAll' => array(
77              'path' => 'achievements/reset',
78              'httpMethod' => 'POST',
79              'parameters' => array(),
80            ),'resetAllForAllPlayers' => array(
81              'path' => 'achievements/resetAllForAllPlayers',
82              'httpMethod' => 'POST',
83              'parameters' => array(),
84            ),'resetForAllPlayers' => array(
85              'path' => 'achievements/{achievementId}/resetForAllPlayers',
86              'httpMethod' => 'POST',
87              'parameters' => array(
88                'achievementId' => array(
89                  'location' => 'path',
90                  'type' => 'string',
91                  'required' => true,
92                ),
93              ),
94            ),'resetMultipleForAllPlayers' => array(
95              'path' => 'achievements/resetMultipleForAllPlayers',
96              'httpMethod' => 'POST',
97              'parameters' => array(),
98            ),
99          )
100        )
101    );
102    $this->applications = new Google_Service_GamesManagement_Resource_Applications(
103        $this,
104        $this->serviceName,
105        'applications',
106        array(
107          'methods' => array(
108            'listHidden' => array(
109              'path' => 'applications/{applicationId}/players/hidden',
110              'httpMethod' => 'GET',
111              'parameters' => array(
112                'applicationId' => array(
113                  'location' => 'path',
114                  'type' => 'string',
115                  'required' => true,
116                ),
117                'maxResults' => array(
118                  'location' => 'query',
119                  'type' => 'integer',
120                ),
121                'pageToken' => array(
122                  'location' => 'query',
123                  'type' => 'string',
124                ),
125              ),
126            ),
127          )
128        )
129    );
130    $this->events = new Google_Service_GamesManagement_Resource_Events(
131        $this,
132        $this->serviceName,
133        'events',
134        array(
135          'methods' => array(
136            'reset' => array(
137              'path' => 'events/{eventId}/reset',
138              'httpMethod' => 'POST',
139              'parameters' => array(
140                'eventId' => array(
141                  'location' => 'path',
142                  'type' => 'string',
143                  'required' => true,
144                ),
145              ),
146            ),'resetAll' => array(
147              'path' => 'events/reset',
148              'httpMethod' => 'POST',
149              'parameters' => array(),
150            ),'resetAllForAllPlayers' => array(
151              'path' => 'events/resetAllForAllPlayers',
152              'httpMethod' => 'POST',
153              'parameters' => array(),
154            ),'resetForAllPlayers' => array(
155              'path' => 'events/{eventId}/resetForAllPlayers',
156              'httpMethod' => 'POST',
157              'parameters' => array(
158                'eventId' => array(
159                  'location' => 'path',
160                  'type' => 'string',
161                  'required' => true,
162                ),
163              ),
164            ),'resetMultipleForAllPlayers' => array(
165              'path' => 'events/resetMultipleForAllPlayers',
166              'httpMethod' => 'POST',
167              'parameters' => array(),
168            ),
169          )
170        )
171    );
172    $this->players = new Google_Service_GamesManagement_Resource_Players(
173        $this,
174        $this->serviceName,
175        'players',
176        array(
177          'methods' => array(
178            'hide' => array(
179              'path' => 'applications/{applicationId}/players/hidden/{playerId}',
180              'httpMethod' => 'POST',
181              'parameters' => array(
182                'applicationId' => array(
183                  'location' => 'path',
184                  'type' => 'string',
185                  'required' => true,
186                ),
187                'playerId' => array(
188                  'location' => 'path',
189                  'type' => 'string',
190                  'required' => true,
191                ),
192              ),
193            ),'unhide' => array(
194              'path' => 'applications/{applicationId}/players/hidden/{playerId}',
195              'httpMethod' => 'DELETE',
196              'parameters' => array(
197                'applicationId' => array(
198                  'location' => 'path',
199                  'type' => 'string',
200                  'required' => true,
201                ),
202                'playerId' => array(
203                  'location' => 'path',
204                  'type' => 'string',
205                  'required' => true,
206                ),
207              ),
208            ),
209          )
210        )
211    );
212    $this->quests = new Google_Service_GamesManagement_Resource_Quests(
213        $this,
214        $this->serviceName,
215        'quests',
216        array(
217          'methods' => array(
218            'reset' => array(
219              'path' => 'quests/{questId}/reset',
220              'httpMethod' => 'POST',
221              'parameters' => array(
222                'questId' => array(
223                  'location' => 'path',
224                  'type' => 'string',
225                  'required' => true,
226                ),
227              ),
228            ),'resetAll' => array(
229              'path' => 'quests/reset',
230              'httpMethod' => 'POST',
231              'parameters' => array(),
232            ),'resetAllForAllPlayers' => array(
233              'path' => 'quests/resetAllForAllPlayers',
234              'httpMethod' => 'POST',
235              'parameters' => array(),
236            ),'resetForAllPlayers' => array(
237              'path' => 'quests/{questId}/resetForAllPlayers',
238              'httpMethod' => 'POST',
239              'parameters' => array(
240                'questId' => array(
241                  'location' => 'path',
242                  'type' => 'string',
243                  'required' => true,
244                ),
245              ),
246            ),'resetMultipleForAllPlayers' => array(
247              'path' => 'quests/resetMultipleForAllPlayers',
248              'httpMethod' => 'POST',
249              'parameters' => array(),
250            ),
251          )
252        )
253    );
254    $this->rooms = new Google_Service_GamesManagement_Resource_Rooms(
255        $this,
256        $this->serviceName,
257        'rooms',
258        array(
259          'methods' => array(
260            'reset' => array(
261              'path' => 'rooms/reset',
262              'httpMethod' => 'POST',
263              'parameters' => array(),
264            ),'resetForAllPlayers' => array(
265              'path' => 'rooms/resetForAllPlayers',
266              'httpMethod' => 'POST',
267              'parameters' => array(),
268            ),
269          )
270        )
271    );
272    $this->scores = new Google_Service_GamesManagement_Resource_Scores(
273        $this,
274        $this->serviceName,
275        'scores',
276        array(
277          'methods' => array(
278            'reset' => array(
279              'path' => 'leaderboards/{leaderboardId}/scores/reset',
280              'httpMethod' => 'POST',
281              'parameters' => array(
282                'leaderboardId' => array(
283                  'location' => 'path',
284                  'type' => 'string',
285                  'required' => true,
286                ),
287              ),
288            ),'resetAll' => array(
289              'path' => 'scores/reset',
290              'httpMethod' => 'POST',
291              'parameters' => array(),
292            ),'resetAllForAllPlayers' => array(
293              'path' => 'scores/resetAllForAllPlayers',
294              'httpMethod' => 'POST',
295              'parameters' => array(),
296            ),'resetForAllPlayers' => array(
297              'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers',
298              'httpMethod' => 'POST',
299              'parameters' => array(
300                'leaderboardId' => array(
301                  'location' => 'path',
302                  'type' => 'string',
303                  'required' => true,
304                ),
305              ),
306            ),'resetMultipleForAllPlayers' => array(
307              'path' => 'scores/resetMultipleForAllPlayers',
308              'httpMethod' => 'POST',
309              'parameters' => array(),
310            ),
311          )
312        )
313    );
314    $this->turnBasedMatches = new Google_Service_GamesManagement_Resource_TurnBasedMatches(
315        $this,
316        $this->serviceName,
317        'turnBasedMatches',
318        array(
319          'methods' => array(
320            'reset' => array(
321              'path' => 'turnbasedmatches/reset',
322              'httpMethod' => 'POST',
323              'parameters' => array(),
324            ),'resetForAllPlayers' => array(
325              'path' => 'turnbasedmatches/resetForAllPlayers',
326              'httpMethod' => 'POST',
327              'parameters' => array(),
328            ),
329          )
330        )
331    );
332  }
333}
334