* The Google Play Game Services Publishing API allows developers to configure * their games in Game Services.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class 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 Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://gamesconfiguration.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1configuration'; $this->serviceName = 'gamesConfiguration'; $this->achievementConfigurations = new GamesConfiguration\Resource\AchievementConfigurations( $this, $this->serviceName, 'achievementConfigurations', [ 'methods' => [ 'delete' => [ 'path' => 'games/v1configuration/achievements/{achievementId}', 'httpMethod' => 'DELETE', 'parameters' => [ 'achievementId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'games/v1configuration/achievements/{achievementId}', 'httpMethod' => 'GET', 'parameters' => [ 'achievementId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'insert' => [ 'path' => 'games/v1configuration/applications/{applicationId}/achievements', 'httpMethod' => 'POST', 'parameters' => [ 'applicationId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'games/v1configuration/applications/{applicationId}/achievements', 'httpMethod' => 'GET', 'parameters' => [ 'applicationId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'maxResults' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'update' => [ 'path' => 'games/v1configuration/achievements/{achievementId}', 'httpMethod' => 'PUT', 'parameters' => [ 'achievementId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->imageConfigurations = new GamesConfiguration\Resource\ImageConfigurations( $this, $this->serviceName, 'imageConfigurations', [ 'methods' => [ 'upload' => [ 'path' => 'games/v1configuration/images/{resourceId}/imageType/{imageType}', 'httpMethod' => 'POST', 'parameters' => [ 'resourceId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'imageType' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->leaderboardConfigurations = new GamesConfiguration\Resource\LeaderboardConfigurations( $this, $this->serviceName, 'leaderboardConfigurations', [ 'methods' => [ 'delete' => [ 'path' => 'games/v1configuration/leaderboards/{leaderboardId}', 'httpMethod' => 'DELETE', 'parameters' => [ 'leaderboardId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'games/v1configuration/leaderboards/{leaderboardId}', 'httpMethod' => 'GET', 'parameters' => [ 'leaderboardId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'insert' => [ 'path' => 'games/v1configuration/applications/{applicationId}/leaderboards', 'httpMethod' => 'POST', 'parameters' => [ 'applicationId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'games/v1configuration/applications/{applicationId}/leaderboards', 'httpMethod' => 'GET', 'parameters' => [ 'applicationId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'maxResults' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'update' => [ 'path' => 'games/v1configuration/leaderboards/{leaderboardId}', 'httpMethod' => 'PUT', 'parameters' => [ 'leaderboardId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GamesConfiguration::class, 'Google_Service_GamesConfiguration');