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 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for GamesConfiguration (v1configuration).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * The Google Play Game Services Publishing API allows developers to configure
|
---|
27 | * their games in Game Services.</p>
|
---|
28 | *
|
---|
29 | * <p>
|
---|
30 | * For more information about this service, see the API
|
---|
31 | * <a href="https://developers.google.com/games/" target="_blank">Documentation</a>
|
---|
32 | * </p>
|
---|
33 | *
|
---|
34 | * @author Google, Inc.
|
---|
35 | */
|
---|
36 | class GamesConfiguration extends \Google\Service
|
---|
37 | {
|
---|
38 | /** View and manage your Google Play Developer account. */
|
---|
39 | const ANDROIDPUBLISHER =
|
---|
40 | "https://www.googleapis.com/auth/androidpublisher";
|
---|
41 |
|
---|
42 | public $achievementConfigurations;
|
---|
43 | public $leaderboardConfigurations;
|
---|
44 | public $rootUrlTemplate;
|
---|
45 |
|
---|
46 | /**
|
---|
47 | * Constructs the internal representation of the GamesConfiguration service.
|
---|
48 | *
|
---|
49 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
50 | * config array to pass to a new Client instance.
|
---|
51 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
52 | */
|
---|
53 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
54 | {
|
---|
55 | parent::__construct($clientOrConfig);
|
---|
56 | $this->rootUrl = $rootUrl ?: 'https://gamesconfiguration.googleapis.com/';
|
---|
57 | $this->rootUrlTemplate = $rootUrl ?: 'https://gamesconfiguration.UNIVERSE_DOMAIN/';
|
---|
58 | $this->servicePath = '';
|
---|
59 | $this->batchPath = 'batch';
|
---|
60 | $this->version = 'v1configuration';
|
---|
61 | $this->serviceName = 'gamesConfiguration';
|
---|
62 |
|
---|
63 | $this->achievementConfigurations = new GamesConfiguration\Resource\AchievementConfigurations(
|
---|
64 | $this,
|
---|
65 | $this->serviceName,
|
---|
66 | 'achievementConfigurations',
|
---|
67 | [
|
---|
68 | 'methods' => [
|
---|
69 | 'delete' => [
|
---|
70 | 'path' => 'games/v1configuration/achievements/{achievementId}',
|
---|
71 | 'httpMethod' => 'DELETE',
|
---|
72 | 'parameters' => [
|
---|
73 | 'achievementId' => [
|
---|
74 | 'location' => 'path',
|
---|
75 | 'type' => 'string',
|
---|
76 | 'required' => true,
|
---|
77 | ],
|
---|
78 | ],
|
---|
79 | ],'get' => [
|
---|
80 | 'path' => 'games/v1configuration/achievements/{achievementId}',
|
---|
81 | 'httpMethod' => 'GET',
|
---|
82 | 'parameters' => [
|
---|
83 | 'achievementId' => [
|
---|
84 | 'location' => 'path',
|
---|
85 | 'type' => 'string',
|
---|
86 | 'required' => true,
|
---|
87 | ],
|
---|
88 | ],
|
---|
89 | ],'insert' => [
|
---|
90 | 'path' => 'games/v1configuration/applications/{applicationId}/achievements',
|
---|
91 | 'httpMethod' => 'POST',
|
---|
92 | 'parameters' => [
|
---|
93 | 'applicationId' => [
|
---|
94 | 'location' => 'path',
|
---|
95 | 'type' => 'string',
|
---|
96 | 'required' => true,
|
---|
97 | ],
|
---|
98 | ],
|
---|
99 | ],'list' => [
|
---|
100 | 'path' => 'games/v1configuration/applications/{applicationId}/achievements',
|
---|
101 | 'httpMethod' => 'GET',
|
---|
102 | 'parameters' => [
|
---|
103 | 'applicationId' => [
|
---|
104 | 'location' => 'path',
|
---|
105 | 'type' => 'string',
|
---|
106 | 'required' => true,
|
---|
107 | ],
|
---|
108 | 'maxResults' => [
|
---|
109 | 'location' => 'query',
|
---|
110 | 'type' => 'integer',
|
---|
111 | ],
|
---|
112 | 'pageToken' => [
|
---|
113 | 'location' => 'query',
|
---|
114 | 'type' => 'string',
|
---|
115 | ],
|
---|
116 | ],
|
---|
117 | ],'update' => [
|
---|
118 | 'path' => 'games/v1configuration/achievements/{achievementId}',
|
---|
119 | 'httpMethod' => 'PUT',
|
---|
120 | 'parameters' => [
|
---|
121 | 'achievementId' => [
|
---|
122 | 'location' => 'path',
|
---|
123 | 'type' => 'string',
|
---|
124 | 'required' => true,
|
---|
125 | ],
|
---|
126 | ],
|
---|
127 | ],
|
---|
128 | ]
|
---|
129 | ]
|
---|
130 | );
|
---|
131 | $this->leaderboardConfigurations = new GamesConfiguration\Resource\LeaderboardConfigurations(
|
---|
132 | $this,
|
---|
133 | $this->serviceName,
|
---|
134 | 'leaderboardConfigurations',
|
---|
135 | [
|
---|
136 | 'methods' => [
|
---|
137 | 'delete' => [
|
---|
138 | 'path' => 'games/v1configuration/leaderboards/{leaderboardId}',
|
---|
139 | 'httpMethod' => 'DELETE',
|
---|
140 | 'parameters' => [
|
---|
141 | 'leaderboardId' => [
|
---|
142 | 'location' => 'path',
|
---|
143 | 'type' => 'string',
|
---|
144 | 'required' => true,
|
---|
145 | ],
|
---|
146 | ],
|
---|
147 | ],'get' => [
|
---|
148 | 'path' => 'games/v1configuration/leaderboards/{leaderboardId}',
|
---|
149 | 'httpMethod' => 'GET',
|
---|
150 | 'parameters' => [
|
---|
151 | 'leaderboardId' => [
|
---|
152 | 'location' => 'path',
|
---|
153 | 'type' => 'string',
|
---|
154 | 'required' => true,
|
---|
155 | ],
|
---|
156 | ],
|
---|
157 | ],'insert' => [
|
---|
158 | 'path' => 'games/v1configuration/applications/{applicationId}/leaderboards',
|
---|
159 | 'httpMethod' => 'POST',
|
---|
160 | 'parameters' => [
|
---|
161 | 'applicationId' => [
|
---|
162 | 'location' => 'path',
|
---|
163 | 'type' => 'string',
|
---|
164 | 'required' => true,
|
---|
165 | ],
|
---|
166 | ],
|
---|
167 | ],'list' => [
|
---|
168 | 'path' => 'games/v1configuration/applications/{applicationId}/leaderboards',
|
---|
169 | 'httpMethod' => 'GET',
|
---|
170 | 'parameters' => [
|
---|
171 | 'applicationId' => [
|
---|
172 | 'location' => 'path',
|
---|
173 | 'type' => 'string',
|
---|
174 | 'required' => true,
|
---|
175 | ],
|
---|
176 | 'maxResults' => [
|
---|
177 | 'location' => 'query',
|
---|
178 | 'type' => 'integer',
|
---|
179 | ],
|
---|
180 | 'pageToken' => [
|
---|
181 | 'location' => 'query',
|
---|
182 | 'type' => 'string',
|
---|
183 | ],
|
---|
184 | ],
|
---|
185 | ],'update' => [
|
---|
186 | 'path' => 'games/v1configuration/leaderboards/{leaderboardId}',
|
---|
187 | 'httpMethod' => 'PUT',
|
---|
188 | 'parameters' => [
|
---|
189 | 'leaderboardId' => [
|
---|
190 | 'location' => 'path',
|
---|
191 | 'type' => 'string',
|
---|
192 | 'required' => true,
|
---|
193 | ],
|
---|
194 | ],
|
---|
195 | ],
|
---|
196 | ]
|
---|
197 | ]
|
---|
198 | );
|
---|
199 | }
|
---|
200 | }
|
---|
201 |
|
---|
202 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
203 | class_alias(GamesConfiguration::class, 'Google_Service_GamesConfiguration');
|
---|