diff --git a/README.md b/README.md index 505c29c6b..70ba78012 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ PHP 5.5 and later To install the bindings via Composer: ``` -composer require alibabacloud/alibabacloud-yjopenapi-php-client 1.0.20230809 +composer require alibabacloud/alibabacloud-yjopenapi-php-client 1.0.20230810 ``` Then run `composer install` diff --git a/lib/Api/UsercontrollerApi.php b/lib/Api/UsercontrollerApi.php index 44ae379ff..7968c511c 100644 --- a/lib/Api/UsercontrollerApi.php +++ b/lib/Api/UsercontrollerApi.php @@ -694,10 +694,10 @@ function ($exception) { */ protected function getUserGameArchiveRequest($varForms) { - // verify the required parameter 'user_id' is set - if ($varForms['user_id'] === null || (is_array($varForms['user_id']) && count($varForms['user_id']) === 0)) { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $varForms[\'user_id\'] when calling getUserGameArchive' + 'Missing the required parameter $varForms[\'account_id\'] when calling getUserGameArchive' ); } // verify the required parameter 'game_id' is set @@ -720,7 +720,7 @@ protected function getUserGameArchiveRequest($varForms) $httpBody = ''; // form params - $formParams['userId'] = ObjectSerializer::toFormValue($varForms['user_id']); + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); diff --git a/lib/Model/UsercontollerGetUserGameArchiveResultModel.php b/lib/Model/UsercontollerGetUserGameArchiveResultModel.php index c9d239549..32badfe55 100644 --- a/lib/Model/UsercontollerGetUserGameArchiveResultModel.php +++ b/lib/Model/UsercontollerGetUserGameArchiveResultModel.php @@ -47,8 +47,7 @@ class UsercontollerGetUserGameArchiveResultModel implements ModelInterface, Arra protected static $serialTypes = [ 'download_url' => 'string', 'object_md5' => 'string', -'archive_id' => 'int', -'model' => '\Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelModel' ]; +'user_game_archive_dto' => '\Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -58,8 +57,7 @@ class UsercontollerGetUserGameArchiveResultModel implements ModelInterface, Arra protected static $serialFormats = [ 'download_url' => null, 'object_md5' => null, -'archive_id' => 'int64', -'model' => null ]; +'user_game_archive_dto' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -90,8 +88,7 @@ public static function serialFormats() protected static $attributeMap = [ 'download_url' => 'downloadUrl', 'object_md5' => 'objectMD5', -'archive_id' => 'archiveId', -'model' => 'model' ]; +'user_game_archive_dto' => 'userGameArchiveDTO' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -101,8 +98,7 @@ public static function serialFormats() protected static $setters = [ 'download_url' => 'setDownloadUrl', 'object_md5' => 'setObjectMd5', -'archive_id' => 'setArchiveId', -'model' => 'setModel' ]; +'user_game_archive_dto' => 'setUserGameArchiveDto' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -112,8 +108,7 @@ public static function serialFormats() protected static $getters = [ 'download_url' => 'getDownloadUrl', 'object_md5' => 'getObjectMd5', -'archive_id' => 'getArchiveId', -'model' => 'getModel' ]; +'user_game_archive_dto' => 'getUserGameArchiveDto' ]; /** * Array of attributes where the key is the local name, @@ -175,8 +170,7 @@ public function __construct(array $data = null) { $this->container['download_url'] = isset($data['download_url']) ? $data['download_url'] : null; $this->container['object_md5'] = isset($data['object_md5']) ? $data['object_md5'] : null; - $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; - $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['user_game_archive_dto'] = isset($data['user_game_archive_dto']) ? $data['user_game_archive_dto'] : null; } @@ -229,49 +223,25 @@ public function setObjectMd5($object_md5) } /** - * Gets archive_id + * Gets user_game_archive_dto * - * @return int + * @return \Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO */ - public function getArchiveId() + public function getUserGameArchiveDto() { - return $this->container['archive_id']; + return $this->container['user_game_archive_dto']; } /** - * Sets archive_id + * Sets user_game_archive_dto * - * @param int $archive_id 存档ID + * @param \Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO $user_game_archive_dto user_game_archive_dto * * @return $this */ - public function setArchiveId($archive_id) + public function setUserGameArchiveDto($user_game_archive_dto) { - $this->container['archive_id'] = $archive_id; - - return $this; - } - - /** - * Gets model - * - * @return \Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelModel - */ - public function getModel() - { - return $this->container['model']; - } - - /** - * Sets model - * - * @param \Yjopenapi\Client\Model\UsercontollerGetUserGameArchiveResultModelModel $model model - * - * @return $this - */ - public function setModel($model) - { - $this->container['model'] = $model; + $this->container['user_game_archive_dto'] = $user_game_archive_dto; return $this; } diff --git a/lib/Model/UsercontollerGetUserGameArchiveResultModelModel.php b/lib/Model/UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO.php similarity index 71% rename from lib/Model/UsercontollerGetUserGameArchiveResultModelModel.php rename to lib/Model/UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO.php index 86f89e49f..7bf1e6bfd 100644 --- a/lib/Model/UsercontollerGetUserGameArchiveResultModelModel.php +++ b/lib/Model/UsercontollerGetUserGameArchiveResultModelUserGameArchiveDTO.php @@ -1,6 +1,6 @@ 'int', -'game_session_id' => 'string', -'tenant_id' => 'int', -'project_id' => 'int', + 'game_session_id' => 'string', 'gmt_create' => 'int' ]; /** @@ -57,10 +54,7 @@ class UsercontollerGetUserGameArchiveResultModelModel implements ModelInterface, * @var string[] */ protected static $serialFormats = [ - 'game_id' => 'int64', -'game_session_id' => null, -'tenant_id' => 'int64', -'project_id' => 'int64', + 'game_session_id' => null, 'gmt_create' => 'int64' ]; /** @@ -90,10 +84,7 @@ public static function serialFormats() * @var string[] */ protected static $attributeMap = [ - 'game_id' => 'gameId', -'game_session_id' => 'gameSessionId', -'tenant_id' => 'tenantId', -'project_id' => 'projectId', + 'game_session_id' => 'gameSessionId', 'gmt_create' => 'gmtCreate' ]; /** @@ -102,10 +93,7 @@ public static function serialFormats() * @var string[] */ protected static $setters = [ - 'game_id' => 'setGameId', -'game_session_id' => 'setGameSessionId', -'tenant_id' => 'setTenantId', -'project_id' => 'setProjectId', + 'game_session_id' => 'setGameSessionId', 'gmt_create' => 'setGmtCreate' ]; /** @@ -114,10 +102,7 @@ public static function serialFormats() * @var string[] */ protected static $getters = [ - 'game_id' => 'getGameId', -'game_session_id' => 'getGameSessionId', -'tenant_id' => 'getTenantId', -'project_id' => 'getProjectId', + 'game_session_id' => 'getGameSessionId', 'gmt_create' => 'getGmtCreate' ]; /** @@ -178,38 +163,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; $this->container['game_session_id'] = isset($data['game_session_id']) ? $data['game_session_id'] : null; - $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; - $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; $this->container['gmt_create'] = isset($data['gmt_create']) ? $data['gmt_create'] : null; } - /** - * Gets game_id - * - * @return int - */ - public function getGameId() - { - return $this->container['game_id']; - } - - /** - * Sets game_id - * - * @param int $game_id 游戏ID - * - * @return $this - */ - public function setGameId($game_id) - { - $this->container['game_id'] = $game_id; - - return $this; - } - /** * Gets game_session_id * @@ -234,54 +192,6 @@ public function setGameSessionId($game_session_id) return $this; } - /** - * Gets tenant_id - * - * @return int - */ - public function getTenantId() - { - return $this->container['tenant_id']; - } - - /** - * Sets tenant_id - * - * @param int $tenant_id 租户ID - * - * @return $this - */ - public function setTenantId($tenant_id) - { - $this->container['tenant_id'] = $tenant_id; - - return $this; - } - - /** - * Gets project_id - * - * @return int - */ - public function getProjectId() - { - return $this->container['project_id']; - } - - /** - * Sets project_id - * - * @param int $project_id 项目ID - * - * @return $this - */ - public function setProjectId($project_id) - { - $this->container['project_id'] = $project_id; - - return $this; - } - /** * Gets gmt_create * diff --git a/lib/Model/UsercontrollerGetUserGameArchiveForms.php b/lib/Model/UsercontrollerGetUserGameArchiveForms.php index e5679592f..4c5848c4a 100644 --- a/lib/Model/UsercontrollerGetUserGameArchiveForms.php +++ b/lib/Model/UsercontrollerGetUserGameArchiveForms.php @@ -45,9 +45,9 @@ class UsercontrollerGetUserGameArchiveForms implements ModelInterface, ArrayAcce * @var string[] */ protected static $serialTypes = [ - 'user_id' => 'string', -'game_id' => 'int', -'project_id' => 'int' ]; + 'account_id' => 'string', +'game_id' => 'string', +'project_id' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -55,9 +55,9 @@ class UsercontrollerGetUserGameArchiveForms implements ModelInterface, ArrayAcce * @var string[] */ protected static $serialFormats = [ - 'user_id' => null, -'game_id' => 'int64', -'project_id' => 'int64' ]; + 'account_id' => null, +'game_id' => null, +'project_id' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -86,7 +86,7 @@ public static function serialFormats() * @var string[] */ protected static $attributeMap = [ - 'user_id' => 'userId', + 'account_id' => 'accountId', 'game_id' => 'gameId', 'project_id' => 'projectId' ]; @@ -96,7 +96,7 @@ public static function serialFormats() * @var string[] */ protected static $setters = [ - 'user_id' => 'setUserId', + 'account_id' => 'setAccountId', 'game_id' => 'setGameId', 'project_id' => 'setProjectId' ]; @@ -106,7 +106,7 @@ public static function serialFormats() * @var string[] */ protected static $getters = [ - 'user_id' => 'getUserId', + 'account_id' => 'getAccountId', 'game_id' => 'getGameId', 'project_id' => 'getProjectId' ]; @@ -168,32 +168,32 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; } /** - * Gets user_id + * Gets account_id * * @return string */ - public function getUserId() + public function getAccountId() { - return $this->container['user_id']; + return $this->container['account_id']; } /** - * Sets user_id + * Sets account_id * - * @param string $user_id 用户id + * @param string $account_id 用户id * * @return $this */ - public function setUserId($user_id) + public function setAccountId($account_id) { - $this->container['user_id'] = $user_id; + $this->container['account_id'] = $account_id; return $this; } @@ -201,7 +201,7 @@ public function setUserId($user_id) /** * Gets game_id * - * @return int + * @return string */ public function getGameId() { @@ -211,7 +211,7 @@ public function getGameId() /** * Sets game_id * - * @param int $game_id 游戏Id + * @param string $game_id 游戏Id * * @return $this */ @@ -225,7 +225,7 @@ public function setGameId($game_id) /** * Gets project_id * - * @return int + * @return string */ public function getProjectId() { @@ -235,7 +235,7 @@ public function getProjectId() /** * Sets project_id * - * @param int $project_id 项目ID + * @param string $project_id 项目ID * * @return $this */