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