Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,166 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class AchievementConfiguration extends \Google\Model
{
/**
* @var string
*/
public $achievementType;
protected $draftType = AchievementConfigurationDetail::class;
protected $draftDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $initialState;
/**
* @var string
*/
public $kind;
protected $publishedType = AchievementConfigurationDetail::class;
protected $publishedDataType = '';
/**
* @var int
*/
public $stepsToUnlock;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setAchievementType($achievementType)
{
$this->achievementType = $achievementType;
}
/**
* @return string
*/
public function getAchievementType()
{
return $this->achievementType;
}
/**
* @param AchievementConfigurationDetail
*/
public function setDraft(AchievementConfigurationDetail $draft)
{
$this->draft = $draft;
}
/**
* @return AchievementConfigurationDetail
*/
public function getDraft()
{
return $this->draft;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setInitialState($initialState)
{
$this->initialState = $initialState;
}
/**
* @return string
*/
public function getInitialState()
{
return $this->initialState;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AchievementConfigurationDetail
*/
public function setPublished(AchievementConfigurationDetail $published)
{
$this->published = $published;
}
/**
* @return AchievementConfigurationDetail
*/
public function getPublished()
{
return $this->published;
}
/**
* @param int
*/
public function setStepsToUnlock($stepsToUnlock)
{
$this->stepsToUnlock = $stepsToUnlock;
}
/**
* @return int
*/
public function getStepsToUnlock()
{
return $this->stepsToUnlock;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementConfiguration::class, 'Google_Service_GamesConfiguration_AchievementConfiguration');

View File

@@ -0,0 +1,130 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class AchievementConfigurationDetail extends \Google\Model
{
protected $descriptionType = LocalizedStringBundle::class;
protected $descriptionDataType = '';
/**
* @var string
*/
public $iconUrl;
/**
* @var string
*/
public $kind;
protected $nameType = LocalizedStringBundle::class;
protected $nameDataType = '';
/**
* @var int
*/
public $pointValue;
/**
* @var int
*/
public $sortRank;
/**
* @param LocalizedStringBundle
*/
public function setDescription(LocalizedStringBundle $description)
{
$this->description = $description;
}
/**
* @return LocalizedStringBundle
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LocalizedStringBundle
*/
public function setName(LocalizedStringBundle $name)
{
$this->name = $name;
}
/**
* @return LocalizedStringBundle
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setPointValue($pointValue)
{
$this->pointValue = $pointValue;
}
/**
* @return int
*/
public function getPointValue()
{
return $this->pointValue;
}
/**
* @param int
*/
public function setSortRank($sortRank)
{
$this->sortRank = $sortRank;
}
/**
* @return int
*/
public function getSortRank()
{
return $this->sortRank;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementConfigurationDetail::class, 'Google_Service_GamesConfiguration_AchievementConfigurationDetail');

View File

@@ -0,0 +1,79 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class AchievementConfigurationListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = AchievementConfiguration::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param AchievementConfiguration[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AchievementConfiguration[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementConfigurationListResponse::class, 'Google_Service_GamesConfiguration_AchievementConfigurationListResponse');

View File

@@ -0,0 +1,122 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class GamesNumberAffixConfiguration extends \Google\Model
{
protected $fewType = LocalizedStringBundle::class;
protected $fewDataType = '';
protected $manyType = LocalizedStringBundle::class;
protected $manyDataType = '';
protected $oneType = LocalizedStringBundle::class;
protected $oneDataType = '';
protected $otherType = LocalizedStringBundle::class;
protected $otherDataType = '';
protected $twoType = LocalizedStringBundle::class;
protected $twoDataType = '';
protected $zeroType = LocalizedStringBundle::class;
protected $zeroDataType = '';
/**
* @param LocalizedStringBundle
*/
public function setFew(LocalizedStringBundle $few)
{
$this->few = $few;
}
/**
* @return LocalizedStringBundle
*/
public function getFew()
{
return $this->few;
}
/**
* @param LocalizedStringBundle
*/
public function setMany(LocalizedStringBundle $many)
{
$this->many = $many;
}
/**
* @return LocalizedStringBundle
*/
public function getMany()
{
return $this->many;
}
/**
* @param LocalizedStringBundle
*/
public function setOne(LocalizedStringBundle $one)
{
$this->one = $one;
}
/**
* @return LocalizedStringBundle
*/
public function getOne()
{
return $this->one;
}
/**
* @param LocalizedStringBundle
*/
public function setOther(LocalizedStringBundle $other)
{
$this->other = $other;
}
/**
* @return LocalizedStringBundle
*/
public function getOther()
{
return $this->other;
}
/**
* @param LocalizedStringBundle
*/
public function setTwo(LocalizedStringBundle $two)
{
$this->two = $two;
}
/**
* @return LocalizedStringBundle
*/
public function getTwo()
{
return $this->two;
}
/**
* @param LocalizedStringBundle
*/
public function setZero(LocalizedStringBundle $zero)
{
$this->zero = $zero;
}
/**
* @return LocalizedStringBundle
*/
public function getZero()
{
return $this->zero;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesNumberAffixConfiguration::class, 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration');

View File

@@ -0,0 +1,96 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class GamesNumberFormatConfiguration extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $numDecimalPlaces;
/**
* @var string
*/
public $numberFormatType;
protected $suffixType = GamesNumberAffixConfiguration::class;
protected $suffixDataType = '';
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNumDecimalPlaces($numDecimalPlaces)
{
$this->numDecimalPlaces = $numDecimalPlaces;
}
/**
* @return int
*/
public function getNumDecimalPlaces()
{
return $this->numDecimalPlaces;
}
/**
* @param string
*/
public function setNumberFormatType($numberFormatType)
{
$this->numberFormatType = $numberFormatType;
}
/**
* @return string
*/
public function getNumberFormatType()
{
return $this->numberFormatType;
}
/**
* @param GamesNumberAffixConfiguration
*/
public function setSuffix(GamesNumberAffixConfiguration $suffix)
{
$this->suffix = $suffix;
}
/**
* @return GamesNumberAffixConfiguration
*/
public function getSuffix()
{
return $this->suffix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesNumberFormatConfiguration::class, 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration');

View File

@@ -0,0 +1,98 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class ImageConfiguration extends \Google\Model
{
/**
* @var string
*/
public $imageType;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $resourceId;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setImageType($imageType)
{
$this->imageType = $imageType;
}
/**
* @return string
*/
public function getImageType()
{
return $this->imageType;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageConfiguration::class, 'Google_Service_GamesConfiguration_ImageConfiguration');

View File

@@ -0,0 +1,166 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class LeaderboardConfiguration extends \Google\Model
{
protected $draftType = LeaderboardConfigurationDetail::class;
protected $draftDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $publishedType = LeaderboardConfigurationDetail::class;
protected $publishedDataType = '';
/**
* @var string
*/
public $scoreMax;
/**
* @var string
*/
public $scoreMin;
/**
* @var string
*/
public $scoreOrder;
/**
* @var string
*/
public $token;
/**
* @param LeaderboardConfigurationDetail
*/
public function setDraft(LeaderboardConfigurationDetail $draft)
{
$this->draft = $draft;
}
/**
* @return LeaderboardConfigurationDetail
*/
public function getDraft()
{
return $this->draft;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LeaderboardConfigurationDetail
*/
public function setPublished(LeaderboardConfigurationDetail $published)
{
$this->published = $published;
}
/**
* @return LeaderboardConfigurationDetail
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setScoreMax($scoreMax)
{
$this->scoreMax = $scoreMax;
}
/**
* @return string
*/
public function getScoreMax()
{
return $this->scoreMax;
}
/**
* @param string
*/
public function setScoreMin($scoreMin)
{
$this->scoreMin = $scoreMin;
}
/**
* @return string
*/
public function getScoreMin()
{
return $this->scoreMin;
}
/**
* @param string
*/
public function setScoreOrder($scoreOrder)
{
$this->scoreOrder = $scoreOrder;
}
/**
* @return string
*/
public function getScoreOrder()
{
return $this->scoreOrder;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardConfiguration::class, 'Google_Service_GamesConfiguration_LeaderboardConfiguration');

View File

@@ -0,0 +1,112 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class LeaderboardConfigurationDetail extends \Google\Model
{
/**
* @var string
*/
public $iconUrl;
/**
* @var string
*/
public $kind;
protected $nameType = LocalizedStringBundle::class;
protected $nameDataType = '';
protected $scoreFormatType = GamesNumberFormatConfiguration::class;
protected $scoreFormatDataType = '';
/**
* @var int
*/
public $sortRank;
/**
* @param string
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LocalizedStringBundle
*/
public function setName(LocalizedStringBundle $name)
{
$this->name = $name;
}
/**
* @return LocalizedStringBundle
*/
public function getName()
{
return $this->name;
}
/**
* @param GamesNumberFormatConfiguration
*/
public function setScoreFormat(GamesNumberFormatConfiguration $scoreFormat)
{
$this->scoreFormat = $scoreFormat;
}
/**
* @return GamesNumberFormatConfiguration
*/
public function getScoreFormat()
{
return $this->scoreFormat;
}
/**
* @param int
*/
public function setSortRank($sortRank)
{
$this->sortRank = $sortRank;
}
/**
* @return int
*/
public function getSortRank()
{
return $this->sortRank;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardConfigurationDetail::class, 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail');

View File

@@ -0,0 +1,79 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class LeaderboardConfigurationListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = LeaderboardConfiguration::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param LeaderboardConfiguration[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return LeaderboardConfiguration[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardConfigurationListResponse::class, 'Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse');

View File

@@ -0,0 +1,80 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class LocalizedString extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $locale;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocalizedString::class, 'Google_Service_GamesConfiguration_LocalizedString');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\GamesConfiguration;
class LocalizedStringBundle extends \Google\Collection
{
protected $collection_key = 'translations';
/**
* @var string
*/
public $kind;
protected $translationsType = LocalizedString::class;
protected $translationsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LocalizedString[]
*/
public function setTranslations($translations)
{
$this->translations = $translations;
}
/**
* @return LocalizedString[]
*/
public function getTranslations()
{
return $this->translations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocalizedStringBundle::class, 'Google_Service_GamesConfiguration_LocalizedStringBundle');

View File

@@ -0,0 +1,119 @@
<?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.
*/
namespace Google\Service\GamesConfiguration\Resource;
use Google\Service\GamesConfiguration\AchievementConfiguration;
use Google\Service\GamesConfiguration\AchievementConfigurationListResponse;
/**
* The "achievementConfigurations" collection of methods.
* Typical usage is:
* <code>
* $gamesConfigurationService = new Google\Service\GamesConfiguration(...);
* $achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
* </code>
*/
class AchievementConfigurations extends \Google\Service\Resource
{
/**
* Delete the achievement configuration with the given ID.
* (achievementConfigurations.delete)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves the metadata of the achievement configuration with the given ID.
* (achievementConfigurations.get)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @return AchievementConfiguration
* @throws \Google\Service\Exception
*/
public function get($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AchievementConfiguration::class);
}
/**
* Insert a new achievement configuration in this application.
* (achievementConfigurations.insert)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param AchievementConfiguration $postBody
* @param array $optParams Optional parameters.
* @return AchievementConfiguration
* @throws \Google\Service\Exception
*/
public function insert($applicationId, AchievementConfiguration $postBody, $optParams = [])
{
$params = ['applicationId' => $applicationId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], AchievementConfiguration::class);
}
/**
* Returns a list of the achievement configurations in this application.
* (achievementConfigurations.listAchievementConfigurations)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults The maximum number of resource configurations to
* return in the response, used for paging. For any response, the actual number
* of resources returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return AchievementConfigurationListResponse
* @throws \Google\Service\Exception
*/
public function listAchievementConfigurations($applicationId, $optParams = [])
{
$params = ['applicationId' => $applicationId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AchievementConfigurationListResponse::class);
}
/**
* Update the metadata of the achievement configuration with the given ID.
* (achievementConfigurations.update)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param AchievementConfiguration $postBody
* @param array $optParams Optional parameters.
* @return AchievementConfiguration
* @throws \Google\Service\Exception
*/
public function update($achievementId, AchievementConfiguration $postBody, $optParams = [])
{
$params = ['achievementId' => $achievementId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], AchievementConfiguration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementConfigurations::class, 'Google_Service_GamesConfiguration_Resource_AchievementConfigurations');

View File

@@ -0,0 +1,50 @@
<?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.
*/
namespace Google\Service\GamesConfiguration\Resource;
use Google\Service\GamesConfiguration\ImageConfiguration;
/**
* The "imageConfigurations" collection of methods.
* Typical usage is:
* <code>
* $gamesConfigurationService = new Google\Service\GamesConfiguration(...);
* $imageConfigurations = $gamesConfigurationService->imageConfigurations;
* </code>
*/
class ImageConfigurations extends \Google\Service\Resource
{
/**
* Uploads an image for a resource with the given ID and image type.
* (imageConfigurations.upload)
*
* @param string $resourceId The ID of the resource used by this method.
* @param string $imageType Selects which image in a resource for this method.
* @param array $optParams Optional parameters.
* @return ImageConfiguration
*/
public function upload($resourceId, $imageType, $optParams = [])
{
$params = ['resourceId' => $resourceId, 'imageType' => $imageType];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], ImageConfiguration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageConfigurations::class, 'Google_Service_GamesConfiguration_Resource_ImageConfigurations');

View File

@@ -0,0 +1,119 @@
<?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.
*/
namespace Google\Service\GamesConfiguration\Resource;
use Google\Service\GamesConfiguration\LeaderboardConfiguration;
use Google\Service\GamesConfiguration\LeaderboardConfigurationListResponse;
/**
* The "leaderboardConfigurations" collection of methods.
* Typical usage is:
* <code>
* $gamesConfigurationService = new Google\Service\GamesConfiguration(...);
* $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
* </code>
*/
class LeaderboardConfigurations extends \Google\Service\Resource
{
/**
* Delete the leaderboard configuration with the given ID.
* (leaderboardConfigurations.delete)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($leaderboardId, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves the metadata of the leaderboard configuration with the given ID.
* (leaderboardConfigurations.get)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param array $optParams Optional parameters.
* @return LeaderboardConfiguration
* @throws \Google\Service\Exception
*/
public function get($leaderboardId, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LeaderboardConfiguration::class);
}
/**
* Insert a new leaderboard configuration in this application.
* (leaderboardConfigurations.insert)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param LeaderboardConfiguration $postBody
* @param array $optParams Optional parameters.
* @return LeaderboardConfiguration
* @throws \Google\Service\Exception
*/
public function insert($applicationId, LeaderboardConfiguration $postBody, $optParams = [])
{
$params = ['applicationId' => $applicationId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], LeaderboardConfiguration::class);
}
/**
* Returns a list of the leaderboard configurations in this application.
* (leaderboardConfigurations.listLeaderboardConfigurations)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults The maximum number of resource configurations to
* return in the response, used for paging. For any response, the actual number
* of resources returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return LeaderboardConfigurationListResponse
* @throws \Google\Service\Exception
*/
public function listLeaderboardConfigurations($applicationId, $optParams = [])
{
$params = ['applicationId' => $applicationId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], LeaderboardConfigurationListResponse::class);
}
/**
* Update the metadata of the leaderboard configuration with the given ID.
* (leaderboardConfigurations.update)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param LeaderboardConfiguration $postBody
* @param array $optParams Optional parameters.
* @return LeaderboardConfiguration
* @throws \Google\Service\Exception
*/
public function update($leaderboardId, LeaderboardConfiguration $postBody, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], LeaderboardConfiguration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardConfigurations::class, 'Google_Service_GamesConfiguration_Resource_LeaderboardConfigurations');