Ingen beskrivning

GamesManagement.php 11KB

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