PluginProbe
Authorizer / 2.2
Authorizer v2.2
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / inc / google-api-php-client / src / Google / Service / GamesManagement.php

GamesManagement.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/GamesManagement.php

762 lines 20.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18 /**
19 * Service definition for GamesManagement (v1management).
20 *
21 * <p>
22 * The Management API for Google Play Game Services.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_GamesManagement extends Google_Service
33 {
34 /** Share your Google+ profile information and view and manage your game activity. */
35 const GAMES = "https://www.googleapis.com/auth/games";
36 /** Know your basic profile info and list of people in your circles.. */
37 const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login";
38
39 public $achievements;
40 public $applications;
41 public $players;
42 public $rooms;
43 public $scores;
44 public $turnBasedMatches;
45
46
47 /**
48 * Constructs the internal representation of the GamesManagement service.
49 *
50 * @param Google_Client $client
51 */
52 public function __construct(Google_Client $client)
53 {
54 parent::__construct($client);
55 $this->servicePath = 'games/v1management/';
56 $this->version = 'v1management';
57 $this->serviceName = 'gamesManagement';
58
59 $this->achievements = new Google_Service_GamesManagement_Achievements_Resource(
60 $this,
61 $this->serviceName,
62 'achievements',
63 array(
64 'methods' => array(
65 'reset' => array(
66 'path' => 'achievements/{achievementId}/reset',
67 'httpMethod' => 'POST',
68 'parameters' => array(
69 'achievementId' => array(
70 'location' => 'path',
71 'type' => 'string',
72 'required' => true,
73 ),
74 ),
75 ),'resetAll' => array(
76 'path' => 'achievements/reset',
77 'httpMethod' => 'POST',
78 'parameters' => array(),
79 ),'resetForAllPlayers' => array(
80 'path' => 'achievements/{achievementId}/resetForAllPlayers',
81 'httpMethod' => 'POST',
82 'parameters' => array(
83 'achievementId' => array(
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ),
88 ),
89 ),
90 )
91 )
92 );
93 $this->applications = new Google_Service_GamesManagement_Applications_Resource(
94 $this,
95 $this->serviceName,
96 'applications',
97 array(
98 'methods' => array(
99 'listHidden' => array(
100 'path' => 'applications/{applicationId}/players/hidden',
101 'httpMethod' => 'GET',
102 'parameters' => array(
103 'applicationId' => array(
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ),
108 'pageToken' => array(
109 'location' => 'query',
110 'type' => 'string',
111 ),
112 'maxResults' => array(
113 'location' => 'query',
114 'type' => 'integer',
115 ),
116 ),
117 ),
118 )
119 )
120 );
121 $this->players = new Google_Service_GamesManagement_Players_Resource(
122 $this,
123 $this->serviceName,
124 'players',
125 array(
126 'methods' => array(
127 'hide' => array(
128 'path' => 'applications/{applicationId}/players/hidden/{playerId}',
129 'httpMethod' => 'POST',
130 'parameters' => array(
131 'applicationId' => array(
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ),
136 'playerId' => array(
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ),
141 ),
142 ),'unhide' => array(
143 'path' => 'applications/{applicationId}/players/hidden/{playerId}',
144 'httpMethod' => 'DELETE',
145 'parameters' => array(
146 'applicationId' => array(
147 'location' => 'path',
148 'type' => 'string',
149 'required' => true,
150 ),
151 'playerId' => array(
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ),
156 ),
157 ),
158 )
159 )
160 );
161 $this->rooms = new Google_Service_GamesManagement_Rooms_Resource(
162 $this,
163 $this->serviceName,
164 'rooms',
165 array(
166 'methods' => array(
167 'reset' => array(
168 'path' => 'rooms/reset',
169 'httpMethod' => 'POST',
170 'parameters' => array(),
171 ),
172 )
173 )
174 );
175 $this->scores = new Google_Service_GamesManagement_Scores_Resource(
176 $this,
177 $this->serviceName,
178 'scores',
179 array(
180 'methods' => array(
181 'reset' => array(
182 'path' => 'leaderboards/{leaderboardId}/scores/reset',
183 'httpMethod' => 'POST',
184 'parameters' => array(
185 'leaderboardId' => array(
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ),
190 ),
191 ),'resetForAllPlayers' => array(
192 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers',
193 'httpMethod' => 'POST',
194 'parameters' => array(
195 'leaderboardId' => array(
196 'location' => 'path',
197 'type' => 'string',
198 'required' => true,
199 ),
200 ),
201 ),
202 )
203 )
204 );
205 $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource(
206 $this,
207 $this->serviceName,
208 'turnBasedMatches',
209 array(
210 'methods' => array(
211 'reset' => array(
212 'path' => 'turnbasedmatches/reset',
213 'httpMethod' => 'POST',
214 'parameters' => array(),
215 ),
216 )
217 )
218 );
219 }
220 }
221
222
223 /**
224 * The "achievements" collection of methods.
225 * Typical usage is:
226 * <code>
227 * $gamesManagementService = new Google_Service_GamesManagement(...);
228 * $achievements = $gamesManagementService->achievements;
229 * </code>
230 */
231 class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource
232 {
233
234 /**
235 * Resets the achievement with the given ID for the currently authenticated
236 * player. This method is only accessible to whitelisted tester accounts for
237 * your application. (achievements.reset)
238 *
239 * @param string $achievementId
240 * The ID of the achievement used by this method.
241 * @param array $optParams Optional parameters.
242 * @return Google_Service_GamesManagement_AchievementResetResponse
243 */
244 public function reset($achievementId, $optParams = array())
245 {
246 $params = array('achievementId' => $achievementId);
247 $params = array_merge($params, $optParams);
248 return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse");
249 }
250 /**
251 * Resets all achievements for the currently authenticated player for your
252 * application. This method is only accessible to whitelisted tester accounts
253 * for your application. (achievements.resetAll)
254 *
255 * @param array $optParams Optional parameters.
256 * @return Google_Service_GamesManagement_AchievementResetAllResponse
257 */
258 public function resetAll($optParams = array())
259 {
260 $params = array();
261 $params = array_merge($params, $optParams);
262 return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
263 }
264 /**
265 * Resets the achievement with the given ID for the all players. This method is
266 * only available to user accounts for your developer console. Only draft
267 * achievements can be reset. (achievements.resetForAllPlayers)
268 *
269 * @param string $achievementId
270 * The ID of the achievement used by this method.
271 * @param array $optParams Optional parameters.
272 */
273 public function resetForAllPlayers($achievementId, $optParams = array())
274 {
275 $params = array('achievementId' => $achievementId);
276 $params = array_merge($params, $optParams);
277 return $this->call('resetForAllPlayers', array($params));
278 }
279 }
280
281 /**
282 * The "applications" collection of methods.
283 * Typical usage is:
284 * <code>
285 * $gamesManagementService = new Google_Service_GamesManagement(...);
286 * $applications = $gamesManagementService->applications;
287 * </code>
288 */
289 class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource
290 {
291
292 /**
293 * Get the list of players hidden from the given application. This method is
294 * only available to user accounts for your developer console.
295 * (applications.listHidden)
296 *
297 * @param string $applicationId
298 * The application being requested.
299 * @param array $optParams Optional parameters.
300 *
301 * @opt_param string pageToken
302 * The token returned by the previous request.
303 * @opt_param int maxResults
304 * The maximum number of player resources to return in the response, used for paging. For any
305 * response, the actual number of player resources returned may be less than the specified
306 * maxResults.
307 * @return Google_Service_GamesManagement_HiddenPlayerList
308 */
309 public function listHidden($applicationId, $optParams = array())
310 {
311 $params = array('applicationId' => $applicationId);
312 $params = array_merge($params, $optParams);
313 return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList");
314 }
315 }
316
317 /**
318 * The "players" collection of methods.
319 * Typical usage is:
320 * <code>
321 * $gamesManagementService = new Google_Service_GamesManagement(...);
322 * $players = $gamesManagementService->players;
323 * </code>
324 */
325 class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource
326 {
327
328 /**
329 * Hide the given player's leaderboard scores from the given application. This
330 * method is only available to user accounts for your developer console.
331 * (players.hide)
332 *
333 * @param string $applicationId
334 * The application being requested.
335 * @param string $playerId
336 * A player ID. A value of me may be used in place of the authenticated player's ID.
337 * @param array $optParams Optional parameters.
338 */
339 public function hide($applicationId, $playerId, $optParams = array())
340 {
341 $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
342 $params = array_merge($params, $optParams);
343 return $this->call('hide', array($params));
344 }
345 /**
346 * Unhide the given player's leaderboard scores from the given application. This
347 * method is only available to user accounts for your developer console.
348 * (players.unhide)
349 *
350 * @param string $applicationId
351 * The application being requested.
352 * @param string $playerId
353 * A player ID. A value of me may be used in place of the authenticated player's ID.
354 * @param array $optParams Optional parameters.
355 */
356 public function unhide($applicationId, $playerId, $optParams = array())
357 {
358 $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
359 $params = array_merge($params, $optParams);
360 return $this->call('unhide', array($params));
361 }
362 }
363
364 /**
365 * The "rooms" collection of methods.
366 * Typical usage is:
367 * <code>
368 * $gamesManagementService = new Google_Service_GamesManagement(...);
369 * $rooms = $gamesManagementService->rooms;
370 * </code>
371 */
372 class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource
373 {
374
375 /**
376 * Reset all rooms for the currently authenticated player for your application.
377 * This method is only accessible to whitelisted tester accounts for your
378 * application. (rooms.reset)
379 *
380 * @param array $optParams Optional parameters.
381 */
382 public function reset($optParams = array())
383 {
384 $params = array();
385 $params = array_merge($params, $optParams);
386 return $this->call('reset', array($params));
387 }
388 }
389
390 /**
391 * The "scores" collection of methods.
392 * Typical usage is:
393 * <code>
394 * $gamesManagementService = new Google_Service_GamesManagement(...);
395 * $scores = $gamesManagementService->scores;
396 * </code>
397 */
398 class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource
399 {
400
401 /**
402 * Reset scores for the specified leaderboard for the currently authenticated
403 * player. This method is only accessible to whitelisted tester accounts for
404 * your application. (scores.reset)
405 *
406 * @param string $leaderboardId
407 * The ID of the leaderboard.
408 * @param array $optParams Optional parameters.
409 * @return Google_Service_GamesManagement_PlayerScoreResetResponse
410 */
411 public function reset($leaderboardId, $optParams = array())
412 {
413 $params = array('leaderboardId' => $leaderboardId);
414 $params = array_merge($params, $optParams);
415 return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse");
416 }
417 /**
418 * Reset scores for the specified leaderboard for all players. This method is
419 * only available to user accounts for your developer console. Only draft
420 * leaderboards can be reset. (scores.resetForAllPlayers)
421 *
422 * @param string $leaderboardId
423 * The ID of the leaderboard.
424 * @param array $optParams Optional parameters.
425 */
426 public function resetForAllPlayers($leaderboardId, $optParams = array())
427 {
428 $params = array('leaderboardId' => $leaderboardId);
429 $params = array_merge($params, $optParams);
430 return $this->call('resetForAllPlayers', array($params));
431 }
432 }
433
434 /**
435 * The "turnBasedMatches" collection of methods.
436 * Typical usage is:
437 * <code>
438 * $gamesManagementService = new Google_Service_GamesManagement(...);
439 * $turnBasedMatches = $gamesManagementService->turnBasedMatches;
440 * </code>
441 */
442 class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource
443 {
444
445 /**
446 * Reset all turn-based match data for a user. This method is only accessible to
447 * whitelisted tester accounts for your application. (turnBasedMatches.reset)
448 *
449 * @param array $optParams Optional parameters.
450 */
451 public function reset($optParams = array())
452 {
453 $params = array();
454 $params = array_merge($params, $optParams);
455 return $this->call('reset', array($params));
456 }
457 }
458
459
460
461
462 class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection
463 {
464 public $kind;
465 protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse';
466 protected $resultsDataType = 'array';
467
468 public function setKind($kind)
469 {
470 $this->kind = $kind;
471 }
472
473 public function getKind()
474 {
475 return $this->kind;
476 }
477
478 public function setResults($results)
479 {
480 $this->results = $results;
481 }
482
483 public function getResults()
484 {
485 return $this->results;
486 }
487 }
488
489 class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model
490 {
491 public $currentState;
492 public $definitionId;
493 public $kind;
494 public $updateOccurred;
495
496 public function setCurrentState($currentState)
497 {
498 $this->currentState = $currentState;
499 }
500
501 public function getCurrentState()
502 {
503 return $this->currentState;
504 }
505
506 public function setDefinitionId($definitionId)
507 {
508 $this->definitionId = $definitionId;
509 }
510
511 public function getDefinitionId()
512 {
513 return $this->definitionId;
514 }
515
516 public function setKind($kind)
517 {
518 $this->kind = $kind;
519 }
520
521 public function getKind()
522 {
523 return $this->kind;
524 }
525
526 public function setUpdateOccurred($updateOccurred)
527 {
528 $this->updateOccurred = $updateOccurred;
529 }
530
531 public function getUpdateOccurred()
532 {
533 return $this->updateOccurred;
534 }
535 }
536
537 class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model
538 {
539 public $autoMatched;
540 public $timeMillis;
541
542 public function setAutoMatched($autoMatched)
543 {
544 $this->autoMatched = $autoMatched;
545 }
546
547 public function getAutoMatched()
548 {
549 return $this->autoMatched;
550 }
551
552 public function setTimeMillis($timeMillis)
553 {
554 $this->timeMillis = $timeMillis;
555 }
556
557 public function getTimeMillis()
558 {
559 return $this->timeMillis;
560 }
561 }
562
563 class Google_Service_GamesManagement_HiddenPlayer extends Google_Model
564 {
565 public $hiddenTimeMillis;
566 public $kind;
567 protected $playerType = 'Google_Service_GamesManagement_Player';
568 protected $playerDataType = '';
569
570 public function setHiddenTimeMillis($hiddenTimeMillis)
571 {
572 $this->hiddenTimeMillis = $hiddenTimeMillis;
573 }
574
575 public function getHiddenTimeMillis()
576 {
577 return $this->hiddenTimeMillis;
578 }
579
580 public function setKind($kind)
581 {
582 $this->kind = $kind;
583 }
584
585 public function getKind()
586 {
587 return $this->kind;
588 }
589
590 public function setPlayer(Google_Service_GamesManagement_Player $player)
591 {
592 $this->player = $player;
593 }
594
595 public function getPlayer()
596 {
597 return $this->player;
598 }
599 }
600
601 class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection
602 {
603 protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer';
604 protected $itemsDataType = 'array';
605 public $kind;
606 public $nextPageToken;
607
608 public function setItems($items)
609 {
610 $this->items = $items;
611 }
612
613 public function getItems()
614 {
615 return $this->items;
616 }
617
618 public function setKind($kind)
619 {
620 $this->kind = $kind;
621 }
622
623 public function getKind()
624 {
625 return $this->kind;
626 }
627
628 public function setNextPageToken($nextPageToken)
629 {
630 $this->nextPageToken = $nextPageToken;
631 }
632
633 public function getNextPageToken()
634 {
635 return $this->nextPageToken;
636 }
637 }
638
639 class Google_Service_GamesManagement_Player extends Google_Model
640 {
641 public $avatarImageUrl;
642 public $displayName;
643 public $kind;
644 protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource';
645 protected $lastPlayedWithDataType = '';
646 protected $nameType = 'Google_Service_GamesManagement_PlayerName';
647 protected $nameDataType = '';
648 public $playerId;
649
650 public function setAvatarImageUrl($avatarImageUrl)
651 {
652 $this->avatarImageUrl = $avatarImageUrl;
653 }
654
655 public function getAvatarImageUrl()
656 {
657 return $this->avatarImageUrl;
658 }
659
660 public function setDisplayName($displayName)
661 {
662 $this->displayName = $displayName;
663 }
664
665 public function getDisplayName()
666 {
667 return $this->displayName;
668 }
669
670 public function setKind($kind)
671 {
672 $this->kind = $kind;
673 }
674
675 public function getKind()
676 {
677 return $this->kind;
678 }
679
680 public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith)
681 {
682 $this->lastPlayedWith = $lastPlayedWith;
683 }
684
685 public function getLastPlayedWith()
686 {
687 return $this->lastPlayedWith;
688 }
689
690 public function setName(Google_Service_GamesManagement_PlayerName $name)
691 {
692 $this->name = $name;
693 }
694
695 public function getName()
696 {
697 return $this->name;
698 }
699
700 public function setPlayerId($playerId)
701 {
702 $this->playerId = $playerId;
703 }
704
705 public function getPlayerId()
706 {
707 return $this->playerId;
708 }
709 }
710
711 class Google_Service_GamesManagement_PlayerName extends Google_Model
712 {
713 public $familyName;
714 public $givenName;
715
716 public function setFamilyName($familyName)
717 {
718 $this->familyName = $familyName;
719 }
720
721 public function getFamilyName()
722 {
723 return $this->familyName;
724 }
725
726 public function setGivenName($givenName)
727 {
728 $this->givenName = $givenName;
729 }
730
731 public function getGivenName()
732 {
733 return $this->givenName;
734 }
735 }
736
737 class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection
738 {
739 public $kind;
740 public $resetScoreTimeSpans;
741
742 public function setKind($kind)
743 {
744 $this->kind = $kind;
745 }
746
747 public function getKind()
748 {
749 return $this->kind;
750 }
751
752 public function setResetScoreTimeSpans($resetScoreTimeSpans)
753 {
754 $this->resetScoreTimeSpans = $resetScoreTimeSpans;
755 }
756
757 public function getResetScoreTimeSpans()
758 {
759 return $this->resetScoreTimeSpans;
760 }
761 }
762