Brak opisu

GamesConfiguration.php 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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 GamesConfiguration (v1configuration).
  19. *
  20. * <p>
  21. * The Publishing 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_GamesConfiguration extends Google_Service
  31. {
  32. /** View and manage your Google Play Developer account. */
  33. const ANDROIDPUBLISHER =
  34. "https://www.googleapis.com/auth/androidpublisher";
  35. public $achievementConfigurations;
  36. public $imageConfigurations;
  37. public $leaderboardConfigurations;
  38. /**
  39. * Constructs the internal representation of the GamesConfiguration service.
  40. *
  41. * @param Google_Client $client
  42. */
  43. public function __construct(Google_Client $client)
  44. {
  45. parent::__construct($client);
  46. $this->rootUrl = 'https://www.googleapis.com/';
  47. $this->servicePath = 'games/v1configuration/';
  48. $this->version = 'v1configuration';
  49. $this->serviceName = 'gamesConfiguration';
  50. $this->achievementConfigurations = new Google_Service_GamesConfiguration_Resource_AchievementConfigurations(
  51. $this,
  52. $this->serviceName,
  53. 'achievementConfigurations',
  54. array(
  55. 'methods' => array(
  56. 'delete' => array(
  57. 'path' => 'achievements/{achievementId}',
  58. 'httpMethod' => 'DELETE',
  59. 'parameters' => array(
  60. 'achievementId' => array(
  61. 'location' => 'path',
  62. 'type' => 'string',
  63. 'required' => true,
  64. ),
  65. ),
  66. ),'get' => array(
  67. 'path' => 'achievements/{achievementId}',
  68. 'httpMethod' => 'GET',
  69. 'parameters' => array(
  70. 'achievementId' => array(
  71. 'location' => 'path',
  72. 'type' => 'string',
  73. 'required' => true,
  74. ),
  75. ),
  76. ),'insert' => array(
  77. 'path' => 'applications/{applicationId}/achievements',
  78. 'httpMethod' => 'POST',
  79. 'parameters' => array(
  80. 'applicationId' => array(
  81. 'location' => 'path',
  82. 'type' => 'string',
  83. 'required' => true,
  84. ),
  85. ),
  86. ),'list' => array(
  87. 'path' => 'applications/{applicationId}/achievements',
  88. 'httpMethod' => 'GET',
  89. 'parameters' => array(
  90. 'applicationId' => array(
  91. 'location' => 'path',
  92. 'type' => 'string',
  93. 'required' => true,
  94. ),
  95. 'maxResults' => array(
  96. 'location' => 'query',
  97. 'type' => 'integer',
  98. ),
  99. 'pageToken' => array(
  100. 'location' => 'query',
  101. 'type' => 'string',
  102. ),
  103. ),
  104. ),'patch' => array(
  105. 'path' => 'achievements/{achievementId}',
  106. 'httpMethod' => 'PATCH',
  107. 'parameters' => array(
  108. 'achievementId' => array(
  109. 'location' => 'path',
  110. 'type' => 'string',
  111. 'required' => true,
  112. ),
  113. ),
  114. ),'update' => array(
  115. 'path' => 'achievements/{achievementId}',
  116. 'httpMethod' => 'PUT',
  117. 'parameters' => array(
  118. 'achievementId' => array(
  119. 'location' => 'path',
  120. 'type' => 'string',
  121. 'required' => true,
  122. ),
  123. ),
  124. ),
  125. )
  126. )
  127. );
  128. $this->imageConfigurations = new Google_Service_GamesConfiguration_Resource_ImageConfigurations(
  129. $this,
  130. $this->serviceName,
  131. 'imageConfigurations',
  132. array(
  133. 'methods' => array(
  134. 'upload' => array(
  135. 'path' => 'images/{resourceId}/imageType/{imageType}',
  136. 'httpMethod' => 'POST',
  137. 'parameters' => array(
  138. 'resourceId' => array(
  139. 'location' => 'path',
  140. 'type' => 'string',
  141. 'required' => true,
  142. ),
  143. 'imageType' => array(
  144. 'location' => 'path',
  145. 'type' => 'string',
  146. 'required' => true,
  147. ),
  148. ),
  149. ),
  150. )
  151. )
  152. );
  153. $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_Resource_LeaderboardConfigurations(
  154. $this,
  155. $this->serviceName,
  156. 'leaderboardConfigurations',
  157. array(
  158. 'methods' => array(
  159. 'delete' => array(
  160. 'path' => 'leaderboards/{leaderboardId}',
  161. 'httpMethod' => 'DELETE',
  162. 'parameters' => array(
  163. 'leaderboardId' => array(
  164. 'location' => 'path',
  165. 'type' => 'string',
  166. 'required' => true,
  167. ),
  168. ),
  169. ),'get' => array(
  170. 'path' => 'leaderboards/{leaderboardId}',
  171. 'httpMethod' => 'GET',
  172. 'parameters' => array(
  173. 'leaderboardId' => array(
  174. 'location' => 'path',
  175. 'type' => 'string',
  176. 'required' => true,
  177. ),
  178. ),
  179. ),'insert' => array(
  180. 'path' => 'applications/{applicationId}/leaderboards',
  181. 'httpMethod' => 'POST',
  182. 'parameters' => array(
  183. 'applicationId' => array(
  184. 'location' => 'path',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ),
  188. ),
  189. ),'list' => array(
  190. 'path' => 'applications/{applicationId}/leaderboards',
  191. 'httpMethod' => 'GET',
  192. 'parameters' => array(
  193. 'applicationId' => array(
  194. 'location' => 'path',
  195. 'type' => 'string',
  196. 'required' => true,
  197. ),
  198. 'maxResults' => array(
  199. 'location' => 'query',
  200. 'type' => 'integer',
  201. ),
  202. 'pageToken' => array(
  203. 'location' => 'query',
  204. 'type' => 'string',
  205. ),
  206. ),
  207. ),'patch' => array(
  208. 'path' => 'leaderboards/{leaderboardId}',
  209. 'httpMethod' => 'PATCH',
  210. 'parameters' => array(
  211. 'leaderboardId' => array(
  212. 'location' => 'path',
  213. 'type' => 'string',
  214. 'required' => true,
  215. ),
  216. ),
  217. ),'update' => array(
  218. 'path' => 'leaderboards/{leaderboardId}',
  219. 'httpMethod' => 'PUT',
  220. 'parameters' => array(
  221. 'leaderboardId' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. ),
  227. ),
  228. )
  229. )
  230. );
  231. }
  232. }