123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
- /**
- * Service definition for GamesConfiguration (v1configuration).
- *
- * <p>
- * The Publishing API for Google Play Game Services.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_GamesConfiguration extends Google_Service
- {
- /** View and manage your Google Play Developer account. */
- const ANDROIDPUBLISHER =
- "https://www.googleapis.com/auth/androidpublisher";
-
- public $achievementConfigurations;
- public $imageConfigurations;
- public $leaderboardConfigurations;
-
- /**
- * Constructs the internal representation of the GamesConfiguration service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'games/v1configuration/';
- $this->version = 'v1configuration';
- $this->serviceName = 'gamesConfiguration';
-
- $this->achievementConfigurations = new Google_Service_GamesConfiguration_Resource_AchievementConfigurations(
- $this,
- $this->serviceName,
- 'achievementConfigurations',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'achievements/{achievementId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'achievementId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'achievements/{achievementId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'achievementId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'applications/{applicationId}/achievements',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'applicationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'applications/{applicationId}/achievements',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'applicationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'achievements/{achievementId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'achievementId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'achievements/{achievementId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'achievementId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->imageConfigurations = new Google_Service_GamesConfiguration_Resource_ImageConfigurations(
- $this,
- $this->serviceName,
- 'imageConfigurations',
- array(
- 'methods' => array(
- 'upload' => array(
- 'path' => 'images/{resourceId}/imageType/{imageType}',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'imageType' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_Resource_LeaderboardConfigurations(
- $this,
- $this->serviceName,
- 'leaderboardConfigurations',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'leaderboards/{leaderboardId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'leaderboardId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'leaderboards/{leaderboardId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'leaderboardId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'applications/{applicationId}/leaderboards',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'applicationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'applications/{applicationId}/leaderboards',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'applicationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'leaderboards/{leaderboardId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'leaderboardId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'leaderboards/{leaderboardId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'leaderboardId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- }
- }
|