2017-05-26 11:41:26 +02:00

237 lines
7.7 KiB
PHP

<?php
/*
* Copyright 2016 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,
),
),
),
)
)
);
}
}