From cbd3780ff912d94d071038a2ece0946249448fc5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:07 +0800 Subject: [PATCH 001/327] feat: update --- lib/Model/AdaptCreateAndSubmitAllForms.php | 557 +++++++++++++++++++++ 1 file changed, 557 insertions(+) create mode 100644 lib/Model/AdaptCreateAndSubmitAllForms.php diff --git a/lib/Model/AdaptCreateAndSubmitAllForms.php b/lib/Model/AdaptCreateAndSubmitAllForms.php new file mode 100644 index 000000000..91c1923e7 --- /dev/null +++ b/lib/Model/AdaptCreateAndSubmitAllForms.php @@ -0,0 +1,557 @@ + 'int', +'game_name' => 'string', +'game_version_id' => 'int', +'game_version' => 'string', +'resolution_list' => 'string', +'frame_rate_list' => 'string', +'platform_type' => 'int', +'source_platform' => 'int', +'records' => 'string', +'mix_game_version_id' => 'string', +'mix_game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => 'int32', +'game_name' => null, +'game_version_id' => 'int32', +'game_version' => null, +'resolution_list' => null, +'frame_rate_list' => null, +'platform_type' => 'int32', +'source_platform' => 'int32', +'records' => null, +'mix_game_version_id' => null, +'mix_game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_name' => 'gameName', +'game_version_id' => 'gameVersionId', +'game_version' => 'gameVersion', +'resolution_list' => 'resolutionList', +'frame_rate_list' => 'frameRateList', +'platform_type' => 'platformType', +'source_platform' => 'sourcePlatform', +'records' => 'records', +'mix_game_version_id' => 'mixGameVersionId', +'mix_game_id' => 'mixGameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_name' => 'setGameName', +'game_version_id' => 'setGameVersionId', +'game_version' => 'setGameVersion', +'resolution_list' => 'setResolutionList', +'frame_rate_list' => 'setFrameRateList', +'platform_type' => 'setPlatformType', +'source_platform' => 'setSourcePlatform', +'records' => 'setRecords', +'mix_game_version_id' => 'setMixGameVersionId', +'mix_game_id' => 'setMixGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_name' => 'getGameName', +'game_version_id' => 'getGameVersionId', +'game_version' => 'getGameVersion', +'resolution_list' => 'getResolutionList', +'frame_rate_list' => 'getFrameRateList', +'platform_type' => 'getPlatformType', +'source_platform' => 'getSourcePlatform', +'records' => 'getRecords', +'mix_game_version_id' => 'getMixGameVersionId', +'mix_game_id' => 'getMixGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['game_version_id'] = isset($data['game_version_id']) ? $data['game_version_id'] : null; + $this->container['game_version'] = isset($data['game_version']) ? $data['game_version'] : null; + $this->container['resolution_list'] = isset($data['resolution_list']) ? $data['resolution_list'] : null; + $this->container['frame_rate_list'] = isset($data['frame_rate_list']) ? $data['frame_rate_list'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['source_platform'] = isset($data['source_platform']) ? $data['source_platform'] : null; + $this->container['records'] = isset($data['records']) ? $data['records'] : null; + $this->container['mix_game_version_id'] = isset($data['mix_game_version_id']) ? $data['mix_game_version_id'] : null; + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + } + + + /** + * Gets game_id + * + * @return int + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param int $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets game_version_id + * + * @return int + */ + public function getGameVersionId() + { + return $this->container['game_version_id']; + } + + /** + * Sets game_version_id + * + * @param int $game_version_id game_version_id + * + * @return $this + */ + public function setGameVersionId($game_version_id) + { + $this->container['game_version_id'] = $game_version_id; + + return $this; + } + + /** + * Gets game_version + * + * @return string + */ + public function getGameVersion() + { + return $this->container['game_version']; + } + + /** + * Sets game_version + * + * @param string $game_version game_version + * + * @return $this + */ + public function setGameVersion($game_version) + { + $this->container['game_version'] = $game_version; + + return $this; + } + + /** + * Gets resolution_list + * + * @return string + */ + public function getResolutionList() + { + return $this->container['resolution_list']; + } + + /** + * Sets resolution_list + * + * @param string $resolution_list resolution_list + * + * @return $this + */ + public function setResolutionList($resolution_list) + { + $this->container['resolution_list'] = $resolution_list; + + return $this; + } + + /** + * Gets frame_rate_list + * + * @return string + */ + public function getFrameRateList() + { + return $this->container['frame_rate_list']; + } + + /** + * Sets frame_rate_list + * + * @param string $frame_rate_list frame_rate_list + * + * @return $this + */ + public function setFrameRateList($frame_rate_list) + { + $this->container['frame_rate_list'] = $frame_rate_list; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets source_platform + * + * @return int + */ + public function getSourcePlatform() + { + return $this->container['source_platform']; + } + + /** + * Sets source_platform + * + * @param int $source_platform source_platform + * + * @return $this + */ + public function setSourcePlatform($source_platform) + { + $this->container['source_platform'] = $source_platform; + + return $this; + } + + /** + * Gets records + * + * @return string + */ + public function getRecords() + { + return $this->container['records']; + } + + /** + * Sets records + * + * @param string $records records + * + * @return $this + */ + public function setRecords($records) + { + $this->container['records'] = $records; + + return $this; + } + + /** + * Gets mix_game_version_id + * + * @return string + */ + public function getMixGameVersionId() + { + return $this->container['mix_game_version_id']; + } + + /** + * Sets mix_game_version_id + * + * @param string $mix_game_version_id mix_game_version_id + * + * @return $this + */ + public function setMixGameVersionId($mix_game_version_id) + { + $this->container['mix_game_version_id'] = $mix_game_version_id; + + return $this; + } + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id mix_game_id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5e5563409f1b67480bed381d62386a02f5075d62 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:08 +0800 Subject: [PATCH 002/327] feat: update --- lib/Model/AdaptCreateAndSubmitAllResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AdaptCreateAndSubmitAllResult.php diff --git a/lib/Model/AdaptCreateAndSubmitAllResult.php b/lib/Model/AdaptCreateAndSubmitAllResult.php new file mode 100644 index 000000000..24a52fe8a --- /dev/null +++ b/lib/Model/AdaptCreateAndSubmitAllResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'int', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => 'int64', +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return int + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param int $model 适配请求ID + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fab57f854f63ee00bbda6e11b4237aefa4a535b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:09 +0800 Subject: [PATCH 003/327] feat: update --- lib/Model/AdaptQueryRequestByIdForms.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdForms.php diff --git a/lib/Model/AdaptQueryRequestByIdForms.php b/lib/Model/AdaptQueryRequestByIdForms.php new file mode 100644 index 000000000..d3698bb9b --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdForms.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id 适配请求id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b29384bddcd56f2343eba248c9e41a57efdc71b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:11 +0800 Subject: [PATCH 004/327] feat: update --- lib/Model/AdaptQueryRequestByIdResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdResult.php diff --git a/lib/Model/AdaptQueryRequestByIdResult.php b/lib/Model/AdaptQueryRequestByIdResult.php new file mode 100644 index 000000000..98d35af39 --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d1604d2b98f9bca9a9141b64d1e38ef736ce5b7c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:12 +0800 Subject: [PATCH 005/327] feat: update --- .../AdaptQueryRequestByIdResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdResultModel.php diff --git a/lib/Model/AdaptQueryRequestByIdResultModel.php b/lib/Model/AdaptQueryRequestByIdResultModel.php new file mode 100644 index 000000000..7fbc1e365 --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'state' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'state' => 'state' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'state' => 'setState' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'state' => 'getState' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + } + + + /** + * Gets state + * + * @return int + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param int $state 状态0:待适配 1:适配中 2:适配完成 3:适配失败 + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 78ea93f42841e67be8400c52b22f37fe307d6c27 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:13 +0800 Subject: [PATCH 006/327] feat: update --- lib/Model/AiBatchUpdateKbVersionForms.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiBatchUpdateKbVersionForms.php diff --git a/lib/Model/AiBatchUpdateKbVersionForms.php b/lib/Model/AiBatchUpdateKbVersionForms.php new file mode 100644 index 000000000..d9049eaa8 --- /dev/null +++ b/lib/Model/AiBatchUpdateKbVersionForms.php @@ -0,0 +1,347 @@ + 'int[]', +'kb_id' => 'int', +'kb_version_id' => 'int', +'operator' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'role_ids' => 'int64', +'kb_id' => 'int64', +'kb_version_id' => 'int64', +'operator' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'role_ids' => 'roleIds', +'kb_id' => 'kbId', +'kb_version_id' => 'kbVersionId', +'operator' => 'operator' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'role_ids' => 'setRoleIds', +'kb_id' => 'setKbId', +'kb_version_id' => 'setKbVersionId', +'operator' => 'setOperator' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'role_ids' => 'getRoleIds', +'kb_id' => 'getKbId', +'kb_version_id' => 'getKbVersionId', +'operator' => 'getOperator' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['role_ids'] = isset($data['role_ids']) ? $data['role_ids'] : null; + $this->container['kb_id'] = isset($data['kb_id']) ? $data['kb_id'] : null; + $this->container['kb_version_id'] = isset($data['kb_version_id']) ? $data['kb_version_id'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + } + + + /** + * Gets role_ids + * + * @return int[] + */ + public function getRoleIds() + { + return $this->container['role_ids']; + } + + /** + * Sets role_ids + * + * @param int[] $role_ids role_ids + * + * @return $this + */ + public function setRoleIds($role_ids) + { + $this->container['role_ids'] = $role_ids; + + return $this; + } + + /** + * Gets kb_id + * + * @return int + */ + public function getKbId() + { + return $this->container['kb_id']; + } + + /** + * Sets kb_id + * + * @param int $kb_id kb_id + * + * @return $this + */ + public function setKbId($kb_id) + { + $this->container['kb_id'] = $kb_id; + + return $this; + } + + /** + * Gets kb_version_id + * + * @return int + */ + public function getKbVersionId() + { + return $this->container['kb_version_id']; + } + + /** + * Sets kb_version_id + * + * @param int $kb_version_id kb_version_id + * + * @return $this + */ + public function setKbVersionId($kb_version_id) + { + $this->container['kb_version_id'] = $kb_version_id; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c8476b3cfca0e75f13a2df2db229449093394c50 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:15 +0800 Subject: [PATCH 007/327] feat: update --- lib/Model/AiBatchUpdateKbVersionResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiBatchUpdateKbVersionResult.php diff --git a/lib/Model/AiBatchUpdateKbVersionResult.php b/lib/Model/AiBatchUpdateKbVersionResult.php new file mode 100644 index 000000000..f1108fdee --- /dev/null +++ b/lib/Model/AiBatchUpdateKbVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 20e2d55e40b29230422278b025124caf0b388f45 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:16 +0800 Subject: [PATCH 008/327] feat: update --- lib/Model/AiCancelQueueForms.php | 257 +++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiCancelQueueForms.php diff --git a/lib/Model/AiCancelQueueForms.php b/lib/Model/AiCancelQueueForms.php new file mode 100644 index 000000000..303299050 --- /dev/null +++ b/lib/Model/AiCancelQueueForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f4f55e53a50d2658f4905c713cd7bbfcbd16ba41 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:17 +0800 Subject: [PATCH 009/327] feat: update --- lib/Model/AiCancelQueueResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiCancelQueueResult.php diff --git a/lib/Model/AiCancelQueueResult.php b/lib/Model/AiCancelQueueResult.php new file mode 100644 index 000000000..21fe4c507 --- /dev/null +++ b/lib/Model/AiCancelQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5b781eaf4801b123e552cc34841119c9df86649c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:19 +0800 Subject: [PATCH 010/327] feat: update --- lib/Model/AiCancelQueueResultModel.php | 317 +++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiCancelQueueResultModel.php diff --git a/lib/Model/AiCancelQueueResultModel.php b/lib/Model/AiCancelQueueResultModel.php new file mode 100644 index 000000000..2b8538ecb --- /dev/null +++ b/lib/Model/AiCancelQueueResultModel.php @@ -0,0 +1,317 @@ + 'string', +'request_id' => 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'msg' => null, +'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'msg' => 'msg', +'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'msg' => 'setMsg', +'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'msg' => 'getMsg', +'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg msg + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 06134c4540b3a0cadd0a7437bdb87b7b7c2dacae Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:20 +0800 Subject: [PATCH 011/327] feat: update --- lib/Model/AiCreateNpcRoleForms.php | 617 +++++++++++++++++++++++++++++ 1 file changed, 617 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleForms.php diff --git a/lib/Model/AiCreateNpcRoleForms.php b/lib/Model/AiCreateNpcRoleForms.php new file mode 100644 index 000000000..31f4079aa --- /dev/null +++ b/lib/Model/AiCreateNpcRoleForms.php @@ -0,0 +1,617 @@ + 'string', +'description' => 'string', +'figure_id' => 'int', +'voice_id' => 'int', +'characters' => 'string', +'greetings' => 'string', +'guidance' => 'string[]', +'knowledge_bases' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[]', +'plugin_ids' => 'int[]', +'short_memory_round' => 'int', +'tenant_id' => 'int', +'operator' => 'string', +'llm_model_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'name' => null, +'description' => null, +'figure_id' => 'int64', +'voice_id' => 'int64', +'characters' => null, +'greetings' => null, +'guidance' => null, +'knowledge_bases' => null, +'plugin_ids' => 'int64', +'short_memory_round' => 'int32', +'tenant_id' => 'int64', +'operator' => null, +'llm_model_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', +'description' => 'description', +'figure_id' => 'figureId', +'voice_id' => 'voiceId', +'characters' => 'characters', +'greetings' => 'greetings', +'guidance' => 'guidance', +'knowledge_bases' => 'knowledgeBases', +'plugin_ids' => 'pluginIds', +'short_memory_round' => 'shortMemoryRound', +'tenant_id' => 'tenantId', +'operator' => 'operator', +'llm_model_id' => 'llmModelId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', +'description' => 'setDescription', +'figure_id' => 'setFigureId', +'voice_id' => 'setVoiceId', +'characters' => 'setCharacters', +'greetings' => 'setGreetings', +'guidance' => 'setGuidance', +'knowledge_bases' => 'setKnowledgeBases', +'plugin_ids' => 'setPluginIds', +'short_memory_round' => 'setShortMemoryRound', +'tenant_id' => 'setTenantId', +'operator' => 'setOperator', +'llm_model_id' => 'setLlmModelId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', +'description' => 'getDescription', +'figure_id' => 'getFigureId', +'voice_id' => 'getVoiceId', +'characters' => 'getCharacters', +'greetings' => 'getGreetings', +'guidance' => 'getGuidance', +'knowledge_bases' => 'getKnowledgeBases', +'plugin_ids' => 'getPluginIds', +'short_memory_round' => 'getShortMemoryRound', +'tenant_id' => 'getTenantId', +'operator' => 'getOperator', +'llm_model_id' => 'getLlmModelId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['figure_id'] = isset($data['figure_id']) ? $data['figure_id'] : null; + $this->container['voice_id'] = isset($data['voice_id']) ? $data['voice_id'] : null; + $this->container['characters'] = isset($data['characters']) ? $data['characters'] : null; + $this->container['greetings'] = isset($data['greetings']) ? $data['greetings'] : null; + $this->container['guidance'] = isset($data['guidance']) ? $data['guidance'] : null; + $this->container['knowledge_bases'] = isset($data['knowledge_bases']) ? $data['knowledge_bases'] : null; + $this->container['plugin_ids'] = isset($data['plugin_ids']) ? $data['plugin_ids'] : null; + $this->container['short_memory_round'] = isset($data['short_memory_round']) ? $data['short_memory_round'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + $this->container['llm_model_id'] = isset($data['llm_model_id']) ? $data['llm_model_id'] : null; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets figure_id + * + * @return int + */ + public function getFigureId() + { + return $this->container['figure_id']; + } + + /** + * Sets figure_id + * + * @param int $figure_id figure_id + * + * @return $this + */ + public function setFigureId($figure_id) + { + $this->container['figure_id'] = $figure_id; + + return $this; + } + + /** + * Gets voice_id + * + * @return int + */ + public function getVoiceId() + { + return $this->container['voice_id']; + } + + /** + * Sets voice_id + * + * @param int $voice_id voice_id + * + * @return $this + */ + public function setVoiceId($voice_id) + { + $this->container['voice_id'] = $voice_id; + + return $this; + } + + /** + * Gets characters + * + * @return string + */ + public function getCharacters() + { + return $this->container['characters']; + } + + /** + * Sets characters + * + * @param string $characters characters + * + * @return $this + */ + public function setCharacters($characters) + { + $this->container['characters'] = $characters; + + return $this; + } + + /** + * Gets greetings + * + * @return string + */ + public function getGreetings() + { + return $this->container['greetings']; + } + + /** + * Sets greetings + * + * @param string $greetings greetings + * + * @return $this + */ + public function setGreetings($greetings) + { + $this->container['greetings'] = $greetings; + + return $this; + } + + /** + * Gets guidance + * + * @return string[] + */ + public function getGuidance() + { + return $this->container['guidance']; + } + + /** + * Sets guidance + * + * @param string[] $guidance guidance + * + * @return $this + */ + public function setGuidance($guidance) + { + $this->container['guidance'] = $guidance; + + return $this; + } + + /** + * Gets knowledge_bases + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[] $knowledge_bases knowledge_bases + * + * @return $this + */ + public function setKnowledgeBases($knowledge_bases) + { + $this->container['knowledge_bases'] = $knowledge_bases; + + return $this; + } + + /** + * Gets plugin_ids + * + * @return int[] + */ + public function getPluginIds() + { + return $this->container['plugin_ids']; + } + + /** + * Sets plugin_ids + * + * @param int[] $plugin_ids plugin_ids + * + * @return $this + */ + public function setPluginIds($plugin_ids) + { + $this->container['plugin_ids'] = $plugin_ids; + + return $this; + } + + /** + * Gets short_memory_round + * + * @return int + */ + public function getShortMemoryRound() + { + return $this->container['short_memory_round']; + } + + /** + * Sets short_memory_round + * + * @param int $short_memory_round short_memory_round + * + * @return $this + */ + public function setShortMemoryRound($short_memory_round) + { + $this->container['short_memory_round'] = $short_memory_round; + + return $this; + } + + /** + * Gets tenant_id + * + * @return int + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param int $tenant_id tenant_id + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + + /** + * Gets llm_model_id + * + * @return int + */ + public function getLlmModelId() + { + return $this->container['llm_model_id']; + } + + /** + * Sets llm_model_id + * + * @param int $llm_model_id llm_model_id + * + * @return $this + */ + public function setLlmModelId($llm_model_id) + { + $this->container['llm_model_id'] = $llm_model_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e7adbe236b767ac0d9eb86135459666bb23109be Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:22 +0800 Subject: [PATCH 012/327] feat: update --- .../AiCreateNpcRoleFormsKnowledgeBases.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php diff --git a/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php b/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php new file mode 100644 index 000000000..9d6a6926f --- /dev/null +++ b/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php @@ -0,0 +1,287 @@ + 'int', +'knowledge_base_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'knowledge_base_version_id' => 'int64', +'knowledge_base_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'knowledge_base_version_id' => 'knowledgeBaseVersionId', +'knowledge_base_id' => 'knowledgeBaseId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'knowledge_base_version_id' => 'setKnowledgeBaseVersionId', +'knowledge_base_id' => 'setKnowledgeBaseId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'knowledge_base_version_id' => 'getKnowledgeBaseVersionId', +'knowledge_base_id' => 'getKnowledgeBaseId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['knowledge_base_version_id'] = isset($data['knowledge_base_version_id']) ? $data['knowledge_base_version_id'] : null; + $this->container['knowledge_base_id'] = isset($data['knowledge_base_id']) ? $data['knowledge_base_id'] : null; + } + + + /** + * Gets knowledge_base_version_id + * + * @return int + */ + public function getKnowledgeBaseVersionId() + { + return $this->container['knowledge_base_version_id']; + } + + /** + * Sets knowledge_base_version_id + * + * @param int $knowledge_base_version_id knowledge_base_version_id + * + * @return $this + */ + public function setKnowledgeBaseVersionId($knowledge_base_version_id) + { + $this->container['knowledge_base_version_id'] = $knowledge_base_version_id; + + return $this; + } + + /** + * Gets knowledge_base_id + * + * @return int + */ + public function getKnowledgeBaseId() + { + return $this->container['knowledge_base_id']; + } + + /** + * Sets knowledge_base_id + * + * @param int $knowledge_base_id knowledge_base_id + * + * @return $this + */ + public function setKnowledgeBaseId($knowledge_base_id) + { + $this->container['knowledge_base_id'] = $knowledge_base_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 381f2869a1baf7487fd91d1b5458565f87e72f5f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:23 +0800 Subject: [PATCH 013/327] feat: update --- lib/Model/AiCreateNpcRoleResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleResult.php diff --git a/lib/Model/AiCreateNpcRoleResult.php b/lib/Model/AiCreateNpcRoleResult.php new file mode 100644 index 000000000..2bba0c139 --- /dev/null +++ b/lib/Model/AiCreateNpcRoleResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 616226facc3e8129bd77cbf1362da9af17ca27d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:25 +0800 Subject: [PATCH 014/327] feat: update --- lib/Model/AiDeleteModelsForms.php | 257 ++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiDeleteModelsForms.php diff --git a/lib/Model/AiDeleteModelsForms.php b/lib/Model/AiDeleteModelsForms.php new file mode 100644 index 000000000..4a94d6c44 --- /dev/null +++ b/lib/Model/AiDeleteModelsForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'resource_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'resource_id' => 'resourceId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_id' => 'setResourceId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_id' => 'getResourceId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resource_id'] = isset($data['resource_id']) ? $data['resource_id'] : null; + } + + + /** + * Gets resource_id + * + * @return string + */ + public function getResourceId() + { + return $this->container['resource_id']; + } + + /** + * Sets resource_id + * + * @param string $resource_id resource_id + * + * @return $this + */ + public function setResourceId($resource_id) + { + $this->container['resource_id'] = $resource_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ffbc91416f26f726eb014eebde086e4e1653b9b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:26 +0800 Subject: [PATCH 015/327] feat: update --- lib/Model/AiDeleteModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiDeleteModelsResult.php diff --git a/lib/Model/AiDeleteModelsResult.php b/lib/Model/AiDeleteModelsResult.php new file mode 100644 index 000000000..7d437fd40 --- /dev/null +++ b/lib/Model/AiDeleteModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ef44dd40922331e3f30a1dad7a2b34de78cd47dc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:27 +0800 Subject: [PATCH 016/327] feat: update --- lib/Model/AiDeleteModelsResultModel.php | 287 ++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiDeleteModelsResultModel.php diff --git a/lib/Model/AiDeleteModelsResultModel.php b/lib/Model/AiDeleteModelsResultModel.php new file mode 100644 index 000000000..5eeeeea4e --- /dev/null +++ b/lib/Model/AiDeleteModelsResultModel.php @@ -0,0 +1,287 @@ + 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 36c845f3fe62d88966aef5ba1770b1b81de54d72 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:29 +0800 Subject: [PATCH 017/327] feat: update --- lib/Model/AiGetPromptForms.php | 257 +++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiGetPromptForms.php diff --git a/lib/Model/AiGetPromptForms.php b/lib/Model/AiGetPromptForms.php new file mode 100644 index 000000000..3ddf6d71f --- /dev/null +++ b/lib/Model/AiGetPromptForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d6b5f968d294fb7b4f70e5e0cb2aace6c2d869c0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:30 +0800 Subject: [PATCH 018/327] feat: update --- lib/Model/AiGetPromptResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiGetPromptResult.php diff --git a/lib/Model/AiGetPromptResult.php b/lib/Model/AiGetPromptResult.php new file mode 100644 index 000000000..82ebf5993 --- /dev/null +++ b/lib/Model/AiGetPromptResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a82f1d097f971a2d3f5dbb317d50bc247b3d5130 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:31 +0800 Subject: [PATCH 019/327] feat: update --- lib/Model/AiGetPromptResultModel.php | 437 +++++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/AiGetPromptResultModel.php diff --git a/lib/Model/AiGetPromptResultModel.php b/lib/Model/AiGetPromptResultModel.php new file mode 100644 index 000000000..d6087af2b --- /dev/null +++ b/lib/Model/AiGetPromptResultModel.php @@ -0,0 +1,437 @@ + 'int', +'response' => 'string', +'request_id' => 'string', +'executed_list' => 'string', +'execution_result' => 'string', +'resources' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[]', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'queue_num' => 'int64', +'response' => null, +'request_id' => null, +'executed_list' => null, +'execution_result' => null, +'resources' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'queue_num' => 'queueNum', +'response' => 'response', +'request_id' => 'requestId', +'executed_list' => 'executedList', +'execution_result' => 'executionResult', +'resources' => 'resources', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'queue_num' => 'setQueueNum', +'response' => 'setResponse', +'request_id' => 'setRequestId', +'executed_list' => 'setExecutedList', +'execution_result' => 'setExecutionResult', +'resources' => 'setResources', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'queue_num' => 'getQueueNum', +'response' => 'getResponse', +'request_id' => 'getRequestId', +'executed_list' => 'getExecutedList', +'execution_result' => 'getExecutionResult', +'resources' => 'getResources', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['queue_num'] = isset($data['queue_num']) ? $data['queue_num'] : null; + $this->container['response'] = isset($data['response']) ? $data['response'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['executed_list'] = isset($data['executed_list']) ? $data['executed_list'] : null; + $this->container['execution_result'] = isset($data['execution_result']) ? $data['execution_result'] : null; + $this->container['resources'] = isset($data['resources']) ? $data['resources'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets queue_num + * + * @return int + */ + public function getQueueNum() + { + return $this->container['queue_num']; + } + + /** + * Sets queue_num + * + * @param int $queue_num queue_num + * + * @return $this + */ + public function setQueueNum($queue_num) + { + $this->container['queue_num'] = $queue_num; + + return $this; + } + + /** + * Gets response + * + * @return string + */ + public function getResponse() + { + return $this->container['response']; + } + + /** + * Sets response + * + * @param string $response response + * + * @return $this + */ + public function setResponse($response) + { + $this->container['response'] = $response; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets executed_list + * + * @return string + */ + public function getExecutedList() + { + return $this->container['executed_list']; + } + + /** + * Sets executed_list + * + * @param string $executed_list executed_list + * + * @return $this + */ + public function setExecutedList($executed_list) + { + $this->container['executed_list'] = $executed_list; + + return $this; + } + + /** + * Gets execution_result + * + * @return string + */ + public function getExecutionResult() + { + return $this->container['execution_result']; + } + + /** + * Sets execution_result + * + * @param string $execution_result execution_result + * + * @return $this + */ + public function setExecutionResult($execution_result) + { + $this->container['execution_result'] = $execution_result; + + return $this; + } + + /** + * Gets resources + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[] + */ + public function getResources() + { + return $this->container['resources']; + } + + /** + * Sets resources + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[] $resources resources + * + * @return $this + */ + public function setResources($resources) + { + $this->container['resources'] = $resources; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3496098e01d2de5af63be0081a42234b8a063b6d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:33 +0800 Subject: [PATCH 020/327] feat: update --- lib/Model/AiGetPromptResultModelResources.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiGetPromptResultModelResources.php diff --git a/lib/Model/AiGetPromptResultModelResources.php b/lib/Model/AiGetPromptResultModelResources.php new file mode 100644 index 000000000..bf226a6a4 --- /dev/null +++ b/lib/Model/AiGetPromptResultModelResources.php @@ -0,0 +1,287 @@ + 'string', +'url' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'file_name' => null, +'url' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_name' => 'fileName', +'url' => 'url' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_name' => 'setFileName', +'url' => 'setUrl' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_name' => 'getFileName', +'url' => 'getUrl' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['file_name'] = isset($data['file_name']) ? $data['file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + } + + + /** + * Gets file_name + * + * @return string + */ + public function getFileName() + { + return $this->container['file_name']; + } + + /** + * Sets file_name + * + * @param string $file_name file_name + * + * @return $this + */ + public function setFileName($file_name) + { + $this->container['file_name'] = $file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f76313499f77b987f78b7c775b9b56df763d019f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:34 +0800 Subject: [PATCH 021/327] feat: update --- lib/Model/AiGetQueueForms.php | 257 ++++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiGetQueueForms.php diff --git a/lib/Model/AiGetQueueForms.php b/lib/Model/AiGetQueueForms.php new file mode 100644 index 000000000..18e72e2f3 --- /dev/null +++ b/lib/Model/AiGetQueueForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From df47a17f820d43c91eb1cec896c9754d126bc5ec Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:35 +0800 Subject: [PATCH 022/327] feat: update --- lib/Model/AiGetQueueResult.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiGetQueueResult.php diff --git a/lib/Model/AiGetQueueResult.php b/lib/Model/AiGetQueueResult.php new file mode 100644 index 000000000..771dab234 --- /dev/null +++ b/lib/Model/AiGetQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ab7afca7f58dd3eb103a18afba4efb27c68b4e5b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:37 +0800 Subject: [PATCH 023/327] feat: update --- lib/Model/AiGetQueueResultModel.php | 317 ++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiGetQueueResultModel.php diff --git a/lib/Model/AiGetQueueResultModel.php b/lib/Model/AiGetQueueResultModel.php new file mode 100644 index 000000000..03fd96c3e --- /dev/null +++ b/lib/Model/AiGetQueueResultModel.php @@ -0,0 +1,317 @@ + 'string', +'request_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'queue_num' => null, +'request_id' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'queue_num' => 'queueNum', +'request_id' => 'requestId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'queue_num' => 'setQueueNum', +'request_id' => 'setRequestId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'queue_num' => 'getQueueNum', +'request_id' => 'getRequestId', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['queue_num'] = isset($data['queue_num']) ? $data['queue_num'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets queue_num + * + * @return string + */ + public function getQueueNum() + { + return $this->container['queue_num']; + } + + /** + * Sets queue_num + * + * @param string $queue_num queue_num + * + * @return $this + */ + public function setQueueNum($queue_num) + { + $this->container['queue_num'] = $queue_num; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d66299a8eb73fa65f5a51ef55dbc1b2f6386d73b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:38 +0800 Subject: [PATCH 024/327] feat: update --- lib/Model/AiListModelsForms.php | 407 ++++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiListModelsForms.php diff --git a/lib/Model/AiListModelsForms.php b/lib/Model/AiListModelsForms.php new file mode 100644 index 000000000..c6b71c1b3 --- /dev/null +++ b/lib/Model/AiListModelsForms.php @@ -0,0 +1,407 @@ + 'string', +'model_file_type' => 'string', +'model_series' => 'string', +'model_file_name' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_type' => null, +'model_file_type' => null, +'model_series' => null, +'model_file_name' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_type' => 'modelType', +'model_file_type' => 'modelFileType', +'model_series' => 'modelSeries', +'model_file_name' => 'modelFileName', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_type' => 'setModelType', +'model_file_type' => 'setModelFileType', +'model_series' => 'setModelSeries', +'model_file_name' => 'setModelFileName', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_type' => 'getModelType', +'model_file_type' => 'getModelFileType', +'model_series' => 'getModelSeries', +'model_file_name' => 'getModelFileName', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + $this->container['model_series'] = isset($data['model_series']) ? $data['model_series'] : null; + $this->container['model_file_name'] = isset($data['model_file_name']) ? $data['model_file_name'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + + /** + * Gets model_series + * + * @return string + */ + public function getModelSeries() + { + return $this->container['model_series']; + } + + /** + * Sets model_series + * + * @param string $model_series model_series + * + * @return $this + */ + public function setModelSeries($model_series) + { + $this->container['model_series'] = $model_series; + + return $this; + } + + /** + * Gets model_file_name + * + * @return string + */ + public function getModelFileName() + { + return $this->container['model_file_name']; + } + + /** + * Sets model_file_name + * + * @param string $model_file_name model_file_name + * + * @return $this + */ + public function setModelFileName($model_file_name) + { + $this->container['model_file_name'] = $model_file_name; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bd563a91f993ff5c7c83dff7bd45b5046a8c85f6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:39 +0800 Subject: [PATCH 025/327] feat: update --- lib/Model/AiListModelsResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiListModelsResult.php diff --git a/lib/Model/AiListModelsResult.php b/lib/Model/AiListModelsResult.php new file mode 100644 index 000000000..7645a3488 --- /dev/null +++ b/lib/Model/AiListModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2c378a7e8c7834530caae2c772cbd02b3e1117d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:41 +0800 Subject: [PATCH 026/327] feat: update --- lib/Model/AiListModelsResultModel.php | 287 ++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiListModelsResultModel.php diff --git a/lib/Model/AiListModelsResultModel.php b/lib/Model/AiListModelsResultModel.php new file mode 100644 index 000000000..7322fac3a --- /dev/null +++ b/lib/Model/AiListModelsResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList', +'request_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_list' => null, +'request_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_list' => 'modelList', +'request_id' => 'requestId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_list' => 'setModelList', +'request_id' => 'setRequestId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_list' => 'getModelList', +'request_id' => 'getRequestId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_list'] = isset($data['model_list']) ? $data['model_list'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + } + + + /** + * Gets model_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList + */ + public function getModelList() + { + return $this->container['model_list']; + } + + /** + * Sets model_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList $model_list model_list + * + * @return $this + */ + public function setModelList($model_list) + { + $this->container['model_list'] = $model_list; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 706775248e71934e1691066943eed45285d4a297 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:44 +0800 Subject: [PATCH 027/327] feat: update --- .../AiListModelsResultModelModelList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiListModelsResultModelModelList.php diff --git a/lib/Model/AiListModelsResultModelModelList.php b/lib/Model/AiListModelsResultModelModelList.php new file mode 100644 index 000000000..ed38d7848 --- /dev/null +++ b/lib/Model/AiListModelsResultModelModelList.php @@ -0,0 +1,347 @@ + 'string', +'page_size' => 'string', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return string + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param string $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return string + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param string $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 92bcac89c0bde2909bacc2ca9df55cb80d70188a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:45 +0800 Subject: [PATCH 028/327] feat: update --- .../AiListModelsResultModelModelListItems.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiListModelsResultModelModelListItems.php diff --git a/lib/Model/AiListModelsResultModelModelListItems.php b/lib/Model/AiListModelsResultModelModelListItems.php new file mode 100644 index 000000000..c76b79ea9 --- /dev/null +++ b/lib/Model/AiListModelsResultModelModelListItems.php @@ -0,0 +1,407 @@ + 'string', +'model_type' => 'string', +'model_file_type' => 'string', +'model_file_name' => 'string', +'url' => 'string', +'desc' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_series' => null, +'model_type' => null, +'model_file_type' => null, +'model_file_name' => null, +'url' => null, +'desc' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_series' => 'modelSeries', +'model_type' => 'modelType', +'model_file_type' => 'modelFileType', +'model_file_name' => 'modelFileName', +'url' => 'url', +'desc' => 'desc' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_series' => 'setModelSeries', +'model_type' => 'setModelType', +'model_file_type' => 'setModelFileType', +'model_file_name' => 'setModelFileName', +'url' => 'setUrl', +'desc' => 'setDesc' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_series' => 'getModelSeries', +'model_type' => 'getModelType', +'model_file_type' => 'getModelFileType', +'model_file_name' => 'getModelFileName', +'url' => 'getUrl', +'desc' => 'getDesc' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_series'] = isset($data['model_series']) ? $data['model_series'] : null; + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + $this->container['model_file_name'] = isset($data['model_file_name']) ? $data['model_file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + } + + + /** + * Gets model_series + * + * @return string + */ + public function getModelSeries() + { + return $this->container['model_series']; + } + + /** + * Sets model_series + * + * @param string $model_series model_series + * + * @return $this + */ + public function setModelSeries($model_series) + { + $this->container['model_series'] = $model_series; + + return $this; + } + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + + /** + * Gets model_file_name + * + * @return string + */ + public function getModelFileName() + { + return $this->container['model_file_name']; + } + + /** + * Sets model_file_name + * + * @param string $model_file_name model_file_name + * + * @return $this + */ + public function setModelFileName($model_file_name) + { + $this->container['model_file_name'] = $model_file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f762e22f9025541d9507478b4e16979e51312bee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:46 +0800 Subject: [PATCH 029/327] feat: update --- lib/Model/AiPromptForms.php | 317 ++++++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiPromptForms.php diff --git a/lib/Model/AiPromptForms.php b/lib/Model/AiPromptForms.php new file mode 100644 index 000000000..1cb468d34 --- /dev/null +++ b/lib/Model/AiPromptForms.php @@ -0,0 +1,317 @@ + 'string', +'prompt_param' => 'string', +'resources' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'scene_type' => null, +'prompt_param' => null, +'resources' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'scene_type' => 'sceneType', +'prompt_param' => 'promptParam', +'resources' => 'resources' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'scene_type' => 'setSceneType', +'prompt_param' => 'setPromptParam', +'resources' => 'setResources' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'scene_type' => 'getSceneType', +'prompt_param' => 'getPromptParam', +'resources' => 'getResources' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['scene_type'] = isset($data['scene_type']) ? $data['scene_type'] : null; + $this->container['prompt_param'] = isset($data['prompt_param']) ? $data['prompt_param'] : null; + $this->container['resources'] = isset($data['resources']) ? $data['resources'] : null; + } + + + /** + * Gets scene_type + * + * @return string + */ + public function getSceneType() + { + return $this->container['scene_type']; + } + + /** + * Sets scene_type + * + * @param string $scene_type scene_type + * + * @return $this + */ + public function setSceneType($scene_type) + { + $this->container['scene_type'] = $scene_type; + + return $this; + } + + /** + * Gets prompt_param + * + * @return string + */ + public function getPromptParam() + { + return $this->container['prompt_param']; + } + + /** + * Sets prompt_param + * + * @param string $prompt_param prompt_param + * + * @return $this + */ + public function setPromptParam($prompt_param) + { + $this->container['prompt_param'] = $prompt_param; + + return $this; + } + + /** + * Gets resources + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[] + */ + public function getResources() + { + return $this->container['resources']; + } + + /** + * Sets resources + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[] $resources resources + * + * @return $this + */ + public function setResources($resources) + { + $this->container['resources'] = $resources; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dccc03620b801587383e10f6e6af3caed4756ac3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:48 +0800 Subject: [PATCH 030/327] feat: update --- lib/Model/AiPromptFormsResources.php | 287 +++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiPromptFormsResources.php diff --git a/lib/Model/AiPromptFormsResources.php b/lib/Model/AiPromptFormsResources.php new file mode 100644 index 000000000..c412fdf84 --- /dev/null +++ b/lib/Model/AiPromptFormsResources.php @@ -0,0 +1,287 @@ + 'string', +'url' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'file_name' => null, +'url' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_name' => 'fileName', +'url' => 'url' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_name' => 'setFileName', +'url' => 'setUrl' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_name' => 'getFileName', +'url' => 'getUrl' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['file_name'] = isset($data['file_name']) ? $data['file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + } + + + /** + * Gets file_name + * + * @return string + */ + public function getFileName() + { + return $this->container['file_name']; + } + + /** + * Sets file_name + * + * @param string $file_name file_name + * + * @return $this + */ + public function setFileName($file_name) + { + $this->container['file_name'] = $file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3c15b37d494e3924741c1907a246d85c498dde1b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:49 +0800 Subject: [PATCH 031/327] feat: update --- lib/Model/AiPromptResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiPromptResult.php diff --git a/lib/Model/AiPromptResult.php b/lib/Model/AiPromptResult.php new file mode 100644 index 000000000..737520105 --- /dev/null +++ b/lib/Model/AiPromptResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ded4fb080278ad25b7b464fbfb34d090889abfd4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:50 +0800 Subject: [PATCH 032/327] feat: update --- lib/Model/AiPromptResultModel.php | 317 ++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiPromptResultModel.php diff --git a/lib/Model/AiPromptResultModel.php b/lib/Model/AiPromptResultModel.php new file mode 100644 index 000000000..0f663233c --- /dev/null +++ b/lib/Model/AiPromptResultModel.php @@ -0,0 +1,317 @@ + 'string', +'task_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'task_id' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', +'task_id' => 'taskId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'task_id' => 'setTaskId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'task_id' => 'getTaskId', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f82b2b85c1587a29bbe1562415a581a9ad04f8da Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:52 +0800 Subject: [PATCH 033/327] feat: update --- lib/Model/AiUpdateModelsForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateModelsForms.php diff --git a/lib/Model/AiUpdateModelsForms.php b/lib/Model/AiUpdateModelsForms.php new file mode 100644 index 000000000..034c6d46c --- /dev/null +++ b/lib/Model/AiUpdateModelsForms.php @@ -0,0 +1,287 @@ + 'string', +'desc' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'resource_id' => null, +'desc' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'resource_id' => 'resourceId', +'desc' => 'desc' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_id' => 'setResourceId', +'desc' => 'setDesc' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_id' => 'getResourceId', +'desc' => 'getDesc' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resource_id'] = isset($data['resource_id']) ? $data['resource_id'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + } + + + /** + * Gets resource_id + * + * @return string + */ + public function getResourceId() + { + return $this->container['resource_id']; + } + + /** + * Sets resource_id + * + * @param string $resource_id resource_id + * + * @return $this + */ + public function setResourceId($resource_id) + { + $this->container['resource_id'] = $resource_id; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 56547c468e7dd06951108a6c91ef3a3abfc5118c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:53 +0800 Subject: [PATCH 034/327] feat: update --- lib/Model/AiUpdateModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUpdateModelsResult.php diff --git a/lib/Model/AiUpdateModelsResult.php b/lib/Model/AiUpdateModelsResult.php new file mode 100644 index 000000000..44fd690ab --- /dev/null +++ b/lib/Model/AiUpdateModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d7f7c0749bb13276f2bccc37d32d5ece08ba9597 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:54 +0800 Subject: [PATCH 035/327] feat: update --- lib/Model/AiUpdateModelsResultModel.php | 287 ++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateModelsResultModel.php diff --git a/lib/Model/AiUpdateModelsResultModel.php b/lib/Model/AiUpdateModelsResultModel.php new file mode 100644 index 000000000..7c4535496 --- /dev/null +++ b/lib/Model/AiUpdateModelsResultModel.php @@ -0,0 +1,287 @@ + 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 51a3beabe47b00ca84bcc674a9a36f4c373966f5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:56 +0800 Subject: [PATCH 036/327] feat: update --- lib/Model/AiUpdateNpcRoleForms.php | 617 +++++++++++++++++++++++++++++ 1 file changed, 617 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleForms.php diff --git a/lib/Model/AiUpdateNpcRoleForms.php b/lib/Model/AiUpdateNpcRoleForms.php new file mode 100644 index 000000000..566dfea29 --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleForms.php @@ -0,0 +1,617 @@ + 'int', +'name' => 'string', +'description' => 'string', +'figure_id' => 'int', +'voice_id' => 'int', +'characters' => 'string', +'greetings' => 'string', +'guidance' => 'string[]', +'knowledge_bases' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[]', +'plugin_ids' => 'int[]', +'short_memory_round' => 'int', +'operator' => 'string', +'llm_model_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'id' => 'int64', +'name' => null, +'description' => null, +'figure_id' => 'int64', +'voice_id' => 'int64', +'characters' => null, +'greetings' => null, +'guidance' => null, +'knowledge_bases' => null, +'plugin_ids' => 'int64', +'short_memory_round' => 'int32', +'operator' => null, +'llm_model_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', +'name' => 'name', +'description' => 'description', +'figure_id' => 'figureId', +'voice_id' => 'voiceId', +'characters' => 'characters', +'greetings' => 'greetings', +'guidance' => 'guidance', +'knowledge_bases' => 'knowledgeBases', +'plugin_ids' => 'pluginIds', +'short_memory_round' => 'shortMemoryRound', +'operator' => 'operator', +'llm_model_id' => 'llmModelId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', +'name' => 'setName', +'description' => 'setDescription', +'figure_id' => 'setFigureId', +'voice_id' => 'setVoiceId', +'characters' => 'setCharacters', +'greetings' => 'setGreetings', +'guidance' => 'setGuidance', +'knowledge_bases' => 'setKnowledgeBases', +'plugin_ids' => 'setPluginIds', +'short_memory_round' => 'setShortMemoryRound', +'operator' => 'setOperator', +'llm_model_id' => 'setLlmModelId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', +'name' => 'getName', +'description' => 'getDescription', +'figure_id' => 'getFigureId', +'voice_id' => 'getVoiceId', +'characters' => 'getCharacters', +'greetings' => 'getGreetings', +'guidance' => 'getGuidance', +'knowledge_bases' => 'getKnowledgeBases', +'plugin_ids' => 'getPluginIds', +'short_memory_round' => 'getShortMemoryRound', +'operator' => 'getOperator', +'llm_model_id' => 'getLlmModelId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['figure_id'] = isset($data['figure_id']) ? $data['figure_id'] : null; + $this->container['voice_id'] = isset($data['voice_id']) ? $data['voice_id'] : null; + $this->container['characters'] = isset($data['characters']) ? $data['characters'] : null; + $this->container['greetings'] = isset($data['greetings']) ? $data['greetings'] : null; + $this->container['guidance'] = isset($data['guidance']) ? $data['guidance'] : null; + $this->container['knowledge_bases'] = isset($data['knowledge_bases']) ? $data['knowledge_bases'] : null; + $this->container['plugin_ids'] = isset($data['plugin_ids']) ? $data['plugin_ids'] : null; + $this->container['short_memory_round'] = isset($data['short_memory_round']) ? $data['short_memory_round'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + $this->container['llm_model_id'] = isset($data['llm_model_id']) ? $data['llm_model_id'] : null; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets figure_id + * + * @return int + */ + public function getFigureId() + { + return $this->container['figure_id']; + } + + /** + * Sets figure_id + * + * @param int $figure_id figure_id + * + * @return $this + */ + public function setFigureId($figure_id) + { + $this->container['figure_id'] = $figure_id; + + return $this; + } + + /** + * Gets voice_id + * + * @return int + */ + public function getVoiceId() + { + return $this->container['voice_id']; + } + + /** + * Sets voice_id + * + * @param int $voice_id voice_id + * + * @return $this + */ + public function setVoiceId($voice_id) + { + $this->container['voice_id'] = $voice_id; + + return $this; + } + + /** + * Gets characters + * + * @return string + */ + public function getCharacters() + { + return $this->container['characters']; + } + + /** + * Sets characters + * + * @param string $characters characters + * + * @return $this + */ + public function setCharacters($characters) + { + $this->container['characters'] = $characters; + + return $this; + } + + /** + * Gets greetings + * + * @return string + */ + public function getGreetings() + { + return $this->container['greetings']; + } + + /** + * Sets greetings + * + * @param string $greetings greetings + * + * @return $this + */ + public function setGreetings($greetings) + { + $this->container['greetings'] = $greetings; + + return $this; + } + + /** + * Gets guidance + * + * @return string[] + */ + public function getGuidance() + { + return $this->container['guidance']; + } + + /** + * Sets guidance + * + * @param string[] $guidance guidance + * + * @return $this + */ + public function setGuidance($guidance) + { + $this->container['guidance'] = $guidance; + + return $this; + } + + /** + * Gets knowledge_bases + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[] $knowledge_bases knowledge_bases + * + * @return $this + */ + public function setKnowledgeBases($knowledge_bases) + { + $this->container['knowledge_bases'] = $knowledge_bases; + + return $this; + } + + /** + * Gets plugin_ids + * + * @return int[] + */ + public function getPluginIds() + { + return $this->container['plugin_ids']; + } + + /** + * Sets plugin_ids + * + * @param int[] $plugin_ids plugin_ids + * + * @return $this + */ + public function setPluginIds($plugin_ids) + { + $this->container['plugin_ids'] = $plugin_ids; + + return $this; + } + + /** + * Gets short_memory_round + * + * @return int + */ + public function getShortMemoryRound() + { + return $this->container['short_memory_round']; + } + + /** + * Sets short_memory_round + * + * @param int $short_memory_round short_memory_round + * + * @return $this + */ + public function setShortMemoryRound($short_memory_round) + { + $this->container['short_memory_round'] = $short_memory_round; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + + /** + * Gets llm_model_id + * + * @return int + */ + public function getLlmModelId() + { + return $this->container['llm_model_id']; + } + + /** + * Sets llm_model_id + * + * @param int $llm_model_id llm_model_id + * + * @return $this + */ + public function setLlmModelId($llm_model_id) + { + $this->container['llm_model_id'] = $llm_model_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c2fd890c143ede2e8406694498df600f0e5996e8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:57 +0800 Subject: [PATCH 037/327] feat: update --- .../AiUpdateNpcRoleFormsKnowledgeBases.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php diff --git a/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php b/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php new file mode 100644 index 000000000..3c9b1d61d --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php @@ -0,0 +1,287 @@ + 'int', +'knowledge_base_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'knowledge_base_version_id' => 'int64', +'knowledge_base_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'knowledge_base_version_id' => 'knowledgeBaseVersionId', +'knowledge_base_id' => 'knowledgeBaseId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'knowledge_base_version_id' => 'setKnowledgeBaseVersionId', +'knowledge_base_id' => 'setKnowledgeBaseId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'knowledge_base_version_id' => 'getKnowledgeBaseVersionId', +'knowledge_base_id' => 'getKnowledgeBaseId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['knowledge_base_version_id'] = isset($data['knowledge_base_version_id']) ? $data['knowledge_base_version_id'] : null; + $this->container['knowledge_base_id'] = isset($data['knowledge_base_id']) ? $data['knowledge_base_id'] : null; + } + + + /** + * Gets knowledge_base_version_id + * + * @return int + */ + public function getKnowledgeBaseVersionId() + { + return $this->container['knowledge_base_version_id']; + } + + /** + * Sets knowledge_base_version_id + * + * @param int $knowledge_base_version_id knowledge_base_version_id + * + * @return $this + */ + public function setKnowledgeBaseVersionId($knowledge_base_version_id) + { + $this->container['knowledge_base_version_id'] = $knowledge_base_version_id; + + return $this; + } + + /** + * Gets knowledge_base_id + * + * @return int + */ + public function getKnowledgeBaseId() + { + return $this->container['knowledge_base_id']; + } + + /** + * Sets knowledge_base_id + * + * @param int $knowledge_base_id knowledge_base_id + * + * @return $this + */ + public function setKnowledgeBaseId($knowledge_base_id) + { + $this->container['knowledge_base_id'] = $knowledge_base_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 13706d8489e2624b4ededf3ac97764a86819b947 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:10:58 +0800 Subject: [PATCH 038/327] feat: update --- lib/Model/AiUpdateNpcRoleResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleResult.php diff --git a/lib/Model/AiUpdateNpcRoleResult.php b/lib/Model/AiUpdateNpcRoleResult.php new file mode 100644 index 000000000..11a9c3d93 --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8da0732f5cb4b51bfaf38bf84b9b8a497d998369 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:00 +0800 Subject: [PATCH 039/327] feat: update --- lib/Model/AiUploadModelsForms.php | 407 ++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiUploadModelsForms.php diff --git a/lib/Model/AiUploadModelsForms.php b/lib/Model/AiUploadModelsForms.php new file mode 100644 index 000000000..cdfe56800 --- /dev/null +++ b/lib/Model/AiUploadModelsForms.php @@ -0,0 +1,407 @@ + 'string', +'model_name' => 'string', +'model_file_path' => 'string', +'model_files' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[]', +'desc' => 'string', +'model_file_type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_type' => null, +'model_name' => null, +'model_file_path' => null, +'model_files' => null, +'desc' => null, +'model_file_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_type' => 'modelType', +'model_name' => 'modelName', +'model_file_path' => 'modelFilePath', +'model_files' => 'modelFiles', +'desc' => 'desc', +'model_file_type' => 'modelFileType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_type' => 'setModelType', +'model_name' => 'setModelName', +'model_file_path' => 'setModelFilePath', +'model_files' => 'setModelFiles', +'desc' => 'setDesc', +'model_file_type' => 'setModelFileType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_type' => 'getModelType', +'model_name' => 'getModelName', +'model_file_path' => 'getModelFilePath', +'model_files' => 'getModelFiles', +'desc' => 'getDesc', +'model_file_type' => 'getModelFileType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_name'] = isset($data['model_name']) ? $data['model_name'] : null; + $this->container['model_file_path'] = isset($data['model_file_path']) ? $data['model_file_path'] : null; + $this->container['model_files'] = isset($data['model_files']) ? $data['model_files'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + } + + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_name + * + * @return string + */ + public function getModelName() + { + return $this->container['model_name']; + } + + /** + * Sets model_name + * + * @param string $model_name model_name + * + * @return $this + */ + public function setModelName($model_name) + { + $this->container['model_name'] = $model_name; + + return $this; + } + + /** + * Gets model_file_path + * + * @return string + */ + public function getModelFilePath() + { + return $this->container['model_file_path']; + } + + /** + * Sets model_file_path + * + * @param string $model_file_path model_file_path + * + * @return $this + */ + public function setModelFilePath($model_file_path) + { + $this->container['model_file_path'] = $model_file_path; + + return $this; + } + + /** + * Gets model_files + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[] + */ + public function getModelFiles() + { + return $this->container['model_files']; + } + + /** + * Sets model_files + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[] $model_files model_files + * + * @return $this + */ + public function setModelFiles($model_files) + { + $this->container['model_files'] = $model_files; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9ceb9e0d3d7ea4620db95d201f019915d1ab5b19 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:01 +0800 Subject: [PATCH 040/327] feat: update --- lib/Model/AiUploadModelsFormsModelFiles.php | 287 ++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUploadModelsFormsModelFiles.php diff --git a/lib/Model/AiUploadModelsFormsModelFiles.php b/lib/Model/AiUploadModelsFormsModelFiles.php new file mode 100644 index 000000000..e43a12555 --- /dev/null +++ b/lib/Model/AiUploadModelsFormsModelFiles.php @@ -0,0 +1,287 @@ + 'string', +'url' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'file_name' => null, +'url' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_name' => 'fileName', +'url' => 'url' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_name' => 'setFileName', +'url' => 'setUrl' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_name' => 'getFileName', +'url' => 'getUrl' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['file_name'] = isset($data['file_name']) ? $data['file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + } + + + /** + * Gets file_name + * + * @return string + */ + public function getFileName() + { + return $this->container['file_name']; + } + + /** + * Sets file_name + * + * @param string $file_name file_name + * + * @return $this + */ + public function setFileName($file_name) + { + $this->container['file_name'] = $file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8f6df2edf7861781d51bb24f287fedf079f0a577 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:03 +0800 Subject: [PATCH 041/327] feat: update --- lib/Model/AiUploadModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUploadModelsResult.php diff --git a/lib/Model/AiUploadModelsResult.php b/lib/Model/AiUploadModelsResult.php new file mode 100644 index 000000000..55b5c80b6 --- /dev/null +++ b/lib/Model/AiUploadModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fa6c65b92385ee22449dbde122ed91237f82eaf4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:04 +0800 Subject: [PATCH 042/327] feat: update --- lib/Model/BatchStopGameForms.php | 407 +++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/BatchStopGameForms.php diff --git a/lib/Model/BatchStopGameForms.php b/lib/Model/BatchStopGameForms.php new file mode 100644 index 000000000..1da077235 --- /dev/null +++ b/lib/Model/BatchStopGameForms.php @@ -0,0 +1,407 @@ + 'string', +'app_key' => 'string', +'token' => 'string', +'reason' => 'string', +'track_info' => 'string', +'tags' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'token' => null, +'reason' => null, +'track_info' => null, +'tags' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'token' => 'token', +'reason' => 'reason', +'track_info' => 'trackInfo', +'tags' => 'tags' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'token' => 'setToken', +'reason' => 'setReason', +'track_info' => 'setTrackInfo', +'tags' => 'setTags' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'token' => 'getToken', +'reason' => 'getReason', +'track_info' => 'getTrackInfo', +'tags' => 'getTags' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['track_info'] = isset($data['track_info']) ? $data['track_info'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 通过接口获取的token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason 踢人的原因,会透传到sdk侧 + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets track_info + * + * @return string + */ + public function getTrackInfo() + { + return $this->container['track_info']; + } + + /** + * Sets track_info + * + * @param string $track_info TrackInfo,回传消息 + * + * @return $this + */ + public function setTrackInfo($track_info) + { + $this->container['track_info'] = $track_info; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags 支持多标签传输 + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 06a877c639572dbe2c257597ce2a9a3a4cb82c55 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:06 +0800 Subject: [PATCH 043/327] feat: update --- lib/Model/BatchStopGameResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/BatchStopGameResult.php diff --git a/lib/Model/BatchStopGameResult.php b/lib/Model/BatchStopGameResult.php new file mode 100644 index 000000000..730e0075f --- /dev/null +++ b/lib/Model/BatchStopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1e1e06f5ed33e7a254e89ca2627397c83cf7c1e1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:07 +0800 Subject: [PATCH 044/327] feat: update --- lib/Model/BatchStopGameResultModel.php | 437 +++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/BatchStopGameResultModel.php diff --git a/lib/Model/BatchStopGameResultModel.php b/lib/Model/BatchStopGameResultModel.php new file mode 100644 index 000000000..9b9a7d831 --- /dev/null +++ b/lib/Model/BatchStopGameResultModel.php @@ -0,0 +1,437 @@ + 'string', +'track_info' => 'string', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'track_info' => null, +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'track_info' => 'trackInfo', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'track_info' => 'setTrackInfo', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'track_info' => 'getTrackInfo', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['track_info'] = isset($data['track_info']) ? $data['track_info'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets track_info + * + * @return string + */ + public function getTrackInfo() + { + return $this->container['track_info']; + } + + /** + * Sets track_info + * + * @param string $track_info 批量停止的回传trackInfo + * + * @return $this + */ + public function setTrackInfo($track_info) + { + $this->container['track_info'] = $track_info; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f579bc1efca9fe54138c448c8aef9afc0450d9f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:08 +0800 Subject: [PATCH 045/327] feat: update --- lib/Model/CancelGameHangForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/CancelGameHangForms.php diff --git a/lib/Model/CancelGameHangForms.php b/lib/Model/CancelGameHangForms.php new file mode 100644 index 000000000..5e077480f --- /dev/null +++ b/lib/Model/CancelGameHangForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3cf968421650ebb5df2da26a51189cee4467c0d0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:10 +0800 Subject: [PATCH 046/327] feat: update --- lib/Model/CancelGameHangResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/CancelGameHangResult.php diff --git a/lib/Model/CancelGameHangResult.php b/lib/Model/CancelGameHangResult.php new file mode 100644 index 000000000..98a51ee4f --- /dev/null +++ b/lib/Model/CancelGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9fafe7f731cd7a7b9e6b898c118373845284c3f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:11 +0800 Subject: [PATCH 047/327] feat: update --- lib/Model/CancelGameHangResultModel.php | 347 ++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/CancelGameHangResultModel.php diff --git a/lib/Model/CancelGameHangResultModel.php b/lib/Model/CancelGameHangResultModel.php new file mode 100644 index 000000000..17d53aacc --- /dev/null +++ b/lib/Model/CancelGameHangResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3c9bf3e74808b7f465c5d407968730b89cc126a0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:13 +0800 Subject: [PATCH 048/327] feat: update --- lib/Model/ClientNotifyForms.php | 317 ++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ClientNotifyForms.php diff --git a/lib/Model/ClientNotifyForms.php b/lib/Model/ClientNotifyForms.php new file mode 100644 index 000000000..61eacbcc2 --- /dev/null +++ b/lib/Model/ClientNotifyForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5bb54a94e65cbd0e1f73844513488f0f006352ff Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:14 +0800 Subject: [PATCH 049/327] feat: update --- lib/Model/ClientNotifyResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ClientNotifyResult.php diff --git a/lib/Model/ClientNotifyResult.php b/lib/Model/ClientNotifyResult.php new file mode 100644 index 000000000..d9d1125f7 --- /dev/null +++ b/lib/Model/ClientNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 81e98cc56d3209d1463f322f261213c66c1d3ced Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:16 +0800 Subject: [PATCH 050/327] feat: update --- lib/Model/ClientNotifyResultModel.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ClientNotifyResultModel.php diff --git a/lib/Model/ClientNotifyResultModel.php b/lib/Model/ClientNotifyResultModel.php new file mode 100644 index 000000000..268cc64e4 --- /dev/null +++ b/lib/Model/ClientNotifyResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0a0bdb116e2528d51f793c559d1910cf8bf5d34e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:17 +0800 Subject: [PATCH 051/327] feat: update --- .../ConsoleAdminActivateDeploymentForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentForms.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentForms.php b/lib/Model/ConsoleAdminActivateDeploymentForms.php new file mode 100644 index 000000000..718b1cbad --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentForms.php @@ -0,0 +1,347 @@ + 'string', +'project_id' => 'string', +'version_id' => 'string', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null, +'version_id' => null, +'max_concurrency' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId', +'version_id' => 'versionId', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId', +'version_id' => 'setVersionId', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId', +'version_id' => 'getVersionId', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 05e60a3914b06702e694e834ba561bad87d1317d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:19 +0800 Subject: [PATCH 052/327] feat: update --- .../ConsoleAdminActivateDeploymentResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentResult.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentResult.php b/lib/Model/ConsoleAdminActivateDeploymentResult.php new file mode 100644 index 000000000..e454f626a --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3fbbce3692e4e01ae35da706d520832a2b6b6a3f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:20 +0800 Subject: [PATCH 053/327] feat: update --- ...soleAdminActivateDeploymentResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentResultModel.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentResultModel.php b/lib/Model/ConsoleAdminActivateDeploymentResultModel.php new file mode 100644 index 000000000..2b0a33c06 --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentResultModel.php @@ -0,0 +1,257 @@ + 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'activated' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'activated' => 'activated' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'activated' => 'setActivated' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'activated' => 'getActivated' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['activated'] = isset($data['activated']) ? $data['activated'] : null; + } + + + /** + * Gets activated + * + * @return bool + */ + public function getActivated() + { + return $this->container['activated']; + } + + /** + * Sets activated + * + * @param bool $activated activated + * + * @return $this + */ + public function setActivated($activated) + { + $this->container['activated'] = $activated; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4dca4a8583f15eb29b47f3ac0aa79e10615c58de Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:21 +0800 Subject: [PATCH 054/327] feat: update --- .../ConsoleAdminAdaptGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionForms.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionForms.php b/lib/Model/ConsoleAdminAdaptGameVersionForms.php new file mode 100644 index 000000000..151a07386 --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8366159e8aa0c641014beca5c0093e9eda7082aa Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:23 +0800 Subject: [PATCH 055/327] feat: update --- .../ConsoleAdminAdaptGameVersionResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionResult.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionResult.php b/lib/Model/ConsoleAdminAdaptGameVersionResult.php new file mode 100644 index 000000000..b89d0c136 --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b60f59f247a44b6be8fe0650ac151423f708d7de Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:24 +0800 Subject: [PATCH 056/327] feat: update --- ...onsoleAdminAdaptGameVersionResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionResultModel.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php b/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php new file mode 100644 index 000000000..81b4b1ee3 --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 614cd74661d6e15289647e4cee3042aa82002a11 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:25 +0800 Subject: [PATCH 057/327] feat: update --- .../ConsoleAdminAddGameToProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminAddGameToProjectForms.php diff --git a/lib/Model/ConsoleAdminAddGameToProjectForms.php b/lib/Model/ConsoleAdminAddGameToProjectForms.php new file mode 100644 index 000000000..4298af864 --- /dev/null +++ b/lib/Model/ConsoleAdminAddGameToProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b85eee1b50fe924e0856b81a220d637dec5f623e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:26 +0800 Subject: [PATCH 058/327] feat: update --- .../ConsoleAdminAddGameToProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminAddGameToProjectResult.php diff --git a/lib/Model/ConsoleAdminAddGameToProjectResult.php b/lib/Model/ConsoleAdminAddGameToProjectResult.php new file mode 100644 index 000000000..af93626c6 --- /dev/null +++ b/lib/Model/ConsoleAdminAddGameToProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 556cac7f8e20a397e9c0b155bbc46c4f4d41777f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:28 +0800 Subject: [PATCH 059/327] feat: update --- ...oleAdminBatchUpdateDispatchConfigForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php new file mode 100644 index 000000000..1a10c07d9 --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php @@ -0,0 +1,347 @@ + 'string', +'instance_id' => 'string', +'app_name' => 'string', +'config_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_project_id' => null, +'instance_id' => null, +'app_name' => null, +'config_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_project_id' => 'mixProjectId', +'instance_id' => 'instanceId', +'app_name' => 'appName', +'config_list' => 'configList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_project_id' => 'setMixProjectId', +'instance_id' => 'setInstanceId', +'app_name' => 'setAppName', +'config_list' => 'setConfigList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_project_id' => 'getMixProjectId', +'instance_id' => 'getInstanceId', +'app_name' => 'getAppName', +'config_list' => 'getConfigList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_project_id'] = isset($data['mix_project_id']) ? $data['mix_project_id'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['app_name'] = isset($data['app_name']) ? $data['app_name'] : null; + $this->container['config_list'] = isset($data['config_list']) ? $data['config_list'] : null; + } + + + /** + * Gets mix_project_id + * + * @return string + */ + public function getMixProjectId() + { + return $this->container['mix_project_id']; + } + + /** + * Sets mix_project_id + * + * @param string $mix_project_id 项目id(混淆) + * + * @return $this + */ + public function setMixProjectId($mix_project_id) + { + $this->container['mix_project_id'] = $mix_project_id; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例id + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets app_name + * + * @return string + */ + public function getAppName() + { + return $this->container['app_name']; + } + + /** + * Sets app_name + * + * @param string $app_name 接入方唯一标识 + * + * @return $this + */ + public function setAppName($app_name) + { + $this->container['app_name'] = $app_name; + + return $this; + } + + /** + * Gets config_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[] + */ + public function getConfigList() + { + return $this->container['config_list']; + } + + /** + * Sets config_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[] $config_list config_list + * + * @return $this + */ + public function setConfigList($config_list) + { + $this->container['config_list'] = $config_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9cc6441430a578bcc0ac356f52964c72acd8963b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:29 +0800 Subject: [PATCH 060/327] feat: update --- ...tchUpdateDispatchConfigFormsConfigList.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php new file mode 100644 index 000000000..717bdd2a0 --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php @@ -0,0 +1,407 @@ + 'string', +'exclusive_concurrency' => 'int', +'max_concurrency_percent' => 'string', +'exclusive_concurrency_percent' => 'string', +'priority' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_id' => null, +'exclusive_concurrency' => null, +'max_concurrency_percent' => null, +'exclusive_concurrency_percent' => null, +'priority' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_id' => 'mixGameId', +'exclusive_concurrency' => 'exclusiveConcurrency', +'max_concurrency_percent' => 'maxConcurrencyPercent', +'exclusive_concurrency_percent' => 'exclusiveConcurrencyPercent', +'priority' => 'priority', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_id' => 'setMixGameId', +'exclusive_concurrency' => 'setExclusiveConcurrency', +'max_concurrency_percent' => 'setMaxConcurrencyPercent', +'exclusive_concurrency_percent' => 'setExclusiveConcurrencyPercent', +'priority' => 'setPriority', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_id' => 'getMixGameId', +'exclusive_concurrency' => 'getExclusiveConcurrency', +'max_concurrency_percent' => 'getMaxConcurrencyPercent', +'exclusive_concurrency_percent' => 'getExclusiveConcurrencyPercent', +'priority' => 'getPriority', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + $this->container['exclusive_concurrency'] = isset($data['exclusive_concurrency']) ? $data['exclusive_concurrency'] : null; + $this->container['max_concurrency_percent'] = isset($data['max_concurrency_percent']) ? $data['max_concurrency_percent'] : null; + $this->container['exclusive_concurrency_percent'] = isset($data['exclusive_concurrency_percent']) ? $data['exclusive_concurrency_percent'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id 编码游戏id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + + /** + * Gets exclusive_concurrency + * + * @return int + */ + public function getExclusiveConcurrency() + { + return $this->container['exclusive_concurrency']; + } + + /** + * Sets exclusive_concurrency + * + * @param int $exclusive_concurrency 独占并发数 + * + * @return $this + */ + public function setExclusiveConcurrency($exclusive_concurrency) + { + $this->container['exclusive_concurrency'] = $exclusive_concurrency; + + return $this; + } + + /** + * Gets max_concurrency_percent + * + * @return string + */ + public function getMaxConcurrencyPercent() + { + return $this->container['max_concurrency_percent']; + } + + /** + * Sets max_concurrency_percent + * + * @param string $max_concurrency_percent 最大并发百分比-Double类型[0.0,1.0] + * + * @return $this + */ + public function setMaxConcurrencyPercent($max_concurrency_percent) + { + $this->container['max_concurrency_percent'] = $max_concurrency_percent; + + return $this; + } + + /** + * Gets exclusive_concurrency_percent + * + * @return string + */ + public function getExclusiveConcurrencyPercent() + { + return $this->container['exclusive_concurrency_percent']; + } + + /** + * Sets exclusive_concurrency_percent + * + * @param string $exclusive_concurrency_percent 独占并发百分比--Double类型[0.0,1.0] + * + * @return $this + */ + public function setExclusiveConcurrencyPercent($exclusive_concurrency_percent) + { + $this->container['exclusive_concurrency_percent'] = $exclusive_concurrency_percent; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority 调度等级 + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency 最大并发数 + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 617d2058693e935787ee2369d87a9654612c6e98 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:31 +0800 Subject: [PATCH 061/327] feat: update --- ...leAdminBatchUpdateDispatchConfigResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php new file mode 100644 index 000000000..6b922ea8e --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return bool + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param bool $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1879a1b14ffa6a3db0a6c81a6571fc09021b4e38 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:32 +0800 Subject: [PATCH 062/327] feat: update --- lib/Model/ConsoleAdminCreateGameForms.php | 317 ++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameForms.php diff --git a/lib/Model/ConsoleAdminCreateGameForms.php b/lib/Model/ConsoleAdminCreateGameForms.php new file mode 100644 index 000000000..fd3c6c076 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameForms.php @@ -0,0 +1,317 @@ + 'string', +'platform_type' => 'int', +'os_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_name' => null, +'platform_type' => 'int64', +'os_type' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_name' => 'gameName', +'platform_type' => 'platformType', +'os_type' => 'osType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_name' => 'setGameName', +'platform_type' => 'setPlatformType', +'os_type' => 'setOsType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_name' => 'getGameName', +'platform_type' => 'getPlatformType', +'os_type' => 'getOsType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['os_type'] = isset($data['os_type']) ? $data['os_type'] : null; + } + + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets os_type + * + * @return int + */ + public function getOsType() + { + return $this->container['os_type']; + } + + /** + * Sets os_type + * + * @param int $os_type os_type + * + * @return $this + */ + public function setOsType($os_type) + { + $this->container['os_type'] = $os_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ee1589f74bb13919c063452b98c50d8811f43138 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:33 +0800 Subject: [PATCH 063/327] feat: update --- lib/Model/ConsoleAdminCreateGameResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameResult.php diff --git a/lib/Model/ConsoleAdminCreateGameResult.php b/lib/Model/ConsoleAdminCreateGameResult.php new file mode 100644 index 000000000..3d3273f9a --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 62b62755c18b9b6d1380fcd76b0ec5bc56ff3b72 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:35 +0800 Subject: [PATCH 064/327] feat: update --- .../ConsoleAdminCreateGameResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameResultModel.php diff --git a/lib/Model/ConsoleAdminCreateGameResultModel.php b/lib/Model/ConsoleAdminCreateGameResultModel.php new file mode 100644 index 000000000..1e75aa6d2 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fb6874ecafcd1c0bf5350c16a4c43c365d34ae6e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:36 +0800 Subject: [PATCH 065/327] feat: update --- lib/Model/ConsoleAdminCreateOrderForms.php | 467 +++++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderForms.php diff --git a/lib/Model/ConsoleAdminCreateOrderForms.php b/lib/Model/ConsoleAdminCreateOrderForms.php new file mode 100644 index 000000000..3b1476128 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderForms.php @@ -0,0 +1,467 @@ + 'string', +'commodity_code' => 'string', +'instance_id' => 'string', +'primary_charge_item_code' => 'string', +'attribute_request_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[]', +'order_type' => 'string', +'auto_renew' => 'bool', +'create_order_ext_params' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'category_code' => null, +'commodity_code' => null, +'instance_id' => null, +'primary_charge_item_code' => null, +'attribute_request_list' => null, +'order_type' => null, +'auto_renew' => null, +'create_order_ext_params' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'category_code' => 'categoryCode', +'commodity_code' => 'commodityCode', +'instance_id' => 'instanceId', +'primary_charge_item_code' => 'primaryChargeItemCode', +'attribute_request_list' => 'attributeRequestList', +'order_type' => 'orderType', +'auto_renew' => 'autoRenew', +'create_order_ext_params' => 'createOrderExtParams' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'category_code' => 'setCategoryCode', +'commodity_code' => 'setCommodityCode', +'instance_id' => 'setInstanceId', +'primary_charge_item_code' => 'setPrimaryChargeItemCode', +'attribute_request_list' => 'setAttributeRequestList', +'order_type' => 'setOrderType', +'auto_renew' => 'setAutoRenew', +'create_order_ext_params' => 'setCreateOrderExtParams' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'category_code' => 'getCategoryCode', +'commodity_code' => 'getCommodityCode', +'instance_id' => 'getInstanceId', +'primary_charge_item_code' => 'getPrimaryChargeItemCode', +'attribute_request_list' => 'getAttributeRequestList', +'order_type' => 'getOrderType', +'auto_renew' => 'getAutoRenew', +'create_order_ext_params' => 'getCreateOrderExtParams' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['category_code'] = isset($data['category_code']) ? $data['category_code'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['primary_charge_item_code'] = isset($data['primary_charge_item_code']) ? $data['primary_charge_item_code'] : null; + $this->container['attribute_request_list'] = isset($data['attribute_request_list']) ? $data['attribute_request_list'] : null; + $this->container['order_type'] = isset($data['order_type']) ? $data['order_type'] : null; + $this->container['auto_renew'] = isset($data['auto_renew']) ? $data['auto_renew'] : null; + $this->container['create_order_ext_params'] = isset($data['create_order_ext_params']) ? $data['create_order_ext_params'] : null; + } + + + /** + * Gets category_code + * + * @return string + */ + public function getCategoryCode() + { + return $this->container['category_code']; + } + + /** + * Sets category_code + * + * @param string $category_code 类目编码 + * + * @return $this + */ + public function setCategoryCode($category_code) + { + $this->container['category_code'] = $category_code; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets primary_charge_item_code + * + * @return string + */ + public function getPrimaryChargeItemCode() + { + return $this->container['primary_charge_item_code']; + } + + /** + * Sets primary_charge_item_code + * + * @param string $primary_charge_item_code 主计费项编码 + * + * @return $this + */ + public function setPrimaryChargeItemCode($primary_charge_item_code) + { + $this->container['primary_charge_item_code'] = $primary_charge_item_code; + + return $this; + } + + /** + * Gets attribute_request_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[] + */ + public function getAttributeRequestList() + { + return $this->container['attribute_request_list']; + } + + /** + * Sets attribute_request_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[] $attribute_request_list attribute_request_list + * + * @return $this + */ + public function setAttributeRequestList($attribute_request_list) + { + $this->container['attribute_request_list'] = $attribute_request_list; + + return $this; + } + + /** + * Gets order_type + * + * @return string + */ + public function getOrderType() + { + return $this->container['order_type']; + } + + /** + * Sets order_type + * + * @param string $order_type 订单类型 + * + * @return $this + */ + public function setOrderType($order_type) + { + $this->container['order_type'] = $order_type; + + return $this; + } + + /** + * Gets auto_renew + * + * @return bool + */ + public function getAutoRenew() + { + return $this->container['auto_renew']; + } + + /** + * Sets auto_renew + * + * @param bool $auto_renew 是否开启自动续费 + * + * @return $this + */ + public function setAutoRenew($auto_renew) + { + $this->container['auto_renew'] = $auto_renew; + + return $this; + } + + /** + * Gets create_order_ext_params + * + * @return string + */ + public function getCreateOrderExtParams() + { + return $this->container['create_order_ext_params']; + } + + /** + * Sets create_order_ext_params + * + * @param string $create_order_ext_params 下单扩展信息 + * + * @return $this + */ + public function setCreateOrderExtParams($create_order_ext_params) + { + $this->container['create_order_ext_params'] = $create_order_ext_params; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dd0c7719de53a30bb9a18bc124bec4c2ae0b66c6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:37 +0800 Subject: [PATCH 066/327] feat: update --- ...inCreateOrderFormsAttributeRequestList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php diff --git a/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php b/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php new file mode 100644 index 000000000..c57314fa9 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php @@ -0,0 +1,347 @@ + 'string', +'attribute_value' => 'int', +'attribute_value_code' => 'int', +'time_unit' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'attribute_code' => null, +'attribute_value' => null, +'attribute_value_code' => 'int64', +'time_unit' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attribute_code' => 'attributeCode', +'attribute_value' => 'attributeValue', +'attribute_value_code' => 'attributeValueCode', +'time_unit' => 'timeUnit' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attribute_code' => 'setAttributeCode', +'attribute_value' => 'setAttributeValue', +'attribute_value_code' => 'setAttributeValueCode', +'time_unit' => 'setTimeUnit' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attribute_code' => 'getAttributeCode', +'attribute_value' => 'getAttributeValue', +'attribute_value_code' => 'getAttributeValueCode', +'time_unit' => 'getTimeUnit' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attribute_code'] = isset($data['attribute_code']) ? $data['attribute_code'] : null; + $this->container['attribute_value'] = isset($data['attribute_value']) ? $data['attribute_value'] : null; + $this->container['attribute_value_code'] = isset($data['attribute_value_code']) ? $data['attribute_value_code'] : null; + $this->container['time_unit'] = isset($data['time_unit']) ? $data['time_unit'] : null; + } + + + /** + * Gets attribute_code + * + * @return string + */ + public function getAttributeCode() + { + return $this->container['attribute_code']; + } + + /** + * Sets attribute_code + * + * @param string $attribute_code 属性编码 + * + * @return $this + */ + public function setAttributeCode($attribute_code) + { + $this->container['attribute_code'] = $attribute_code; + + return $this; + } + + /** + * Gets attribute_value + * + * @return int + */ + public function getAttributeValue() + { + return $this->container['attribute_value']; + } + + /** + * Sets attribute_value + * + * @param int $attribute_value 属性值(区间型专用) + * + * @return $this + */ + public function setAttributeValue($attribute_value) + { + $this->container['attribute_value'] = $attribute_value; + + return $this; + } + + /** + * Gets attribute_value_code + * + * @return int + */ + public function getAttributeValueCode() + { + return $this->container['attribute_value_code']; + } + + /** + * Sets attribute_value_code + * + * @param int $attribute_value_code 属性值编码(枚举型,时长型 专用) + * + * @return $this + */ + public function setAttributeValueCode($attribute_value_code) + { + $this->container['attribute_value_code'] = $attribute_value_code; + + return $this; + } + + /** + * Gets time_unit + * + * @return string + */ + public function getTimeUnit() + { + return $this->container['time_unit']; + } + + /** + * Sets time_unit + * + * @param string $time_unit 时长单位 + * + * @return $this + */ + public function setTimeUnit($time_unit) + { + $this->container['time_unit'] = $time_unit; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 58c53a8e65202cdf8a35a2a1dea4050ef85c15a8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:39 +0800 Subject: [PATCH 067/327] feat: update --- lib/Model/ConsoleAdminCreateOrderResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderResult.php diff --git a/lib/Model/ConsoleAdminCreateOrderResult.php b/lib/Model/ConsoleAdminCreateOrderResult.php new file mode 100644 index 000000000..e99ec0a4c --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c3754937c708a743815053c5c15158874e2860af Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:40 +0800 Subject: [PATCH 068/327] feat: update --- .../ConsoleAdminCreateOrderResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderResultModel.php diff --git a/lib/Model/ConsoleAdminCreateOrderResultModel.php b/lib/Model/ConsoleAdminCreateOrderResultModel.php new file mode 100644 index 000000000..0031f34d7 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderResultModel.php @@ -0,0 +1,287 @@ + 'string', +'order_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'instance_id' => null, +'order_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'instance_id' => 'instanceId', +'order_id' => 'orderId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'instance_id' => 'setInstanceId', +'order_id' => 'setOrderId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'instance_id' => 'getInstanceId', +'order_id' => 'getOrderId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + } + + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单ID + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b796e4d71f5a4f802630dda5b69ca1c107bec504 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:41 +0800 Subject: [PATCH 069/327] feat: update --- lib/Model/ConsoleAdminCreateProjectForms.php | 257 +++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectForms.php diff --git a/lib/Model/ConsoleAdminCreateProjectForms.php b/lib/Model/ConsoleAdminCreateProjectForms.php new file mode 100644 index 000000000..78ecbe91a --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_name' => 'projectName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_name' => 'setProjectName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_name' => 'getProjectName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + } + + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e43712a3764eb18df04df28ad9b3797a485925a6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:43 +0800 Subject: [PATCH 070/327] feat: update --- lib/Model/ConsoleAdminCreateProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectResult.php diff --git a/lib/Model/ConsoleAdminCreateProjectResult.php b/lib/Model/ConsoleAdminCreateProjectResult.php new file mode 100644 index 000000000..30d9a6978 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 189a115811afec54d6881088b4b15f437dec18dd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:44 +0800 Subject: [PATCH 071/327] feat: update --- .../ConsoleAdminCreateProjectResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectResultModel.php diff --git a/lib/Model/ConsoleAdminCreateProjectResultModel.php b/lib/Model/ConsoleAdminCreateProjectResultModel.php new file mode 100644 index 000000000..adbc43061 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f30d973f01ff10d6a0300f18fa9dcf64d4578253 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:45 +0800 Subject: [PATCH 072/327] feat: update --- lib/Model/ConsoleAdminDeleteGameForms.php | 257 ++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameForms.php diff --git a/lib/Model/ConsoleAdminDeleteGameForms.php b/lib/Model/ConsoleAdminDeleteGameForms.php new file mode 100644 index 000000000..40d2148e4 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a4b28ceec159cd99af3676d68233b47ccf775a62 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:47 +0800 Subject: [PATCH 073/327] feat: update --- lib/Model/ConsoleAdminDeleteGameResult.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameResult.php diff --git a/lib/Model/ConsoleAdminDeleteGameResult.php b/lib/Model/ConsoleAdminDeleteGameResult.php new file mode 100644 index 000000000..7c92a90dc --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c50dd025a9862fb929726217e0f1fd47e290f583 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:48 +0800 Subject: [PATCH 074/327] feat: update --- .../ConsoleAdminDeleteGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameVersionForms.php diff --git a/lib/Model/ConsoleAdminDeleteGameVersionForms.php b/lib/Model/ConsoleAdminDeleteGameVersionForms.php new file mode 100644 index 000000000..430b0b5af --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e3009c4d14875f62f01fbfe61ccdd2df8a646db3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:50 +0800 Subject: [PATCH 075/327] feat: update --- .../ConsoleAdminDeleteGameVersionResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameVersionResult.php diff --git a/lib/Model/ConsoleAdminDeleteGameVersionResult.php b/lib/Model/ConsoleAdminDeleteGameVersionResult.php new file mode 100644 index 000000000..36ad97d52 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameVersionResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c0e304fef722279f0b410744597a384d19e6f7fc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:51 +0800 Subject: [PATCH 076/327] feat: update --- lib/Model/ConsoleAdminDeleteProjectForms.php | 257 +++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteProjectForms.php diff --git a/lib/Model/ConsoleAdminDeleteProjectForms.php b/lib/Model/ConsoleAdminDeleteProjectForms.php new file mode 100644 index 000000000..90ea6d227 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteProjectForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d790cab00dfc75a836c0f094c6e8056846731391 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:52 +0800 Subject: [PATCH 077/327] feat: update --- lib/Model/ConsoleAdminDeleteProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteProjectResult.php diff --git a/lib/Model/ConsoleAdminDeleteProjectResult.php b/lib/Model/ConsoleAdminDeleteProjectResult.php new file mode 100644 index 000000000..729fd9d5c --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2b8c8eecd4a949042a432fda5fe7ef75930efdd5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:54 +0800 Subject: [PATCH 078/327] feat: update --- .../ConsoleAdminGetBillFlowInfoForms.php | 527 ++++++++++++++++++ 1 file changed, 527 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoForms.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoForms.php b/lib/Model/ConsoleAdminGetBillFlowInfoForms.php new file mode 100644 index 000000000..ad34805f9 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoForms.php @@ -0,0 +1,527 @@ + 'string', +'accounting_period_to' => 'string', +'commodity_code' => 'string', +'tenant_id' => 'string', +'order_id' => 'string', +'status' => 'string', +'consume_type' => 'string', +'bill_type' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'accounting_period_from' => null, +'accounting_period_to' => null, +'commodity_code' => null, +'tenant_id' => null, +'order_id' => null, +'status' => null, +'consume_type' => null, +'bill_type' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accounting_period_from' => 'accountingPeriodFrom', +'accounting_period_to' => 'accountingPeriodTo', +'commodity_code' => 'commodityCode', +'tenant_id' => 'tenantId', +'order_id' => 'orderId', +'status' => 'status', +'consume_type' => 'consumeType', +'bill_type' => 'billType', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accounting_period_from' => 'setAccountingPeriodFrom', +'accounting_period_to' => 'setAccountingPeriodTo', +'commodity_code' => 'setCommodityCode', +'tenant_id' => 'setTenantId', +'order_id' => 'setOrderId', +'status' => 'setStatus', +'consume_type' => 'setConsumeType', +'bill_type' => 'setBillType', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accounting_period_from' => 'getAccountingPeriodFrom', +'accounting_period_to' => 'getAccountingPeriodTo', +'commodity_code' => 'getCommodityCode', +'tenant_id' => 'getTenantId', +'order_id' => 'getOrderId', +'status' => 'getStatus', +'consume_type' => 'getConsumeType', +'bill_type' => 'getBillType', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accounting_period_from'] = isset($data['accounting_period_from']) ? $data['accounting_period_from'] : null; + $this->container['accounting_period_to'] = isset($data['accounting_period_to']) ? $data['accounting_period_to'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['consume_type'] = isset($data['consume_type']) ? $data['consume_type'] : null; + $this->container['bill_type'] = isset($data['bill_type']) ? $data['bill_type'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets accounting_period_from + * + * @return string + */ + public function getAccountingPeriodFrom() + { + return $this->container['accounting_period_from']; + } + + /** + * Sets accounting_period_from + * + * @param string $accounting_period_from accounting_period_from + * + * @return $this + */ + public function setAccountingPeriodFrom($accounting_period_from) + { + $this->container['accounting_period_from'] = $accounting_period_from; + + return $this; + } + + /** + * Gets accounting_period_to + * + * @return string + */ + public function getAccountingPeriodTo() + { + return $this->container['accounting_period_to']; + } + + /** + * Sets accounting_period_to + * + * @param string $accounting_period_to accounting_period_to + * + * @return $this + */ + public function setAccountingPeriodTo($accounting_period_to) + { + $this->container['accounting_period_to'] = $accounting_period_to; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code commodity_code + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets tenant_id + * + * @return string + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param string $tenant_id tenant_id + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id order_id + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets consume_type + * + * @return string + */ + public function getConsumeType() + { + return $this->container['consume_type']; + } + + /** + * Sets consume_type + * + * @param string $consume_type consume_type + * + * @return $this + */ + public function setConsumeType($consume_type) + { + $this->container['consume_type'] = $consume_type; + + return $this; + } + + /** + * Gets bill_type + * + * @return string + */ + public function getBillType() + { + return $this->container['bill_type']; + } + + /** + * Sets bill_type + * + * @param string $bill_type bill_type + * + * @return $this + */ + public function setBillType($bill_type) + { + $this->container['bill_type'] = $bill_type; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 14ece92d8ca2fe7879cc5bfe77f8da3dc670de5f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:55 +0800 Subject: [PATCH 079/327] feat: update --- .../ConsoleAdminGetBillFlowInfoResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResult.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResult.php b/lib/Model/ConsoleAdminGetBillFlowInfoResult.php new file mode 100644 index 000000000..79b9895c0 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 80cf3fd37315278a83b107f3b1e5a895f52bdff4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:56 +0800 Subject: [PATCH 080/327] feat: update --- ...ConsoleAdminGetBillFlowInfoResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php b/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php new file mode 100644 index 000000000..b667cfbe7 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php @@ -0,0 +1,347 @@ + 'int', +'pagesize' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'pagesize' => null, +'total_count' => null, +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'pagesize' => 'pagesize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'pagesize' => 'setPagesize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'pagesize' => 'getPagesize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['pagesize'] = isset($data['pagesize']) ? $data['pagesize'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets pagesize + * + * @return int + */ + public function getPagesize() + { + return $this->container['pagesize']; + } + + /** + * Sets pagesize + * + * @param int $pagesize pagesize + * + * @return $this + */ + public function setPagesize($pagesize) + { + $this->container['pagesize'] = $pagesize; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0b0524213fb35005bef7e0613d85163ac7c3c832 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:58 +0800 Subject: [PATCH 081/327] feat: update --- ...leAdminGetBillFlowInfoResultModelItems.php | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php b/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php new file mode 100644 index 000000000..8c425108a --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php @@ -0,0 +1,707 @@ + 'int', +'total_unclear_amount' => 'string', +'amount' => 'int', +'order_id' => 'string', +'bill_type' => 'string', +'discount_amount' => 'string', +'actual_total_pay_amount' => 'int', +'refund_order_id' => 'string', +'consume_period_end_time' => 'int', +'pay_amount' => 'int', +'tenant_name' => 'string', +'settlement_status' => 'string', +'voucher_pay_amount' => 'string', +'accounting_period' => 'string', +'consume_type' => 'string', +'commodity_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'consume_period_start_time' => 'int64', +'total_unclear_amount' => null, +'amount' => 'int64', +'order_id' => null, +'bill_type' => null, +'discount_amount' => null, +'actual_total_pay_amount' => 'int64', +'refund_order_id' => null, +'consume_period_end_time' => 'int64', +'pay_amount' => 'int64', +'tenant_name' => null, +'settlement_status' => null, +'voucher_pay_amount' => null, +'accounting_period' => null, +'consume_type' => null, +'commodity_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'consume_period_start_time' => 'consumePeriodStartTime', +'total_unclear_amount' => 'totalUnclearAmount', +'amount' => 'amount', +'order_id' => 'orderId', +'bill_type' => 'billType', +'discount_amount' => 'discountAmount', +'actual_total_pay_amount' => 'actualTotalPayAmount', +'refund_order_id' => 'refundOrderId', +'consume_period_end_time' => 'consumePeriodEndTime', +'pay_amount' => 'payAmount', +'tenant_name' => 'tenantName', +'settlement_status' => 'settlementStatus', +'voucher_pay_amount' => 'voucherPayAmount', +'accounting_period' => 'accountingPeriod', +'consume_type' => 'consumeType', +'commodity_name' => 'commodityName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'consume_period_start_time' => 'setConsumePeriodStartTime', +'total_unclear_amount' => 'setTotalUnclearAmount', +'amount' => 'setAmount', +'order_id' => 'setOrderId', +'bill_type' => 'setBillType', +'discount_amount' => 'setDiscountAmount', +'actual_total_pay_amount' => 'setActualTotalPayAmount', +'refund_order_id' => 'setRefundOrderId', +'consume_period_end_time' => 'setConsumePeriodEndTime', +'pay_amount' => 'setPayAmount', +'tenant_name' => 'setTenantName', +'settlement_status' => 'setSettlementStatus', +'voucher_pay_amount' => 'setVoucherPayAmount', +'accounting_period' => 'setAccountingPeriod', +'consume_type' => 'setConsumeType', +'commodity_name' => 'setCommodityName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'consume_period_start_time' => 'getConsumePeriodStartTime', +'total_unclear_amount' => 'getTotalUnclearAmount', +'amount' => 'getAmount', +'order_id' => 'getOrderId', +'bill_type' => 'getBillType', +'discount_amount' => 'getDiscountAmount', +'actual_total_pay_amount' => 'getActualTotalPayAmount', +'refund_order_id' => 'getRefundOrderId', +'consume_period_end_time' => 'getConsumePeriodEndTime', +'pay_amount' => 'getPayAmount', +'tenant_name' => 'getTenantName', +'settlement_status' => 'getSettlementStatus', +'voucher_pay_amount' => 'getVoucherPayAmount', +'accounting_period' => 'getAccountingPeriod', +'consume_type' => 'getConsumeType', +'commodity_name' => 'getCommodityName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['consume_period_start_time'] = isset($data['consume_period_start_time']) ? $data['consume_period_start_time'] : null; + $this->container['total_unclear_amount'] = isset($data['total_unclear_amount']) ? $data['total_unclear_amount'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['bill_type'] = isset($data['bill_type']) ? $data['bill_type'] : null; + $this->container['discount_amount'] = isset($data['discount_amount']) ? $data['discount_amount'] : null; + $this->container['actual_total_pay_amount'] = isset($data['actual_total_pay_amount']) ? $data['actual_total_pay_amount'] : null; + $this->container['refund_order_id'] = isset($data['refund_order_id']) ? $data['refund_order_id'] : null; + $this->container['consume_period_end_time'] = isset($data['consume_period_end_time']) ? $data['consume_period_end_time'] : null; + $this->container['pay_amount'] = isset($data['pay_amount']) ? $data['pay_amount'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['settlement_status'] = isset($data['settlement_status']) ? $data['settlement_status'] : null; + $this->container['voucher_pay_amount'] = isset($data['voucher_pay_amount']) ? $data['voucher_pay_amount'] : null; + $this->container['accounting_period'] = isset($data['accounting_period']) ? $data['accounting_period'] : null; + $this->container['consume_type'] = isset($data['consume_type']) ? $data['consume_type'] : null; + $this->container['commodity_name'] = isset($data['commodity_name']) ? $data['commodity_name'] : null; + } + + + /** + * Gets consume_period_start_time + * + * @return int + */ + public function getConsumePeriodStartTime() + { + return $this->container['consume_period_start_time']; + } + + /** + * Sets consume_period_start_time + * + * @param int $consume_period_start_time consume_period_start_time + * + * @return $this + */ + public function setConsumePeriodStartTime($consume_period_start_time) + { + $this->container['consume_period_start_time'] = $consume_period_start_time; + + return $this; + } + + /** + * Gets total_unclear_amount + * + * @return string + */ + public function getTotalUnclearAmount() + { + return $this->container['total_unclear_amount']; + } + + /** + * Sets total_unclear_amount + * + * @param string $total_unclear_amount total_unclear_amount + * + * @return $this + */ + public function setTotalUnclearAmount($total_unclear_amount) + { + $this->container['total_unclear_amount'] = $total_unclear_amount; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id order_id + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets bill_type + * + * @return string + */ + public function getBillType() + { + return $this->container['bill_type']; + } + + /** + * Sets bill_type + * + * @param string $bill_type bill_type + * + * @return $this + */ + public function setBillType($bill_type) + { + $this->container['bill_type'] = $bill_type; + + return $this; + } + + /** + * Gets discount_amount + * + * @return string + */ + public function getDiscountAmount() + { + return $this->container['discount_amount']; + } + + /** + * Sets discount_amount + * + * @param string $discount_amount discount_amount + * + * @return $this + */ + public function setDiscountAmount($discount_amount) + { + $this->container['discount_amount'] = $discount_amount; + + return $this; + } + + /** + * Gets actual_total_pay_amount + * + * @return int + */ + public function getActualTotalPayAmount() + { + return $this->container['actual_total_pay_amount']; + } + + /** + * Sets actual_total_pay_amount + * + * @param int $actual_total_pay_amount actual_total_pay_amount + * + * @return $this + */ + public function setActualTotalPayAmount($actual_total_pay_amount) + { + $this->container['actual_total_pay_amount'] = $actual_total_pay_amount; + + return $this; + } + + /** + * Gets refund_order_id + * + * @return string + */ + public function getRefundOrderId() + { + return $this->container['refund_order_id']; + } + + /** + * Sets refund_order_id + * + * @param string $refund_order_id refund_order_id + * + * @return $this + */ + public function setRefundOrderId($refund_order_id) + { + $this->container['refund_order_id'] = $refund_order_id; + + return $this; + } + + /** + * Gets consume_period_end_time + * + * @return int + */ + public function getConsumePeriodEndTime() + { + return $this->container['consume_period_end_time']; + } + + /** + * Sets consume_period_end_time + * + * @param int $consume_period_end_time consume_period_end_time + * + * @return $this + */ + public function setConsumePeriodEndTime($consume_period_end_time) + { + $this->container['consume_period_end_time'] = $consume_period_end_time; + + return $this; + } + + /** + * Gets pay_amount + * + * @return int + */ + public function getPayAmount() + { + return $this->container['pay_amount']; + } + + /** + * Sets pay_amount + * + * @param int $pay_amount pay_amount + * + * @return $this + */ + public function setPayAmount($pay_amount) + { + $this->container['pay_amount'] = $pay_amount; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name tenant_name + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + return $this; + } + + /** + * Gets settlement_status + * + * @return string + */ + public function getSettlementStatus() + { + return $this->container['settlement_status']; + } + + /** + * Sets settlement_status + * + * @param string $settlement_status settlement_status + * + * @return $this + */ + public function setSettlementStatus($settlement_status) + { + $this->container['settlement_status'] = $settlement_status; + + return $this; + } + + /** + * Gets voucher_pay_amount + * + * @return string + */ + public function getVoucherPayAmount() + { + return $this->container['voucher_pay_amount']; + } + + /** + * Sets voucher_pay_amount + * + * @param string $voucher_pay_amount voucher_pay_amount + * + * @return $this + */ + public function setVoucherPayAmount($voucher_pay_amount) + { + $this->container['voucher_pay_amount'] = $voucher_pay_amount; + + return $this; + } + + /** + * Gets accounting_period + * + * @return string + */ + public function getAccountingPeriod() + { + return $this->container['accounting_period']; + } + + /** + * Sets accounting_period + * + * @param string $accounting_period accounting_period + * + * @return $this + */ + public function setAccountingPeriod($accounting_period) + { + $this->container['accounting_period'] = $accounting_period; + + return $this; + } + + /** + * Gets consume_type + * + * @return string + */ + public function getConsumeType() + { + return $this->container['consume_type']; + } + + /** + * Sets consume_type + * + * @param string $consume_type consume_type + * + * @return $this + */ + public function setConsumeType($consume_type) + { + $this->container['consume_type'] = $consume_type; + + return $this; + } + + /** + * Gets commodity_name + * + * @return string + */ + public function getCommodityName() + { + return $this->container['commodity_name']; + } + + /** + * Sets commodity_name + * + * @param string $commodity_name commodity_name + * + * @return $this + */ + public function setCommodityName($commodity_name) + { + $this->container['commodity_name'] = $commodity_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0b836115731f6de1cddd1f8c3e820b7e743cc7b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:11:59 +0800 Subject: [PATCH 082/327] feat: update --- ...dminGetGameInstanceContainerRatioForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php new file mode 100644 index 000000000..ca7976400 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php @@ -0,0 +1,287 @@ + 'string', +'games' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_instance_id' => null, +'games' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_instance_id' => 'commodityInstanceId', +'games' => 'games' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_instance_id' => 'setCommodityInstanceId', +'games' => 'setGames' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_instance_id' => 'getCommodityInstanceId', +'games' => 'getGames' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + $this->container['games'] = isset($data['games']) ? $data['games'] : null; + } + + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + + /** + * Gets games + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[] + */ + public function getGames() + { + return $this->container['games']; + } + + /** + * Sets games + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[] $games games + * + * @return $this + */ + public function setGames($games) + { + $this->container['games'] = $games; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0cd73ca35a8e7cbbc46519e663ecdf0a111ea6eb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:01 +0800 Subject: [PATCH 083/327] feat: update --- ...etGameInstanceContainerRatioFormsGames.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php new file mode 100644 index 000000000..b45b5ed58 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php @@ -0,0 +1,287 @@ + 'string', +'mix_version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 890e6da78557725e8b701f2032b434df195592b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:02 +0800 Subject: [PATCH 084/327] feat: update --- ...minGetGameInstanceContainerRatioResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php new file mode 100644 index 000000000..123d8abed --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bb4306a5da98a47d94c4cd47e876dcb23f80321d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:03 +0800 Subject: [PATCH 085/327] feat: update --- ...tGameInstanceContainerRatioResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php new file mode 100644 index 000000000..8b86852c1 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php @@ -0,0 +1,317 @@ + 'string', +'mix_version_id' => 'string', +'container_ratio' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null, +'container_ratio' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId', +'container_ratio' => 'containerRatio' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId', +'container_ratio' => 'setContainerRatio' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId', +'container_ratio' => 'getContainerRatio' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + $this->container['container_ratio'] = isset($data['container_ratio']) ? $data['container_ratio'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + + /** + * Gets container_ratio + * + * @return string + */ + public function getContainerRatio() + { + return $this->container['container_ratio']; + } + + /** + * Sets container_ratio + * + * @param string $container_ratio container_ratio + * + * @return $this + */ + public function setContainerRatio($container_ratio) + { + $this->container['container_ratio'] = $container_ratio; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 19b1c34824f1db99dc643d2df3d7e8d28976761e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:05 +0800 Subject: [PATCH 086/327] feat: update --- ...leAdminGetGameRecommendedInstanceForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php new file mode 100644 index 000000000..8885e5cd0 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame', +'commodity_instance_ids' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game' => null, +'commodity_instance_ids' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game' => 'game', +'commodity_instance_ids' => 'commodityInstanceIds' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game' => 'setGame', +'commodity_instance_ids' => 'setCommodityInstanceIds' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game' => 'getGame', +'commodity_instance_ids' => 'getCommodityInstanceIds' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game'] = isset($data['game']) ? $data['game'] : null; + $this->container['commodity_instance_ids'] = isset($data['commodity_instance_ids']) ? $data['commodity_instance_ids'] : null; + } + + + /** + * Gets game + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame + */ + public function getGame() + { + return $this->container['game']; + } + + /** + * Sets game + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame $game game + * + * @return $this + */ + public function setGame($game) + { + $this->container['game'] = $game; + + return $this; + } + + /** + * Gets commodity_instance_ids + * + * @return string[] + */ + public function getCommodityInstanceIds() + { + return $this->container['commodity_instance_ids']; + } + + /** + * Sets commodity_instance_ids + * + * @param string[] $commodity_instance_ids commodity_instance_ids + * + * @return $this + */ + public function setCommodityInstanceIds($commodity_instance_ids) + { + $this->container['commodity_instance_ids'] = $commodity_instance_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 03f488a95b3f24b560a3edbaa0c7d18256738bf1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:06 +0800 Subject: [PATCH 087/327] feat: update --- ...minGetGameRecommendedInstanceFormsGame.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php new file mode 100644 index 000000000..f2c593cb3 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php @@ -0,0 +1,287 @@ + 'string', +'mix_version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0ec6edb23b5290422055b9b57c2862a402735e25 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:07 +0800 Subject: [PATCH 088/327] feat: update --- ...eAdminGetGameRecommendedInstanceResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php new file mode 100644 index 000000000..705b57923 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6fb794014fad95e804849e1ffb4ab7ef6260a49d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:09 +0800 Subject: [PATCH 089/327] feat: update --- ...nGetGameRecommendedInstanceResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php new file mode 100644 index 000000000..55cb4f451 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_instance_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_instance_id' => 'commodityInstanceId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_instance_id' => 'setCommodityInstanceId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_instance_id' => 'getCommodityInstanceId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + } + + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 93d1806cfd1eb6b48294be4ba9f3b5cb45b81a81 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:10 +0800 Subject: [PATCH 090/327] feat: update --- lib/Model/ConsoleAdminGetGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionForms.php diff --git a/lib/Model/ConsoleAdminGetGameVersionForms.php b/lib/Model/ConsoleAdminGetGameVersionForms.php new file mode 100644 index 000000000..d9e33c794 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 18efcaef19dce75be826654fe4a5d9090723f423 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:11 +0800 Subject: [PATCH 091/327] feat: update --- ...onsoleAdminGetGameVersionProgressForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressForms.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressForms.php b/lib/Model/ConsoleAdminGetGameVersionProgressForms.php new file mode 100644 index 000000000..040ee9892 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4318bb85de8693d7b5947f529d63138f9ef45507 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:13 +0800 Subject: [PATCH 092/327] feat: update --- ...nsoleAdminGetGameVersionProgressResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressResult.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressResult.php b/lib/Model/ConsoleAdminGetGameVersionProgressResult.php new file mode 100644 index 000000000..481ef499d --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3e8355ececfa8e3e15f1daa0f72955413024e95e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:14 +0800 Subject: [PATCH 093/327] feat: update --- ...AdminGetGameVersionProgressResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php b/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php new file mode 100644 index 000000000..66fc536e0 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php @@ -0,0 +1,347 @@ + 'map[string,string]', +'description' => 'string', +'event' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'extra' => null, +'description' => null, +'event' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'extra' => 'extra', +'description' => 'description', +'event' => 'event', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'extra' => 'setExtra', +'description' => 'setDescription', +'event' => 'setEvent', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'extra' => 'getExtra', +'description' => 'getDescription', +'event' => 'getEvent', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['extra'] = isset($data['extra']) ? $data['extra'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['event'] = isset($data['event']) ? $data['event'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets extra + * + * @return map[string,string] + */ + public function getExtra() + { + return $this->container['extra']; + } + + /** + * Sets extra + * + * @param map[string,string] $extra 提供不固定的额外信息 + * + * @return $this + */ + public function setExtra($extra) + { + $this->container['extra'] = $extra; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets event + * + * @return string + */ + public function getEvent() + { + return $this->container['event']; + } + + /** + * Sets event + * + * @param string $event event + * + * @return $this + */ + public function setEvent($event) + { + $this->container['event'] = $event; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fce379f7ba8c0bc3f0ea464d9428abbb175fbf40 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:15 +0800 Subject: [PATCH 094/327] feat: update --- .../ConsoleAdminGetGameVersionResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionResult.php diff --git a/lib/Model/ConsoleAdminGetGameVersionResult.php b/lib/Model/ConsoleAdminGetGameVersionResult.php new file mode 100644 index 000000000..400734bb0 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c33103d8ca146666a78c4373e2c5122f123d588b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:17 +0800 Subject: [PATCH 095/327] feat: update --- .../ConsoleAdminGetGameVersionResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameVersionResultModel.php b/lib/Model/ConsoleAdminGetGameVersionResultModel.php new file mode 100644 index 000000000..4929beeab --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionResultModel.php @@ -0,0 +1,287 @@ + 'string', +'version_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'version_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'version_name' => 'versionName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'version_name' => 'setVersionName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'version_name' => 'getVersionName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 375383862602afda7f6619c91f4e75c1c9c0ebca Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:18 +0800 Subject: [PATCH 096/327] feat: update --- lib/Model/ConsoleAdminGetOrderForms.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderForms.php diff --git a/lib/Model/ConsoleAdminGetOrderForms.php b/lib/Model/ConsoleAdminGetOrderForms.php new file mode 100644 index 000000000..98d7a65cb --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'order_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'order_id' => 'orderId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'order_id' => 'setOrderId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'order_id' => 'getOrderId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + } + + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单号 + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 429ee0e0427950ac828531a5dd33acacd5575414 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:19 +0800 Subject: [PATCH 097/327] feat: update --- lib/Model/ConsoleAdminGetOrderResult.php | 347 +++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResult.php diff --git a/lib/Model/ConsoleAdminGetOrderResult.php b/lib/Model/ConsoleAdminGetOrderResult.php new file mode 100644 index 000000000..577fdcf8a --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7877d15af0f4e03cdfcb43965a6eb9153ec85d54 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:21 +0800 Subject: [PATCH 098/327] feat: update --- lib/Model/ConsoleAdminGetOrderResultModel.php | 1427 +++++++++++++++++ 1 file changed, 1427 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResultModel.php diff --git a/lib/Model/ConsoleAdminGetOrderResultModel.php b/lib/Model/ConsoleAdminGetOrderResultModel.php new file mode 100644 index 000000000..966955f72 --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResultModel.php @@ -0,0 +1,1427 @@ + 'string', +'order_id' => 'string', +'attribute_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[]', +'charge_type' => 'string', +'discount_amount' => 'int', +'credit_pay_amount' => 'int', +'downgrade_refund_amount' => 'int', +'downgrade_credit_refund_amount' => 'int', +'discount_detail' => 'string', +'promotion_name' => 'string', +'instance_id' => 'string', +'pay_amount' => 'int', +'tenant_name' => 'string', +'commodity_code' => 'string', +'auto_renew' => 'bool', +'currency' => 'string', +'start_time' => 'int', +'downgrade_balance_refund_amount' => 'int', +'primary_price_type' => 'string', +'finish_time' => 'int', +'amount' => 'int', +'quantity' => 'int', +'delivery_end_time' => 'int', +'refund_time' => 'int', +'buy_duration_unit' => 'string', +'primary_charge_item_code' => 'string', +'pay_user_id' => 'string', +'category_code' => 'string', +'buy_duration' => 'int', +'balance_pay_amount' => 'int', +'actual_pay_amount' => 'int', +'create_time' => 'int', +'tenant_id' => 'int', +'payment_end_time' => 'int', +'buy_type' => 'string', +'voucher_pay_amount' => 'int', +'buyer_user_id' => 'string', +'end_time' => 'int', +'commodity_name' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'order_type' => null, +'order_id' => null, +'attribute_list' => null, +'charge_type' => null, +'discount_amount' => 'int64', +'credit_pay_amount' => 'int64', +'downgrade_refund_amount' => 'int64', +'downgrade_credit_refund_amount' => 'int64', +'discount_detail' => null, +'promotion_name' => null, +'instance_id' => null, +'pay_amount' => 'int64', +'tenant_name' => null, +'commodity_code' => null, +'auto_renew' => null, +'currency' => null, +'start_time' => 'int64', +'downgrade_balance_refund_amount' => 'int64', +'primary_price_type' => null, +'finish_time' => 'int64', +'amount' => 'int64', +'quantity' => null, +'delivery_end_time' => 'int64', +'refund_time' => 'int64', +'buy_duration_unit' => null, +'primary_charge_item_code' => null, +'pay_user_id' => null, +'category_code' => null, +'buy_duration' => 'int64', +'balance_pay_amount' => 'int64', +'actual_pay_amount' => 'int64', +'create_time' => 'int64', +'tenant_id' => 'int64', +'payment_end_time' => 'int64', +'buy_type' => null, +'voucher_pay_amount' => 'int64', +'buyer_user_id' => null, +'end_time' => 'int64', +'commodity_name' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'order_type' => 'orderType', +'order_id' => 'orderId', +'attribute_list' => 'attributeList', +'charge_type' => 'chargeType', +'discount_amount' => 'discountAmount', +'credit_pay_amount' => 'creditPayAmount', +'downgrade_refund_amount' => 'downgradeRefundAmount', +'downgrade_credit_refund_amount' => 'downgradeCreditRefundAmount', +'discount_detail' => 'discountDetail', +'promotion_name' => 'promotionName', +'instance_id' => 'instanceId', +'pay_amount' => 'payAmount', +'tenant_name' => 'tenantName', +'commodity_code' => 'commodityCode', +'auto_renew' => 'autoRenew', +'currency' => 'currency', +'start_time' => 'startTime', +'downgrade_balance_refund_amount' => 'downgradeBalanceRefundAmount', +'primary_price_type' => 'primaryPriceType', +'finish_time' => 'finishTime', +'amount' => 'amount', +'quantity' => 'quantity', +'delivery_end_time' => 'deliveryEndTime', +'refund_time' => 'refundTime', +'buy_duration_unit' => 'buyDurationUnit', +'primary_charge_item_code' => 'primaryChargeItemCode', +'pay_user_id' => 'payUserId', +'category_code' => 'categoryCode', +'buy_duration' => 'buyDuration', +'balance_pay_amount' => 'balancePayAmount', +'actual_pay_amount' => 'actualPayAmount', +'create_time' => 'createTime', +'tenant_id' => 'tenantId', +'payment_end_time' => 'paymentEndTime', +'buy_type' => 'buyType', +'voucher_pay_amount' => 'voucherPayAmount', +'buyer_user_id' => 'buyerUserId', +'end_time' => 'endTime', +'commodity_name' => 'commodityName', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'order_type' => 'setOrderType', +'order_id' => 'setOrderId', +'attribute_list' => 'setAttributeList', +'charge_type' => 'setChargeType', +'discount_amount' => 'setDiscountAmount', +'credit_pay_amount' => 'setCreditPayAmount', +'downgrade_refund_amount' => 'setDowngradeRefundAmount', +'downgrade_credit_refund_amount' => 'setDowngradeCreditRefundAmount', +'discount_detail' => 'setDiscountDetail', +'promotion_name' => 'setPromotionName', +'instance_id' => 'setInstanceId', +'pay_amount' => 'setPayAmount', +'tenant_name' => 'setTenantName', +'commodity_code' => 'setCommodityCode', +'auto_renew' => 'setAutoRenew', +'currency' => 'setCurrency', +'start_time' => 'setStartTime', +'downgrade_balance_refund_amount' => 'setDowngradeBalanceRefundAmount', +'primary_price_type' => 'setPrimaryPriceType', +'finish_time' => 'setFinishTime', +'amount' => 'setAmount', +'quantity' => 'setQuantity', +'delivery_end_time' => 'setDeliveryEndTime', +'refund_time' => 'setRefundTime', +'buy_duration_unit' => 'setBuyDurationUnit', +'primary_charge_item_code' => 'setPrimaryChargeItemCode', +'pay_user_id' => 'setPayUserId', +'category_code' => 'setCategoryCode', +'buy_duration' => 'setBuyDuration', +'balance_pay_amount' => 'setBalancePayAmount', +'actual_pay_amount' => 'setActualPayAmount', +'create_time' => 'setCreateTime', +'tenant_id' => 'setTenantId', +'payment_end_time' => 'setPaymentEndTime', +'buy_type' => 'setBuyType', +'voucher_pay_amount' => 'setVoucherPayAmount', +'buyer_user_id' => 'setBuyerUserId', +'end_time' => 'setEndTime', +'commodity_name' => 'setCommodityName', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'order_type' => 'getOrderType', +'order_id' => 'getOrderId', +'attribute_list' => 'getAttributeList', +'charge_type' => 'getChargeType', +'discount_amount' => 'getDiscountAmount', +'credit_pay_amount' => 'getCreditPayAmount', +'downgrade_refund_amount' => 'getDowngradeRefundAmount', +'downgrade_credit_refund_amount' => 'getDowngradeCreditRefundAmount', +'discount_detail' => 'getDiscountDetail', +'promotion_name' => 'getPromotionName', +'instance_id' => 'getInstanceId', +'pay_amount' => 'getPayAmount', +'tenant_name' => 'getTenantName', +'commodity_code' => 'getCommodityCode', +'auto_renew' => 'getAutoRenew', +'currency' => 'getCurrency', +'start_time' => 'getStartTime', +'downgrade_balance_refund_amount' => 'getDowngradeBalanceRefundAmount', +'primary_price_type' => 'getPrimaryPriceType', +'finish_time' => 'getFinishTime', +'amount' => 'getAmount', +'quantity' => 'getQuantity', +'delivery_end_time' => 'getDeliveryEndTime', +'refund_time' => 'getRefundTime', +'buy_duration_unit' => 'getBuyDurationUnit', +'primary_charge_item_code' => 'getPrimaryChargeItemCode', +'pay_user_id' => 'getPayUserId', +'category_code' => 'getCategoryCode', +'buy_duration' => 'getBuyDuration', +'balance_pay_amount' => 'getBalancePayAmount', +'actual_pay_amount' => 'getActualPayAmount', +'create_time' => 'getCreateTime', +'tenant_id' => 'getTenantId', +'payment_end_time' => 'getPaymentEndTime', +'buy_type' => 'getBuyType', +'voucher_pay_amount' => 'getVoucherPayAmount', +'buyer_user_id' => 'getBuyerUserId', +'end_time' => 'getEndTime', +'commodity_name' => 'getCommodityName', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_type'] = isset($data['order_type']) ? $data['order_type'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['attribute_list'] = isset($data['attribute_list']) ? $data['attribute_list'] : null; + $this->container['charge_type'] = isset($data['charge_type']) ? $data['charge_type'] : null; + $this->container['discount_amount'] = isset($data['discount_amount']) ? $data['discount_amount'] : null; + $this->container['credit_pay_amount'] = isset($data['credit_pay_amount']) ? $data['credit_pay_amount'] : null; + $this->container['downgrade_refund_amount'] = isset($data['downgrade_refund_amount']) ? $data['downgrade_refund_amount'] : null; + $this->container['downgrade_credit_refund_amount'] = isset($data['downgrade_credit_refund_amount']) ? $data['downgrade_credit_refund_amount'] : null; + $this->container['discount_detail'] = isset($data['discount_detail']) ? $data['discount_detail'] : null; + $this->container['promotion_name'] = isset($data['promotion_name']) ? $data['promotion_name'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['pay_amount'] = isset($data['pay_amount']) ? $data['pay_amount'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['auto_renew'] = isset($data['auto_renew']) ? $data['auto_renew'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['start_time'] = isset($data['start_time']) ? $data['start_time'] : null; + $this->container['downgrade_balance_refund_amount'] = isset($data['downgrade_balance_refund_amount']) ? $data['downgrade_balance_refund_amount'] : null; + $this->container['primary_price_type'] = isset($data['primary_price_type']) ? $data['primary_price_type'] : null; + $this->container['finish_time'] = isset($data['finish_time']) ? $data['finish_time'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['delivery_end_time'] = isset($data['delivery_end_time']) ? $data['delivery_end_time'] : null; + $this->container['refund_time'] = isset($data['refund_time']) ? $data['refund_time'] : null; + $this->container['buy_duration_unit'] = isset($data['buy_duration_unit']) ? $data['buy_duration_unit'] : null; + $this->container['primary_charge_item_code'] = isset($data['primary_charge_item_code']) ? $data['primary_charge_item_code'] : null; + $this->container['pay_user_id'] = isset($data['pay_user_id']) ? $data['pay_user_id'] : null; + $this->container['category_code'] = isset($data['category_code']) ? $data['category_code'] : null; + $this->container['buy_duration'] = isset($data['buy_duration']) ? $data['buy_duration'] : null; + $this->container['balance_pay_amount'] = isset($data['balance_pay_amount']) ? $data['balance_pay_amount'] : null; + $this->container['actual_pay_amount'] = isset($data['actual_pay_amount']) ? $data['actual_pay_amount'] : null; + $this->container['create_time'] = isset($data['create_time']) ? $data['create_time'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['payment_end_time'] = isset($data['payment_end_time']) ? $data['payment_end_time'] : null; + $this->container['buy_type'] = isset($data['buy_type']) ? $data['buy_type'] : null; + $this->container['voucher_pay_amount'] = isset($data['voucher_pay_amount']) ? $data['voucher_pay_amount'] : null; + $this->container['buyer_user_id'] = isset($data['buyer_user_id']) ? $data['buyer_user_id'] : null; + $this->container['end_time'] = isset($data['end_time']) ? $data['end_time'] : null; + $this->container['commodity_name'] = isset($data['commodity_name']) ? $data['commodity_name'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets order_type + * + * @return string + */ + public function getOrderType() + { + return $this->container['order_type']; + } + + /** + * Sets order_type + * + * @param string $order_type 订单类型 + * + * @return $this + */ + public function setOrderType($order_type) + { + $this->container['order_type'] = $order_type; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单号 + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets attribute_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[] + */ + public function getAttributeList() + { + return $this->container['attribute_list']; + } + + /** + * Sets attribute_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[] $attribute_list 配置详情 + * + * @return $this + */ + public function setAttributeList($attribute_list) + { + $this->container['attribute_list'] = $attribute_list; + + return $this; + } + + /** + * Gets charge_type + * + * @return string + */ + public function getChargeType() + { + return $this->container['charge_type']; + } + + /** + * Sets charge_type + * + * @param string $charge_type 付费方式 + * + * @return $this + */ + public function setChargeType($charge_type) + { + $this->container['charge_type'] = $charge_type; + + return $this; + } + + /** + * Gets discount_amount + * + * @return int + */ + public function getDiscountAmount() + { + return $this->container['discount_amount']; + } + + /** + * Sets discount_amount + * + * @param int $discount_amount 优惠金额(单位:分) + * + * @return $this + */ + public function setDiscountAmount($discount_amount) + { + $this->container['discount_amount'] = $discount_amount; + + return $this; + } + + /** + * Gets credit_pay_amount + * + * @return int + */ + public function getCreditPayAmount() + { + return $this->container['credit_pay_amount']; + } + + /** + * Sets credit_pay_amount + * + * @param int $credit_pay_amount 信控支付金额(单位:分) + * + * @return $this + */ + public function setCreditPayAmount($credit_pay_amount) + { + $this->container['credit_pay_amount'] = $credit_pay_amount; + + return $this; + } + + /** + * Gets downgrade_refund_amount + * + * @return int + */ + public function getDowngradeRefundAmount() + { + return $this->container['downgrade_refund_amount']; + } + + /** + * Sets downgrade_refund_amount + * + * @param int $downgrade_refund_amount 降配退款金额 + * + * @return $this + */ + public function setDowngradeRefundAmount($downgrade_refund_amount) + { + $this->container['downgrade_refund_amount'] = $downgrade_refund_amount; + + return $this; + } + + /** + * Gets downgrade_credit_refund_amount + * + * @return int + */ + public function getDowngradeCreditRefundAmount() + { + return $this->container['downgrade_credit_refund_amount']; + } + + /** + * Sets downgrade_credit_refund_amount + * + * @param int $downgrade_credit_refund_amount 降配信控应退款金额 + * + * @return $this + */ + public function setDowngradeCreditRefundAmount($downgrade_credit_refund_amount) + { + $this->container['downgrade_credit_refund_amount'] = $downgrade_credit_refund_amount; + + return $this; + } + + /** + * Gets discount_detail + * + * @return string + */ + public function getDiscountDetail() + { + return $this->container['discount_detail']; + } + + /** + * Sets discount_detail + * + * @param string $discount_detail 优惠详细信息 + * + * @return $this + */ + public function setDiscountDetail($discount_detail) + { + $this->container['discount_detail'] = $discount_detail; + + return $this; + } + + /** + * Gets promotion_name + * + * @return string + */ + public function getPromotionName() + { + return $this->container['promotion_name']; + } + + /** + * Sets promotion_name + * + * @param string $promotion_name 优惠名称 + * + * @return $this + */ + public function setPromotionName($promotion_name) + { + $this->container['promotion_name'] = $promotion_name; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets pay_amount + * + * @return int + */ + public function getPayAmount() + { + return $this->container['pay_amount']; + } + + /** + * Sets pay_amount + * + * @param int $pay_amount 应付金额(单位:分) + * + * @return $this + */ + public function setPayAmount($pay_amount) + { + $this->container['pay_amount'] = $pay_amount; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name 租户名称 + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets auto_renew + * + * @return bool + */ + public function getAutoRenew() + { + return $this->container['auto_renew']; + } + + /** + * Sets auto_renew + * + * @param bool $auto_renew 是否自动续费 + * + * @return $this + */ + public function setAutoRenew($auto_renew) + { + $this->container['auto_renew'] = $auto_renew; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency 币种 + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets start_time + * + * @return int + */ + public function getStartTime() + { + return $this->container['start_time']; + } + + /** + * Sets start_time + * + * @param int $start_time 开始时间 + * + * @return $this + */ + public function setStartTime($start_time) + { + $this->container['start_time'] = $start_time; + + return $this; + } + + /** + * Gets downgrade_balance_refund_amount + * + * @return int + */ + public function getDowngradeBalanceRefundAmount() + { + return $this->container['downgrade_balance_refund_amount']; + } + + /** + * Sets downgrade_balance_refund_amount + * + * @param int $downgrade_balance_refund_amount 降配现金应退款金额 + * + * @return $this + */ + public function setDowngradeBalanceRefundAmount($downgrade_balance_refund_amount) + { + $this->container['downgrade_balance_refund_amount'] = $downgrade_balance_refund_amount; + + return $this; + } + + /** + * Gets primary_price_type + * + * @return string + */ + public function getPrimaryPriceType() + { + return $this->container['primary_price_type']; + } + + /** + * Sets primary_price_type + * + * @param string $primary_price_type 主计费项价格类型 + * + * @return $this + */ + public function setPrimaryPriceType($primary_price_type) + { + $this->container['primary_price_type'] = $primary_price_type; + + return $this; + } + + /** + * Gets finish_time + * + * @return int + */ + public function getFinishTime() + { + return $this->container['finish_time']; + } + + /** + * Sets finish_time + * + * @param int $finish_time 订单完成时间 + * + * @return $this + */ + public function setFinishTime($finish_time) + { + $this->container['finish_time'] = $finish_time; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount 订单总金额(单位:分) + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity 数量 + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets delivery_end_time + * + * @return int + */ + public function getDeliveryEndTime() + { + return $this->container['delivery_end_time']; + } + + /** + * Sets delivery_end_time + * + * @param int $delivery_end_time 发货完成时间 + * + * @return $this + */ + public function setDeliveryEndTime($delivery_end_time) + { + $this->container['delivery_end_time'] = $delivery_end_time; + + return $this; + } + + /** + * Gets refund_time + * + * @return int + */ + public function getRefundTime() + { + return $this->container['refund_time']; + } + + /** + * Sets refund_time + * + * @param int $refund_time 售中退款时间 + * + * @return $this + */ + public function setRefundTime($refund_time) + { + $this->container['refund_time'] = $refund_time; + + return $this; + } + + /** + * Gets buy_duration_unit + * + * @return string + */ + public function getBuyDurationUnit() + { + return $this->container['buy_duration_unit']; + } + + /** + * Sets buy_duration_unit + * + * @param string $buy_duration_unit 购买时长单位 + * + * @return $this + */ + public function setBuyDurationUnit($buy_duration_unit) + { + $this->container['buy_duration_unit'] = $buy_duration_unit; + + return $this; + } + + /** + * Gets primary_charge_item_code + * + * @return string + */ + public function getPrimaryChargeItemCode() + { + return $this->container['primary_charge_item_code']; + } + + /** + * Sets primary_charge_item_code + * + * @param string $primary_charge_item_code 主计费项编码 + * + * @return $this + */ + public function setPrimaryChargeItemCode($primary_charge_item_code) + { + $this->container['primary_charge_item_code'] = $primary_charge_item_code; + + return $this; + } + + /** + * Gets pay_user_id + * + * @return string + */ + public function getPayUserId() + { + return $this->container['pay_user_id']; + } + + /** + * Sets pay_user_id + * + * @param string $pay_user_id 支付用户ID + * + * @return $this + */ + public function setPayUserId($pay_user_id) + { + $this->container['pay_user_id'] = $pay_user_id; + + return $this; + } + + /** + * Gets category_code + * + * @return string + */ + public function getCategoryCode() + { + return $this->container['category_code']; + } + + /** + * Sets category_code + * + * @param string $category_code 类目编码 + * + * @return $this + */ + public function setCategoryCode($category_code) + { + $this->container['category_code'] = $category_code; + + return $this; + } + + /** + * Gets buy_duration + * + * @return int + */ + public function getBuyDuration() + { + return $this->container['buy_duration']; + } + + /** + * Sets buy_duration + * + * @param int $buy_duration 购买时长 + * + * @return $this + */ + public function setBuyDuration($buy_duration) + { + $this->container['buy_duration'] = $buy_duration; + + return $this; + } + + /** + * Gets balance_pay_amount + * + * @return int + */ + public function getBalancePayAmount() + { + return $this->container['balance_pay_amount']; + } + + /** + * Sets balance_pay_amount + * + * @param int $balance_pay_amount 余额支付金额(单位:分) + * + * @return $this + */ + public function setBalancePayAmount($balance_pay_amount) + { + $this->container['balance_pay_amount'] = $balance_pay_amount; + + return $this; + } + + /** + * Gets actual_pay_amount + * + * @return int + */ + public function getActualPayAmount() + { + return $this->container['actual_pay_amount']; + } + + /** + * Sets actual_pay_amount + * + * @param int $actual_pay_amount 实付金额(单位:分) + * + * @return $this + */ + public function setActualPayAmount($actual_pay_amount) + { + $this->container['actual_pay_amount'] = $actual_pay_amount; + + return $this; + } + + /** + * Gets create_time + * + * @return int + */ + public function getCreateTime() + { + return $this->container['create_time']; + } + + /** + * Sets create_time + * + * @param int $create_time 订单创建时间 + * + * @return $this + */ + public function setCreateTime($create_time) + { + $this->container['create_time'] = $create_time; + + 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 payment_end_time + * + * @return int + */ + public function getPaymentEndTime() + { + return $this->container['payment_end_time']; + } + + /** + * Sets payment_end_time + * + * @param int $payment_end_time 支付完成时间 + * + * @return $this + */ + public function setPaymentEndTime($payment_end_time) + { + $this->container['payment_end_time'] = $payment_end_time; + + return $this; + } + + /** + * Gets buy_type + * + * @return string + */ + public function getBuyType() + { + return $this->container['buy_type']; + } + + /** + * Sets buy_type + * + * @param string $buy_type 售卖类型 + * + * @return $this + */ + public function setBuyType($buy_type) + { + $this->container['buy_type'] = $buy_type; + + return $this; + } + + /** + * Gets voucher_pay_amount + * + * @return int + */ + public function getVoucherPayAmount() + { + return $this->container['voucher_pay_amount']; + } + + /** + * Sets voucher_pay_amount + * + * @param int $voucher_pay_amount 代金券抵扣金额(单位:分) + * + * @return $this + */ + public function setVoucherPayAmount($voucher_pay_amount) + { + $this->container['voucher_pay_amount'] = $voucher_pay_amount; + + return $this; + } + + /** + * Gets buyer_user_id + * + * @return string + */ + public function getBuyerUserId() + { + return $this->container['buyer_user_id']; + } + + /** + * Sets buyer_user_id + * + * @param string $buyer_user_id 下单用户ID + * + * @return $this + */ + public function setBuyerUserId($buyer_user_id) + { + $this->container['buyer_user_id'] = $buyer_user_id; + + return $this; + } + + /** + * Gets end_time + * + * @return int + */ + public function getEndTime() + { + return $this->container['end_time']; + } + + /** + * Sets end_time + * + * @param int $end_time 截止时间 + * + * @return $this + */ + public function setEndTime($end_time) + { + $this->container['end_time'] = $end_time; + + return $this; + } + + /** + * Gets commodity_name + * + * @return string + */ + public function getCommodityName() + { + return $this->container['commodity_name']; + } + + /** + * Sets commodity_name + * + * @param string $commodity_name 商品名称 + * + * @return $this + */ + public function setCommodityName($commodity_name) + { + $this->container['commodity_name'] = $commodity_name; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 订单状态 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ed480e5574e33f7fd89afd5af4ac58d162cade7f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:22 +0800 Subject: [PATCH 099/327] feat: update --- ...eAdminGetOrderResultModelAttributeList.php | 467 ++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php diff --git a/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php b/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php new file mode 100644 index 000000000..cd63a3cd5 --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php @@ -0,0 +1,467 @@ + 'string', +'time_start' => 'int', +'attribute_value_name' => 'string', +'time_to' => 'int', +'attribute_value' => 'int', +'attribute_name' => 'string', +'attribute_value_code' => 'int', +'time_unit' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'attribute_code' => null, +'time_start' => 'int64', +'attribute_value_name' => null, +'time_to' => 'int64', +'attribute_value' => null, +'attribute_name' => null, +'attribute_value_code' => 'int64', +'time_unit' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attribute_code' => 'attributeCode', +'time_start' => 'timeStart', +'attribute_value_name' => 'attributeValueName', +'time_to' => 'timeTo', +'attribute_value' => 'attributeValue', +'attribute_name' => 'attributeName', +'attribute_value_code' => 'attributeValueCode', +'time_unit' => 'timeUnit' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attribute_code' => 'setAttributeCode', +'time_start' => 'setTimeStart', +'attribute_value_name' => 'setAttributeValueName', +'time_to' => 'setTimeTo', +'attribute_value' => 'setAttributeValue', +'attribute_name' => 'setAttributeName', +'attribute_value_code' => 'setAttributeValueCode', +'time_unit' => 'setTimeUnit' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attribute_code' => 'getAttributeCode', +'time_start' => 'getTimeStart', +'attribute_value_name' => 'getAttributeValueName', +'time_to' => 'getTimeTo', +'attribute_value' => 'getAttributeValue', +'attribute_name' => 'getAttributeName', +'attribute_value_code' => 'getAttributeValueCode', +'time_unit' => 'getTimeUnit' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attribute_code'] = isset($data['attribute_code']) ? $data['attribute_code'] : null; + $this->container['time_start'] = isset($data['time_start']) ? $data['time_start'] : null; + $this->container['attribute_value_name'] = isset($data['attribute_value_name']) ? $data['attribute_value_name'] : null; + $this->container['time_to'] = isset($data['time_to']) ? $data['time_to'] : null; + $this->container['attribute_value'] = isset($data['attribute_value']) ? $data['attribute_value'] : null; + $this->container['attribute_name'] = isset($data['attribute_name']) ? $data['attribute_name'] : null; + $this->container['attribute_value_code'] = isset($data['attribute_value_code']) ? $data['attribute_value_code'] : null; + $this->container['time_unit'] = isset($data['time_unit']) ? $data['time_unit'] : null; + } + + + /** + * Gets attribute_code + * + * @return string + */ + public function getAttributeCode() + { + return $this->container['attribute_code']; + } + + /** + * Sets attribute_code + * + * @param string $attribute_code attribute_code + * + * @return $this + */ + public function setAttributeCode($attribute_code) + { + $this->container['attribute_code'] = $attribute_code; + + return $this; + } + + /** + * Gets time_start + * + * @return int + */ + public function getTimeStart() + { + return $this->container['time_start']; + } + + /** + * Sets time_start + * + * @param int $time_start time_start + * + * @return $this + */ + public function setTimeStart($time_start) + { + $this->container['time_start'] = $time_start; + + return $this; + } + + /** + * Gets attribute_value_name + * + * @return string + */ + public function getAttributeValueName() + { + return $this->container['attribute_value_name']; + } + + /** + * Sets attribute_value_name + * + * @param string $attribute_value_name attribute_value_name + * + * @return $this + */ + public function setAttributeValueName($attribute_value_name) + { + $this->container['attribute_value_name'] = $attribute_value_name; + + return $this; + } + + /** + * Gets time_to + * + * @return int + */ + public function getTimeTo() + { + return $this->container['time_to']; + } + + /** + * Sets time_to + * + * @param int $time_to time_to + * + * @return $this + */ + public function setTimeTo($time_to) + { + $this->container['time_to'] = $time_to; + + return $this; + } + + /** + * Gets attribute_value + * + * @return int + */ + public function getAttributeValue() + { + return $this->container['attribute_value']; + } + + /** + * Sets attribute_value + * + * @param int $attribute_value attribute_value + * + * @return $this + */ + public function setAttributeValue($attribute_value) + { + $this->container['attribute_value'] = $attribute_value; + + return $this; + } + + /** + * Gets attribute_name + * + * @return string + */ + public function getAttributeName() + { + return $this->container['attribute_name']; + } + + /** + * Sets attribute_name + * + * @param string $attribute_name attribute_name + * + * @return $this + */ + public function setAttributeName($attribute_name) + { + $this->container['attribute_name'] = $attribute_name; + + return $this; + } + + /** + * Gets attribute_value_code + * + * @return int + */ + public function getAttributeValueCode() + { + return $this->container['attribute_value_code']; + } + + /** + * Sets attribute_value_code + * + * @param int $attribute_value_code attribute_value_code + * + * @return $this + */ + public function setAttributeValueCode($attribute_value_code) + { + $this->container['attribute_value_code'] = $attribute_value_code; + + return $this; + } + + /** + * Gets time_unit + * + * @return string + */ + public function getTimeUnit() + { + return $this->container['time_unit']; + } + + /** + * Sets time_unit + * + * @param string $time_unit time_unit + * + * @return $this + */ + public function setTimeUnit($time_unit) + { + $this->container['time_unit'] = $time_unit; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 44f54740e1ccb9111cc105d07fa44c3b0c8b9659 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:24 +0800 Subject: [PATCH 100/327] feat: update --- ...oleAdminListActivateableInstancesForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesForms.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesForms.php b/lib/Model/ConsoleAdminListActivateableInstancesForms.php new file mode 100644 index 000000000..569de02c4 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesForms.php @@ -0,0 +1,287 @@ + 'string', +'version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 06188208169f910dd1e57f144d0e0f2cd204f7b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:25 +0800 Subject: [PATCH 101/327] feat: update --- ...leAdminListActivateableInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResult.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResult.php b/lib/Model/ConsoleAdminListActivateableInstancesResult.php new file mode 100644 index 000000000..9dd1828c0 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 00072df7b061d83473ed18d17519b8a014008033 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:26 +0800 Subject: [PATCH 102/327] feat: update --- ...inListActivateableInstancesResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php b/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php new file mode 100644 index 000000000..62b1c88a9 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8f9e16c2e31cdff389682183038f00144a58902b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:28 +0800 Subject: [PATCH 103/327] feat: update --- ...tivateableInstancesResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php new file mode 100644 index 000000000..9e64fc6e9 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'cloud_game_instance_name' => 'string', +'container_count' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null, +'container_count' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName', +'container_count' => 'containerCount', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName', +'container_count' => 'setContainerCount', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName', +'container_count' => 'getContainerCount', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + + /** + * Gets container_count + * + * @return int + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param int $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5bbb403c7e1393975dda97482ccdec7b337edb58 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:29 +0800 Subject: [PATCH 104/327] feat: update --- ...onsoleAdminListActivatedInstancesForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesForms.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesForms.php b/lib/Model/ConsoleAdminListActivatedInstancesForms.php new file mode 100644 index 000000000..0ff5116b9 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesForms.php @@ -0,0 +1,287 @@ + 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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 game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6269d92190fd12c95f8de38224447c239d732a12 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:30 +0800 Subject: [PATCH 105/327] feat: update --- ...nsoleAdminListActivatedInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResult.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResult.php b/lib/Model/ConsoleAdminListActivatedInstancesResult.php new file mode 100644 index 000000000..b678813c8 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cde98d2e48310d0a54bb7d085b0ddc53554f710a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:32 +0800 Subject: [PATCH 106/327] feat: update --- ...AdminListActivatedInstancesResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php b/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php new file mode 100644 index 000000000..d1bc99ad1 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3a273c487a6415214b3d1c6674a90948a96ffdd3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:33 +0800 Subject: [PATCH 107/327] feat: update --- ...tActivatedInstancesResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php new file mode 100644 index 000000000..49aec1082 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'cloud_game_instance_name' => 'string', +'container_count' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null, +'container_count' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName', +'container_count' => 'containerCount', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName', +'container_count' => 'setContainerCount', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName', +'container_count' => 'getContainerCount', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + + /** + * Gets container_count + * + * @return int + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param int $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c52c9ead938477f13a37068602b94aee20b46b49 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:34 +0800 Subject: [PATCH 108/327] feat: update --- ...ConsoleAdminListControllersOfGameForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameForms.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameForms.php b/lib/Model/ConsoleAdminListControllersOfGameForms.php new file mode 100644 index 000000000..62030b43b --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameForms.php @@ -0,0 +1,317 @@ + 'string', +'next_token' => 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3f267c7a9ea71c87818799493be277e73ed2f8fd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:36 +0800 Subject: [PATCH 109/327] feat: update --- ...onsoleAdminListControllersOfGameResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResult.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResult.php b/lib/Model/ConsoleAdminListControllersOfGameResult.php new file mode 100644 index 000000000..b838db394 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 21a5aad36f39094fe3442e1e6696c773b572618a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:37 +0800 Subject: [PATCH 110/327] feat: update --- ...eAdminListControllersOfGameResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResultModel.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResultModel.php b/lib/Model/ConsoleAdminListControllersOfGameResultModel.php new file mode 100644 index 000000000..c1e70ee35 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bdd95770c9d14888007f29d728c43e00f404d278 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:38 +0800 Subject: [PATCH 111/327] feat: update --- ...stControllersOfGameResultModelDataList.php | 437 ++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php b/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php new file mode 100644 index 000000000..33cb48888 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php @@ -0,0 +1,437 @@ + 'string', +'ctltype' => 'string', +'name' => 'string', +'id' => 'string', +'type' => 'int', +'priority' => 'int', +'config' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'bg_pic' => null, +'ctltype' => null, +'name' => null, +'id' => null, +'type' => null, +'priority' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bg_pic' => 'bgPic', +'ctltype' => 'ctltype', +'name' => 'name', +'id' => 'id', +'type' => 'type', +'priority' => 'priority', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bg_pic' => 'setBgPic', +'ctltype' => 'setCtltype', +'name' => 'setName', +'id' => 'setId', +'type' => 'setType', +'priority' => 'setPriority', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bg_pic' => 'getBgPic', +'ctltype' => 'getCtltype', +'name' => 'getName', +'id' => 'getId', +'type' => 'getType', +'priority' => 'getPriority', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bg_pic'] = isset($data['bg_pic']) ? $data['bg_pic'] : null; + $this->container['ctltype'] = isset($data['ctltype']) ? $data['ctltype'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets bg_pic + * + * @return string + */ + public function getBgPic() + { + return $this->container['bg_pic']; + } + + /** + * Sets bg_pic + * + * @param string $bg_pic bg_pic + * + * @return $this + */ + public function setBgPic($bg_pic) + { + $this->container['bg_pic'] = $bg_pic; + + return $this; + } + + /** + * Gets ctltype + * + * @return string + */ + public function getCtltype() + { + return $this->container['ctltype']; + } + + /** + * Sets ctltype + * + * @param string $ctltype ctltype + * + * @return $this + */ + public function setCtltype($ctltype) + { + $this->container['ctltype'] = $ctltype; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return int + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param int $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority priority + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets config + * + * @return string + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param string $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7aec7523a369dfc30c857a4a63790a1fac7731cc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:40 +0800 Subject: [PATCH 112/327] feat: update --- ...nsoleAdminListDeployableInstancesForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesForms.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesForms.php b/lib/Model/ConsoleAdminListDeployableInstancesForms.php new file mode 100644 index 000000000..bcab01136 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesForms.php @@ -0,0 +1,347 @@ + 'string', +'project_id' => 'string', +'page_size' => 'int', +'page_number' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'project_id' => null, +'page_size' => 'int64', +'page_number' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'project_id' => 'projectId', +'page_size' => 'pageSize', +'page_number' => 'pageNumber' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'project_id' => 'setProjectId', +'page_size' => 'setPageSize', +'page_number' => 'setPageNumber' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'project_id' => 'getProjectId', +'page_size' => 'getPageSize', +'page_number' => 'getPageNumber' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a1ee74b5f10118ece1a103684a19838c51c6d844 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:41 +0800 Subject: [PATCH 113/327] feat: update --- ...soleAdminListDeployableInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResult.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResult.php b/lib/Model/ConsoleAdminListDeployableInstancesResult.php new file mode 100644 index 000000000..77b40c3a8 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fd11d22e05c90c1d0eabc3c852512488fc73d361 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:42 +0800 Subject: [PATCH 114/327] feat: update --- ...dminListDeployableInstancesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php b/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php new file mode 100644 index 000000000..0f036ae05 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[]', +'page_size' => 'int', +'total_count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => 'int64', +'data_list' => null, +'page_size' => 'int64', +'total_count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'data_list' => 'dataList', +'page_size' => 'pageSize', +'total_count' => 'totalCount' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'data_list' => 'setDataList', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'data_list' => 'getDataList', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 81faa3ab686621ca15a7c6b6181add8e6d9e6691 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:44 +0800 Subject: [PATCH 115/327] feat: update --- ...DeployableInstancesResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php new file mode 100644 index 000000000..d45f00faf --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'cloud_game_instance_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6786a502184a7d823e3242f5f2a87f284cb426ba Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:45 +0800 Subject: [PATCH 116/327] feat: update --- lib/Model/ConsoleAdminListGameCcuForms.php | 407 +++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuForms.php diff --git a/lib/Model/ConsoleAdminListGameCcuForms.php b/lib/Model/ConsoleAdminListGameCcuForms.php new file mode 100644 index 000000000..f74e7291a --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuForms.php @@ -0,0 +1,407 @@ + 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64', +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1a934880391622f0c6aeefc9e05b5d9e8806ae00 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:47 +0800 Subject: [PATCH 117/327] feat: update --- lib/Model/ConsoleAdminListGameCcuResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResult.php diff --git a/lib/Model/ConsoleAdminListGameCcuResult.php b/lib/Model/ConsoleAdminListGameCcuResult.php new file mode 100644 index 000000000..8b8ddb80f --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 30fab9f045b890b88c047a97d1d8a98c96cc4d2d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:48 +0800 Subject: [PATCH 118/327] feat: update --- .../ConsoleAdminListGameCcuResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResultModel.php diff --git a/lib/Model/ConsoleAdminListGameCcuResultModel.php b/lib/Model/ConsoleAdminListGameCcuResultModel.php new file mode 100644 index 000000000..2b1ca0623 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 60d689e4e2da5e894c18e9c87a2d3d13896bf2f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:49 +0800 Subject: [PATCH 119/327] feat: update --- ...onsoleAdminListGameCcuResultModelItems.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResultModelItems.php diff --git a/lib/Model/ConsoleAdminListGameCcuResultModelItems.php b/lib/Model/ConsoleAdminListGameCcuResultModelItems.php new file mode 100644 index 000000000..5e8118f6b --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResultModelItems.php @@ -0,0 +1,317 @@ + 'string', +'game_name' => 'string', +'mix_game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'ccu_value' => null, +'game_name' => null, +'mix_game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ccu_value' => 'ccuValue', +'game_name' => 'gameName', +'mix_game_id' => 'mixGameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ccu_value' => 'setCcuValue', +'game_name' => 'setGameName', +'mix_game_id' => 'setMixGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ccu_value' => 'getCcuValue', +'game_name' => 'getGameName', +'mix_game_id' => 'getMixGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ccu_value'] = isset($data['ccu_value']) ? $data['ccu_value'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + } + + + /** + * Gets ccu_value + * + * @return string + */ + public function getCcuValue() + { + return $this->container['ccu_value']; + } + + /** + * Sets ccu_value + * + * @param string $ccu_value ccu_value + * + * @return $this + */ + public function setCcuValue($ccu_value) + { + $this->container['ccu_value'] = $ccu_value; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id mix_game_id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9aaed222b5eb2164d6bb2146caf9fd4334a12768 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:51 +0800 Subject: [PATCH 120/327] feat: update --- ...minListGameDeployDetailsOfProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php new file mode 100644 index 000000000..369389e69 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a4127c8edb39229f11dad92692a3beba5eddf95e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:52 +0800 Subject: [PATCH 121/327] feat: update --- ...inListGameDeployDetailsOfProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php new file mode 100644 index 000000000..ff54aed6e --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a18cb71c49e5a86f8aed8f1c9ae9890160cdaa7a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:53 +0800 Subject: [PATCH 122/327] feat: update --- ...tGameDeployDetailsOfProjectResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php new file mode 100644 index 000000000..0fbb00d42 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6987d612370f062d025a8c32bb23493c10c786c9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:55 +0800 Subject: [PATCH 123/327] feat: update --- ...loyDetailsOfProjectResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php new file mode 100644 index 000000000..6b7535e45 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'auto_active_status' => 'string', +'version_name' => 'string', +'deploy_status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'auto_active_status' => null, +'version_name' => null, +'deploy_status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'auto_active_status' => 'autoActiveStatus', +'version_name' => 'versionName', +'deploy_status' => 'deployStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'auto_active_status' => 'setAutoActiveStatus', +'version_name' => 'setVersionName', +'deploy_status' => 'setDeployStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'auto_active_status' => 'getAutoActiveStatus', +'version_name' => 'getVersionName', +'deploy_status' => 'getDeployStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['auto_active_status'] = isset($data['auto_active_status']) ? $data['auto_active_status'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + $this->container['deploy_status'] = isset($data['deploy_status']) ? $data['deploy_status'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets auto_active_status + * + * @return string + */ + public function getAutoActiveStatus() + { + return $this->container['auto_active_status']; + } + + /** + * Sets auto_active_status + * + * @param string $auto_active_status auto_active_status + * + * @return $this + */ + public function setAutoActiveStatus($auto_active_status) + { + $this->container['auto_active_status'] = $auto_active_status; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + + /** + * Gets deploy_status + * + * @return string + */ + public function getDeployStatus() + { + return $this->container['deploy_status']; + } + + /** + * Sets deploy_status + * + * @param string $deploy_status deploy_status + * + * @return $this + */ + public function setDeployStatus($deploy_status) + { + $this->container['deploy_status'] = $deploy_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2ab2dc27e3ec9ae03fdf36dcdad22ff197526a6f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:56 +0800 Subject: [PATCH 124/327] feat: update --- .../ConsoleAdminListGameVersionsForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsForms.php diff --git a/lib/Model/ConsoleAdminListGameVersionsForms.php b/lib/Model/ConsoleAdminListGameVersionsForms.php new file mode 100644 index 000000000..0d2318bec --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsForms.php @@ -0,0 +1,317 @@ + 'string', +'max_results' => 'int', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32', +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ad8448a0bb76e3cd667b861ab71f2960a4374015 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:58 +0800 Subject: [PATCH 125/327] feat: update --- .../ConsoleAdminListGameVersionsResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResult.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResult.php b/lib/Model/ConsoleAdminListGameVersionsResult.php new file mode 100644 index 000000000..142e6d44e --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 270f33dd42bde4d0f14577863d2dfb196c2bbabc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:12:59 +0800 Subject: [PATCH 126/327] feat: update --- ...onsoleAdminListGameVersionsResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResultModel.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResultModel.php b/lib/Model/ConsoleAdminListGameVersionsResultModel.php new file mode 100644 index 000000000..665bd3386 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From aaba2c507c526037cb3c242fd4a3f37378cd5623 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:00 +0800 Subject: [PATCH 127/327] feat: update --- ...minListGameVersionsResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php b/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php new file mode 100644 index 000000000..84431c489 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'adapt_state' => 'string', +'adapt_finish_time' => 'int', +'version_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'adapt_state' => null, +'adapt_finish_time' => 'int64', +'version_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'adapt_state' => 'adaptState', +'adapt_finish_time' => 'adaptFinishTime', +'version_name' => 'versionName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'adapt_state' => 'setAdaptState', +'adapt_finish_time' => 'setAdaptFinishTime', +'version_name' => 'setVersionName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'adapt_state' => 'getAdaptState', +'adapt_finish_time' => 'getAdaptFinishTime', +'version_name' => 'getVersionName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['adapt_state'] = isset($data['adapt_state']) ? $data['adapt_state'] : null; + $this->container['adapt_finish_time'] = isset($data['adapt_finish_time']) ? $data['adapt_finish_time'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets adapt_state + * + * @return string + */ + public function getAdaptState() + { + return $this->container['adapt_state']; + } + + /** + * Sets adapt_state + * + * @param string $adapt_state adapt_state + * + * @return $this + */ + public function setAdaptState($adapt_state) + { + $this->container['adapt_state'] = $adapt_state; + + return $this; + } + + /** + * Gets adapt_finish_time + * + * @return int + */ + public function getAdaptFinishTime() + { + return $this->container['adapt_finish_time']; + } + + /** + * Sets adapt_finish_time + * + * @param int $adapt_finish_time adapt_finish_time + * + * @return $this + */ + public function setAdaptFinishTime($adapt_finish_time) + { + $this->container['adapt_finish_time'] = $adapt_finish_time; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d1dee1f9f40c1bcab8bde2a3395aaa95917607d8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:01 +0800 Subject: [PATCH 128/327] feat: update --- lib/Model/ConsoleAdminListGamesForms.php | 287 +++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesForms.php diff --git a/lib/Model/ConsoleAdminListGamesForms.php b/lib/Model/ConsoleAdminListGamesForms.php new file mode 100644 index 000000000..ba3dd8b15 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesForms.php @@ -0,0 +1,287 @@ + 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5f0d45593e911a8be7028d262a12d49d8a92a8d3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:03 +0800 Subject: [PATCH 129/327] feat: update --- lib/Model/ConsoleAdminListGamesResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResult.php diff --git a/lib/Model/ConsoleAdminListGamesResult.php b/lib/Model/ConsoleAdminListGamesResult.php new file mode 100644 index 000000000..d1b2f0536 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d53704d2366ea28fbcff9f50b4fbc4c800c50433 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:04 +0800 Subject: [PATCH 130/327] feat: update --- .../ConsoleAdminListGamesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResultModel.php diff --git a/lib/Model/ConsoleAdminListGamesResultModel.php b/lib/Model/ConsoleAdminListGamesResultModel.php new file mode 100644 index 000000000..e10987c71 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[]', +'count' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return string + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param string $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8dac7bb440ec6d8395ed69da56719e546a660ac Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:05 +0800 Subject: [PATCH 131/327] feat: update --- ...nsoleAdminListGamesResultModelDataList.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGamesResultModelDataList.php b/lib/Model/ConsoleAdminListGamesResultModelDataList.php new file mode 100644 index 000000000..002d7fff9 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResultModelDataList.php @@ -0,0 +1,317 @@ + 'string', +'game_name' => 'string', +'platform_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'game_name' => null, +'platform_type' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_name' => 'gameName', +'platform_type' => 'platformType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_name' => 'setGameName', +'platform_type' => 'setPlatformType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_name' => 'getGameName', +'platform_type' => 'getPlatformType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2213b0a0c8203e766cdac1c184f12f929f2586d6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:07 +0800 Subject: [PATCH 132/327] feat: update --- ...onsoleAdminListInstancesOfProjectForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectForms.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectForms.php b/lib/Model/ConsoleAdminListInstancesOfProjectForms.php new file mode 100644 index 000000000..76e5d4007 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectForms.php @@ -0,0 +1,317 @@ + 'string', +'max_result' => 'int', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_result' => 'int32', +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_result' => 'maxResult', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_result' => 'setMaxResult', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_result' => 'getMaxResult', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_result'] = isset($data['max_result']) ? $data['max_result'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_result + * + * @return int + */ + public function getMaxResult() + { + return $this->container['max_result']; + } + + /** + * Sets max_result + * + * @param int $max_result max_result + * + * @return $this + */ + public function setMaxResult($max_result) + { + $this->container['max_result'] = $max_result; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6534496c76278a980202598fb77c09aa717762d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:08 +0800 Subject: [PATCH 133/327] feat: update --- ...nsoleAdminListInstancesOfProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResult.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResult.php b/lib/Model/ConsoleAdminListInstancesOfProjectResult.php new file mode 100644 index 000000000..e29d09df5 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResult.php @@ -0,0 +1,347 @@ + 'string', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return string + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param string $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1e20540b71b7482516f62b996a8e981ffc8acbda Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:09 +0800 Subject: [PATCH 134/327] feat: update --- ...AdminListInstancesOfProjectResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php b/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php new file mode 100644 index 000000000..2e0aa803f --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_result' => null, +'next_token' => null, +'data_list' => null, +'count' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_result' => 'maxResult', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_result' => 'setMaxResult', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_result' => 'getMaxResult', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_result'] = isset($data['max_result']) ? $data['max_result'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_result + * + * @return int + */ + public function getMaxResult() + { + return $this->container['max_result']; + } + + /** + * Sets max_result + * + * @param int $max_result max_result + * + * @return $this + */ + public function setMaxResult($max_result) + { + $this->container['max_result'] = $max_result; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4506423bd9947d69ad8031a13f0b2826190828bb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:11 +0800 Subject: [PATCH 135/327] feat: update --- ...tInstancesOfProjectResultModelDataList.php | 677 ++++++++++++++++++ 1 file changed, 677 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php b/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php new file mode 100644 index 000000000..7cf279399 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php @@ -0,0 +1,677 @@ + 'string', +'bandwidth_charge_type' => 'string', +'effective_time' => 'int', +'platform_type' => 'string', +'payment_type' => 'string', +'token' => 'string', +'expire_time' => 'int', +'commodity_instance_name' => 'string', +'commodity_instance_id' => 'string', +'region' => 'string', +'project_name' => 'string', +'project_id' => 'string', +'container_count' => 'string', +'status' => 'string', +'trade_channel' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_specification_cn_name' => null, +'bandwidth_charge_type' => null, +'effective_time' => null, +'platform_type' => null, +'payment_type' => null, +'token' => null, +'expire_time' => null, +'commodity_instance_name' => null, +'commodity_instance_id' => null, +'region' => null, +'project_name' => null, +'project_id' => null, +'container_count' => null, +'status' => null, +'trade_channel' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_specification_cn_name' => 'commoditySpecificationCnName', +'bandwidth_charge_type' => 'bandwidthChargeType', +'effective_time' => 'effectiveTime', +'platform_type' => 'platformType', +'payment_type' => 'paymentType', +'token' => 'token', +'expire_time' => 'expireTime', +'commodity_instance_name' => 'commodityInstanceName', +'commodity_instance_id' => 'commodityInstanceId', +'region' => 'region', +'project_name' => 'projectName', +'project_id' => 'projectId', +'container_count' => 'containerCount', +'status' => 'status', +'trade_channel' => 'tradeChannel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_specification_cn_name' => 'setCommoditySpecificationCnName', +'bandwidth_charge_type' => 'setBandwidthChargeType', +'effective_time' => 'setEffectiveTime', +'platform_type' => 'setPlatformType', +'payment_type' => 'setPaymentType', +'token' => 'setToken', +'expire_time' => 'setExpireTime', +'commodity_instance_name' => 'setCommodityInstanceName', +'commodity_instance_id' => 'setCommodityInstanceId', +'region' => 'setRegion', +'project_name' => 'setProjectName', +'project_id' => 'setProjectId', +'container_count' => 'setContainerCount', +'status' => 'setStatus', +'trade_channel' => 'setTradeChannel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_specification_cn_name' => 'getCommoditySpecificationCnName', +'bandwidth_charge_type' => 'getBandwidthChargeType', +'effective_time' => 'getEffectiveTime', +'platform_type' => 'getPlatformType', +'payment_type' => 'getPaymentType', +'token' => 'getToken', +'expire_time' => 'getExpireTime', +'commodity_instance_name' => 'getCommodityInstanceName', +'commodity_instance_id' => 'getCommodityInstanceId', +'region' => 'getRegion', +'project_name' => 'getProjectName', +'project_id' => 'getProjectId', +'container_count' => 'getContainerCount', +'status' => 'getStatus', +'trade_channel' => 'getTradeChannel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_specification_cn_name'] = isset($data['commodity_specification_cn_name']) ? $data['commodity_specification_cn_name'] : null; + $this->container['bandwidth_charge_type'] = isset($data['bandwidth_charge_type']) ? $data['bandwidth_charge_type'] : null; + $this->container['effective_time'] = isset($data['effective_time']) ? $data['effective_time'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['payment_type'] = isset($data['payment_type']) ? $data['payment_type'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['expire_time'] = isset($data['expire_time']) ? $data['expire_time'] : null; + $this->container['commodity_instance_name'] = isset($data['commodity_instance_name']) ? $data['commodity_instance_name'] : null; + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + $this->container['region'] = isset($data['region']) ? $data['region'] : null; + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['trade_channel'] = isset($data['trade_channel']) ? $data['trade_channel'] : null; + } + + + /** + * Gets commodity_specification_cn_name + * + * @return string + */ + public function getCommoditySpecificationCnName() + { + return $this->container['commodity_specification_cn_name']; + } + + /** + * Sets commodity_specification_cn_name + * + * @param string $commodity_specification_cn_name commodity_specification_cn_name + * + * @return $this + */ + public function setCommoditySpecificationCnName($commodity_specification_cn_name) + { + $this->container['commodity_specification_cn_name'] = $commodity_specification_cn_name; + + return $this; + } + + /** + * Gets bandwidth_charge_type + * + * @return string + */ + public function getBandwidthChargeType() + { + return $this->container['bandwidth_charge_type']; + } + + /** + * Sets bandwidth_charge_type + * + * @param string $bandwidth_charge_type bandwidth_charge_type + * + * @return $this + */ + public function setBandwidthChargeType($bandwidth_charge_type) + { + $this->container['bandwidth_charge_type'] = $bandwidth_charge_type; + + return $this; + } + + /** + * Gets effective_time + * + * @return int + */ + public function getEffectiveTime() + { + return $this->container['effective_time']; + } + + /** + * Sets effective_time + * + * @param int $effective_time effective_time + * + * @return $this + */ + public function setEffectiveTime($effective_time) + { + $this->container['effective_time'] = $effective_time; + + return $this; + } + + /** + * Gets platform_type + * + * @return string + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param string $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string $payment_type payment_type + * + * @return $this + */ + public function setPaymentType($payment_type) + { + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets expire_time + * + * @return int + */ + public function getExpireTime() + { + return $this->container['expire_time']; + } + + /** + * Sets expire_time + * + * @param int $expire_time expire_time + * + * @return $this + */ + public function setExpireTime($expire_time) + { + $this->container['expire_time'] = $expire_time; + + return $this; + } + + /** + * Gets commodity_instance_name + * + * @return string + */ + public function getCommodityInstanceName() + { + return $this->container['commodity_instance_name']; + } + + /** + * Sets commodity_instance_name + * + * @param string $commodity_instance_name commodity_instance_name + * + * @return $this + */ + public function setCommodityInstanceName($commodity_instance_name) + { + $this->container['commodity_instance_name'] = $commodity_instance_name; + + return $this; + } + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + + /** + * Gets region + * + * @return string + */ + public function getRegion() + { + return $this->container['region']; + } + + /** + * Sets region + * + * @param string $region region + * + * @return $this + */ + public function setRegion($region) + { + $this->container['region'] = $region; + + return $this; + } + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets container_count + * + * @return string + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param string $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets trade_channel + * + * @return string + */ + public function getTradeChannel() + { + return $this->container['trade_channel']; + } + + /** + * Sets trade_channel + * + * @param string $trade_channel trade_channel + * + * @return $this + */ + public function setTradeChannel($trade_channel) + { + $this->container['trade_channel'] = $trade_channel; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 259f50ace0685de05aeaee3727589f344b8b2ac1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:12 +0800 Subject: [PATCH 136/327] feat: update --- lib/Model/ConsoleAdminListMonthBillForms.php | 377 +++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillForms.php diff --git a/lib/Model/ConsoleAdminListMonthBillForms.php b/lib/Model/ConsoleAdminListMonthBillForms.php new file mode 100644 index 000000000..e813074f5 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillForms.php @@ -0,0 +1,377 @@ + 'string', +'accounting_period_to' => 'string', +'status' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'accounting_period_from' => null, +'accounting_period_to' => null, +'status' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accounting_period_from' => 'accountingPeriodFrom', +'accounting_period_to' => 'accountingPeriodTo', +'status' => 'status', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accounting_period_from' => 'setAccountingPeriodFrom', +'accounting_period_to' => 'setAccountingPeriodTo', +'status' => 'setStatus', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accounting_period_from' => 'getAccountingPeriodFrom', +'accounting_period_to' => 'getAccountingPeriodTo', +'status' => 'getStatus', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accounting_period_from'] = isset($data['accounting_period_from']) ? $data['accounting_period_from'] : null; + $this->container['accounting_period_to'] = isset($data['accounting_period_to']) ? $data['accounting_period_to'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets accounting_period_from + * + * @return string + */ + public function getAccountingPeriodFrom() + { + return $this->container['accounting_period_from']; + } + + /** + * Sets accounting_period_from + * + * @param string $accounting_period_from accounting_period_from + * + * @return $this + */ + public function setAccountingPeriodFrom($accounting_period_from) + { + $this->container['accounting_period_from'] = $accounting_period_from; + + return $this; + } + + /** + * Gets accounting_period_to + * + * @return string + */ + public function getAccountingPeriodTo() + { + return $this->container['accounting_period_to']; + } + + /** + * Sets accounting_period_to + * + * @param string $accounting_period_to accounting_period_to + * + * @return $this + */ + public function setAccountingPeriodTo($accounting_period_to) + { + $this->container['accounting_period_to'] = $accounting_period_to; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 状态 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d4ea03b44796db76aaac69e5710f4ba964bf8e6e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:14 +0800 Subject: [PATCH 137/327] feat: update --- lib/Model/ConsoleAdminListMonthBillResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResult.php diff --git a/lib/Model/ConsoleAdminListMonthBillResult.php b/lib/Model/ConsoleAdminListMonthBillResult.php new file mode 100644 index 000000000..6bb0d2d1e --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e36e2f51e61d66ee07aa5422b981fde1c53d4d15 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:15 +0800 Subject: [PATCH 138/327] feat: update --- .../ConsoleAdminListMonthBillResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResultModel.php diff --git a/lib/Model/ConsoleAdminListMonthBillResultModel.php b/lib/Model/ConsoleAdminListMonthBillResultModel.php new file mode 100644 index 000000000..799a3d50e --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number 页码 + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size 没页数量 + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count 总数量 + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[] $items 列表 + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 39b063b8f37805ae45a90698ea11339f65787aa2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:16 +0800 Subject: [PATCH 139/327] feat: update --- ...soleAdminListMonthBillResultModelItems.php | 437 ++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResultModelItems.php diff --git a/lib/Model/ConsoleAdminListMonthBillResultModelItems.php b/lib/Model/ConsoleAdminListMonthBillResultModelItems.php new file mode 100644 index 000000000..4da7e5ae1 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResultModelItems.php @@ -0,0 +1,437 @@ + 'string', +'tenant_name' => 'string', +'tenant_id' => 'int', +'bill_status' => 'string', +'accounting_period' => 'string', +'bill_outgoing_time' => 'string', +'cash_pay_amount' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'latest_paid_time' => null, +'tenant_name' => null, +'tenant_id' => 'int64', +'bill_status' => null, +'accounting_period' => null, +'bill_outgoing_time' => null, +'cash_pay_amount' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'latest_paid_time' => 'latestPaidTime', +'tenant_name' => 'tenantName', +'tenant_id' => 'tenantId', +'bill_status' => 'billStatus', +'accounting_period' => 'accountingPeriod', +'bill_outgoing_time' => 'billOutgoingTime', +'cash_pay_amount' => 'cashPayAmount' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'latest_paid_time' => 'setLatestPaidTime', +'tenant_name' => 'setTenantName', +'tenant_id' => 'setTenantId', +'bill_status' => 'setBillStatus', +'accounting_period' => 'setAccountingPeriod', +'bill_outgoing_time' => 'setBillOutgoingTime', +'cash_pay_amount' => 'setCashPayAmount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'latest_paid_time' => 'getLatestPaidTime', +'tenant_name' => 'getTenantName', +'tenant_id' => 'getTenantId', +'bill_status' => 'getBillStatus', +'accounting_period' => 'getAccountingPeriod', +'bill_outgoing_time' => 'getBillOutgoingTime', +'cash_pay_amount' => 'getCashPayAmount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['latest_paid_time'] = isset($data['latest_paid_time']) ? $data['latest_paid_time'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['bill_status'] = isset($data['bill_status']) ? $data['bill_status'] : null; + $this->container['accounting_period'] = isset($data['accounting_period']) ? $data['accounting_period'] : null; + $this->container['bill_outgoing_time'] = isset($data['bill_outgoing_time']) ? $data['bill_outgoing_time'] : null; + $this->container['cash_pay_amount'] = isset($data['cash_pay_amount']) ? $data['cash_pay_amount'] : null; + } + + + /** + * Gets latest_paid_time + * + * @return string + */ + public function getLatestPaidTime() + { + return $this->container['latest_paid_time']; + } + + /** + * Sets latest_paid_time + * + * @param string $latest_paid_time 到期还款日期 + * + * @return $this + */ + public function setLatestPaidTime($latest_paid_time) + { + $this->container['latest_paid_time'] = $latest_paid_time; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name 租户名称 + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + 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 bill_status + * + * @return string + */ + public function getBillStatus() + { + return $this->container['bill_status']; + } + + /** + * Sets bill_status + * + * @param string $bill_status 账单状态 + * + * @return $this + */ + public function setBillStatus($bill_status) + { + $this->container['bill_status'] = $bill_status; + + return $this; + } + + /** + * Gets accounting_period + * + * @return string + */ + public function getAccountingPeriod() + { + return $this->container['accounting_period']; + } + + /** + * Sets accounting_period + * + * @param string $accounting_period 账期 + * + * @return $this + */ + public function setAccountingPeriod($accounting_period) + { + $this->container['accounting_period'] = $accounting_period; + + return $this; + } + + /** + * Gets bill_outgoing_time + * + * @return string + */ + public function getBillOutgoingTime() + { + return $this->container['bill_outgoing_time']; + } + + /** + * Sets bill_outgoing_time + * + * @param string $bill_outgoing_time 已出账的日期 + * + * @return $this + */ + public function setBillOutgoingTime($bill_outgoing_time) + { + $this->container['bill_outgoing_time'] = $bill_outgoing_time; + + return $this; + } + + /** + * Gets cash_pay_amount + * + * @return int + */ + public function getCashPayAmount() + { + return $this->container['cash_pay_amount']; + } + + /** + * Sets cash_pay_amount + * + * @param int $cash_pay_amount 消费金额 + * + * @return $this + */ + public function setCashPayAmount($cash_pay_amount) + { + $this->container['cash_pay_amount'] = $cash_pay_amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b96540da89c6345eb092e352de29ee0dd2867284 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:18 +0800 Subject: [PATCH 140/327] feat: update --- lib/Model/ConsoleAdminListProjectsForms.php | 287 ++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsForms.php diff --git a/lib/Model/ConsoleAdminListProjectsForms.php b/lib/Model/ConsoleAdminListProjectsForms.php new file mode 100644 index 000000000..e3dc1370b --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsForms.php @@ -0,0 +1,287 @@ + 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2f612b21c6beeda96a5cee1efa7af241449d4cf0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:19 +0800 Subject: [PATCH 141/327] feat: update --- lib/Model/ConsoleAdminListProjectsResult.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResult.php diff --git a/lib/Model/ConsoleAdminListProjectsResult.php b/lib/Model/ConsoleAdminListProjectsResult.php new file mode 100644 index 000000000..8f3c9a514 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cda113a8da036389f7e4dd32c470b4280e6541f3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:20 +0800 Subject: [PATCH 142/327] feat: update --- .../ConsoleAdminListProjectsResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResultModel.php diff --git a/lib/Model/ConsoleAdminListProjectsResultModel.php b/lib/Model/ConsoleAdminListProjectsResultModel.php new file mode 100644 index 000000000..6329386a8 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 35136a1ecce25c2743d3194257cdcb6dc4a50bb8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:22 +0800 Subject: [PATCH 143/327] feat: update --- ...leAdminListProjectsResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListProjectsResultModelDataList.php b/lib/Model/ConsoleAdminListProjectsResultModelDataList.php new file mode 100644 index 000000000..b289e82d2 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_name' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_name' => 'projectName', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_name' => 'setProjectName', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_name' => 'getProjectName', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8b58a8bdba4dddf4f084c42d2b93140c102141d3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:23 +0800 Subject: [PATCH 144/327] feat: update --- ...leAdminListVersionDeployInstancesForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesForms.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php b/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php new file mode 100644 index 000000000..0eadf2e53 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php @@ -0,0 +1,347 @@ + 'string', +'game_id' => 'string', +'version_id' => 'string', +'deploy_status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null, +'version_id' => null, +'deploy_status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId', +'version_id' => 'versionId', +'deploy_status' => 'deployStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId', +'version_id' => 'setVersionId', +'deploy_status' => 'setDeployStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId', +'version_id' => 'getVersionId', +'deploy_status' => 'getDeployStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['deploy_status'] = isset($data['deploy_status']) ? $data['deploy_status'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets deploy_status + * + * @return string + */ + public function getDeployStatus() + { + return $this->container['deploy_status']; + } + + /** + * Sets deploy_status + * + * @param string $deploy_status deploy_status + * + * @return $this + */ + public function setDeployStatus($deploy_status) + { + $this->container['deploy_status'] = $deploy_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From de3a04c8e21f5b8e7e51061926f4505e7ff1c344 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:25 +0800 Subject: [PATCH 145/327] feat: update --- ...eAdminListVersionDeployInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResult.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php new file mode 100644 index 000000000..2cf6eaca7 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1f9855000007b6f7833077b78731a3d01e4ff02f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:26 +0800 Subject: [PATCH 146/327] feat: update --- ...nListVersionDeployInstancesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php new file mode 100644 index 000000000..63916e8e2 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8e7e64c65806b1e655cd98a583fe1ce21b54b478 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:27 +0800 Subject: [PATCH 147/327] feat: update --- ...sionDeployInstancesResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php new file mode 100644 index 000000000..e61e62895 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'cloud_game_instance_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ab5e188c4a7e0ec642cbcbd981cc13ba7e1609d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:28 +0800 Subject: [PATCH 148/327] feat: update --- ...eAdminQueryAdaptResultByVersionIdForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php new file mode 100644 index 000000000..1d3d0b1d8 --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dc43a3c829f577b1dcfd7100b4d109f2dc510ffd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:30 +0800 Subject: [PATCH 149/327] feat: update --- ...AdminQueryAdaptResultByVersionIdResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php new file mode 100644 index 000000000..bacde8158 --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6d63648f34607100f21fbfba340662413d455492 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:31 +0800 Subject: [PATCH 150/327] feat: update --- ...QueryAdaptResultByVersionIdResultModel.php | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php new file mode 100644 index 000000000..2bf10e4ab --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php @@ -0,0 +1,707 @@ + 'string', +'dict_frame_rate' => 'string', +'dict_machine_type_vm' => 'string', +'container_type' => 'int', +'sandbox' => 'int', +'platform_type' => 'int', +'priority' => 'int', +'resolution' => 'string', +'adapt_file_source' => 'string', +'required' => 'int', +'max_concurrency' => 'int', +'state' => 'int', +'pipeline_type' => 'int', +'dict_pic_quality' => 'string', +'dict_isv_name' => 'string', +'calculation_evaluation' => 'map[string,string]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'adapt_file_source_name' => null, +'dict_frame_rate' => null, +'dict_machine_type_vm' => null, +'container_type' => null, +'sandbox' => null, +'platform_type' => null, +'priority' => null, +'resolution' => null, +'adapt_file_source' => null, +'required' => null, +'max_concurrency' => null, +'state' => null, +'pipeline_type' => null, +'dict_pic_quality' => null, +'dict_isv_name' => null, +'calculation_evaluation' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'adapt_file_source_name' => 'adaptFileSourceName', +'dict_frame_rate' => 'dictFrameRate', +'dict_machine_type_vm' => 'dictMachineTypeVm', +'container_type' => 'containerType', +'sandbox' => 'sandbox', +'platform_type' => 'platformType', +'priority' => 'priority', +'resolution' => 'resolution', +'adapt_file_source' => 'adaptFileSource', +'required' => 'required', +'max_concurrency' => 'maxConcurrency', +'state' => 'state', +'pipeline_type' => 'pipelineType', +'dict_pic_quality' => 'dictPicQuality', +'dict_isv_name' => 'dictIsvName', +'calculation_evaluation' => 'calculationEvaluation' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'adapt_file_source_name' => 'setAdaptFileSourceName', +'dict_frame_rate' => 'setDictFrameRate', +'dict_machine_type_vm' => 'setDictMachineTypeVm', +'container_type' => 'setContainerType', +'sandbox' => 'setSandbox', +'platform_type' => 'setPlatformType', +'priority' => 'setPriority', +'resolution' => 'setResolution', +'adapt_file_source' => 'setAdaptFileSource', +'required' => 'setRequired', +'max_concurrency' => 'setMaxConcurrency', +'state' => 'setState', +'pipeline_type' => 'setPipelineType', +'dict_pic_quality' => 'setDictPicQuality', +'dict_isv_name' => 'setDictIsvName', +'calculation_evaluation' => 'setCalculationEvaluation' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'adapt_file_source_name' => 'getAdaptFileSourceName', +'dict_frame_rate' => 'getDictFrameRate', +'dict_machine_type_vm' => 'getDictMachineTypeVm', +'container_type' => 'getContainerType', +'sandbox' => 'getSandbox', +'platform_type' => 'getPlatformType', +'priority' => 'getPriority', +'resolution' => 'getResolution', +'adapt_file_source' => 'getAdaptFileSource', +'required' => 'getRequired', +'max_concurrency' => 'getMaxConcurrency', +'state' => 'getState', +'pipeline_type' => 'getPipelineType', +'dict_pic_quality' => 'getDictPicQuality', +'dict_isv_name' => 'getDictIsvName', +'calculation_evaluation' => 'getCalculationEvaluation' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['adapt_file_source_name'] = isset($data['adapt_file_source_name']) ? $data['adapt_file_source_name'] : null; + $this->container['dict_frame_rate'] = isset($data['dict_frame_rate']) ? $data['dict_frame_rate'] : null; + $this->container['dict_machine_type_vm'] = isset($data['dict_machine_type_vm']) ? $data['dict_machine_type_vm'] : null; + $this->container['container_type'] = isset($data['container_type']) ? $data['container_type'] : null; + $this->container['sandbox'] = isset($data['sandbox']) ? $data['sandbox'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['adapt_file_source'] = isset($data['adapt_file_source']) ? $data['adapt_file_source'] : null; + $this->container['required'] = isset($data['required']) ? $data['required'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['pipeline_type'] = isset($data['pipeline_type']) ? $data['pipeline_type'] : null; + $this->container['dict_pic_quality'] = isset($data['dict_pic_quality']) ? $data['dict_pic_quality'] : null; + $this->container['dict_isv_name'] = isset($data['dict_isv_name']) ? $data['dict_isv_name'] : null; + $this->container['calculation_evaluation'] = isset($data['calculation_evaluation']) ? $data['calculation_evaluation'] : null; + } + + + /** + * Gets adapt_file_source_name + * + * @return string + */ + public function getAdaptFileSourceName() + { + return $this->container['adapt_file_source_name']; + } + + /** + * Sets adapt_file_source_name + * + * @param string $adapt_file_source_name adapt_file_source_name + * + * @return $this + */ + public function setAdaptFileSourceName($adapt_file_source_name) + { + $this->container['adapt_file_source_name'] = $adapt_file_source_name; + + return $this; + } + + /** + * Gets dict_frame_rate + * + * @return string + */ + public function getDictFrameRate() + { + return $this->container['dict_frame_rate']; + } + + /** + * Sets dict_frame_rate + * + * @param string $dict_frame_rate dict_frame_rate + * + * @return $this + */ + public function setDictFrameRate($dict_frame_rate) + { + $this->container['dict_frame_rate'] = $dict_frame_rate; + + return $this; + } + + /** + * Gets dict_machine_type_vm + * + * @return string + */ + public function getDictMachineTypeVm() + { + return $this->container['dict_machine_type_vm']; + } + + /** + * Sets dict_machine_type_vm + * + * @param string $dict_machine_type_vm dict_machine_type_vm + * + * @return $this + */ + public function setDictMachineTypeVm($dict_machine_type_vm) + { + $this->container['dict_machine_type_vm'] = $dict_machine_type_vm; + + return $this; + } + + /** + * Gets container_type + * + * @return int + */ + public function getContainerType() + { + return $this->container['container_type']; + } + + /** + * Sets container_type + * + * @param int $container_type container_type + * + * @return $this + */ + public function setContainerType($container_type) + { + $this->container['container_type'] = $container_type; + + return $this; + } + + /** + * Gets sandbox + * + * @return int + */ + public function getSandbox() + { + return $this->container['sandbox']; + } + + /** + * Sets sandbox + * + * @param int $sandbox sandbox + * + * @return $this + */ + public function setSandbox($sandbox) + { + $this->container['sandbox'] = $sandbox; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority priority + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets adapt_file_source + * + * @return string + */ + public function getAdaptFileSource() + { + return $this->container['adapt_file_source']; + } + + /** + * Sets adapt_file_source + * + * @param string $adapt_file_source adapt_file_source + * + * @return $this + */ + public function setAdaptFileSource($adapt_file_source) + { + $this->container['adapt_file_source'] = $adapt_file_source; + + return $this; + } + + /** + * Gets required + * + * @return int + */ + public function getRequired() + { + return $this->container['required']; + } + + /** + * Sets required + * + * @param int $required required + * + * @return $this + */ + public function setRequired($required) + { + $this->container['required'] = $required; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + + /** + * Gets state + * + * @return int + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param int $state state + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets pipeline_type + * + * @return int + */ + public function getPipelineType() + { + return $this->container['pipeline_type']; + } + + /** + * Sets pipeline_type + * + * @param int $pipeline_type pipeline_type + * + * @return $this + */ + public function setPipelineType($pipeline_type) + { + $this->container['pipeline_type'] = $pipeline_type; + + return $this; + } + + /** + * Gets dict_pic_quality + * + * @return string + */ + public function getDictPicQuality() + { + return $this->container['dict_pic_quality']; + } + + /** + * Sets dict_pic_quality + * + * @param string $dict_pic_quality dict_pic_quality + * + * @return $this + */ + public function setDictPicQuality($dict_pic_quality) + { + $this->container['dict_pic_quality'] = $dict_pic_quality; + + return $this; + } + + /** + * Gets dict_isv_name + * + * @return string + */ + public function getDictIsvName() + { + return $this->container['dict_isv_name']; + } + + /** + * Sets dict_isv_name + * + * @param string $dict_isv_name dict_isv_name + * + * @return $this + */ + public function setDictIsvName($dict_isv_name) + { + $this->container['dict_isv_name'] = $dict_isv_name; + + return $this; + } + + /** + * Gets calculation_evaluation + * + * @return map[string,string] + */ + public function getCalculationEvaluation() + { + return $this->container['calculation_evaluation']; + } + + /** + * Sets calculation_evaluation + * + * @param map[string,string] $calculation_evaluation calculation_evaluation + * + * @return $this + */ + public function setCalculationEvaluation($calculation_evaluation) + { + $this->container['calculation_evaluation'] = $calculation_evaluation; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c50ce92397601d49d9f8bcb6a49d00781a239e57 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:33 +0800 Subject: [PATCH 151/327] feat: update --- ...onsoleAdminRecommendSpecificationForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationForms.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationForms.php b/lib/Model/ConsoleAdminRecommendSpecificationForms.php new file mode 100644 index 000000000..d2c15c703 --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationForms.php @@ -0,0 +1,317 @@ + 'string', +'game_version_id' => 'string', +'platform_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'game_version_id' => null, +'platform_type' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_version_id' => 'gameVersionId', +'platform_type' => 'platformType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_version_id' => 'setGameVersionId', +'platform_type' => 'setPlatformType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_version_id' => 'getGameVersionId', +'platform_type' => 'getPlatformType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_version_id'] = isset($data['game_version_id']) ? $data['game_version_id'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_version_id + * + * @return string + */ + public function getGameVersionId() + { + return $this->container['game_version_id']; + } + + /** + * Sets game_version_id + * + * @param string $game_version_id game_version_id + * + * @return $this + */ + public function setGameVersionId($game_version_id) + { + $this->container['game_version_id'] = $game_version_id; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ae342d27eb24d6816202e85c53f3e2064b097cf7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:34 +0800 Subject: [PATCH 152/327] feat: update --- ...nsoleAdminRecommendSpecificationResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationResult.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationResult.php b/lib/Model/ConsoleAdminRecommendSpecificationResult.php new file mode 100644 index 000000000..db5cd8051 --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 57033e58a331acba5c8bbea02aa9929768b77f86 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:36 +0800 Subject: [PATCH 153/327] feat: update --- ...AdminRecommendSpecificationResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationResultModel.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php b/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php new file mode 100644 index 000000000..ab5756296 --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php @@ -0,0 +1,347 @@ + 'string', +'specification_value_code' => 'string', +'specification_name' => 'string', +'specification_attribute_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'specification_cn_name' => null, +'specification_value_code' => null, +'specification_name' => null, +'specification_attribute_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'specification_cn_name' => 'specificationCnName', +'specification_value_code' => 'specificationValueCode', +'specification_name' => 'specificationName', +'specification_attribute_code' => 'specificationAttributeCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'specification_cn_name' => 'setSpecificationCnName', +'specification_value_code' => 'setSpecificationValueCode', +'specification_name' => 'setSpecificationName', +'specification_attribute_code' => 'setSpecificationAttributeCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'specification_cn_name' => 'getSpecificationCnName', +'specification_value_code' => 'getSpecificationValueCode', +'specification_name' => 'getSpecificationName', +'specification_attribute_code' => 'getSpecificationAttributeCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['specification_cn_name'] = isset($data['specification_cn_name']) ? $data['specification_cn_name'] : null; + $this->container['specification_value_code'] = isset($data['specification_value_code']) ? $data['specification_value_code'] : null; + $this->container['specification_name'] = isset($data['specification_name']) ? $data['specification_name'] : null; + $this->container['specification_attribute_code'] = isset($data['specification_attribute_code']) ? $data['specification_attribute_code'] : null; + } + + + /** + * Gets specification_cn_name + * + * @return string + */ + public function getSpecificationCnName() + { + return $this->container['specification_cn_name']; + } + + /** + * Sets specification_cn_name + * + * @param string $specification_cn_name specification_cn_name + * + * @return $this + */ + public function setSpecificationCnName($specification_cn_name) + { + $this->container['specification_cn_name'] = $specification_cn_name; + + return $this; + } + + /** + * Gets specification_value_code + * + * @return string + */ + public function getSpecificationValueCode() + { + return $this->container['specification_value_code']; + } + + /** + * Sets specification_value_code + * + * @param string $specification_value_code specification_value_code + * + * @return $this + */ + public function setSpecificationValueCode($specification_value_code) + { + $this->container['specification_value_code'] = $specification_value_code; + + return $this; + } + + /** + * Gets specification_name + * + * @return string + */ + public function getSpecificationName() + { + return $this->container['specification_name']; + } + + /** + * Sets specification_name + * + * @param string $specification_name specification_name + * + * @return $this + */ + public function setSpecificationName($specification_name) + { + $this->container['specification_name'] = $specification_name; + + return $this; + } + + /** + * Gets specification_attribute_code + * + * @return string + */ + public function getSpecificationAttributeCode() + { + return $this->container['specification_attribute_code']; + } + + /** + * Sets specification_attribute_code + * + * @param string $specification_attribute_code specification_attribute_code + * + * @return $this + */ + public function setSpecificationAttributeCode($specification_attribute_code) + { + $this->container['specification_attribute_code'] = $specification_attribute_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 754998345a802b84f23ff48cf508b31763a7eb79 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:37 +0800 Subject: [PATCH 154/327] feat: update --- ...ConsoleAdminRemoveGameFromProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRemoveGameFromProjectForms.php diff --git a/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php b/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php new file mode 100644 index 000000000..3bf61613a --- /dev/null +++ b/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9aecb509d9308c8684230f0645809b744fa9d934 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:38 +0800 Subject: [PATCH 155/327] feat: update --- ...onsoleAdminRemoveGameFromProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRemoveGameFromProjectResult.php diff --git a/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php b/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php new file mode 100644 index 000000000..2e8718787 --- /dev/null +++ b/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ff3d7a95e006d0d7fdc812c35ecd4c74625380a6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:40 +0800 Subject: [PATCH 156/327] feat: update --- lib/Model/ConsoleAdminRtOverViewForms.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewForms.php diff --git a/lib/Model/ConsoleAdminRtOverViewForms.php b/lib/Model/ConsoleAdminRtOverViewForms.php new file mode 100644 index 000000000..0860d3cdb --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewForms.php @@ -0,0 +1,347 @@ + 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + } + + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e176d4fa8cc75a90ae9c98fcc8e85527e7b26b42 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:41 +0800 Subject: [PATCH 157/327] feat: update --- lib/Model/ConsoleAdminRtOverViewResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewResult.php diff --git a/lib/Model/ConsoleAdminRtOverViewResult.php b/lib/Model/ConsoleAdminRtOverViewResult.php new file mode 100644 index 000000000..e824a6edb --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8f38a20f3336e7b6358377581bf11cf7eb072693 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:43 +0800 Subject: [PATCH 158/327] feat: update --- .../ConsoleAdminRtOverViewResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewResultModel.php diff --git a/lib/Model/ConsoleAdminRtOverViewResultModel.php b/lib/Model/ConsoleAdminRtOverViewResultModel.php new file mode 100644 index 000000000..dd3380526 --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewResultModel.php @@ -0,0 +1,317 @@ + 'string', +'max_value' => 'string', +'name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'indicator_type' => null, +'max_value' => null, +'name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'indicator_type' => 'indicatorType', +'max_value' => 'maxValue', +'name' => 'name' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'indicator_type' => 'setIndicatorType', +'max_value' => 'setMaxValue', +'name' => 'setName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'indicator_type' => 'getIndicatorType', +'max_value' => 'getMaxValue', +'name' => 'getName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['indicator_type'] = isset($data['indicator_type']) ? $data['indicator_type'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + + /** + * Gets indicator_type + * + * @return string + */ + public function getIndicatorType() + { + return $this->container['indicator_type']; + } + + /** + * Sets indicator_type + * + * @param string $indicator_type indicator_type + * + * @return $this + */ + public function setIndicatorType($indicator_type) + { + $this->container['indicator_type'] = $indicator_type; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8c1d65c8a1e29ed8ea59ce03229de33d4f6b9ed5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:44 +0800 Subject: [PATCH 159/327] feat: update --- lib/Model/ConsoleAdminRtTrendForms.php | 407 +++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendForms.php diff --git a/lib/Model/ConsoleAdminRtTrendForms.php b/lib/Model/ConsoleAdminRtTrendForms.php new file mode 100644 index 000000000..8f7c84443 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendForms.php @@ -0,0 +1,407 @@ + 'string', +'indicator_types' => 'string', +'mix_game_ids' => 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'group_type' => null, +'indicator_types' => null, +'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'group_type' => 'groupType', +'indicator_types' => 'indicatorTypes', +'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'group_type' => 'setGroupType', +'indicator_types' => 'setIndicatorTypes', +'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'group_type' => 'getGroupType', +'indicator_types' => 'getIndicatorTypes', +'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['group_type'] = isset($data['group_type']) ? $data['group_type'] : null; + $this->container['indicator_types'] = isset($data['indicator_types']) ? $data['indicator_types'] : null; + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + } + + + /** + * Gets group_type + * + * @return string + */ + public function getGroupType() + { + return $this->container['group_type']; + } + + /** + * Sets group_type + * + * @param string $group_type group_type + * + * @return $this + */ + public function setGroupType($group_type) + { + $this->container['group_type'] = $group_type; + + return $this; + } + + /** + * Gets indicator_types + * + * @return string + */ + public function getIndicatorTypes() + { + return $this->container['indicator_types']; + } + + /** + * Sets indicator_types + * + * @param string $indicator_types indicator_types + * + * @return $this + */ + public function setIndicatorTypes($indicator_types) + { + $this->container['indicator_types'] = $indicator_types; + + return $this; + } + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cb0df731e0059db5d361c1e2dcccd6983a5da80b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:45 +0800 Subject: [PATCH 160/327] feat: update --- lib/Model/ConsoleAdminRtTrendResult.php | 347 ++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResult.php diff --git a/lib/Model/ConsoleAdminRtTrendResult.php b/lib/Model/ConsoleAdminRtTrendResult.php new file mode 100644 index 000000000..b49a9375c --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1bef9e3320d8287639c535a04ee52746c511ac8e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:47 +0800 Subject: [PATCH 161/327] feat: update --- lib/Model/ConsoleAdminRtTrendResultModel.php | 287 +++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModel.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModel.php b/lib/Model/ConsoleAdminRtTrendResultModel.php new file mode 100644 index 000000000..fa773651b --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[]', +'max_value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'max_value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'max_value' => 'maxValue' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'max_value' => 'setMaxValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'max_value' => 'getMaxValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + } + + + /** + * Gets data + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[] $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c8dfa1530528d2155ecb5be6388415c79095eac3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:48 +0800 Subject: [PATCH 162/327] feat: update --- .../ConsoleAdminRtTrendResultModelData.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModelData.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModelData.php b/lib/Model/ConsoleAdminRtTrendResultModelData.php new file mode 100644 index 000000000..ff8c55c20 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModelData.php @@ -0,0 +1,347 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[]', +'indicator_type' => 'string', +'max_value' => 'string', +'name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'indicator_type' => null, +'max_value' => null, +'name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'indicator_type' => 'indicatorType', +'max_value' => 'maxValue', +'name' => 'name' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'indicator_type' => 'setIndicatorType', +'max_value' => 'setMaxValue', +'name' => 'setName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'indicator_type' => 'getIndicatorType', +'max_value' => 'getMaxValue', +'name' => 'getName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['indicator_type'] = isset($data['indicator_type']) ? $data['indicator_type'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + + /** + * Gets data + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[] $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets indicator_type + * + * @return string + */ + public function getIndicatorType() + { + return $this->container['indicator_type']; + } + + /** + * Sets indicator_type + * + * @param string $indicator_type indicator_type + * + * @return $this + */ + public function setIndicatorType($indicator_type) + { + $this->container['indicator_type'] = $indicator_type; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 98733f58e80d2f1188d0d5317b9728ebcb7b4adb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:49 +0800 Subject: [PATCH 163/327] feat: update --- ...ConsoleAdminRtTrendResultModelDataData.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModelDataData.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModelDataData.php b/lib/Model/ConsoleAdminRtTrendResultModelDataData.php new file mode 100644 index 000000000..a51a56902 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModelDataData.php @@ -0,0 +1,287 @@ + 'int', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'time_stamp' => 'int64', +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'time_stamp' => 'timeStamp', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'time_stamp' => 'setTimeStamp', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'time_stamp' => 'getTimeStamp', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['time_stamp'] = isset($data['time_stamp']) ? $data['time_stamp'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets time_stamp + * + * @return int + */ + public function getTimeStamp() + { + return $this->container['time_stamp']; + } + + /** + * Sets time_stamp + * + * @param int $time_stamp time_stamp + * + * @return $this + */ + public function setTimeStamp($time_stamp) + { + $this->container['time_stamp'] = $time_stamp; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ef4bdb14f8772aaa13d5ddf07fc36cba8d70022c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:51 +0800 Subject: [PATCH 164/327] feat: update --- .../ConsoleAdminSubmitDeploymentForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentForms.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentForms.php b/lib/Model/ConsoleAdminSubmitDeploymentForms.php new file mode 100644 index 000000000..3649c446b --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentForms.php @@ -0,0 +1,377 @@ + 'string', +'project_id' => 'string', +'version_id' => 'string', +'cloud_game_instance_ids' => 'string', +'operation_type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null, +'version_id' => null, +'cloud_game_instance_ids' => null, +'operation_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId', +'version_id' => 'versionId', +'cloud_game_instance_ids' => 'cloudGameInstanceIds', +'operation_type' => 'operationType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId', +'version_id' => 'setVersionId', +'cloud_game_instance_ids' => 'setCloudGameInstanceIds', +'operation_type' => 'setOperationType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId', +'version_id' => 'getVersionId', +'cloud_game_instance_ids' => 'getCloudGameInstanceIds', +'operation_type' => 'getOperationType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['cloud_game_instance_ids'] = isset($data['cloud_game_instance_ids']) ? $data['cloud_game_instance_ids'] : null; + $this->container['operation_type'] = isset($data['operation_type']) ? $data['operation_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets cloud_game_instance_ids + * + * @return string + */ + public function getCloudGameInstanceIds() + { + return $this->container['cloud_game_instance_ids']; + } + + /** + * Sets cloud_game_instance_ids + * + * @param string $cloud_game_instance_ids cloud_game_instance_ids + * + * @return $this + */ + public function setCloudGameInstanceIds($cloud_game_instance_ids) + { + $this->container['cloud_game_instance_ids'] = $cloud_game_instance_ids; + + return $this; + } + + /** + * Gets operation_type + * + * @return string + */ + public function getOperationType() + { + return $this->container['operation_type']; + } + + /** + * Sets operation_type + * + * @param string $operation_type operation_type + * + * @return $this + */ + public function setOperationType($operation_type) + { + $this->container['operation_type'] = $operation_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7b56f8497d47a7042ce995b2b5e99bf476482de2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:52 +0800 Subject: [PATCH 165/327] feat: update --- .../ConsoleAdminSubmitDeploymentResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentResult.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentResult.php b/lib/Model/ConsoleAdminSubmitDeploymentResult.php new file mode 100644 index 000000000..3bffda149 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9483dc2fc00562417b65eb2d8ff2fad1596aaf12 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:53 +0800 Subject: [PATCH 166/327] feat: update --- ...onsoleAdminSubmitDeploymentResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentResultModel.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php b/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php new file mode 100644 index 000000000..6d0d1491e --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 22882968c224d9bb423175660660d77420739563 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:54 +0800 Subject: [PATCH 167/327] feat: update --- lib/Model/ConsoleAdminSubmitRefundForms.php | 407 ++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundForms.php diff --git a/lib/Model/ConsoleAdminSubmitRefundForms.php b/lib/Model/ConsoleAdminSubmitRefundForms.php new file mode 100644 index 000000000..c9b16aa50 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundForms.php @@ -0,0 +1,407 @@ + 'string', +'instance_id' => 'string', +'refund_type' => 'string', +'refund_reason' => 'string', +'refund_reason_type' => 'string', +'target_expire_time' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_code' => null, +'instance_id' => null, +'refund_type' => null, +'refund_reason' => null, +'refund_reason_type' => null, +'target_expire_time' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_code' => 'commodityCode', +'instance_id' => 'instanceId', +'refund_type' => 'refundType', +'refund_reason' => 'refundReason', +'refund_reason_type' => 'refundReasonType', +'target_expire_time' => 'targetExpireTime' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_code' => 'setCommodityCode', +'instance_id' => 'setInstanceId', +'refund_type' => 'setRefundType', +'refund_reason' => 'setRefundReason', +'refund_reason_type' => 'setRefundReasonType', +'target_expire_time' => 'setTargetExpireTime' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_code' => 'getCommodityCode', +'instance_id' => 'getInstanceId', +'refund_type' => 'getRefundType', +'refund_reason' => 'getRefundReason', +'refund_reason_type' => 'getRefundReasonType', +'target_expire_time' => 'getTargetExpireTime' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['refund_type'] = isset($data['refund_type']) ? $data['refund_type'] : null; + $this->container['refund_reason'] = isset($data['refund_reason']) ? $data['refund_reason'] : null; + $this->container['refund_reason_type'] = isset($data['refund_reason_type']) ? $data['refund_reason_type'] : null; + $this->container['target_expire_time'] = isset($data['target_expire_time']) ? $data['target_expire_time'] : null; + } + + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets refund_type + * + * @return string + */ + public function getRefundType() + { + return $this->container['refund_type']; + } + + /** + * Sets refund_type + * + * @param string $refund_type 退订类型 + * + * @return $this + */ + public function setRefundType($refund_type) + { + $this->container['refund_type'] = $refund_type; + + return $this; + } + + /** + * Gets refund_reason + * + * @return string + */ + public function getRefundReason() + { + return $this->container['refund_reason']; + } + + /** + * Sets refund_reason + * + * @param string $refund_reason 退订理由 + * + * @return $this + */ + public function setRefundReason($refund_reason) + { + $this->container['refund_reason'] = $refund_reason; + + return $this; + } + + /** + * Gets refund_reason_type + * + * @return string + */ + public function getRefundReasonType() + { + return $this->container['refund_reason_type']; + } + + /** + * Sets refund_reason_type + * + * @param string $refund_reason_type 退订理由类型 + * + * @return $this + */ + public function setRefundReasonType($refund_reason_type) + { + $this->container['refund_reason_type'] = $refund_reason_type; + + return $this; + } + + /** + * Gets target_expire_time + * + * @return string + */ + public function getTargetExpireTime() + { + return $this->container['target_expire_time']; + } + + /** + * Sets target_expire_time + * + * @param string $target_expire_time 退订后的过期时间 退续费场景使用 + * + * @return $this + */ + public function setTargetExpireTime($target_expire_time) + { + $this->container['target_expire_time'] = $target_expire_time; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 286b8a72d2310e928a6177a7857fc1d753a45af3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:56 +0800 Subject: [PATCH 168/327] feat: update --- lib/Model/ConsoleAdminSubmitRefundResult.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundResult.php diff --git a/lib/Model/ConsoleAdminSubmitRefundResult.php b/lib/Model/ConsoleAdminSubmitRefundResult.php new file mode 100644 index 000000000..a1e68e4d7 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 63aedea05770956ab986086d8cf6bdf81c1c82b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:57 +0800 Subject: [PATCH 169/327] feat: update --- .../ConsoleAdminSubmitRefundResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundResultModel.php diff --git a/lib/Model/ConsoleAdminSubmitRefundResultModel.php b/lib/Model/ConsoleAdminSubmitRefundResultModel.php new file mode 100644 index 000000000..2291e8f20 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundResultModel.php @@ -0,0 +1,287 @@ + 'string', +'submit_success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'refund_order_id' => null, +'submit_success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'refund_order_id' => 'refundOrderId', +'submit_success' => 'submitSuccess' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'refund_order_id' => 'setRefundOrderId', +'submit_success' => 'setSubmitSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'refund_order_id' => 'getRefundOrderId', +'submit_success' => 'getSubmitSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['refund_order_id'] = isset($data['refund_order_id']) ? $data['refund_order_id'] : null; + $this->container['submit_success'] = isset($data['submit_success']) ? $data['submit_success'] : null; + } + + + /** + * Gets refund_order_id + * + * @return string + */ + public function getRefundOrderId() + { + return $this->container['refund_order_id']; + } + + /** + * Sets refund_order_id + * + * @param string $refund_order_id refundOrderId + * + * @return $this + */ + public function setRefundOrderId($refund_order_id) + { + $this->container['refund_order_id'] = $refund_order_id; + + return $this; + } + + /** + * Gets submit_success + * + * @return bool + */ + public function getSubmitSuccess() + { + return $this->container['submit_success']; + } + + /** + * Sets submit_success + * + * @param bool $submit_success 是否提交成功 + * + * @return $this + */ + public function setSubmitSuccess($submit_success) + { + $this->container['submit_success'] = $submit_success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f20e95167fca71bd3d68cd6c4c320a8a56d14e96 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:13:58 +0800 Subject: [PATCH 170/327] feat: update --- ...eAdminUploadGameVersionByDownloadForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php new file mode 100644 index 000000000..6bfd6b645 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'download_type' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType', +'version_name' => 'string', +'os_manifest' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'hash' => null, +'game_id' => null, +'download_type' => null, +'version_name' => null, +'os_manifest' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hash' => 'hash', +'game_id' => 'gameId', +'download_type' => 'downloadType', +'version_name' => 'versionName', +'os_manifest' => 'osManifest' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hash' => 'setHash', +'game_id' => 'setGameId', +'download_type' => 'setDownloadType', +'version_name' => 'setVersionName', +'os_manifest' => 'setOsManifest' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hash' => 'getHash', +'game_id' => 'getGameId', +'download_type' => 'getDownloadType', +'version_name' => 'getVersionName', +'os_manifest' => 'getOsManifest' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hash'] = isset($data['hash']) ? $data['hash'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['download_type'] = isset($data['download_type']) ? $data['download_type'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + $this->container['os_manifest'] = isset($data['os_manifest']) ? $data['os_manifest'] : null; + } + + + /** + * Gets hash + * + * @return string + */ + public function getHash() + { + return $this->container['hash']; + } + + /** + * Sets hash + * + * @param string $hash hash + * + * @return $this + */ + public function setHash($hash) + { + $this->container['hash'] = $hash; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets download_type + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType + */ + public function getDownloadType() + { + return $this->container['download_type']; + } + + /** + * Sets download_type + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType $download_type download_type + * + * @return $this + */ + public function setDownloadType($download_type) + { + $this->container['download_type'] = $download_type; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + + /** + * Gets os_manifest + * + * @return string + */ + public function getOsManifest() + { + return $this->container['os_manifest']; + } + + /** + * Sets os_manifest + * + * @param string $os_manifest os_manifest + * + * @return $this + */ + public function setOsManifest($os_manifest) + { + $this->container['os_manifest'] = $os_manifest; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2aba8523ec281e5ed7004b434e85562110a8bee0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:00 +0800 Subject: [PATCH 171/327] feat: update --- ...GameVersionByDownloadFormsDownloadType.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php new file mode 100644 index 000000000..261d39320 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php @@ -0,0 +1,287 @@ + 'string', +'type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_url' => null, +'type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_url' => 'gameUrl', +'type' => 'type' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_url' => 'setGameUrl', +'type' => 'setType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_url' => 'getGameUrl', +'type' => 'getType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_url'] = isset($data['game_url']) ? $data['game_url'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + + /** + * Gets game_url + * + * @return string + */ + public function getGameUrl() + { + return $this->container['game_url']; + } + + /** + * Sets game_url + * + * @param string $game_url game_url + * + * @return $this + */ + public function setGameUrl($game_url) + { + $this->container['game_url'] = $game_url; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4231c3f06b66476ef6c30ced830c7750b123b64c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:01 +0800 Subject: [PATCH 172/327] feat: update --- ...AdminUploadGameVersionByDownloadResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php new file mode 100644 index 000000000..f7798212b --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c20460b4c1bd4cb67bba33db44d2ee2fec2fa362 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:03 +0800 Subject: [PATCH 173/327] feat: update --- ...UploadGameVersionByDownloadResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php new file mode 100644 index 000000000..f1376f133 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3c8f1ac2b3b16ce0bd1de67e2cdf0a1f7ab4704e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:04 +0800 Subject: [PATCH 174/327] feat: update --- lib/Model/GameNotifyForms.php | 347 ++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyForms.php diff --git a/lib/Model/GameNotifyForms.php b/lib/Model/GameNotifyForms.php new file mode 100644 index 000000000..6cc8f7a3a --- /dev/null +++ b/lib/Model/GameNotifyForms.php @@ -0,0 +1,347 @@ + 'string', +'game_session' => 'string', +'type' => 'string', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'type' => null, +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'type' => 'type', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'type' => 'setType', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'type' => 'getType', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key appKey + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 94c55bd7bd8c2dcf17b6e1632d3c9ce4b0ff891d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:06 +0800 Subject: [PATCH 175/327] feat: update --- lib/Model/GameNotifyResult.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyResult.php diff --git a/lib/Model/GameNotifyResult.php b/lib/Model/GameNotifyResult.php new file mode 100644 index 000000000..7b4b00590 --- /dev/null +++ b/lib/Model/GameNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d7e6c32ee90db6644c4cda2e2a994e82a72d3902 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:07 +0800 Subject: [PATCH 176/327] feat: update --- lib/Model/GameNotifyResultModel.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyResultModel.php diff --git a/lib/Model/GameNotifyResultModel.php b/lib/Model/GameNotifyResultModel.php new file mode 100644 index 000000000..06c6d017a --- /dev/null +++ b/lib/Model/GameNotifyResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f17eca0e53207465d80f3257b239e485da929f21 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:08 +0800 Subject: [PATCH 177/327] feat: update --- lib/Model/GetGameConcurrencyForms.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyForms.php diff --git a/lib/Model/GetGameConcurrencyForms.php b/lib/Model/GetGameConcurrencyForms.php new file mode 100644 index 000000000..fb12771ca --- /dev/null +++ b/lib/Model/GetGameConcurrencyForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'query_queue_concurrency' => 'bool', +'queue_user_level' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'query_queue_concurrency' => null, +'queue_user_level' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'query_queue_concurrency' => 'queryQueueConcurrency', +'queue_user_level' => 'queueUserLevel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'query_queue_concurrency' => 'setQueryQueueConcurrency', +'queue_user_level' => 'setQueueUserLevel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'query_queue_concurrency' => 'getQueryQueueConcurrency', +'queue_user_level' => 'getQueueUserLevel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['query_queue_concurrency'] = isset($data['query_queue_concurrency']) ? $data['query_queue_concurrency'] : null; + $this->container['queue_user_level'] = isset($data['queue_user_level']) ? $data['queue_user_level'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 云游戏项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets query_queue_concurrency + * + * @return bool + */ + public function getQueryQueueConcurrency() + { + return $this->container['query_queue_concurrency']; + } + + /** + * Sets query_queue_concurrency + * + * @param bool $query_queue_concurrency 是否查询PaaS当前排队人数 + * + * @return $this + */ + public function setQueryQueueConcurrency($query_queue_concurrency) + { + $this->container['query_queue_concurrency'] = $query_queue_concurrency; + + return $this; + } + + /** + * Gets queue_user_level + * + * @return int + */ + public function getQueueUserLevel() + { + return $this->container['queue_user_level']; + } + + /** + * Sets queue_user_level + * + * @param int $queue_user_level 指定userLevel查询当前userLevel排队人数,不指定时,查询当前所有排队人数 + * + * @return $this + */ + public function setQueueUserLevel($queue_user_level) + { + $this->container['queue_user_level'] = $queue_user_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f1f7f194b923ffa2379c02aaf0ffaafabdec5dbc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:10 +0800 Subject: [PATCH 178/327] feat: update --- lib/Model/GetGameConcurrencyResult.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResult.php diff --git a/lib/Model/GetGameConcurrencyResult.php b/lib/Model/GetGameConcurrencyResult.php new file mode 100644 index 000000000..e829c984d --- /dev/null +++ b/lib/Model/GetGameConcurrencyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 064d954a6db31ee868e0c0f42718c33170169fa2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:11 +0800 Subject: [PATCH 179/327] feat: update --- lib/Model/GetGameConcurrencyResultModel.php | 497 ++++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResultModel.php diff --git a/lib/Model/GetGameConcurrencyResultModel.php b/lib/Model/GetGameConcurrencyResultModel.php new file mode 100644 index 000000000..9de0fe274 --- /dev/null +++ b/lib/Model/GetGameConcurrencyResultModel.php @@ -0,0 +1,497 @@ + 'string', +'current_time' => 'int', +'playing_region_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[]', +'code' => 'string', +'playing_total' => 'int', +'success' => 'bool', +'queuing_total' => 'int', +'message' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'current_time' => 'int64', +'playing_region_list' => null, +'code' => null, +'playing_total' => 'int64', +'success' => null, +'queuing_total' => 'int64', +'message' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'current_time' => 'currentTime', +'playing_region_list' => 'playingRegionList', +'code' => 'code', +'playing_total' => 'playingTotal', +'success' => 'success', +'queuing_total' => 'queuingTotal', +'message' => 'message', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'current_time' => 'setCurrentTime', +'playing_region_list' => 'setPlayingRegionList', +'code' => 'setCode', +'playing_total' => 'setPlayingTotal', +'success' => 'setSuccess', +'queuing_total' => 'setQueuingTotal', +'message' => 'setMessage', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'current_time' => 'getCurrentTime', +'playing_region_list' => 'getPlayingRegionList', +'code' => 'getCode', +'playing_total' => 'getPlayingTotal', +'success' => 'getSuccess', +'queuing_total' => 'getQueuingTotal', +'message' => 'getMessage', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['current_time'] = isset($data['current_time']) ? $data['current_time'] : null; + $this->container['playing_region_list'] = isset($data['playing_region_list']) ? $data['playing_region_list'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['playing_total'] = isset($data['playing_total']) ? $data['playing_total'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['queuing_total'] = isset($data['queuing_total']) ? $data['queuing_total'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets current_time + * + * @return int + */ + public function getCurrentTime() + { + return $this->container['current_time']; + } + + /** + * Sets current_time + * + * @param int $current_time 当前毫秒时间戳 + * + * @return $this + */ + public function setCurrentTime($current_time) + { + $this->container['current_time'] = $current_time; + + return $this; + } + + /** + * Gets playing_region_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[] + */ + public function getPlayingRegionList() + { + return $this->container['playing_region_list']; + } + + /** + * Sets playing_region_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[] $playing_region_list 当前游戏region维度游戏中人数统计 + * + * @return $this + */ + public function setPlayingRegionList($playing_region_list) + { + $this->container['playing_region_list'] = $playing_region_list; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets playing_total + * + * @return int + */ + public function getPlayingTotal() + { + return $this->container['playing_total']; + } + + /** + * Sets playing_total + * + * @param int $playing_total 当前游戏中人数 + * + * @return $this + */ + public function setPlayingTotal($playing_total) + { + $this->container['playing_total'] = $playing_total; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 查询结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets queuing_total + * + * @return int + */ + public function getQueuingTotal() + { + return $this->container['queuing_total']; + } + + /** + * Sets queuing_total + * + * @param int $queuing_total 当前排队人数 + * + * @return $this + */ + public function setQueuingTotal($queuing_total) + { + $this->container['queuing_total'] = $queuing_total; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a47d121a51f49db20e06c6ece80ff3a646e3eac6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:12 +0800 Subject: [PATCH 180/327] feat: update --- ...oncurrencyResultModelPlayingRegionList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php diff --git a/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php b/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php new file mode 100644 index 000000000..aa26427b3 --- /dev/null +++ b/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php @@ -0,0 +1,287 @@ + 'int', +'region_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'ccu' => 'int64', +'region_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ccu' => 'ccu', +'region_id' => 'regionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ccu' => 'setCcu', +'region_id' => 'setRegionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ccu' => 'getCcu', +'region_id' => 'getRegionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ccu'] = isset($data['ccu']) ? $data['ccu'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + } + + + /** + * Gets ccu + * + * @return int + */ + public function getCcu() + { + return $this->container['ccu']; + } + + /** + * Sets ccu + * + * @param int $ccu 当前游戏指定region游戏中人数 + * + * @return $this + */ + public function setCcu($ccu) + { + $this->container['ccu'] = $ccu; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 当前统计的regionId + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 285935f448d5a710743ffef7e8b09012531af8f7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:14 +0800 Subject: [PATCH 181/327] feat: update --- lib/Model/GetPairResult.php | 377 ++++++++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/GetPairResult.php diff --git a/lib/Model/GetPairResult.php b/lib/Model/GetPairResult.php new file mode 100644 index 000000000..0fd3c6ac5 --- /dev/null +++ b/lib/Model/GetPairResult.php @@ -0,0 +1,377 @@ + 'string', +'code' => 'string', +'message' => 'string', +'token' => 'string', +'access_secret' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expired' => null, +'code' => null, +'message' => null, +'token' => null, +'access_secret' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expired' => 'expired', +'code' => 'code', +'message' => 'message', +'token' => 'token', +'access_secret' => 'accessSecret' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expired' => 'setExpired', +'code' => 'setCode', +'message' => 'setMessage', +'token' => 'setToken', +'access_secret' => 'setAccessSecret' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expired' => 'getExpired', +'code' => 'getCode', +'message' => 'getMessage', +'token' => 'getToken', +'access_secret' => 'getAccessSecret' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expired'] = isset($data['expired']) ? $data['expired'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['access_secret'] = isset($data['access_secret']) ? $data['access_secret'] : null; + } + + + /** + * Gets expired + * + * @return string + */ + public function getExpired() + { + return $this->container['expired']; + } + + /** + * Sets expired + * + * @param string $expired token失效时间戳,单位:秒 + * + * @return $this + */ + public function setExpired($expired) + { + $this->container['expired'] = $expired; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 临时token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets access_secret + * + * @return string + */ + public function getAccessSecret() + { + return $this->container['access_secret']; + } + + /** + * Sets access_secret + * + * @param string $access_secret 临时secretKey + * + * @return $this + */ + public function setAccessSecret($access_secret) + { + $this->container['access_secret'] = $access_secret; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f6555279b6b3772eaebc5e17ab151edefaa2a2e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:15 +0800 Subject: [PATCH 182/327] feat: update --- lib/Model/GetStockForms.php | 317 ++++++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/GetStockForms.php diff --git a/lib/Model/GetStockForms.php b/lib/Model/GetStockForms.php new file mode 100644 index 000000000..5f3fb0b8d --- /dev/null +++ b/lib/Model/GetStockForms.php @@ -0,0 +1,317 @@ + 'string', +'app_key' => 'string', +'type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'type' => 'type' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'type' => 'setType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'type' => 'getType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 查询库存类型 + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type 通过接口获取的token + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5496115274e82fe6229ec7b948bef70b31484f8c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:16 +0800 Subject: [PATCH 183/327] feat: update --- lib/Model/GetStockResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetStockResult.php diff --git a/lib/Model/GetStockResult.php b/lib/Model/GetStockResult.php new file mode 100644 index 000000000..f538bc674 --- /dev/null +++ b/lib/Model/GetStockResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f96e4afc278c19acdbc13d2936caf7bfd9ec5b79 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:17 +0800 Subject: [PATCH 184/327] feat: update --- lib/Model/GetStockResultModel.php | 557 ++++++++++++++++++++++++++++++ 1 file changed, 557 insertions(+) create mode 100644 lib/Model/GetStockResultModel.php diff --git a/lib/Model/GetStockResultModel.php b/lib/Model/GetStockResultModel.php new file mode 100644 index 000000000..ca3fb1473 --- /dev/null +++ b/lib/Model/GetStockResultModel.php @@ -0,0 +1,557 @@ + 'string', +'current_time' => 'int', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'quota_total' => 'int', +'used_total' => 'int', +'project_id' => 'string', +'available_total' => 'int', +'instance_stock_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'current_time' => 'int64', +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'quota_total' => null, +'used_total' => null, +'project_id' => null, +'available_total' => null, +'instance_stock_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'current_time' => 'currentTime', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'quota_total' => 'quotaTotal', +'used_total' => 'usedTotal', +'project_id' => 'projectId', +'available_total' => 'availableTotal', +'instance_stock_list' => 'instanceStockList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'current_time' => 'setCurrentTime', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'quota_total' => 'setQuotaTotal', +'used_total' => 'setUsedTotal', +'project_id' => 'setProjectId', +'available_total' => 'setAvailableTotal', +'instance_stock_list' => 'setInstanceStockList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'current_time' => 'getCurrentTime', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'quota_total' => 'getQuotaTotal', +'used_total' => 'getUsedTotal', +'project_id' => 'getProjectId', +'available_total' => 'getAvailableTotal', +'instance_stock_list' => 'getInstanceStockList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['current_time'] = isset($data['current_time']) ? $data['current_time'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['quota_total'] = isset($data['quota_total']) ? $data['quota_total'] : null; + $this->container['used_total'] = isset($data['used_total']) ? $data['used_total'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['available_total'] = isset($data['available_total']) ? $data['available_total'] : null; + $this->container['instance_stock_list'] = isset($data['instance_stock_list']) ? $data['instance_stock_list'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets current_time + * + * @return int + */ + public function getCurrentTime() + { + return $this->container['current_time']; + } + + /** + * Sets current_time + * + * @param int $current_time 当前毫秒时间戳 + * + * @return $this + */ + public function setCurrentTime($current_time) + { + $this->container['current_time'] = $current_time; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets quota_total + * + * @return int + */ + public function getQuotaTotal() + { + return $this->container['quota_total']; + } + + /** + * Sets quota_total + * + * @param int $quota_total 总路数 + * + * @return $this + */ + public function setQuotaTotal($quota_total) + { + $this->container['quota_total'] = $quota_total; + + return $this; + } + + /** + * Gets used_total + * + * @return int + */ + public function getUsedTotal() + { + return $this->container['used_total']; + } + + /** + * Sets used_total + * + * @param int $used_total 已使用路数 + * + * @return $this + */ + public function setUsedTotal($used_total) + { + $this->container['used_total'] = $used_total; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets available_total + * + * @return int + */ + public function getAvailableTotal() + { + return $this->container['available_total']; + } + + /** + * Sets available_total + * + * @param int $available_total 可用剩余路数 + * + * @return $this + */ + public function setAvailableTotal($available_total) + { + $this->container['available_total'] = $available_total; + + return $this; + } + + /** + * Gets instance_stock_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[] + */ + public function getInstanceStockList() + { + return $this->container['instance_stock_list']; + } + + /** + * Sets instance_stock_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[] $instance_stock_list instance_stock_list + * + * @return $this + */ + public function setInstanceStockList($instance_stock_list) + { + $this->container['instance_stock_list'] = $instance_stock_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9f7c88b8937fd7accc77734db3090efd501b8fb4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:19 +0800 Subject: [PATCH 185/327] feat: update --- .../GetStockResultModelInstanceStockList.php | 497 ++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 lib/Model/GetStockResultModelInstanceStockList.php diff --git a/lib/Model/GetStockResultModelInstanceStockList.php b/lib/Model/GetStockResultModelInstanceStockList.php new file mode 100644 index 000000000..f4162544a --- /dev/null +++ b/lib/Model/GetStockResultModelInstanceStockList.php @@ -0,0 +1,497 @@ + 'string', +'instance_game_available_total' => 'int', +'instance_total' => 'int', +'instance_available_total' => 'int', +'instance_game_total' => 'int', +'instance_used_total' => 'int', +'instance_game_used_total' => 'int', +'instance_region_id' => 'string', +'instance_user_level' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'instance_id' => null, +'instance_game_available_total' => null, +'instance_total' => null, +'instance_available_total' => null, +'instance_game_total' => null, +'instance_used_total' => null, +'instance_game_used_total' => null, +'instance_region_id' => null, +'instance_user_level' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'instance_id' => 'instanceId', +'instance_game_available_total' => 'instanceGameAvailableTotal', +'instance_total' => 'instanceTotal', +'instance_available_total' => 'instanceAvailableTotal', +'instance_game_total' => 'instanceGameTotal', +'instance_used_total' => 'instanceUsedTotal', +'instance_game_used_total' => 'instanceGameUsedTotal', +'instance_region_id' => 'instanceRegionId', +'instance_user_level' => 'instanceUserLevel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'instance_id' => 'setInstanceId', +'instance_game_available_total' => 'setInstanceGameAvailableTotal', +'instance_total' => 'setInstanceTotal', +'instance_available_total' => 'setInstanceAvailableTotal', +'instance_game_total' => 'setInstanceGameTotal', +'instance_used_total' => 'setInstanceUsedTotal', +'instance_game_used_total' => 'setInstanceGameUsedTotal', +'instance_region_id' => 'setInstanceRegionId', +'instance_user_level' => 'setInstanceUserLevel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'instance_id' => 'getInstanceId', +'instance_game_available_total' => 'getInstanceGameAvailableTotal', +'instance_total' => 'getInstanceTotal', +'instance_available_total' => 'getInstanceAvailableTotal', +'instance_game_total' => 'getInstanceGameTotal', +'instance_used_total' => 'getInstanceUsedTotal', +'instance_game_used_total' => 'getInstanceGameUsedTotal', +'instance_region_id' => 'getInstanceRegionId', +'instance_user_level' => 'getInstanceUserLevel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['instance_game_available_total'] = isset($data['instance_game_available_total']) ? $data['instance_game_available_total'] : null; + $this->container['instance_total'] = isset($data['instance_total']) ? $data['instance_total'] : null; + $this->container['instance_available_total'] = isset($data['instance_available_total']) ? $data['instance_available_total'] : null; + $this->container['instance_game_total'] = isset($data['instance_game_total']) ? $data['instance_game_total'] : null; + $this->container['instance_used_total'] = isset($data['instance_used_total']) ? $data['instance_used_total'] : null; + $this->container['instance_game_used_total'] = isset($data['instance_game_used_total']) ? $data['instance_game_used_total'] : null; + $this->container['instance_region_id'] = isset($data['instance_region_id']) ? $data['instance_region_id'] : null; + $this->container['instance_user_level'] = isset($data['instance_user_level']) ? $data['instance_user_level'] : null; + } + + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例id + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets instance_game_available_total + * + * @return int + */ + public function getInstanceGameAvailableTotal() + { + return $this->container['instance_game_available_total']; + } + + /** + * Sets instance_game_available_total + * + * @param int $instance_game_available_total 实例游戏当前可使用路数 + * + * @return $this + */ + public function setInstanceGameAvailableTotal($instance_game_available_total) + { + $this->container['instance_game_available_total'] = $instance_game_available_total; + + return $this; + } + + /** + * Gets instance_total + * + * @return int + */ + public function getInstanceTotal() + { + return $this->container['instance_total']; + } + + /** + * Sets instance_total + * + * @param int $instance_total 实例总路数 + * + * @return $this + */ + public function setInstanceTotal($instance_total) + { + $this->container['instance_total'] = $instance_total; + + return $this; + } + + /** + * Gets instance_available_total + * + * @return int + */ + public function getInstanceAvailableTotal() + { + return $this->container['instance_available_total']; + } + + /** + * Sets instance_available_total + * + * @param int $instance_available_total 实例可用路数 + * + * @return $this + */ + public function setInstanceAvailableTotal($instance_available_total) + { + $this->container['instance_available_total'] = $instance_available_total; + + return $this; + } + + /** + * Gets instance_game_total + * + * @return int + */ + public function getInstanceGameTotal() + { + return $this->container['instance_game_total']; + } + + /** + * Sets instance_game_total + * + * @param int $instance_game_total 实例配置游戏总路数 + * + * @return $this + */ + public function setInstanceGameTotal($instance_game_total) + { + $this->container['instance_game_total'] = $instance_game_total; + + return $this; + } + + /** + * Gets instance_used_total + * + * @return int + */ + public function getInstanceUsedTotal() + { + return $this->container['instance_used_total']; + } + + /** + * Sets instance_used_total + * + * @param int $instance_used_total 实例已用路数 + * + * @return $this + */ + public function setInstanceUsedTotal($instance_used_total) + { + $this->container['instance_used_total'] = $instance_used_total; + + return $this; + } + + /** + * Gets instance_game_used_total + * + * @return int + */ + public function getInstanceGameUsedTotal() + { + return $this->container['instance_game_used_total']; + } + + /** + * Sets instance_game_used_total + * + * @param int $instance_game_used_total 实例游戏当前已使用路数 + * + * @return $this + */ + public function setInstanceGameUsedTotal($instance_game_used_total) + { + $this->container['instance_game_used_total'] = $instance_game_used_total; + + return $this; + } + + /** + * Gets instance_region_id + * + * @return string + */ + public function getInstanceRegionId() + { + return $this->container['instance_region_id']; + } + + /** + * Sets instance_region_id + * + * @param string $instance_region_id 实例大区ID + * + * @return $this + */ + public function setInstanceRegionId($instance_region_id) + { + $this->container['instance_region_id'] = $instance_region_id; + + return $this; + } + + /** + * Gets instance_user_level + * + * @return int + */ + public function getInstanceUserLevel() + { + return $this->container['instance_user_level']; + } + + /** + * Sets instance_user_level + * + * @param int $instance_user_level 实例调度等级 + * + * @return $this + */ + public function setInstanceUserLevel($instance_user_level) + { + $this->container['instance_user_level'] = $instance_user_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b1dd2d62755c8f1263f353d0b3808a0842c54d74 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:20 +0800 Subject: [PATCH 186/327] feat: update --- lib/Model/GetStopGameTokenForms.php | 287 ++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/GetStopGameTokenForms.php diff --git a/lib/Model/GetStopGameTokenForms.php b/lib/Model/GetStopGameTokenForms.php new file mode 100644 index 000000000..fa29de2d1 --- /dev/null +++ b/lib/Model/GetStopGameTokenForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 396863c4728505e52f12665b1f67aa1f61957d50 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:22 +0800 Subject: [PATCH 187/327] feat: update --- lib/Model/GetStopGameTokenResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetStopGameTokenResult.php diff --git a/lib/Model/GetStopGameTokenResult.php b/lib/Model/GetStopGameTokenResult.php new file mode 100644 index 000000000..2e951401b --- /dev/null +++ b/lib/Model/GetStopGameTokenResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9474752dae16b39fb92c999d00217900984cc5f7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:23 +0800 Subject: [PATCH 188/327] feat: update --- lib/Model/GetStopGameTokenResultModel.php | 407 ++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/GetStopGameTokenResultModel.php diff --git a/lib/Model/GetStopGameTokenResultModel.php b/lib/Model/GetStopGameTokenResultModel.php new file mode 100644 index 000000000..dacf6d9ba --- /dev/null +++ b/lib/Model/GetStopGameTokenResultModel.php @@ -0,0 +1,407 @@ + 'int', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'token' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expire_time' => 'int64', +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'token' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expire_time' => 'expireTime', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'token' => 'token' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expire_time' => 'setExpireTime', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'token' => 'setToken' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expire_time' => 'getExpireTime', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'token' => 'getToken' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expire_time'] = isset($data['expire_time']) ? $data['expire_time'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + } + + + /** + * Gets expire_time + * + * @return int + */ + public function getExpireTime() + { + return $this->container['expire_time']; + } + + /** + * Sets expire_time + * + * @param int $expire_time 当前token失效时间 + * + * @return $this + */ + public function setExpireTime($expire_time) + { + $this->container['expire_time'] = $expire_time; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4a26b05cdc079fffb467b92832df0d7c060943b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:24 +0800 Subject: [PATCH 189/327] feat: update --- lib/Model/GetTripleResult.php | 407 ++++++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/GetTripleResult.php diff --git a/lib/Model/GetTripleResult.php b/lib/Model/GetTripleResult.php new file mode 100644 index 000000000..c49c1eecf --- /dev/null +++ b/lib/Model/GetTripleResult.php @@ -0,0 +1,407 @@ + 'string', +'code' => 'string', +'access_key' => 'string', +'message' => 'string', +'token' => 'string', +'access_secret' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expired' => null, +'code' => null, +'access_key' => null, +'message' => null, +'token' => null, +'access_secret' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expired' => 'expired', +'code' => 'code', +'access_key' => 'accessKey', +'message' => 'message', +'token' => 'token', +'access_secret' => 'accessSecret' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expired' => 'setExpired', +'code' => 'setCode', +'access_key' => 'setAccessKey', +'message' => 'setMessage', +'token' => 'setToken', +'access_secret' => 'setAccessSecret' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expired' => 'getExpired', +'code' => 'getCode', +'access_key' => 'getAccessKey', +'message' => 'getMessage', +'token' => 'getToken', +'access_secret' => 'getAccessSecret' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expired'] = isset($data['expired']) ? $data['expired'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['access_key'] = isset($data['access_key']) ? $data['access_key'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['access_secret'] = isset($data['access_secret']) ? $data['access_secret'] : null; + } + + + /** + * Gets expired + * + * @return string + */ + public function getExpired() + { + return $this->container['expired']; + } + + /** + * Sets expired + * + * @param string $expired token失效时间戳,单位:秒 + * + * @return $this + */ + public function setExpired($expired) + { + $this->container['expired'] = $expired; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets access_key + * + * @return string + */ + public function getAccessKey() + { + return $this->container['access_key']; + } + + /** + * Sets access_key + * + * @param string $access_key 临时accessKey + * + * @return $this + */ + public function setAccessKey($access_key) + { + $this->container['access_key'] = $access_key; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 临时token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets access_secret + * + * @return string + */ + public function getAccessSecret() + { + return $this->container['access_secret']; + } + + /** + * Sets access_secret + * + * @param string $access_secret 临时secretKey + * + * @return $this + */ + public function setAccessSecret($access_secret) + { + $this->container['access_secret'] = $access_secret; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 49e414698d2bed0f609d737f752e1247d0a343fd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:26 +0800 Subject: [PATCH 190/327] feat: update --- lib/Model/ListGameServerIpForms.php | 287 ++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ListGameServerIpForms.php diff --git a/lib/Model/ListGameServerIpForms.php b/lib/Model/ListGameServerIpForms.php new file mode 100644 index 000000000..1bb975fb2 --- /dev/null +++ b/lib/Model/ListGameServerIpForms.php @@ -0,0 +1,287 @@ + 'int', +'next_token' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_size' => 'int64', +'next_token' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_size' => 'pageSize', +'next_token' => 'nextToken' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_size' => 'setPageSize', +'next_token' => 'setNextToken' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_size' => 'getPageSize', +'next_token' => 'getNextToken' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + } + + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size 分页大小,默认100 + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token 分页标识 + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b1a15d39a9ea7671932c7710289669f4dae7f482 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:27 +0800 Subject: [PATCH 191/327] feat: update --- lib/Model/ListGameServerIpResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ListGameServerIpResult.php diff --git a/lib/Model/ListGameServerIpResult.php b/lib/Model/ListGameServerIpResult.php new file mode 100644 index 000000000..6919f5405 --- /dev/null +++ b/lib/Model/ListGameServerIpResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1ab3a4782a2bc819c9d01513d63f8a168100e4ee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:28 +0800 Subject: [PATCH 192/327] feat: update --- lib/Model/ListGameServerIpResultModel.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ListGameServerIpResultModel.php diff --git a/lib/Model/ListGameServerIpResultModel.php b/lib/Model/ListGameServerIpResultModel.php new file mode 100644 index 000000000..89b710a6c --- /dev/null +++ b/lib/Model/ListGameServerIpResultModel.php @@ -0,0 +1,347 @@ + 'string', +'page_size' => 'int', +'total_count' => 'int', +'ip_list' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'page_size' => 'int64', +'total_count' => 'int64', +'ip_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'ip_list' => 'ipList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'ip_list' => 'setIpList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'ip_list' => 'getIpList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['ip_list'] = isset($data['ip_list']) ? $data['ip_list'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets ip_list + * + * @return string[] + */ + public function getIpList() + { + return $this->container['ip_list']; + } + + /** + * Sets ip_list + * + * @param string[] $ip_list ip_list + * + * @return $this + */ + public function setIpList($ip_list) + { + $this->container['ip_list'] = $ip_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d4d035796503e460bb1a32a9451203cd22f98e4e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:30 +0800 Subject: [PATCH 193/327] feat: update --- lib/Model/LiveQueryStatusForms.php | 317 +++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveQueryStatusForms.php diff --git a/lib/Model/LiveQueryStatusForms.php b/lib/Model/LiveQueryStatusForms.php new file mode 100644 index 000000000..ed368e928 --- /dev/null +++ b/lib/Model/LiveQueryStatusForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'live_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'live_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'live_id' => 'liveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'live_id' => 'setLiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'live_id' => 'getLiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9727d2e6e4ae92032c804dc1bfe05ee0f7ed3b6f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:31 +0800 Subject: [PATCH 194/327] feat: update --- lib/Model/LiveQueryStatusResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResult.php diff --git a/lib/Model/LiveQueryStatusResult.php b/lib/Model/LiveQueryStatusResult.php new file mode 100644 index 000000000..1e7c9579b --- /dev/null +++ b/lib/Model/LiveQueryStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 21bba5e2df3e43691f9a19d30bcf5f664dd59c7b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:32 +0800 Subject: [PATCH 195/327] feat: update --- lib/Model/LiveQueryStatusResultModel.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModel.php diff --git a/lib/Model/LiveQueryStatusResultModel.php b/lib/Model/LiveQueryStatusResultModel.php new file mode 100644 index 000000000..bef248064 --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModel.php @@ -0,0 +1,257 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'live_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'live_list' => 'liveList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'live_list' => 'setLiveList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'live_list' => 'getLiveList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['live_list'] = isset($data['live_list']) ? $data['live_list'] : null; + } + + + /** + * Gets live_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[] + */ + public function getLiveList() + { + return $this->container['live_list']; + } + + /** + * Sets live_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[] $live_list live_list + * + * @return $this + */ + public function setLiveList($live_list) + { + $this->container['live_list'] = $live_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e99ccb9189236824b540d6165a2aff53eaef81be Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:34 +0800 Subject: [PATCH 196/327] feat: update --- .../LiveQueryStatusResultModelLiveList.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModelLiveList.php diff --git a/lib/Model/LiveQueryStatusResultModelLiveList.php b/lib/Model/LiveQueryStatusResultModelLiveList.php new file mode 100644 index 000000000..16e481797 --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModelLiveList.php @@ -0,0 +1,407 @@ + 'string', +'server_url' => 'string', +'message' => 'string', +'live_id' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'stream_key' => null, +'server_url' => null, +'message' => null, +'live_id' => null, +'config' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stream_key' => 'streamKey', +'server_url' => 'serverUrl', +'message' => 'message', +'live_id' => 'liveId', +'config' => 'config', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stream_key' => 'setStreamKey', +'server_url' => 'setServerUrl', +'message' => 'setMessage', +'live_id' => 'setLiveId', +'config' => 'setConfig', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stream_key' => 'getStreamKey', +'server_url' => 'getServerUrl', +'message' => 'getMessage', +'live_id' => 'getLiveId', +'config' => 'getConfig', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stream_key'] = isset($data['stream_key']) ? $data['stream_key'] : null; + $this->container['server_url'] = isset($data['server_url']) ? $data['server_url'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets stream_key + * + * @return string + */ + public function getStreamKey() + { + return $this->container['stream_key']; + } + + /** + * Sets stream_key + * + * @param string $stream_key stream_key + * + * @return $this + */ + public function setStreamKey($stream_key) + { + $this->container['stream_key'] = $stream_key; + + return $this; + } + + /** + * Gets server_url + * + * @return string + */ + public function getServerUrl() + { + return $this->container['server_url']; + } + + /** + * Sets server_url + * + * @param string $server_url server_url + * + * @return $this + */ + public function setServerUrl($server_url) + { + $this->container['server_url'] = $server_url; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d06124396a128529306dba66c4690beb8638cf74 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:35 +0800 Subject: [PATCH 197/327] feat: update --- ...veQueryStatusResultModelLiveListConfig.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModelLiveListConfig.php diff --git a/lib/Model/LiveQueryStatusResultModelLiveListConfig.php b/lib/Model/LiveQueryStatusResultModelLiveListConfig.php new file mode 100644 index 000000000..908c35f82 --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModelLiveListConfig.php @@ -0,0 +1,317 @@ + 'int', +'bitrate' => 'int', +'resolution' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'frame_rate' => null, +'bitrate' => null, +'resolution' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'frame_rate' => 'frameRate', +'bitrate' => 'bitrate', +'resolution' => 'resolution' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'frame_rate' => 'setFrameRate', +'bitrate' => 'setBitrate', +'resolution' => 'setResolution' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'frame_rate' => 'getFrameRate', +'bitrate' => 'getBitrate', +'resolution' => 'getResolution' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['frame_rate'] = isset($data['frame_rate']) ? $data['frame_rate'] : null; + $this->container['bitrate'] = isset($data['bitrate']) ? $data['bitrate'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + } + + + /** + * Gets frame_rate + * + * @return int + */ + public function getFrameRate() + { + return $this->container['frame_rate']; + } + + /** + * Sets frame_rate + * + * @param int $frame_rate frame_rate + * + * @return $this + */ + public function setFrameRate($frame_rate) + { + $this->container['frame_rate'] = $frame_rate; + + return $this; + } + + /** + * Gets bitrate + * + * @return int + */ + public function getBitrate() + { + return $this->container['bitrate']; + } + + /** + * Sets bitrate + * + * @param int $bitrate bitrate + * + * @return $this + */ + public function setBitrate($bitrate) + { + $this->container['bitrate'] = $bitrate; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ce2c09815df64ad4c3a627b3b287dec712b5a9ba Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:36 +0800 Subject: [PATCH 198/327] feat: update --- lib/Model/LiveStartGameLiveForms.php | 377 +++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveForms.php diff --git a/lib/Model/LiveStartGameLiveForms.php b/lib/Model/LiveStartGameLiveForms.php new file mode 100644 index 000000000..f206b2844 --- /dev/null +++ b/lib/Model/LiveStartGameLiveForms.php @@ -0,0 +1,377 @@ + 'string', +'game_session' => 'string', +'server_url' => 'string', +'stream_key' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'server_url' => null, +'stream_key' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'server_url' => 'serverUrl', +'stream_key' => 'streamKey', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'server_url' => 'setServerUrl', +'stream_key' => 'setStreamKey', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'server_url' => 'getServerUrl', +'stream_key' => 'getStreamKey', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['server_url'] = isset($data['server_url']) ? $data['server_url'] : null; + $this->container['stream_key'] = isset($data['stream_key']) ? $data['stream_key'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets server_url + * + * @return string + */ + public function getServerUrl() + { + return $this->container['server_url']; + } + + /** + * Sets server_url + * + * @param string $server_url server_url + * + * @return $this + */ + public function setServerUrl($server_url) + { + $this->container['server_url'] = $server_url; + + return $this; + } + + /** + * Gets stream_key + * + * @return string + */ + public function getStreamKey() + { + return $this->container['stream_key']; + } + + /** + * Sets stream_key + * + * @param string $stream_key stream_key + * + * @return $this + */ + public function setStreamKey($stream_key) + { + $this->container['stream_key'] = $stream_key; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 620dd9d28ed7271a1301f70cca749eccc3d0d31e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:38 +0800 Subject: [PATCH 199/327] feat: update --- lib/Model/LiveStartGameLiveFormsConfig.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveFormsConfig.php diff --git a/lib/Model/LiveStartGameLiveFormsConfig.php b/lib/Model/LiveStartGameLiveFormsConfig.php new file mode 100644 index 000000000..762c8a9f8 --- /dev/null +++ b/lib/Model/LiveStartGameLiveFormsConfig.php @@ -0,0 +1,317 @@ + 'int', +'bitrate' => 'int', +'resolution' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'frame_rate' => null, +'bitrate' => null, +'resolution' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'frame_rate' => 'frameRate', +'bitrate' => 'bitrate', +'resolution' => 'resolution' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'frame_rate' => 'setFrameRate', +'bitrate' => 'setBitrate', +'resolution' => 'setResolution' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'frame_rate' => 'getFrameRate', +'bitrate' => 'getBitrate', +'resolution' => 'getResolution' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['frame_rate'] = isset($data['frame_rate']) ? $data['frame_rate'] : null; + $this->container['bitrate'] = isset($data['bitrate']) ? $data['bitrate'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + } + + + /** + * Gets frame_rate + * + * @return int + */ + public function getFrameRate() + { + return $this->container['frame_rate']; + } + + /** + * Sets frame_rate + * + * @param int $frame_rate frame_rate + * + * @return $this + */ + public function setFrameRate($frame_rate) + { + $this->container['frame_rate'] = $frame_rate; + + return $this; + } + + /** + * Gets bitrate + * + * @return int + */ + public function getBitrate() + { + return $this->container['bitrate']; + } + + /** + * Sets bitrate + * + * @param int $bitrate bitrate + * + * @return $this + */ + public function setBitrate($bitrate) + { + $this->container['bitrate'] = $bitrate; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ad411af36aab5ab07067f4fca504be25b1685e79 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:39 +0800 Subject: [PATCH 200/327] feat: update --- lib/Model/LiveStartGameLiveResult.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveResult.php diff --git a/lib/Model/LiveStartGameLiveResult.php b/lib/Model/LiveStartGameLiveResult.php new file mode 100644 index 000000000..5d8b475d8 --- /dev/null +++ b/lib/Model/LiveStartGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bbabaf63f52dc152348c8786b5a0643dfa49d702 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:41 +0800 Subject: [PATCH 201/327] feat: update --- lib/Model/LiveStartGameLiveResultModel.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveResultModel.php diff --git a/lib/Model/LiveStartGameLiveResultModel.php b/lib/Model/LiveStartGameLiveResultModel.php new file mode 100644 index 000000000..b4b1ee8ad --- /dev/null +++ b/lib/Model/LiveStartGameLiveResultModel.php @@ -0,0 +1,317 @@ + 'bool', +'live_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'live_id' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'live_id' => 'liveId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'live_id' => 'setLiveId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'live_id' => 'getLiveId', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets data + * + * @return bool + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param bool $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b60d61c641c1af552a77dbb417645fa53095435f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:42 +0800 Subject: [PATCH 202/327] feat: update --- lib/Model/LiveStopGameLiveForms.php | 317 ++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveForms.php diff --git a/lib/Model/LiveStopGameLiveForms.php b/lib/Model/LiveStopGameLiveForms.php new file mode 100644 index 000000000..017b4d6fb --- /dev/null +++ b/lib/Model/LiveStopGameLiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'live_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'live_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'live_id' => 'liveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'live_id' => 'setLiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'live_id' => 'getLiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6a102b25df376c50410efe36817b2e670ca3fe18 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:44 +0800 Subject: [PATCH 203/327] feat: update --- lib/Model/LiveStopGameLiveResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveResult.php diff --git a/lib/Model/LiveStopGameLiveResult.php b/lib/Model/LiveStopGameLiveResult.php new file mode 100644 index 000000000..4f4198730 --- /dev/null +++ b/lib/Model/LiveStopGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b2b0f9db251a0a2d02cb748863b7bcebaf1efc2b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:45 +0800 Subject: [PATCH 204/327] feat: update --- lib/Model/LiveStopGameLiveResultModel.php | 257 ++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveResultModel.php diff --git a/lib/Model/LiveStopGameLiveResultModel.php b/lib/Model/LiveStopGameLiveResultModel.php new file mode 100644 index 000000000..31d18e23d --- /dev/null +++ b/lib/Model/LiveStopGameLiveResultModel.php @@ -0,0 +1,257 @@ + 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + } + + + /** + * Gets data + * + * @return bool + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param bool $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1620ca167db56795d642f8c36c07ec598e0efc85 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:46 +0800 Subject: [PATCH 205/327] feat: update --- lib/Model/MultiplayCloseForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayCloseForms.php diff --git a/lib/Model/MultiplayCloseForms.php b/lib/Model/MultiplayCloseForms.php new file mode 100644 index 000000000..bce2d3f6f --- /dev/null +++ b/lib/Model/MultiplayCloseForms.php @@ -0,0 +1,287 @@ + 'string', +'reason' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'reason' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'reason' => 'reason' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'reason' => 'setReason' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'reason' => 'getReason' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b5805c2cb547f3f405fd54aa4b655808081efcc4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:47 +0800 Subject: [PATCH 206/327] feat: update --- lib/Model/MultiplayCloseResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayCloseResult.php diff --git a/lib/Model/MultiplayCloseResult.php b/lib/Model/MultiplayCloseResult.php new file mode 100644 index 000000000..08dc59b43 --- /dev/null +++ b/lib/Model/MultiplayCloseResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c224716c0f6153430bae75efefc3dd87abb9d298 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:49 +0800 Subject: [PATCH 207/327] feat: update --- lib/Model/MultiplayCloseResultModel.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayCloseResultModel.php diff --git a/lib/Model/MultiplayCloseResultModel.php b/lib/Model/MultiplayCloseResultModel.php new file mode 100644 index 000000000..f6b249359 --- /dev/null +++ b/lib/Model/MultiplayCloseResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From da807c948c45112b39eae015ad3994ea57caeca2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:50 +0800 Subject: [PATCH 208/327] feat: update --- lib/Model/MultiplayInitForms.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitForms.php diff --git a/lib/Model/MultiplayInitForms.php b/lib/Model/MultiplayInitForms.php new file mode 100644 index 000000000..7659c0c95 --- /dev/null +++ b/lib/Model/MultiplayInitForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'config' => null, +'tokens' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'config' => 'config', +'tokens' => 'tokens' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'config' => 'setConfig', +'tokens' => 'setTokens' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'config' => 'getConfig', +'tokens' => 'getTokens' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 23d9db3b27291cdd41275ffa6bce997a1aa6365f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:51 +0800 Subject: [PATCH 209/327] feat: update --- lib/Model/MultiplayInitFormsConfig.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitFormsConfig.php diff --git a/lib/Model/MultiplayInitFormsConfig.php b/lib/Model/MultiplayInitFormsConfig.php new file mode 100644 index 000000000..a473aeae4 --- /dev/null +++ b/lib/Model/MultiplayInitFormsConfig.php @@ -0,0 +1,347 @@ + 'int', +'host_timeout' => 'int', +'connect_timeout' => 'int', +'input_timeout' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_token' => null, +'host_timeout' => null, +'connect_timeout' => null, +'input_timeout' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_token' => 'maxToken', +'host_timeout' => 'hostTimeout', +'connect_timeout' => 'connectTimeout', +'input_timeout' => 'inputTimeout' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_token' => 'setMaxToken', +'host_timeout' => 'setHostTimeout', +'connect_timeout' => 'setConnectTimeout', +'input_timeout' => 'setInputTimeout' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_token' => 'getMaxToken', +'host_timeout' => 'getHostTimeout', +'connect_timeout' => 'getConnectTimeout', +'input_timeout' => 'getInputTimeout' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_token'] = isset($data['max_token']) ? $data['max_token'] : null; + $this->container['host_timeout'] = isset($data['host_timeout']) ? $data['host_timeout'] : null; + $this->container['connect_timeout'] = isset($data['connect_timeout']) ? $data['connect_timeout'] : null; + $this->container['input_timeout'] = isset($data['input_timeout']) ? $data['input_timeout'] : null; + } + + + /** + * Gets max_token + * + * @return int + */ + public function getMaxToken() + { + return $this->container['max_token']; + } + + /** + * Sets max_token + * + * @param int $max_token max_token + * + * @return $this + */ + public function setMaxToken($max_token) + { + $this->container['max_token'] = $max_token; + + return $this; + } + + /** + * Gets host_timeout + * + * @return int + */ + public function getHostTimeout() + { + return $this->container['host_timeout']; + } + + /** + * Sets host_timeout + * + * @param int $host_timeout host_timeout + * + * @return $this + */ + public function setHostTimeout($host_timeout) + { + $this->container['host_timeout'] = $host_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return int + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param int $connect_timeout connect_timeout + * + * @return $this + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets input_timeout + * + * @return int + */ + public function getInputTimeout() + { + return $this->container['input_timeout']; + } + + /** + * Sets input_timeout + * + * @param int $input_timeout input_timeout + * + * @return $this + */ + public function setInputTimeout($input_timeout) + { + $this->container['input_timeout'] = $input_timeout; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f4987d16697865a3b6dbe6edfc8615722d400f89 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:53 +0800 Subject: [PATCH 210/327] feat: update --- lib/Model/MultiplayInitFormsTokens.php | 287 +++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayInitFormsTokens.php diff --git a/lib/Model/MultiplayInitFormsTokens.php b/lib/Model/MultiplayInitFormsTokens.php new file mode 100644 index 000000000..d6d47c6a2 --- /dev/null +++ b/lib/Model/MultiplayInitFormsTokens.php @@ -0,0 +1,287 @@ + 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9ad1129c7b6116e28d704792400c52c416197167 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:54 +0800 Subject: [PATCH 211/327] feat: update --- lib/Model/MultiplayInitResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResult.php diff --git a/lib/Model/MultiplayInitResult.php b/lib/Model/MultiplayInitResult.php new file mode 100644 index 000000000..eea19222a --- /dev/null +++ b/lib/Model/MultiplayInitResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 920cc3e4d66dc506b7fafbc37a06cae927fa5e53 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:55 +0800 Subject: [PATCH 212/327] feat: update --- lib/Model/MultiplayInitResultModel.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResultModel.php diff --git a/lib/Model/MultiplayInitResultModel.php b/lib/Model/MultiplayInitResultModel.php new file mode 100644 index 000000000..dcb9394e4 --- /dev/null +++ b/lib/Model/MultiplayInitResultModel.php @@ -0,0 +1,347 @@ + 'string', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[]', +'data_ver' => 'string', +'mp_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'creator_token_id' => null, +'tokens' => null, +'data_ver' => null, +'mp_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'creator_token_id' => 'creatorTokenId', +'tokens' => 'tokens', +'data_ver' => 'dataVer', +'mp_id' => 'mpId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'creator_token_id' => 'setCreatorTokenId', +'tokens' => 'setTokens', +'data_ver' => 'setDataVer', +'mp_id' => 'setMpId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'creator_token_id' => 'getCreatorTokenId', +'tokens' => 'getTokens', +'data_ver' => 'getDataVer', +'mp_id' => 'getMpId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['creator_token_id'] = isset($data['creator_token_id']) ? $data['creator_token_id'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + } + + + /** + * Gets creator_token_id + * + * @return string + */ + public function getCreatorTokenId() + { + return $this->container['creator_token_id']; + } + + /** + * Sets creator_token_id + * + * @param string $creator_token_id creator_token_id + * + * @return $this + */ + public function setCreatorTokenId($creator_token_id) + { + $this->container['creator_token_id'] = $creator_token_id; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a7b35d035a7b14a8db8510454be3c05147cb2114 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:57 +0800 Subject: [PATCH 213/327] feat: update --- lib/Model/MultiplayInitResultModelTokens.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResultModelTokens.php diff --git a/lib/Model/MultiplayInitResultModelTokens.php b/lib/Model/MultiplayInitResultModelTokens.php new file mode 100644 index 000000000..2101de461 --- /dev/null +++ b/lib/Model/MultiplayInitResultModelTokens.php @@ -0,0 +1,347 @@ + 'string', +'token_id' => 'string', +'session' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'token_id' => null, +'session' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'token_id' => 'tokenId', +'session' => 'session', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'token_id' => 'setTokenId', +'session' => 'setSession', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'token_id' => 'getTokenId', +'session' => 'getSession', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6339321e3c25f56a9d21c598f088401f47f5582b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:58 +0800 Subject: [PATCH 214/327] feat: update --- lib/Model/MultiplayJoinForms.php | 317 +++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/MultiplayJoinForms.php diff --git a/lib/Model/MultiplayJoinForms.php b/lib/Model/MultiplayJoinForms.php new file mode 100644 index 000000000..0fa79bb13 --- /dev/null +++ b/lib/Model/MultiplayJoinForms.php @@ -0,0 +1,317 @@ + 'string', +'account_id' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'account_id' => null, +'control_id' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'account_id' => 'accountId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'account_id' => 'setAccountId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'account_id' => 'getAccountId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 608f9836d13ab11f0637b71108032fb22bde0f81 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:14:59 +0800 Subject: [PATCH 215/327] feat: update --- lib/Model/MultiplayJoinResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayJoinResult.php diff --git a/lib/Model/MultiplayJoinResult.php b/lib/Model/MultiplayJoinResult.php new file mode 100644 index 000000000..0e44e06b2 --- /dev/null +++ b/lib/Model/MultiplayJoinResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2a2b9d0a01aec6b1c21b679660e3bd8e6961a4bc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:01 +0800 Subject: [PATCH 216/327] feat: update --- lib/Model/MultiplayJoinResultModel.php | 317 +++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/MultiplayJoinResultModel.php diff --git a/lib/Model/MultiplayJoinResultModel.php b/lib/Model/MultiplayJoinResultModel.php new file mode 100644 index 000000000..eca806281 --- /dev/null +++ b/lib/Model/MultiplayJoinResultModel.php @@ -0,0 +1,317 @@ + 'string', +'session' => 'string', +'data_ver' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'token_id' => null, +'session' => null, +'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'token_id' => 'tokenId', +'session' => 'session', +'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'token_id' => 'setTokenId', +'session' => 'setSession', +'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'token_id' => 'getTokenId', +'session' => 'getSession', +'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 78718bcfe834428a2bdad2bfe7a6a5cc85a8650d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:02 +0800 Subject: [PATCH 217/327] feat: update --- lib/Model/MultiplayLeaveForms.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayLeaveForms.php diff --git a/lib/Model/MultiplayLeaveForms.php b/lib/Model/MultiplayLeaveForms.php new file mode 100644 index 000000000..41cc88c28 --- /dev/null +++ b/lib/Model/MultiplayLeaveForms.php @@ -0,0 +1,347 @@ + 'string', +'kick_out' => 'bool', +'reason' => 'string', +'token_ids' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'kick_out' => null, +'reason' => null, +'token_ids' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'kick_out' => 'kickOut', +'reason' => 'reason', +'token_ids' => 'tokenIds' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'kick_out' => 'setKickOut', +'reason' => 'setReason', +'token_ids' => 'setTokenIds' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'kick_out' => 'getKickOut', +'reason' => 'getReason', +'token_ids' => 'getTokenIds' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['kick_out'] = isset($data['kick_out']) ? $data['kick_out'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['token_ids'] = isset($data['token_ids']) ? $data['token_ids'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets kick_out + * + * @return bool + */ + public function getKickOut() + { + return $this->container['kick_out']; + } + + /** + * Sets kick_out + * + * @param bool $kick_out kick_out + * + * @return $this + */ + public function setKickOut($kick_out) + { + $this->container['kick_out'] = $kick_out; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets token_ids + * + * @return string[] + */ + public function getTokenIds() + { + return $this->container['token_ids']; + } + + /** + * Sets token_ids + * + * @param string[] $token_ids token_ids + * + * @return $this + */ + public function setTokenIds($token_ids) + { + $this->container['token_ids'] = $token_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 111cdb6daf60cb1388ac4f4c634fc6a0f1009262 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:04 +0800 Subject: [PATCH 218/327] feat: update --- lib/Model/MultiplayLeaveResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayLeaveResult.php diff --git a/lib/Model/MultiplayLeaveResult.php b/lib/Model/MultiplayLeaveResult.php new file mode 100644 index 000000000..adcff4f16 --- /dev/null +++ b/lib/Model/MultiplayLeaveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3be891fe0452c572db09bd80e94cc2d81d750ae7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:05 +0800 Subject: [PATCH 219/327] feat: update --- lib/Model/MultiplayLeaveResultModel.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayLeaveResultModel.php diff --git a/lib/Model/MultiplayLeaveResultModel.php b/lib/Model/MultiplayLeaveResultModel.php new file mode 100644 index 000000000..84b19bf75 --- /dev/null +++ b/lib/Model/MultiplayLeaveResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e3577db30cdc20ad2c978c4251636a93d0eeaf0e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:06 +0800 Subject: [PATCH 220/327] feat: update --- lib/Model/MultiplayModifyForms.php | 287 +++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayModifyForms.php diff --git a/lib/Model/MultiplayModifyForms.php b/lib/Model/MultiplayModifyForms.php new file mode 100644 index 000000000..845dfe40e --- /dev/null +++ b/lib/Model/MultiplayModifyForms.php @@ -0,0 +1,287 @@ + 'string', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'tokens' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'tokens' => 'tokens' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'tokens' => 'setTokens' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'tokens' => 'getTokens' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e1e7aff919bf0170a45cf0437f790ce8cbdbefac Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:08 +0800 Subject: [PATCH 221/327] feat: update --- lib/Model/MultiplayModifyFormsTokens.php | 287 +++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayModifyFormsTokens.php diff --git a/lib/Model/MultiplayModifyFormsTokens.php b/lib/Model/MultiplayModifyFormsTokens.php new file mode 100644 index 000000000..1674e9c41 --- /dev/null +++ b/lib/Model/MultiplayModifyFormsTokens.php @@ -0,0 +1,287 @@ + 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'token_id' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'token_id' => 'tokenId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'token_id' => 'setTokenId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'token_id' => 'getTokenId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 39e0fa2c32a51ba0dc620b2df5978b7fc3c7cfc7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:09 +0800 Subject: [PATCH 222/327] feat: update --- lib/Model/MultiplayModifyResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayModifyResult.php diff --git a/lib/Model/MultiplayModifyResult.php b/lib/Model/MultiplayModifyResult.php new file mode 100644 index 000000000..9327f70ca --- /dev/null +++ b/lib/Model/MultiplayModifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 24749f9815743c3ecc228e2e673d0553be7d8895 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:10 +0800 Subject: [PATCH 223/327] feat: update --- lib/Model/MultiplayModifyResultModel.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayModifyResultModel.php diff --git a/lib/Model/MultiplayModifyResultModel.php b/lib/Model/MultiplayModifyResultModel.php new file mode 100644 index 000000000..0ac0fadb6 --- /dev/null +++ b/lib/Model/MultiplayModifyResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fcef6c2adda96216c7026dfb8c0b41cb290b5f6e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:12 +0800 Subject: [PATCH 224/327] feat: update --- lib/Model/MultiplayQueryForms.php | 257 ++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayQueryForms.php diff --git a/lib/Model/MultiplayQueryForms.php b/lib/Model/MultiplayQueryForms.php new file mode 100644 index 000000000..c88cfd80b --- /dev/null +++ b/lib/Model/MultiplayQueryForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7d4d0f81acf7c727b4907029d23a99993796617a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:13 +0800 Subject: [PATCH 225/327] feat: update --- lib/Model/MultiplayQueryResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResult.php diff --git a/lib/Model/MultiplayQueryResult.php b/lib/Model/MultiplayQueryResult.php new file mode 100644 index 000000000..c2b6d066a --- /dev/null +++ b/lib/Model/MultiplayQueryResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1b665fd7fe31a2917880849ca3ea40af44a16695 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:14 +0800 Subject: [PATCH 226/327] feat: update --- lib/Model/MultiplayQueryResultModel.php | 407 ++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModel.php diff --git a/lib/Model/MultiplayQueryResultModel.php b/lib/Model/MultiplayQueryResultModel.php new file mode 100644 index 000000000..7ab370a9e --- /dev/null +++ b/lib/Model/MultiplayQueryResultModel.php @@ -0,0 +1,407 @@ + 'string', +'end_ts' => 'int', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[]', +'data_ver' => 'string', +'mp_id' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'creator_token_id' => null, +'end_ts' => 'int64', +'tokens' => null, +'data_ver' => null, +'mp_id' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'creator_token_id' => 'creatorTokenId', +'end_ts' => 'endTs', +'tokens' => 'tokens', +'data_ver' => 'dataVer', +'mp_id' => 'mpId', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'creator_token_id' => 'setCreatorTokenId', +'end_ts' => 'setEndTs', +'tokens' => 'setTokens', +'data_ver' => 'setDataVer', +'mp_id' => 'setMpId', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'creator_token_id' => 'getCreatorTokenId', +'end_ts' => 'getEndTs', +'tokens' => 'getTokens', +'data_ver' => 'getDataVer', +'mp_id' => 'getMpId', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['creator_token_id'] = isset($data['creator_token_id']) ? $data['creator_token_id'] : null; + $this->container['end_ts'] = isset($data['end_ts']) ? $data['end_ts'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets creator_token_id + * + * @return string + */ + public function getCreatorTokenId() + { + return $this->container['creator_token_id']; + } + + /** + * Sets creator_token_id + * + * @param string $creator_token_id creator_token_id + * + * @return $this + */ + public function setCreatorTokenId($creator_token_id) + { + $this->container['creator_token_id'] = $creator_token_id; + + return $this; + } + + /** + * Gets end_ts + * + * @return int + */ + public function getEndTs() + { + return $this->container['end_ts']; + } + + /** + * Sets end_ts + * + * @param int $end_ts end_ts + * + * @return $this + */ + public function setEndTs($end_ts) + { + $this->container['end_ts'] = $end_ts; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 25cd1b6284338ce2610fbb0ec020c0063a975935 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:16 +0800 Subject: [PATCH 227/327] feat: update --- lib/Model/MultiplayQueryResultModelConfig.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModelConfig.php diff --git a/lib/Model/MultiplayQueryResultModelConfig.php b/lib/Model/MultiplayQueryResultModelConfig.php new file mode 100644 index 000000000..e5a6a8e5a --- /dev/null +++ b/lib/Model/MultiplayQueryResultModelConfig.php @@ -0,0 +1,347 @@ + 'int', +'host_timeout' => 'int', +'connect_timeout' => 'int', +'input_timeout' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_token' => null, +'host_timeout' => null, +'connect_timeout' => null, +'input_timeout' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_token' => 'maxToken', +'host_timeout' => 'hostTimeout', +'connect_timeout' => 'connectTimeout', +'input_timeout' => 'inputTimeout' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_token' => 'setMaxToken', +'host_timeout' => 'setHostTimeout', +'connect_timeout' => 'setConnectTimeout', +'input_timeout' => 'setInputTimeout' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_token' => 'getMaxToken', +'host_timeout' => 'getHostTimeout', +'connect_timeout' => 'getConnectTimeout', +'input_timeout' => 'getInputTimeout' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_token'] = isset($data['max_token']) ? $data['max_token'] : null; + $this->container['host_timeout'] = isset($data['host_timeout']) ? $data['host_timeout'] : null; + $this->container['connect_timeout'] = isset($data['connect_timeout']) ? $data['connect_timeout'] : null; + $this->container['input_timeout'] = isset($data['input_timeout']) ? $data['input_timeout'] : null; + } + + + /** + * Gets max_token + * + * @return int + */ + public function getMaxToken() + { + return $this->container['max_token']; + } + + /** + * Sets max_token + * + * @param int $max_token max_token + * + * @return $this + */ + public function setMaxToken($max_token) + { + $this->container['max_token'] = $max_token; + + return $this; + } + + /** + * Gets host_timeout + * + * @return int + */ + public function getHostTimeout() + { + return $this->container['host_timeout']; + } + + /** + * Sets host_timeout + * + * @param int $host_timeout host_timeout + * + * @return $this + */ + public function setHostTimeout($host_timeout) + { + $this->container['host_timeout'] = $host_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return int + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param int $connect_timeout connect_timeout + * + * @return $this + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets input_timeout + * + * @return int + */ + public function getInputTimeout() + { + return $this->container['input_timeout']; + } + + /** + * Sets input_timeout + * + * @param int $input_timeout input_timeout + * + * @return $this + */ + public function setInputTimeout($input_timeout) + { + $this->container['input_timeout'] = $input_timeout; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6422662a82529b92a4740c146bf2b46c6e2a86e5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:18 +0800 Subject: [PATCH 228/327] feat: update --- lib/Model/MultiplayQueryResultModelTokens.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModelTokens.php diff --git a/lib/Model/MultiplayQueryResultModelTokens.php b/lib/Model/MultiplayQueryResultModelTokens.php new file mode 100644 index 000000000..43e31b947 --- /dev/null +++ b/lib/Model/MultiplayQueryResultModelTokens.php @@ -0,0 +1,347 @@ + 'string', +'token_id' => 'string', +'session' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'token_id' => null, +'session' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'token_id' => 'tokenId', +'session' => 'session', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'token_id' => 'setTokenId', +'session' => 'setSession', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'token_id' => 'getTokenId', +'session' => 'getSession', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 446f9a16fee24870ba195343bad4a7eb314012a3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:19 +0800 Subject: [PATCH 229/327] feat: update --- lib/Model/QueryGameHangForms.php | 287 +++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/QueryGameHangForms.php diff --git a/lib/Model/QueryGameHangForms.php b/lib/Model/QueryGameHangForms.php new file mode 100644 index 000000000..e99fbb315 --- /dev/null +++ b/lib/Model/QueryGameHangForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bb4f08fe72fb4ab1458e75dcad1e5abe8f62c01e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:20 +0800 Subject: [PATCH 230/327] feat: update --- lib/Model/QueryGameHangResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/QueryGameHangResult.php diff --git a/lib/Model/QueryGameHangResult.php b/lib/Model/QueryGameHangResult.php new file mode 100644 index 000000000..ce1153b24 --- /dev/null +++ b/lib/Model/QueryGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 75555bcd31e52787fdd3daa53d92798fd4d296a6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:22 +0800 Subject: [PATCH 231/327] feat: update --- lib/Model/QueryGameHangResultModel.php | 437 +++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/QueryGameHangResultModel.php diff --git a/lib/Model/QueryGameHangResultModel.php b/lib/Model/QueryGameHangResultModel.php new file mode 100644 index 000000000..0893b886c --- /dev/null +++ b/lib/Model/QueryGameHangResultModel.php @@ -0,0 +1,437 @@ + 'int', +'code' => 'string', +'start_hang_timestamp' => 'int', +'success' => 'bool', +'message' => 'string', +'hanging' => 'bool', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'duration' => 'int64', +'code' => null, +'start_hang_timestamp' => 'int64', +'success' => null, +'message' => null, +'hanging' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'duration' => 'duration', +'code' => 'code', +'start_hang_timestamp' => 'startHangTimestamp', +'success' => 'success', +'message' => 'message', +'hanging' => 'hanging', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'duration' => 'setDuration', +'code' => 'setCode', +'start_hang_timestamp' => 'setStartHangTimestamp', +'success' => 'setSuccess', +'message' => 'setMessage', +'hanging' => 'setHanging', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'duration' => 'getDuration', +'code' => 'getCode', +'start_hang_timestamp' => 'getStartHangTimestamp', +'success' => 'getSuccess', +'message' => 'getMessage', +'hanging' => 'getHanging', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['start_hang_timestamp'] = isset($data['start_hang_timestamp']) ? $data['start_hang_timestamp'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['hanging'] = isset($data['hanging']) ? $data['hanging'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets start_hang_timestamp + * + * @return int + */ + public function getStartHangTimestamp() + { + return $this->container['start_hang_timestamp']; + } + + /** + * Sets start_hang_timestamp + * + * @param int $start_hang_timestamp 开始挂机毫秒时间戳 + * + * @return $this + */ + public function setStartHangTimestamp($start_hang_timestamp) + { + $this->container['start_hang_timestamp'] = $start_hang_timestamp; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets hanging + * + * @return bool + */ + public function getHanging() + { + return $this->container['hanging']; + } + + /** + * Sets hanging + * + * @param bool $hanging 会话ID是否在挂机中 + * + * @return $this + */ + public function setHanging($hanging) + { + $this->container['hanging'] = $hanging; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c387920091975967049f4e6ee9310fd45b4e8183 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:23 +0800 Subject: [PATCH 232/327] feat: update --- lib/Model/QuerySessionStatusForms.php | 287 ++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/QuerySessionStatusForms.php diff --git a/lib/Model/QuerySessionStatusForms.php b/lib/Model/QuerySessionStatusForms.php new file mode 100644 index 000000000..89b178cbb --- /dev/null +++ b/lib/Model/QuerySessionStatusForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f3a161addc23e0871293aa2cafc3f91265a375b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:25 +0800 Subject: [PATCH 233/327] feat: update --- lib/Model/QuerySessionStatusResult.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/QuerySessionStatusResult.php diff --git a/lib/Model/QuerySessionStatusResult.php b/lib/Model/QuerySessionStatusResult.php new file mode 100644 index 000000000..90b65a507 --- /dev/null +++ b/lib/Model/QuerySessionStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c0f9f01ae8b4668bca6f9f53c510db89aacf7433 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:27 +0800 Subject: [PATCH 234/327] feat: update --- lib/Model/QuerySessionStatusResultModel.php | 647 ++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/QuerySessionStatusResultModel.php diff --git a/lib/Model/QuerySessionStatusResultModel.php b/lib/Model/QuerySessionStatusResultModel.php new file mode 100644 index 000000000..0bdefac91 --- /dev/null +++ b/lib/Model/QuerySessionStatusResultModel.php @@ -0,0 +1,647 @@ + 'string', +'code' => 'string', +'message' => 'string', +'account_id' => 'string', +'dispatch_time' => 'int', +'user_level' => 'int', +'region_id' => 'string', +'success' => 'bool', +'tenant_id' => 'int', +'stop_time' => 'int', +'play_time' => 'int', +'project_id' => 'string', +'game_session' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'code' => null, +'message' => null, +'account_id' => null, +'dispatch_time' => 'int64', +'user_level' => null, +'region_id' => null, +'success' => null, +'tenant_id' => 'int64', +'stop_time' => 'int64', +'play_time' => 'int64', +'project_id' => null, +'game_session' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'code' => 'code', +'message' => 'message', +'account_id' => 'accountId', +'dispatch_time' => 'dispatchTime', +'user_level' => 'userLevel', +'region_id' => 'regionId', +'success' => 'success', +'tenant_id' => 'tenantId', +'stop_time' => 'stopTime', +'play_time' => 'playTime', +'project_id' => 'projectId', +'game_session' => 'gameSession', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'code' => 'setCode', +'message' => 'setMessage', +'account_id' => 'setAccountId', +'dispatch_time' => 'setDispatchTime', +'user_level' => 'setUserLevel', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'tenant_id' => 'setTenantId', +'stop_time' => 'setStopTime', +'play_time' => 'setPlayTime', +'project_id' => 'setProjectId', +'game_session' => 'setGameSession', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'code' => 'getCode', +'message' => 'getMessage', +'account_id' => 'getAccountId', +'dispatch_time' => 'getDispatchTime', +'user_level' => 'getUserLevel', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'tenant_id' => 'getTenantId', +'stop_time' => 'getStopTime', +'play_time' => 'getPlayTime', +'project_id' => 'getProjectId', +'game_session' => 'getGameSession', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['dispatch_time'] = isset($data['dispatch_time']) ? $data['dispatch_time'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['stop_time'] = isset($data['stop_time']) ? $data['stop_time'] : null; + $this->container['play_time'] = isset($data['play_time']) ? $data['play_time'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 会话归属的游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 会话所属用户ID + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets dispatch_time + * + * @return int + */ + public function getDispatchTime() + { + return $this->container['dispatch_time']; + } + + /** + * Sets dispatch_time + * + * @param int $dispatch_time 会话调度毫秒时间戳 + * + * @return $this + */ + public function setDispatchTime($dispatch_time) + { + $this->container['dispatch_time'] = $dispatch_time; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level 会话调度用户等级 + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 会话调度大区ID + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + 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 stop_time + * + * @return int + */ + public function getStopTime() + { + return $this->container['stop_time']; + } + + /** + * Sets stop_time + * + * @param int $stop_time 会话停止毫秒时间戳 + * + * @return $this + */ + public function setStopTime($stop_time) + { + $this->container['stop_time'] = $stop_time; + + return $this; + } + + /** + * Gets play_time + * + * @return int + */ + public function getPlayTime() + { + return $this->container['play_time']; + } + + /** + * Sets play_time + * + * @param int $play_time 用户开始游戏毫秒时间戳 + * + * @return $this + */ + public function setPlayTime($play_time) + { + $this->container['play_time'] = $play_time; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 会话归属的项目ID + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 会话当前状态:STARTED: 运行中,STOPPED: 已停止 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4786284a4fc2c0dc859618c572b57067e8aac4b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:28 +0800 Subject: [PATCH 235/327] feat: update --- lib/Model/ReplaceSlotForms.php | 647 +++++++++++++++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/ReplaceSlotForms.php diff --git a/lib/Model/ReplaceSlotForms.php b/lib/Model/ReplaceSlotForms.php new file mode 100644 index 000000000..82e1ffe9a --- /dev/null +++ b/lib/Model/ReplaceSlotForms.php @@ -0,0 +1,647 @@ + 'string', +'account_id' => 'string', +'game_id' => 'string', +'app_key' => 'string', +'biz_param' => 'string', +'client_ip' => 'string', +'tags' => 'string', +'codec' => 'int', +'resolution' => 'int', +'bit_rate' => 'int', +'fps' => 'int', +'game_cmd_param' => 'string', +'user_level' => 'int', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'replace_session' => null, +'account_id' => null, +'game_id' => null, +'app_key' => null, +'biz_param' => null, +'client_ip' => null, +'tags' => null, +'codec' => 'int32', +'resolution' => 'int32', +'bit_rate' => 'int32', +'fps' => 'int32', +'game_cmd_param' => null, +'user_level' => 'int32', +'start_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'replace_session' => 'replaceSession', +'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'biz_param' => 'bizParam', +'client_ip' => 'clientIp', +'tags' => 'tags', +'codec' => 'codec', +'resolution' => 'resolution', +'bit_rate' => 'bitRate', +'fps' => 'fps', +'game_cmd_param' => 'gameCmdParam', +'user_level' => 'userLevel', +'start_param' => 'startParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'replace_session' => 'setReplaceSession', +'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'biz_param' => 'setBizParam', +'client_ip' => 'setClientIp', +'tags' => 'setTags', +'codec' => 'setCodec', +'resolution' => 'setResolution', +'bit_rate' => 'setBitRate', +'fps' => 'setFps', +'game_cmd_param' => 'setGameCmdParam', +'user_level' => 'setUserLevel', +'start_param' => 'setStartParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'replace_session' => 'getReplaceSession', +'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'biz_param' => 'getBizParam', +'client_ip' => 'getClientIp', +'tags' => 'getTags', +'codec' => 'getCodec', +'resolution' => 'getResolution', +'bit_rate' => 'getBitRate', +'fps' => 'getFps', +'game_cmd_param' => 'getGameCmdParam', +'user_level' => 'getUserLevel', +'start_param' => 'getStartParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['replace_session'] = isset($data['replace_session']) ? $data['replace_session'] : 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['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + } + + + /** + * Gets replace_session + * + * @return string + */ + public function getReplaceSession() + { + return $this->container['replace_session']; + } + + /** + * Sets replace_session + * + * @param string $replace_session replace_session + * + * @return $this + */ + public function setReplaceSession($replace_session) + { + $this->container['replace_session'] = $replace_session; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param biz_param + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip client_ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec codec + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate bit_rate + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps fps + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param game_cmd_param + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level user_level + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam $start_param start_param + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1f6607b80b8a92de33a8574fc850c43e542a48d7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:30 +0800 Subject: [PATCH 236/327] feat: update --- lib/Model/ReplaceSlotFormsStartParam.php | Bin 0 -> 19561 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 lib/Model/ReplaceSlotFormsStartParam.php diff --git a/lib/Model/ReplaceSlotFormsStartParam.php b/lib/Model/ReplaceSlotFormsStartParam.php new file mode 100644 index 0000000000000000000000000000000000000000..13d920cb8f62025ffd7a35929b856557d8e3938d GIT binary patch literal 19561 zcmcg!-EZ7B62E8v6?|C0c94r-uJ@2!+HCALb%P{^Hz^P#!9rfqwvzQqm9%c1BLDl% zki&0Eq}I6$(0Z2~&ev~-98%Q&=cnen**kjhV2?du=e$`LE52CQ{V#QU(=GaJ9sW+Mcb7o?q4N9XnnZU58}Pnqu{(xZ;ex|6DhGQ#94b<8{S1 zJ@g*!p*VI%BrDa{EV4E_M8O>x6Jkj4W^ zAAQjo4X^5wub=GgZ9C3B&fB)Qo3B>9>z>G#9XJL<=HQAq7oYj6U+}gn*40^_T`}GLD}-qTYgXMfYmOp1COmSw>3MqzPJYNNr|kW`$Kcj}?Bf1IGP#@sk@V38W zea-s229ztB1~lj%v3DIv#85ma`Jt3peFgdTMyaR%+Nyu}q*}+7e+$AoQ2YatGq(SQ z^JWQAa?AJG(;wM>wdwaC?(MJE^|oAAo2r-1(nZ))^4n^~mo4w=^%fNyASj#4;aIe* zYmlJZj9MgM;bc3fZzm|;@k{_lT90v@NA z!C-egRiIO=^1q66YW8BBTD|zD*74Yu`YJI5q&+ec*)+zBZ5rgoHMP27O^vaTrmm52 zCW?`0min1^rV+|W70c8d#xZpSG3>UR_{H{U>^_hS&^>2qT3=x8Y|*=UQW7D zRG{Q$d$ER9g%+2~?Pi79&*YRZ=IMh&K`0kN974Qsx_JDUmLoy=L=b-SR>J{PCTHP& zjiEfuGKXlB1{FOl*%#X$RJ2}m% znjGd#Q<5k1PD)Fx@j&!)EbE~E7|UHuJj)$^=mVMb>UipDvZ3q)g1M}P2NDnnUO+`W zn1j&osvzvJNcESks+(?3gnxX(lAJFDT=O~OOkVn!K7^E^4_()fcB&(*`C10wMLSa*o`ME zavDumAQ($l=uRdp&`e5Jpr4qmFk(DeQO&_*h0bKMB7;=20!=bmHO=H?{ofV3Q#UDk z#fNG)QP$g}Q>yy!Q%OuU3}#X&Ub=)$L^aVI06tO}VQSaIMi0*W^}(yy1j3U9 z{Abk1!t6__JAA^aY!fx^U<# zjtHD{2S-VvYVbcipcQBQXq`UhCdtl0gZBJ#DGt<8#{(%-sv?in{WFJIe_eI|{85|z z!9Fnl1Wu?rNQVQ#!tFa`KS?9qX7-ql?v*W}1ncZMkYM*&671#-31x7G9SDk$Sn?vh z`C@UGJ|s`{g@WXewChwIid+3agwtusaN0A>xH8A}fegFP5@9!INU*kEfdsqHl3+Jy zNcaM!{W91x1;Pf%EV%;|87e5ZSLHBN*k=iIhNPoG=w_X##Lcq_ELq{;v_N|+7zlGZ zEkRCuhTkan@G(pv!|t<0*v%Od%ziWwV0Bsit=0_oA{ngbLV=Kgz!DYoWe6NNvkK%6 z(OKe$NHVk#0p%Wp1scR?Ea|cC49W5+Ef7Y{7Jo&U5$V>3KVYoV6i)+U=_}fE^mdN+ z0x|B%pDoDi$q+>ua)VFF2h)mrEr)r-(te`>@~APe$n6c~sA0Aoc z7rcNRo>O?2TYLsnpgi&Io(1gFzy?DkzCrUnV1~`bfSDOnq%`uRsV1W;_B2EDgqR}9 z$cTQ{6lsVQdJ+2Ru%Sf?FJPDr6wo>d!S`LDQ6&Uy#(8<_r(DF~fw zE(bHiF%6NSl@OWlyFeuBT>m&`z^sf#39DT1k#~MpMRiHQ7aim4Z!KC;dRgLUdLg^o z_x&JicV9{x@TkfX`)JoLVW4K>s`PzFA)Pms&gIf@TIPdpBqxwIguaSyq8d8A;0;=p zg{3h{FLza$hRx{VE_PM93qS&Cb71JZfKbZJQ2k&!A0|(J0xOT&*VfNRW0%ZC^W7gg zWrBSPbCI!BW}o4l2GBFY$~ePi7bvY`*8%e~lTF_q$cNFAoq*7y^tJTz&0Gp(BZHT1SLuB@8L-u4%h{htb zPixcQ7(FC5=KC(t=#zinazZ9AhZc0*Egu^#Hvx^N^YwGHN0TxA$saH!a~8^;nP!&; zMw3ch^w(Wr5gP{ch-JW*JaAsv_YCt9@>EFRgz_`NCk=%lqqP$U z?&5H@TZAXn_i{UJR^je@zV9vBi9E6>eJx!aEJD2tA2uy3Yb?w3J{(x4;jwg)AXyE& zK;=B+_uVipN6fwEe6$?#3A`LyUsV?|hm<+r{DG4)$ue=~a7_c}kW+ry7c+JNk2W3R zLdAexdBv&R1c}SB`PkXg6VTbDzM?L2Hl^C(joFu#ZMJ!8mnWE}VYBs-sM#&|08Ly% z@qIBV;iOgK1%Sz*(G{4{6^aavDjEe%P%6-(!=@ygZJq*6FwF){P&=TBmIP>c2gSMt zbS_@KhL;jseBbvHu2x^d1sKNvs^C4QN9>nk4L`zC!=>r=&#L3}(;((DxO5cMkNgU5 zd(UX}8^L4%{foL@^MZbqIpm2xQy#NN{&yfHpxt#gNM;7XNzwfmyL-%x>f>34Sl{=SgDtPfE&lbqS_;@xq0 zH|2uki>?D{xN^S6$j<7ha|xd1c=&$s$1f(6)4ifL-x0ni{TFc0*~RXI;pS> z5G4A>I7WM7q>8K<10gf?`#X4p7cSfF?rQR({-uOW=LxymCxVGFZi`AC1ddVWjVBJi zMIqN-cwGcuTZZ>N#4j_@?+Df6rU->l$X z=YiB#Qy`W9Ls5?(cLlyu@|D9cF)Zl!qlEp^orm;u3J#M%QBM&08|57xQ3&Ceh>DZ- J(O7=l`!AL*2B-i4 literal 0 HcmV?d00001 From 33317c098782c88f26dff99e4bd330d0cc219a43 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:31 +0800 Subject: [PATCH 237/327] feat: update --- lib/Model/ReplaceSlotResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ReplaceSlotResult.php diff --git a/lib/Model/ReplaceSlotResult.php b/lib/Model/ReplaceSlotResult.php new file mode 100644 index 000000000..79b8d03f4 --- /dev/null +++ b/lib/Model/ReplaceSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3efaa0ab1254df1de0f949eb9c36bceb683a6578 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:32 +0800 Subject: [PATCH 238/327] feat: update --- lib/Model/ReplaceSlotResultModel.php | 437 +++++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ReplaceSlotResultModel.php diff --git a/lib/Model/ReplaceSlotResultModel.php b/lib/Model/ReplaceSlotResultModel.php new file mode 100644 index 000000000..30dac212c --- /dev/null +++ b/lib/Model/ReplaceSlotResultModel.php @@ -0,0 +1,437 @@ + 'string', +'account_id' => 'string', +'code' => 'string', +'region_id' => 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'code' => null, +'region_id' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'code' => 'code', +'region_id' => 'regionId', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'code' => 'setCode', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'code' => 'getCode', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 02232371481389079e533dc40a2b831d9ebd157c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:33 +0800 Subject: [PATCH 239/327] feat: update --- lib/Model/SetGameAliveForms.php | 317 ++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/SetGameAliveForms.php diff --git a/lib/Model/SetGameAliveForms.php b/lib/Model/SetGameAliveForms.php new file mode 100644 index 000000000..e3bd58a7f --- /dev/null +++ b/lib/Model/SetGameAliveForms.php @@ -0,0 +1,317 @@ + 'string', +'app_key' => 'string', +'keep_alive' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'keep_alive' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'keep_alive' => 'keepAlive' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'keep_alive' => 'setKeepAlive' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'keep_alive' => 'getKeepAlive' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive 游戏可运行时长 + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From eb0a433d9e162648cd23e7ba67f4768217c51633 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:35 +0800 Subject: [PATCH 240/327] feat: update --- lib/Model/SetGameAliveResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameAliveResult.php diff --git a/lib/Model/SetGameAliveResult.php b/lib/Model/SetGameAliveResult.php new file mode 100644 index 000000000..f3cb92803 --- /dev/null +++ b/lib/Model/SetGameAliveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0f56581db1ff5634ac9baf5ed842193e1d04fb36 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:36 +0800 Subject: [PATCH 241/327] feat: update --- lib/Model/SetGameAliveResultModel.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameAliveResultModel.php diff --git a/lib/Model/SetGameAliveResultModel.php b/lib/Model/SetGameAliveResultModel.php new file mode 100644 index 000000000..bebaf339f --- /dev/null +++ b/lib/Model/SetGameAliveResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dfae092474a51cf38ea26c6f4e27579b5fd7641f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:38 +0800 Subject: [PATCH 242/327] feat: update --- lib/Model/SetGameHangForms.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameHangForms.php diff --git a/lib/Model/SetGameHangForms.php b/lib/Model/SetGameHangForms.php new file mode 100644 index 000000000..d14f0f814 --- /dev/null +++ b/lib/Model/SetGameHangForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'duration' => 'int', +'kick_in_the_game' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'duration' => 'int64', +'kick_in_the_game' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'duration' => 'duration', +'kick_in_the_game' => 'kickInTheGame' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'duration' => 'setDuration', +'kick_in_the_game' => 'setKickInTheGame' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'duration' => 'getDuration', +'kick_in_the_game' => 'getKickInTheGame' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['kick_in_the_game'] = isset($data['kick_in_the_game']) ? $data['kick_in_the_game'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets kick_in_the_game + * + * @return bool + */ + public function getKickInTheGame() + { + return $this->container['kick_in_the_game']; + } + + /** + * Sets kick_in_the_game + * + * @param bool $kick_in_the_game 是否踢出游戏中用户 + * + * @return $this + */ + public function setKickInTheGame($kick_in_the_game) + { + $this->container['kick_in_the_game'] = $kick_in_the_game; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f96ddf5a72a4af6c3d85de4891435be72fa10d04 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:39 +0800 Subject: [PATCH 243/327] feat: update --- lib/Model/SetGameHangResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameHangResult.php diff --git a/lib/Model/SetGameHangResult.php b/lib/Model/SetGameHangResult.php new file mode 100644 index 000000000..033970f63 --- /dev/null +++ b/lib/Model/SetGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bb12ec3bab335dcb2aec3ae401213581730133a8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:40 +0800 Subject: [PATCH 244/327] feat: update --- lib/Model/SetGameHangResultModel.php | 407 +++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/SetGameHangResultModel.php diff --git a/lib/Model/SetGameHangResultModel.php b/lib/Model/SetGameHangResultModel.php new file mode 100644 index 000000000..5b0057c22 --- /dev/null +++ b/lib/Model/SetGameHangResultModel.php @@ -0,0 +1,407 @@ + 'int', +'code' => 'string', +'start_hang_timestamp' => 'int', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'duration' => 'int64', +'code' => null, +'start_hang_timestamp' => 'int64', +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'duration' => 'duration', +'code' => 'code', +'start_hang_timestamp' => 'startHangTimestamp', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'duration' => 'setDuration', +'code' => 'setCode', +'start_hang_timestamp' => 'setStartHangTimestamp', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'duration' => 'getDuration', +'code' => 'getCode', +'start_hang_timestamp' => 'getStartHangTimestamp', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['start_hang_timestamp'] = isset($data['start_hang_timestamp']) ? $data['start_hang_timestamp'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长,单位:秒 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets start_hang_timestamp + * + * @return int + */ + public function getStartHangTimestamp() + { + return $this->container['start_hang_timestamp']; + } + + /** + * Sets start_hang_timestamp + * + * @param int $start_hang_timestamp 开始挂机毫秒时间戳 + * + * @return $this + */ + public function setStartHangTimestamp($start_hang_timestamp) + { + $this->container['start_hang_timestamp'] = $start_hang_timestamp; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 844921b6819807b57f9641aad558911dbbbfe806 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:42 +0800 Subject: [PATCH 245/327] feat: update --- lib/Model/StopGameForms.php | 377 ++++++++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/StopGameForms.php diff --git a/lib/Model/StopGameForms.php b/lib/Model/StopGameForms.php new file mode 100644 index 000000000..d12d92549 --- /dev/null +++ b/lib/Model/StopGameForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'app_key' => 'string', +'game_session' => 'string', +'reason' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'app_key' => null, +'game_session' => null, +'reason' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'game_session' => 'gameSession', +'reason' => 'reason' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'reason' => 'setReason' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'reason' => 'getReason' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 调度成功返回的GameSession + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason 端侧从Paas sdk获取的调度业务参数 + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f2d875e34bba24aea0cedb2f48c45709e7d858af Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:43 +0800 Subject: [PATCH 246/327] feat: update --- lib/Model/StopGameResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/StopGameResult.php diff --git a/lib/Model/StopGameResult.php b/lib/Model/StopGameResult.php new file mode 100644 index 000000000..e0f710a85 --- /dev/null +++ b/lib/Model/StopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info 错误信息 + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code 错误码 + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a4d32af92e18e19973deb64c024f73580d0d214b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:44 +0800 Subject: [PATCH 247/327] feat: update --- lib/Model/StopGameResultModel.php | 377 ++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/StopGameResultModel.php diff --git a/lib/Model/StopGameResultModel.php b/lib/Model/StopGameResultModel.php new file mode 100644 index 000000000..0ab65aa56 --- /dev/null +++ b/lib/Model/StopGameResultModel.php @@ -0,0 +1,377 @@ + 'string', +'code' => 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话标识 + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7f4e00d8657671a830d7fe7f91bae038cecb103b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:46 +0800 Subject: [PATCH 248/327] feat: update --- lib/Model/StopPreopenContainerForms.php | 317 ++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/StopPreopenContainerForms.php diff --git a/lib/Model/StopPreopenContainerForms.php b/lib/Model/StopPreopenContainerForms.php new file mode 100644 index 000000000..a7ec6d56d --- /dev/null +++ b/lib/Model/StopPreopenContainerForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'number_of_batches' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_id' => null, +'number_of_batches' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_id' => 'gameId', +'number_of_batches' => 'numberOfBatches' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_id' => 'setGameId', +'number_of_batches' => 'setNumberOfBatches' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_id' => 'getGameId', +'number_of_batches' => 'getNumberOfBatches' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['number_of_batches'] = isset($data['number_of_batches']) ? $data['number_of_batches'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 云游戏项目appKey + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 云游戏平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets number_of_batches + * + * @return int + */ + public function getNumberOfBatches() + { + return $this->container['number_of_batches']; + } + + /** + * Sets number_of_batches + * + * @param int $number_of_batches number_of_batches + * + * @return $this + */ + public function setNumberOfBatches($number_of_batches) + { + $this->container['number_of_batches'] = $number_of_batches; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1cc15f5a5aa6a976fbae140f17ec4c7abd63d9ad Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:47 +0800 Subject: [PATCH 249/327] feat: update --- lib/Model/StopPreopenContainerResult.php | 347 +++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/StopPreopenContainerResult.php diff --git a/lib/Model/StopPreopenContainerResult.php b/lib/Model/StopPreopenContainerResult.php new file mode 100644 index 000000000..c30dd1459 --- /dev/null +++ b/lib/Model/StopPreopenContainerResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model 返回值 + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info 错误信息 + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code 错误码 + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3d0037b544c6727464fabb4a5442e53b8c55e9d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:48 +0800 Subject: [PATCH 250/327] feat: update --- lib/Model/TryToGetSlotForms.php | 677 ++++++++++++++++++++++++++++++++ 1 file changed, 677 insertions(+) create mode 100644 lib/Model/TryToGetSlotForms.php diff --git a/lib/Model/TryToGetSlotForms.php b/lib/Model/TryToGetSlotForms.php new file mode 100644 index 000000000..2d3e544bd --- /dev/null +++ b/lib/Model/TryToGetSlotForms.php @@ -0,0 +1,677 @@ + 'string', +'game_id' => 'string', +'app_key' => 'string', +'region_id' => 'string', +'re_connect' => 'bool', +'biz_param' => 'string', +'client_ip' => 'string', +'tags' => 'string', +'user_level' => 'int', +'codec' => 'int', +'resolution' => 'int', +'bit_rate' => 'int', +'fps' => 'int', +'game_cmd_param' => 'string', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'app_key' => null, +'region_id' => null, +'re_connect' => null, +'biz_param' => null, +'client_ip' => null, +'tags' => null, +'user_level' => 'int32', +'codec' => 'int32', +'resolution' => 'int32', +'bit_rate' => 'int32', +'fps' => 'int32', +'game_cmd_param' => null, +'start_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'region_id' => 'regionId', +'re_connect' => 'reConnect', +'biz_param' => 'bizParam', +'client_ip' => 'clientIp', +'tags' => 'tags', +'user_level' => 'userLevel', +'codec' => 'codec', +'resolution' => 'resolution', +'bit_rate' => 'bitRate', +'fps' => 'fps', +'game_cmd_param' => 'gameCmdParam', +'start_param' => 'startParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'region_id' => 'setRegionId', +'re_connect' => 'setReConnect', +'biz_param' => 'setBizParam', +'client_ip' => 'setClientIp', +'tags' => 'setTags', +'user_level' => 'setUserLevel', +'codec' => 'setCodec', +'resolution' => 'setResolution', +'bit_rate' => 'setBitRate', +'fps' => 'setFps', +'game_cmd_param' => 'setGameCmdParam', +'start_param' => 'setStartParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'region_id' => 'getRegionId', +'re_connect' => 'getReConnect', +'biz_param' => 'getBizParam', +'client_ip' => 'getClientIp', +'tags' => 'getTags', +'user_level' => 'getUserLevel', +'codec' => 'getCodec', +'resolution' => 'getResolution', +'bit_rate' => 'getBitRate', +'fps' => 'getFps', +'game_cmd_param' => 'getGameCmdParam', +'start_param' => 'getStartParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['re_connect'] = isset($data['re_connect']) ? $data['re_connect'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 需要调度的区域 + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets re_connect + * + * @return bool + */ + public function getReConnect() + { + return $this->container['re_connect']; + } + + /** + * Sets re_connect + * + * @param bool $re_connect false代表不使用断线重连,开启新游戏 + * + * @return $this + */ + public function setReConnect($re_connect) + { + $this->container['re_connect'] = $re_connect; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param 端侧从Paas sdk获取的调度业务参数 + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip App端公网ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags 标签之间用半角逗号分隔 + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level 调度等级 + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec 编码 + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution 画质 + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate 码率 + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps 帧率 + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param 启动命令,透传至ISV用于启动游戏 + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam $start_param 游戏启动设置参数 + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2376b594db6a1e496edc3a1637e3f1f1f2ca53da Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:50 +0800 Subject: [PATCH 251/327] feat: update --- lib/Model/TryToGetSlotFormsStartParam.php | 797 ++++++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 lib/Model/TryToGetSlotFormsStartParam.php diff --git a/lib/Model/TryToGetSlotFormsStartParam.php b/lib/Model/TryToGetSlotFormsStartParam.php new file mode 100644 index 000000000..38168940e --- /dev/null +++ b/lib/Model/TryToGetSlotFormsStartParam.php @@ -0,0 +1,797 @@ + 'string', +'keep_alive' => 'int', +'device_resolution' => 'string', +'device_dpi' => 'int', +'archive_url' => 'string', +'game_input' => 'string', +'resolution' => 'string', +'keep_disconnect_alive' => 'int', +'app_channel' => 'string', +'device_dpr' => 'int', +'cloud_init' => 'string', +'script_id' => 'int', +'bit_rate_self_adaption' => 'int', +'keep_no_play_alive' => 'int', +'ssaid' => 'string', +'archive_md5' => 'string', +'sys_device_id' => 'string', +'device_model' => 'string', +'device_brand' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'schedule_user_levels' => null, +'keep_alive' => 'int64', +'device_resolution' => null, +'device_dpi' => null, +'archive_url' => null, +'game_input' => null, +'resolution' => null, +'keep_disconnect_alive' => 'int64', +'app_channel' => null, +'device_dpr' => null, +'cloud_init' => null, +'script_id' => null, +'bit_rate_self_adaption' => null, +'keep_no_play_alive' => 'int64', +'ssaid' => null, +'archive_md5' => null, +'sys_device_id' => null, +'device_model' => null, +'device_brand' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schedule_user_levels' => 'scheduleUserLevels', +'keep_alive' => 'keepAlive', +'device_resolution' => 'deviceResolution', +'device_dpi' => 'deviceDpi', +'archive_url' => 'archiveUrl', +'game_input' => 'gameInput', +'resolution' => 'resolution', +'keep_disconnect_alive' => 'keepDisconnectAlive', +'app_channel' => 'appChannel', +'device_dpr' => 'deviceDpr', +'cloud_init' => 'cloudInit', +'script_id' => 'scriptId', +'bit_rate_self_adaption' => 'bitRateSelfAdaption', +'keep_no_play_alive' => 'keepNoPlayAlive', +'ssaid' => 'ssaid', +'archive_md5' => 'archiveMd5', +'sys_device_id' => 'sysDeviceId', +'device_model' => 'deviceModel', +'device_brand' => 'deviceBrand' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schedule_user_levels' => 'setScheduleUserLevels', +'keep_alive' => 'setKeepAlive', +'device_resolution' => 'setDeviceResolution', +'device_dpi' => 'setDeviceDpi', +'archive_url' => 'setArchiveUrl', +'game_input' => 'setGameInput', +'resolution' => 'setResolution', +'keep_disconnect_alive' => 'setKeepDisconnectAlive', +'app_channel' => 'setAppChannel', +'device_dpr' => 'setDeviceDpr', +'cloud_init' => 'setCloudInit', +'script_id' => 'setScriptId', +'bit_rate_self_adaption' => 'setBitRateSelfAdaption', +'keep_no_play_alive' => 'setKeepNoPlayAlive', +'ssaid' => 'setSsaid', +'archive_md5' => 'setArchiveMd5', +'sys_device_id' => 'setSysDeviceId', +'device_model' => 'setDeviceModel', +'device_brand' => 'setDeviceBrand' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schedule_user_levels' => 'getScheduleUserLevels', +'keep_alive' => 'getKeepAlive', +'device_resolution' => 'getDeviceResolution', +'device_dpi' => 'getDeviceDpi', +'archive_url' => 'getArchiveUrl', +'game_input' => 'getGameInput', +'resolution' => 'getResolution', +'keep_disconnect_alive' => 'getKeepDisconnectAlive', +'app_channel' => 'getAppChannel', +'device_dpr' => 'getDeviceDpr', +'cloud_init' => 'getCloudInit', +'script_id' => 'getScriptId', +'bit_rate_self_adaption' => 'getBitRateSelfAdaption', +'keep_no_play_alive' => 'getKeepNoPlayAlive', +'ssaid' => 'getSsaid', +'archive_md5' => 'getArchiveMd5', +'sys_device_id' => 'getSysDeviceId', +'device_model' => 'getDeviceModel', +'device_brand' => 'getDeviceBrand' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schedule_user_levels'] = isset($data['schedule_user_levels']) ? $data['schedule_user_levels'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + $this->container['device_resolution'] = isset($data['device_resolution']) ? $data['device_resolution'] : null; + $this->container['device_dpi'] = isset($data['device_dpi']) ? $data['device_dpi'] : null; + $this->container['archive_url'] = isset($data['archive_url']) ? $data['archive_url'] : null; + $this->container['game_input'] = isset($data['game_input']) ? $data['game_input'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['keep_disconnect_alive'] = isset($data['keep_disconnect_alive']) ? $data['keep_disconnect_alive'] : null; + $this->container['app_channel'] = isset($data['app_channel']) ? $data['app_channel'] : null; + $this->container['device_dpr'] = isset($data['device_dpr']) ? $data['device_dpr'] : null; + $this->container['cloud_init'] = isset($data['cloud_init']) ? $data['cloud_init'] : null; + $this->container['script_id'] = isset($data['script_id']) ? $data['script_id'] : null; + $this->container['bit_rate_self_adaption'] = isset($data['bit_rate_self_adaption']) ? $data['bit_rate_self_adaption'] : null; + $this->container['keep_no_play_alive'] = isset($data['keep_no_play_alive']) ? $data['keep_no_play_alive'] : null; + $this->container['ssaid'] = isset($data['ssaid']) ? $data['ssaid'] : null; + $this->container['archive_md5'] = isset($data['archive_md5']) ? $data['archive_md5'] : null; + $this->container['sys_device_id'] = isset($data['sys_device_id']) ? $data['sys_device_id'] : null; + $this->container['device_model'] = isset($data['device_model']) ? $data['device_model'] : null; + $this->container['device_brand'] = isset($data['device_brand']) ? $data['device_brand'] : null; + } + + + /** + * Gets schedule_user_levels + * + * @return string + */ + public function getScheduleUserLevels() + { + return $this->container['schedule_user_levels']; + } + + /** + * Sets schedule_user_levels + * + * @param string $schedule_user_levels 游戏调度实例等级 + * + * @return $this + */ + public function setScheduleUserLevels($schedule_user_levels) + { + $this->container['schedule_user_levels'] = $schedule_user_levels; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive 控制游戏运行时长 + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + + /** + * Gets device_resolution + * + * @return string + */ + public function getDeviceResolution() + { + return $this->container['device_resolution']; + } + + /** + * Sets device_resolution + * + * @param string $device_resolution 设备分辨率 + * + * @return $this + */ + public function setDeviceResolution($device_resolution) + { + $this->container['device_resolution'] = $device_resolution; + + return $this; + } + + /** + * Gets device_dpi + * + * @return int + */ + public function getDeviceDpi() + { + return $this->container['device_dpi']; + } + + /** + * Sets device_dpi + * + * @param int $device_dpi deviceDpi + * + * @return $this + */ + public function setDeviceDpi($device_dpi) + { + $this->container['device_dpi'] = $device_dpi; + + return $this; + } + + /** + * Gets archive_url + * + * @return string + */ + public function getArchiveUrl() + { + return $this->container['archive_url']; + } + + /** + * Sets archive_url + * + * @param string $archive_url archive_url + * + * @return $this + */ + public function setArchiveUrl($archive_url) + { + $this->container['archive_url'] = $archive_url; + + return $this; + } + + /** + * Gets game_input + * + * @return string + */ + public function getGameInput() + { + return $this->container['game_input']; + } + + /** + * Sets game_input + * + * @param string $game_input 手游输入法控制 + * + * @return $this + */ + public function setGameInput($game_input) + { + $this->container['game_input'] = $game_input; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution 启动待缩放分辨率 + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets keep_disconnect_alive + * + * @return int + */ + public function getKeepDisconnectAlive() + { + return $this->container['keep_disconnect_alive']; + } + + /** + * Sets keep_disconnect_alive + * + * @param int $keep_disconnect_alive 游戏中设备掉线后会话保活时长 + * + * @return $this + */ + public function setKeepDisconnectAlive($keep_disconnect_alive) + { + $this->container['keep_disconnect_alive'] = $keep_disconnect_alive; + + return $this; + } + + /** + * Gets app_channel + * + * @return string + */ + public function getAppChannel() + { + return $this->container['app_channel']; + } + + /** + * Sets app_channel + * + * @param string $app_channel 应用渠道 + * + * @return $this + */ + public function setAppChannel($app_channel) + { + $this->container['app_channel'] = $app_channel; + + return $this; + } + + /** + * Gets device_dpr + * + * @return int + */ + public function getDeviceDpr() + { + return $this->container['device_dpr']; + } + + /** + * Sets device_dpr + * + * @param int $device_dpr 设备DPR + * + * @return $this + */ + public function setDeviceDpr($device_dpr) + { + $this->container['device_dpr'] = $device_dpr; + + return $this; + } + + /** + * Gets cloud_init + * + * @return string + */ + public function getCloudInit() + { + return $this->container['cloud_init']; + } + + /** + * Sets cloud_init + * + * @param string $cloud_init 游戏初始化路径 + * + * @return $this + */ + public function setCloudInit($cloud_init) + { + $this->container['cloud_init'] = $cloud_init; + + return $this; + } + + /** + * Gets script_id + * + * @return int + */ + public function getScriptId() + { + return $this->container['script_id']; + } + + /** + * Sets script_id + * + * @param int $script_id 游戏脚本id + * + * @return $this + */ + public function setScriptId($script_id) + { + $this->container['script_id'] = $script_id; + + return $this; + } + + /** + * Gets bit_rate_self_adaption + * + * @return int + */ + public function getBitRateSelfAdaption() + { + return $this->container['bit_rate_self_adaption']; + } + + /** + * Sets bit_rate_self_adaption + * + * @param int $bit_rate_self_adaption 码率自适应开关 + * + * @return $this + */ + public function setBitRateSelfAdaption($bit_rate_self_adaption) + { + $this->container['bit_rate_self_adaption'] = $bit_rate_self_adaption; + + return $this; + } + + /** + * Gets keep_no_play_alive + * + * @return int + */ + public function getKeepNoPlayAlive() + { + return $this->container['keep_no_play_alive']; + } + + /** + * Sets keep_no_play_alive + * + * @param int $keep_no_play_alive 游戏中无操作时会话保活时长 + * + * @return $this + */ + public function setKeepNoPlayAlive($keep_no_play_alive) + { + $this->container['keep_no_play_alive'] = $keep_no_play_alive; + + return $this; + } + + /** + * Gets ssaid + * + * @return string + */ + public function getSsaid() + { + return $this->container['ssaid']; + } + + /** + * Sets ssaid + * + * @param string $ssaid 设备号Android + * + * @return $this + */ + public function setSsaid($ssaid) + { + $this->container['ssaid'] = $ssaid; + + return $this; + } + + /** + * Gets archive_md5 + * + * @return string + */ + public function getArchiveMd5() + { + return $this->container['archive_md5']; + } + + /** + * Sets archive_md5 + * + * @param string $archive_md5 archive_md5 + * + * @return $this + */ + public function setArchiveMd5($archive_md5) + { + $this->container['archive_md5'] = $archive_md5; + + return $this; + } + + /** + * Gets sys_device_id + * + * @return string + */ + public function getSysDeviceId() + { + return $this->container['sys_device_id']; + } + + /** + * Sets sys_device_id + * + * @param string $sys_device_id 设备id + * + * @return $this + */ + public function setSysDeviceId($sys_device_id) + { + $this->container['sys_device_id'] = $sys_device_id; + + return $this; + } + + /** + * Gets device_model + * + * @return string + */ + public function getDeviceModel() + { + return $this->container['device_model']; + } + + /** + * Sets device_model + * + * @param string $device_model 设备型号 + * + * @return $this + */ + public function setDeviceModel($device_model) + { + $this->container['device_model'] = $device_model; + + return $this; + } + + /** + * Gets device_brand + * + * @return string + */ + public function getDeviceBrand() + { + return $this->container['device_brand']; + } + + /** + * Sets device_brand + * + * @param string $device_brand 设备品牌 + * + * @return $this + */ + public function setDeviceBrand($device_brand) + { + $this->container['device_brand'] = $device_brand; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9f74e250f4e39a17ce33e15de76277d14a57a512 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:51 +0800 Subject: [PATCH 252/327] feat: update --- lib/Model/TryToGetSlotResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotResult.php diff --git a/lib/Model/TryToGetSlotResult.php b/lib/Model/TryToGetSlotResult.php new file mode 100644 index 000000000..d79273e30 --- /dev/null +++ b/lib/Model/TryToGetSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 729a14efd71d3b1ed2f288d4714627c8b4113916 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:52 +0800 Subject: [PATCH 253/327] feat: update --- lib/Model/TryToGetSlotResultModel.php | 587 ++++++++++++++++++++++++++ 1 file changed, 587 insertions(+) create mode 100644 lib/Model/TryToGetSlotResultModel.php diff --git a/lib/Model/TryToGetSlotResultModel.php b/lib/Model/TryToGetSlotResultModel.php new file mode 100644 index 000000000..190451926 --- /dev/null +++ b/lib/Model/TryToGetSlotResultModel.php @@ -0,0 +1,587 @@ + 'string', +'account_id' => 'string', +'country' => 'string', +'code' => 'string', +'province' => 'string', +'region_id' => 'string', +'city' => 'string', +'operators' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[]', +'success' => 'bool', +'message' => 'string', +'slot_data' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'country' => null, +'code' => null, +'province' => null, +'region_id' => null, +'city' => null, +'operators' => null, +'success' => null, +'message' => null, +'slot_data' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'country' => 'country', +'code' => 'code', +'province' => 'province', +'region_id' => 'regionId', +'city' => 'city', +'operators' => 'operators', +'success' => 'success', +'message' => 'message', +'slot_data' => 'slotData', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'country' => 'setCountry', +'code' => 'setCode', +'province' => 'setProvince', +'region_id' => 'setRegionId', +'city' => 'setCity', +'operators' => 'setOperators', +'success' => 'setSuccess', +'message' => 'setMessage', +'slot_data' => 'setSlotData', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'country' => 'getCountry', +'code' => 'getCode', +'province' => 'getProvince', +'region_id' => 'getRegionId', +'city' => 'getCity', +'operators' => 'getOperators', +'success' => 'getSuccess', +'message' => 'getMessage', +'slot_data' => 'getSlotData', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['province'] = isset($data['province']) ? $data['province'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['operators'] = isset($data['operators']) ? $data['operators'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['slot_data'] = isset($data['slot_data']) ? $data['slot_data'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country 调度资源所在国家 + * + * @return $this + */ + public function setCountry($country) + { + $this->container['country'] = $country; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->container['province']; + } + + /** + * Sets province + * + * @param string $province 调度资源所在省份 + * + * @return $this + */ + public function setProvince($province) + { + $this->container['province'] = $province; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 分配的region + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city 调度资源所在城市 + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets operators + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[] + */ + public function getOperators() + { + return $this->container['operators']; + } + + /** + * Sets operators + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[] $operators 调度资源运营商信息 + * + * @return $this + */ + public function setOperators($operators) + { + $this->container['operators'] = $operators; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets slot_data + * + * @return string + */ + public function getSlotData() + { + return $this->container['slot_data']; + } + + /** + * Sets slot_data + * + * @param string $slot_data 调度结果集 + * + * @return $this + */ + public function setSlotData($slot_data) + { + $this->container['slot_data'] = $slot_data; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话标识 + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3898ce1b4949598a78d1888694d6d2baeae01fac Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:54 +0800 Subject: [PATCH 254/327] feat: update --- .../TryToGetSlotResultModelOperators.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/TryToGetSlotResultModelOperators.php diff --git a/lib/Model/TryToGetSlotResultModelOperators.php b/lib/Model/TryToGetSlotResultModelOperators.php new file mode 100644 index 000000000..e2411a741 --- /dev/null +++ b/lib/Model/TryToGetSlotResultModelOperators.php @@ -0,0 +1,317 @@ + 'string', +'operator_ip' => 'string', +'operator_cn_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'operator_en_name' => null, +'operator_ip' => null, +'operator_cn_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'operator_en_name' => 'operatorEnName', +'operator_ip' => 'operatorIp', +'operator_cn_name' => 'operatorCnName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operator_en_name' => 'setOperatorEnName', +'operator_ip' => 'setOperatorIp', +'operator_cn_name' => 'setOperatorCnName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operator_en_name' => 'getOperatorEnName', +'operator_ip' => 'getOperatorIp', +'operator_cn_name' => 'getOperatorCnName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['operator_en_name'] = isset($data['operator_en_name']) ? $data['operator_en_name'] : null; + $this->container['operator_ip'] = isset($data['operator_ip']) ? $data['operator_ip'] : null; + $this->container['operator_cn_name'] = isset($data['operator_cn_name']) ? $data['operator_cn_name'] : null; + } + + + /** + * Gets operator_en_name + * + * @return string + */ + public function getOperatorEnName() + { + return $this->container['operator_en_name']; + } + + /** + * Sets operator_en_name + * + * @param string $operator_en_name 运营商英文名称 + * + * @return $this + */ + public function setOperatorEnName($operator_en_name) + { + $this->container['operator_en_name'] = $operator_en_name; + + return $this; + } + + /** + * Gets operator_ip + * + * @return string + */ + public function getOperatorIp() + { + return $this->container['operator_ip']; + } + + /** + * Sets operator_ip + * + * @param string $operator_ip 运营商IP + * + * @return $this + */ + public function setOperatorIp($operator_ip) + { + $this->container['operator_ip'] = $operator_ip; + + return $this; + } + + /** + * Gets operator_cn_name + * + * @return string + */ + public function getOperatorCnName() + { + return $this->container['operator_cn_name']; + } + + /** + * Sets operator_cn_name + * + * @param string $operator_cn_name 运营商中文名称 + * + * @return $this + */ + public function setOperatorCnName($operator_cn_name) + { + $this->container['operator_cn_name'] = $operator_cn_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a7f979296fcf65597b45e07425169f46cfe172b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:55 +0800 Subject: [PATCH 255/327] feat: update --- lib/Model/TryToGetSlotsForms.php | 317 +++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/TryToGetSlotsForms.php diff --git a/lib/Model/TryToGetSlotsForms.php b/lib/Model/TryToGetSlotsForms.php new file mode 100644 index 000000000..f63f556ba --- /dev/null +++ b/lib/Model/TryToGetSlotsForms.php @@ -0,0 +1,317 @@ + 'string', +'parallel_schedule' => 'bool', +'requests' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'parallel_schedule' => null, +'requests' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'parallel_schedule' => 'parallelSchedule', +'requests' => 'requests' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'parallel_schedule' => 'setParallelSchedule', +'requests' => 'setRequests' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'parallel_schedule' => 'getParallelSchedule', +'requests' => 'getRequests' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['parallel_schedule'] = isset($data['parallel_schedule']) ? $data['parallel_schedule'] : null; + $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets parallel_schedule + * + * @return bool + */ + public function getParallelSchedule() + { + return $this->container['parallel_schedule']; + } + + /** + * Sets parallel_schedule + * + * @param bool $parallel_schedule parallel_schedule + * + * @return $this + */ + public function setParallelSchedule($parallel_schedule) + { + $this->container['parallel_schedule'] = $parallel_schedule; + + return $this; + } + + /** + * Gets requests + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[] + */ + public function getRequests() + { + return $this->container['requests']; + } + + /** + * Sets requests + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[] $requests requests + * + * @return $this + */ + public function setRequests($requests) + { + $this->container['requests'] = $requests; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d3908c2a5e07c4eadb618581e006dc7f105b51e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:56 +0800 Subject: [PATCH 256/327] feat: update --- lib/Model/TryToGetSlotsFormsRequests.php | 647 +++++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/TryToGetSlotsFormsRequests.php diff --git a/lib/Model/TryToGetSlotsFormsRequests.php b/lib/Model/TryToGetSlotsFormsRequests.php new file mode 100644 index 000000000..d9407b503 --- /dev/null +++ b/lib/Model/TryToGetSlotsFormsRequests.php @@ -0,0 +1,647 @@ + 'string', +'fps' => 'int', +'re_connect' => 'bool', +'resolution' => 'int', +'tags' => 'string', +'game_cmd_param' => 'string', +'account_id' => 'string', +'codec' => 'int', +'user_level' => 'int', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam', +'region_id' => 'string', +'bit_rate' => 'int', +'client_ip' => 'string', +'biz_param' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'fps' => null, +'re_connect' => null, +'resolution' => null, +'tags' => null, +'game_cmd_param' => null, +'account_id' => null, +'codec' => null, +'user_level' => null, +'start_param' => null, +'region_id' => null, +'bit_rate' => null, +'client_ip' => null, +'biz_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'fps' => 'fps', +'re_connect' => 'reConnect', +'resolution' => 'resolution', +'tags' => 'tags', +'game_cmd_param' => 'gameCmdParam', +'account_id' => 'accountId', +'codec' => 'codec', +'user_level' => 'userLevel', +'start_param' => 'startParam', +'region_id' => 'regionId', +'bit_rate' => 'bitRate', +'client_ip' => 'clientIp', +'biz_param' => 'bizParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'fps' => 'setFps', +'re_connect' => 'setReConnect', +'resolution' => 'setResolution', +'tags' => 'setTags', +'game_cmd_param' => 'setGameCmdParam', +'account_id' => 'setAccountId', +'codec' => 'setCodec', +'user_level' => 'setUserLevel', +'start_param' => 'setStartParam', +'region_id' => 'setRegionId', +'bit_rate' => 'setBitRate', +'client_ip' => 'setClientIp', +'biz_param' => 'setBizParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'fps' => 'getFps', +'re_connect' => 'getReConnect', +'resolution' => 'getResolution', +'tags' => 'getTags', +'game_cmd_param' => 'getGameCmdParam', +'account_id' => 'getAccountId', +'codec' => 'getCodec', +'user_level' => 'getUserLevel', +'start_param' => 'getStartParam', +'region_id' => 'getRegionId', +'bit_rate' => 'getBitRate', +'client_ip' => 'getClientIp', +'biz_param' => 'getBizParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['re_connect'] = isset($data['re_connect']) ? $data['re_connect'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps fps + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets re_connect + * + * @return bool + */ + public function getReConnect() + { + return $this->container['re_connect']; + } + + /** + * Sets re_connect + * + * @param bool $re_connect re_connect + * + * @return $this + */ + public function setReConnect($re_connect) + { + $this->container['re_connect'] = $re_connect; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param game_cmd_param + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec codec + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level user_level + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam $start_param start_param + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate bit_rate + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip client_ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param biz_param + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1b9e63b1151a778f69bedb2af77e10b17ef75227 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:58 +0800 Subject: [PATCH 257/327] feat: update --- .../TryToGetSlotsFormsRequestsStartParam.php | 797 ++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 lib/Model/TryToGetSlotsFormsRequestsStartParam.php diff --git a/lib/Model/TryToGetSlotsFormsRequestsStartParam.php b/lib/Model/TryToGetSlotsFormsRequestsStartParam.php new file mode 100644 index 000000000..62795e7fb --- /dev/null +++ b/lib/Model/TryToGetSlotsFormsRequestsStartParam.php @@ -0,0 +1,797 @@ + 'string', +'keep_alive' => 'int', +'device_resolution' => 'string', +'device_dpi' => 'int', +'archive_url' => 'string', +'game_input' => 'string', +'resolution' => 'string', +'keep_disconnect_alive' => 'int', +'app_channel' => 'string', +'device_dpr' => 'int', +'cloud_init' => 'string', +'script_id' => 'int', +'bit_rate_self_adaption' => 'int', +'keep_no_play_alive' => 'int', +'ssaid' => 'string', +'archive_md5' => 'string', +'sys_device_id' => 'string', +'device_model' => 'string', +'device_brand' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'schedule_user_levels' => null, +'keep_alive' => 'int64', +'device_resolution' => null, +'device_dpi' => null, +'archive_url' => null, +'game_input' => null, +'resolution' => null, +'keep_disconnect_alive' => 'int64', +'app_channel' => null, +'device_dpr' => null, +'cloud_init' => null, +'script_id' => null, +'bit_rate_self_adaption' => null, +'keep_no_play_alive' => 'int64', +'ssaid' => null, +'archive_md5' => null, +'sys_device_id' => null, +'device_model' => null, +'device_brand' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schedule_user_levels' => 'scheduleUserLevels', +'keep_alive' => 'keepAlive', +'device_resolution' => 'deviceResolution', +'device_dpi' => 'deviceDpi', +'archive_url' => 'archiveUrl', +'game_input' => 'gameInput', +'resolution' => 'resolution', +'keep_disconnect_alive' => 'keepDisconnectAlive', +'app_channel' => 'appChannel', +'device_dpr' => 'deviceDpr', +'cloud_init' => 'cloudInit', +'script_id' => 'scriptId', +'bit_rate_self_adaption' => 'bitRateSelfAdaption', +'keep_no_play_alive' => 'keepNoPlayAlive', +'ssaid' => 'ssaid', +'archive_md5' => 'archiveMd5', +'sys_device_id' => 'sysDeviceId', +'device_model' => 'deviceModel', +'device_brand' => 'deviceBrand' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schedule_user_levels' => 'setScheduleUserLevels', +'keep_alive' => 'setKeepAlive', +'device_resolution' => 'setDeviceResolution', +'device_dpi' => 'setDeviceDpi', +'archive_url' => 'setArchiveUrl', +'game_input' => 'setGameInput', +'resolution' => 'setResolution', +'keep_disconnect_alive' => 'setKeepDisconnectAlive', +'app_channel' => 'setAppChannel', +'device_dpr' => 'setDeviceDpr', +'cloud_init' => 'setCloudInit', +'script_id' => 'setScriptId', +'bit_rate_self_adaption' => 'setBitRateSelfAdaption', +'keep_no_play_alive' => 'setKeepNoPlayAlive', +'ssaid' => 'setSsaid', +'archive_md5' => 'setArchiveMd5', +'sys_device_id' => 'setSysDeviceId', +'device_model' => 'setDeviceModel', +'device_brand' => 'setDeviceBrand' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schedule_user_levels' => 'getScheduleUserLevels', +'keep_alive' => 'getKeepAlive', +'device_resolution' => 'getDeviceResolution', +'device_dpi' => 'getDeviceDpi', +'archive_url' => 'getArchiveUrl', +'game_input' => 'getGameInput', +'resolution' => 'getResolution', +'keep_disconnect_alive' => 'getKeepDisconnectAlive', +'app_channel' => 'getAppChannel', +'device_dpr' => 'getDeviceDpr', +'cloud_init' => 'getCloudInit', +'script_id' => 'getScriptId', +'bit_rate_self_adaption' => 'getBitRateSelfAdaption', +'keep_no_play_alive' => 'getKeepNoPlayAlive', +'ssaid' => 'getSsaid', +'archive_md5' => 'getArchiveMd5', +'sys_device_id' => 'getSysDeviceId', +'device_model' => 'getDeviceModel', +'device_brand' => 'getDeviceBrand' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schedule_user_levels'] = isset($data['schedule_user_levels']) ? $data['schedule_user_levels'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + $this->container['device_resolution'] = isset($data['device_resolution']) ? $data['device_resolution'] : null; + $this->container['device_dpi'] = isset($data['device_dpi']) ? $data['device_dpi'] : null; + $this->container['archive_url'] = isset($data['archive_url']) ? $data['archive_url'] : null; + $this->container['game_input'] = isset($data['game_input']) ? $data['game_input'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['keep_disconnect_alive'] = isset($data['keep_disconnect_alive']) ? $data['keep_disconnect_alive'] : null; + $this->container['app_channel'] = isset($data['app_channel']) ? $data['app_channel'] : null; + $this->container['device_dpr'] = isset($data['device_dpr']) ? $data['device_dpr'] : null; + $this->container['cloud_init'] = isset($data['cloud_init']) ? $data['cloud_init'] : null; + $this->container['script_id'] = isset($data['script_id']) ? $data['script_id'] : null; + $this->container['bit_rate_self_adaption'] = isset($data['bit_rate_self_adaption']) ? $data['bit_rate_self_adaption'] : null; + $this->container['keep_no_play_alive'] = isset($data['keep_no_play_alive']) ? $data['keep_no_play_alive'] : null; + $this->container['ssaid'] = isset($data['ssaid']) ? $data['ssaid'] : null; + $this->container['archive_md5'] = isset($data['archive_md5']) ? $data['archive_md5'] : null; + $this->container['sys_device_id'] = isset($data['sys_device_id']) ? $data['sys_device_id'] : null; + $this->container['device_model'] = isset($data['device_model']) ? $data['device_model'] : null; + $this->container['device_brand'] = isset($data['device_brand']) ? $data['device_brand'] : null; + } + + + /** + * Gets schedule_user_levels + * + * @return string + */ + public function getScheduleUserLevels() + { + return $this->container['schedule_user_levels']; + } + + /** + * Sets schedule_user_levels + * + * @param string $schedule_user_levels schedule_user_levels + * + * @return $this + */ + public function setScheduleUserLevels($schedule_user_levels) + { + $this->container['schedule_user_levels'] = $schedule_user_levels; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive keep_alive + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + + /** + * Gets device_resolution + * + * @return string + */ + public function getDeviceResolution() + { + return $this->container['device_resolution']; + } + + /** + * Sets device_resolution + * + * @param string $device_resolution device_resolution + * + * @return $this + */ + public function setDeviceResolution($device_resolution) + { + $this->container['device_resolution'] = $device_resolution; + + return $this; + } + + /** + * Gets device_dpi + * + * @return int + */ + public function getDeviceDpi() + { + return $this->container['device_dpi']; + } + + /** + * Sets device_dpi + * + * @param int $device_dpi device_dpi + * + * @return $this + */ + public function setDeviceDpi($device_dpi) + { + $this->container['device_dpi'] = $device_dpi; + + return $this; + } + + /** + * Gets archive_url + * + * @return string + */ + public function getArchiveUrl() + { + return $this->container['archive_url']; + } + + /** + * Sets archive_url + * + * @param string $archive_url archive_url + * + * @return $this + */ + public function setArchiveUrl($archive_url) + { + $this->container['archive_url'] = $archive_url; + + return $this; + } + + /** + * Gets game_input + * + * @return string + */ + public function getGameInput() + { + return $this->container['game_input']; + } + + /** + * Sets game_input + * + * @param string $game_input game_input + * + * @return $this + */ + public function setGameInput($game_input) + { + $this->container['game_input'] = $game_input; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets keep_disconnect_alive + * + * @return int + */ + public function getKeepDisconnectAlive() + { + return $this->container['keep_disconnect_alive']; + } + + /** + * Sets keep_disconnect_alive + * + * @param int $keep_disconnect_alive keep_disconnect_alive + * + * @return $this + */ + public function setKeepDisconnectAlive($keep_disconnect_alive) + { + $this->container['keep_disconnect_alive'] = $keep_disconnect_alive; + + return $this; + } + + /** + * Gets app_channel + * + * @return string + */ + public function getAppChannel() + { + return $this->container['app_channel']; + } + + /** + * Sets app_channel + * + * @param string $app_channel app_channel + * + * @return $this + */ + public function setAppChannel($app_channel) + { + $this->container['app_channel'] = $app_channel; + + return $this; + } + + /** + * Gets device_dpr + * + * @return int + */ + public function getDeviceDpr() + { + return $this->container['device_dpr']; + } + + /** + * Sets device_dpr + * + * @param int $device_dpr device_dpr + * + * @return $this + */ + public function setDeviceDpr($device_dpr) + { + $this->container['device_dpr'] = $device_dpr; + + return $this; + } + + /** + * Gets cloud_init + * + * @return string + */ + public function getCloudInit() + { + return $this->container['cloud_init']; + } + + /** + * Sets cloud_init + * + * @param string $cloud_init cloud_init + * + * @return $this + */ + public function setCloudInit($cloud_init) + { + $this->container['cloud_init'] = $cloud_init; + + return $this; + } + + /** + * Gets script_id + * + * @return int + */ + public function getScriptId() + { + return $this->container['script_id']; + } + + /** + * Sets script_id + * + * @param int $script_id script_id + * + * @return $this + */ + public function setScriptId($script_id) + { + $this->container['script_id'] = $script_id; + + return $this; + } + + /** + * Gets bit_rate_self_adaption + * + * @return int + */ + public function getBitRateSelfAdaption() + { + return $this->container['bit_rate_self_adaption']; + } + + /** + * Sets bit_rate_self_adaption + * + * @param int $bit_rate_self_adaption bit_rate_self_adaption + * + * @return $this + */ + public function setBitRateSelfAdaption($bit_rate_self_adaption) + { + $this->container['bit_rate_self_adaption'] = $bit_rate_self_adaption; + + return $this; + } + + /** + * Gets keep_no_play_alive + * + * @return int + */ + public function getKeepNoPlayAlive() + { + return $this->container['keep_no_play_alive']; + } + + /** + * Sets keep_no_play_alive + * + * @param int $keep_no_play_alive keep_no_play_alive + * + * @return $this + */ + public function setKeepNoPlayAlive($keep_no_play_alive) + { + $this->container['keep_no_play_alive'] = $keep_no_play_alive; + + return $this; + } + + /** + * Gets ssaid + * + * @return string + */ + public function getSsaid() + { + return $this->container['ssaid']; + } + + /** + * Sets ssaid + * + * @param string $ssaid ssaid + * + * @return $this + */ + public function setSsaid($ssaid) + { + $this->container['ssaid'] = $ssaid; + + return $this; + } + + /** + * Gets archive_md5 + * + * @return string + */ + public function getArchiveMd5() + { + return $this->container['archive_md5']; + } + + /** + * Sets archive_md5 + * + * @param string $archive_md5 archive_md5 + * + * @return $this + */ + public function setArchiveMd5($archive_md5) + { + $this->container['archive_md5'] = $archive_md5; + + return $this; + } + + /** + * Gets sys_device_id + * + * @return string + */ + public function getSysDeviceId() + { + return $this->container['sys_device_id']; + } + + /** + * Sets sys_device_id + * + * @param string $sys_device_id sys_device_id + * + * @return $this + */ + public function setSysDeviceId($sys_device_id) + { + $this->container['sys_device_id'] = $sys_device_id; + + return $this; + } + + /** + * Gets device_model + * + * @return string + */ + public function getDeviceModel() + { + return $this->container['device_model']; + } + + /** + * Sets device_model + * + * @param string $device_model device_model + * + * @return $this + */ + public function setDeviceModel($device_model) + { + $this->container['device_model'] = $device_model; + + return $this; + } + + /** + * Gets device_brand + * + * @return string + */ + public function getDeviceBrand() + { + return $this->container['device_brand']; + } + + /** + * Sets device_brand + * + * @param string $device_brand device_brand + * + * @return $this + */ + public function setDeviceBrand($device_brand) + { + $this->container['device_brand'] = $device_brand; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 61091c1e36543a8903ef92c41a8398c650fabff1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:15:59 +0800 Subject: [PATCH 258/327] feat: update --- lib/Model/TryToGetSlotsResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResult.php diff --git a/lib/Model/TryToGetSlotsResult.php b/lib/Model/TryToGetSlotsResult.php new file mode 100644 index 000000000..8d6d41bc9 --- /dev/null +++ b/lib/Model/TryToGetSlotsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9ac2b551c9a9aacda72d67a01a92b8b118e019a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:01 +0800 Subject: [PATCH 259/327] feat: update --- lib/Model/TryToGetSlotsResultModel.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResultModel.php diff --git a/lib/Model/TryToGetSlotsResultModel.php b/lib/Model/TryToGetSlotsResultModel.php new file mode 100644 index 000000000..0b1bc4779 --- /dev/null +++ b/lib/Model/TryToGetSlotsResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'responses' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[]', +'message' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'responses' => null, +'message' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'responses' => 'responses', +'message' => 'message' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'responses' => 'setResponses', +'message' => 'setMessage' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'responses' => 'getResponses', +'message' => 'getMessage' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['responses'] = isset($data['responses']) ? $data['responses'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets responses + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[] + */ + public function getResponses() + { + return $this->container['responses']; + } + + /** + * Sets responses + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[] $responses responses + * + * @return $this + */ + public function setResponses($responses) + { + $this->container['responses'] = $responses; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8feb271606300611904c9a6fde9f360c12b30afd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:02 +0800 Subject: [PATCH 260/327] feat: update --- .../TryToGetSlotsResultModelResponses.php | 467 ++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResultModelResponses.php diff --git a/lib/Model/TryToGetSlotsResultModelResponses.php b/lib/Model/TryToGetSlotsResultModelResponses.php new file mode 100644 index 000000000..46cfc8764 --- /dev/null +++ b/lib/Model/TryToGetSlotsResultModelResponses.php @@ -0,0 +1,467 @@ + 'string', +'account_id' => 'string', +'code' => 'string', +'region_id' => 'string', +'success' => 'bool', +'message' => 'string', +'slot_data' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'code' => null, +'region_id' => null, +'success' => null, +'message' => null, +'slot_data' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'code' => 'code', +'region_id' => 'regionId', +'success' => 'success', +'message' => 'message', +'slot_data' => 'slotData', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'code' => 'setCode', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'message' => 'setMessage', +'slot_data' => 'setSlotData', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'code' => 'getCode', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'message' => 'getMessage', +'slot_data' => 'getSlotData', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['slot_data'] = isset($data['slot_data']) ? $data['slot_data'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets slot_data + * + * @return string + */ + public function getSlotData() + { + return $this->container['slot_data']; + } + + /** + * Sets slot_data + * + * @param string $slot_data slot_data + * + * @return $this + */ + public function setSlotData($slot_data) + { + $this->container['slot_data'] = $slot_data; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 958437249f691836d7bc56c435e9562a672f9a5d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:03 +0800 Subject: [PATCH 261/327] feat: update --- lib/Model/UpdatePreopenStrategyForms.php | 317 +++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UpdatePreopenStrategyForms.php diff --git a/lib/Model/UpdatePreopenStrategyForms.php b/lib/Model/UpdatePreopenStrategyForms.php new file mode 100644 index 000000000..eb3080c30 --- /dev/null +++ b/lib/Model/UpdatePreopenStrategyForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'pre_start_cmd' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_id' => null, +'pre_start_cmd' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_id' => 'gameId', +'pre_start_cmd' => 'preStartCmd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_id' => 'setGameId', +'pre_start_cmd' => 'setPreStartCmd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_id' => 'getGameId', +'pre_start_cmd' => 'getPreStartCmd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['pre_start_cmd'] = isset($data['pre_start_cmd']) ? $data['pre_start_cmd'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets pre_start_cmd + * + * @return string + */ + public function getPreStartCmd() + { + return $this->container['pre_start_cmd']; + } + + /** + * Sets pre_start_cmd + * + * @param string $pre_start_cmd pre_start_cmd + * + * @return $this + */ + public function setPreStartCmd($pre_start_cmd) + { + $this->container['pre_start_cmd'] = $pre_start_cmd; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0ddd9c291ad7801970737d1f413ae1f607b0de5f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:05 +0800 Subject: [PATCH 262/327] feat: update --- lib/Model/UpdatePreopenStrategyResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UpdatePreopenStrategyResult.php diff --git a/lib/Model/UpdatePreopenStrategyResult.php b/lib/Model/UpdatePreopenStrategyResult.php new file mode 100644 index 000000000..acdcbf2db --- /dev/null +++ b/lib/Model/UpdatePreopenStrategyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c91a81384e40bdbd00ad909e60edc48a2bbefbaa Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:06 +0800 Subject: [PATCH 263/327] feat: update --- .../UsercontrollerDeleteGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveForms.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveForms.php b/lib/Model/UsercontrollerDeleteGameArchiveForms.php new file mode 100644 index 000000000..b76ff68a3 --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8133dba434279ae18bf397e18e1fa6f3a4ec89e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:08 +0800 Subject: [PATCH 264/327] feat: update --- .../UsercontrollerDeleteGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveResult.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveResult.php b/lib/Model/UsercontrollerDeleteGameArchiveResult.php new file mode 100644 index 000000000..5ebad7a78 --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From aba0cac4ec36ec01f8fe87dfe32d32f3fb11939b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:09 +0800 Subject: [PATCH 265/327] feat: update --- ...controllerDeleteGameArchiveResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php b/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php new file mode 100644 index 000000000..7cefc57d0 --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 51428b456c0d254f3b2a4fed824bd05278e12953 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:10 +0800 Subject: [PATCH 266/327] feat: update --- ...rollerGetGameTrialSurplusDurationForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php new file mode 100644 index 000000000..1b89dba55 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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 account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 账号id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3a75b75f834cacad73476bd617eea6f77faad312 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:12 +0800 Subject: [PATCH 267/327] feat: update --- ...ollerGetGameTrialSurplusDurationResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php new file mode 100644 index 000000000..2ece4e7e5 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ab810fe3c13158e3e619e4ff8cc338af8e7b8428 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:13 +0800 Subject: [PATCH 268/327] feat: update --- ...GetGameTrialSurplusDurationResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php new file mode 100644 index 000000000..172f7525b --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php @@ -0,0 +1,257 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'trial_policy_responses' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'trial_policy_responses' => 'trialPolicyResponses' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'trial_policy_responses' => 'setTrialPolicyResponses' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'trial_policy_responses' => 'getTrialPolicyResponses' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['trial_policy_responses'] = isset($data['trial_policy_responses']) ? $data['trial_policy_responses'] : null; + } + + + /** + * Gets trial_policy_responses + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[] + */ + public function getTrialPolicyResponses() + { + return $this->container['trial_policy_responses']; + } + + /** + * Sets trial_policy_responses + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[] $trial_policy_responses trial_policy_responses + * + * @return $this + */ + public function setTrialPolicyResponses($trial_policy_responses) + { + $this->container['trial_policy_responses'] = $trial_policy_responses; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8bd6890bc3f749a72f9d696d2847c684ff253c1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:14 +0800 Subject: [PATCH 269/327] feat: update --- ...urationResultModelTrialPolicyResponses.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php new file mode 100644 index 000000000..9bf863cc4 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php @@ -0,0 +1,287 @@ + 'string', +'surplus_duration_in_second' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'policy_type' => null, +'surplus_duration_in_second' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'policy_type' => 'policyType', +'surplus_duration_in_second' => 'surplusDurationInSecond' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'policy_type' => 'setPolicyType', +'surplus_duration_in_second' => 'setSurplusDurationInSecond' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'policy_type' => 'getPolicyType', +'surplus_duration_in_second' => 'getSurplusDurationInSecond' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['policy_type'] = isset($data['policy_type']) ? $data['policy_type'] : null; + $this->container['surplus_duration_in_second'] = isset($data['surplus_duration_in_second']) ? $data['surplus_duration_in_second'] : null; + } + + + /** + * Gets policy_type + * + * @return string + */ + public function getPolicyType() + { + return $this->container['policy_type']; + } + + /** + * Sets policy_type + * + * @param string $policy_type 策略类型 + * + * @return $this + */ + public function setPolicyType($policy_type) + { + $this->container['policy_type'] = $policy_type; + + return $this; + } + + /** + * Gets surplus_duration_in_second + * + * @return int + */ + public function getSurplusDurationInSecond() + { + return $this->container['surplus_duration_in_second']; + } + + /** + * Sets surplus_duration_in_second + * + * @param int $surplus_duration_in_second 剩余试玩时长 + * + * @return $this + */ + public function setSurplusDurationInSecond($surplus_duration_in_second) + { + $this->container['surplus_duration_in_second'] = $surplus_duration_in_second; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7831d5905aebdd2ced96366ceec38b8633d06b58 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:16 +0800 Subject: [PATCH 270/327] feat: update --- .../UsercontrollerGetUserGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveForms.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveForms.php b/lib/Model/UsercontrollerGetUserGameArchiveForms.php new file mode 100644 index 000000000..e49b64a56 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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 account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6289a39d47b3848201de3d3d4f5b7ed2284c7898 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:18 +0800 Subject: [PATCH 271/327] feat: update --- ...UsercontrollerGetUserGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResult.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResult.php b/lib/Model/UsercontrollerGetUserGameArchiveResult.php new file mode 100644 index 000000000..3fea25097 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 18b917f051d2d99cacb16ec33fbd4e010785ff0f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:19 +0800 Subject: [PATCH 272/327] feat: update --- ...ontrollerGetUserGameArchiveResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php b/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php new file mode 100644 index 000000000..af66b9603 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php @@ -0,0 +1,317 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO', +'download_url' => 'string', +'object_md5' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'user_game_archive_dto' => null, +'download_url' => null, +'object_md5' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'user_game_archive_dto' => 'userGameArchiveDTO', +'download_url' => 'downloadUrl', +'object_md5' => 'objectMD5' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'user_game_archive_dto' => 'setUserGameArchiveDto', +'download_url' => 'setDownloadUrl', +'object_md5' => 'setObjectMd5' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'user_game_archive_dto' => 'getUserGameArchiveDto', +'download_url' => 'getDownloadUrl', +'object_md5' => 'getObjectMd5' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['user_game_archive_dto'] = isset($data['user_game_archive_dto']) ? $data['user_game_archive_dto'] : 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; + } + + + /** + * Gets user_game_archive_dto + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO + */ + public function getUserGameArchiveDto() + { + return $this->container['user_game_archive_dto']; + } + + /** + * Sets user_game_archive_dto + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO $user_game_archive_dto user_game_archive_dto + * + * @return $this + */ + public function setUserGameArchiveDto($user_game_archive_dto) + { + $this->container['user_game_archive_dto'] = $user_game_archive_dto; + + return $this; + } + + /** + * Gets download_url + * + * @return string + */ + public function getDownloadUrl() + { + return $this->container['download_url']; + } + + /** + * Sets download_url + * + * @param string $download_url download_url + * + * @return $this + */ + public function setDownloadUrl($download_url) + { + $this->container['download_url'] = $download_url; + + return $this; + } + + /** + * Gets object_md5 + * + * @return string + */ + public function getObjectMd5() + { + return $this->container['object_md5']; + } + + /** + * Sets object_md5 + * + * @param string $object_md5 object_md5 + * + * @return $this + */ + public function setObjectMd5($object_md5) + { + $this->container['object_md5'] = $object_md5; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 49900847c273f50fbdb01e20f09c3b6474fe7a57 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:20 +0800 Subject: [PATCH 273/327] feat: update --- ...meArchiveResultModelUserGameArchiveDTO.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php b/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php new file mode 100644 index 000000000..15d5df48a --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php @@ -0,0 +1,287 @@ + 'string', +'gmt_create' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session_id' => null, +'gmt_create' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session_id' => 'gameSessionId', +'gmt_create' => 'gmtCreate' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session_id' => 'setGameSessionId', +'gmt_create' => 'setGmtCreate' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session_id' => 'getGameSessionId', +'gmt_create' => 'getGmtCreate' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session_id'] = isset($data['game_session_id']) ? $data['game_session_id'] : null; + $this->container['gmt_create'] = isset($data['gmt_create']) ? $data['gmt_create'] : null; + } + + + /** + * Gets game_session_id + * + * @return string + */ + public function getGameSessionId() + { + return $this->container['game_session_id']; + } + + /** + * Sets game_session_id + * + * @param string $game_session_id 游戏会话ID + * + * @return $this + */ + public function setGameSessionId($game_session_id) + { + $this->container['game_session_id'] = $game_session_id; + + return $this; + } + + /** + * Gets gmt_create + * + * @return int + */ + public function getGmtCreate() + { + return $this->container['gmt_create']; + } + + /** + * Sets gmt_create + * + * @param int $gmt_create 存档生成时间 + * + * @return $this + */ + public function setGmtCreate($gmt_create) + { + $this->container['gmt_create'] = $gmt_create; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6aad2a769d0d3bc3a83b8164cacd3c0eeba3ae2a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:22 +0800 Subject: [PATCH 274/327] feat: update --- ...ercontrollerListLatestGameArchiveForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveForms.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveForms.php b/lib/Model/UsercontrollerListLatestGameArchiveForms.php new file mode 100644 index 000000000..0ccb1faa3 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'page_size' => 'int', +'page_number' => 'int', +'tag_status' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'page_size' => 'int32', +'page_number' => 'int32', +'tag_status' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'page_size' => 'pageSize', +'page_number' => 'pageNumber', +'tag_status' => 'tagStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'page_size' => 'setPageSize', +'page_number' => 'setPageNumber', +'tag_status' => 'setTagStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'page_size' => 'getPageSize', +'page_number' => 'getPageNumber', +'tag_status' => 'getTagStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 409a9ff18ad2c77b041b0bd50e7561a675f4cf7f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:23 +0800 Subject: [PATCH 275/327] feat: update --- ...rcontrollerListLatestGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResult.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResult.php b/lib/Model/UsercontrollerListLatestGameArchiveResult.php new file mode 100644 index 000000000..66ff28d61 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f449fdf09d3bcb24e25061bdf560590f578be927 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:24 +0800 Subject: [PATCH 276/327] feat: update --- ...rollerListLatestGameArchiveResultModel.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php b/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php new file mode 100644 index 000000000..5413adee6 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php @@ -0,0 +1,377 @@ + 'int', +'request_id' => 'string', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'request_id' => null, +'page_size' => null, +'total_count' => null, +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'request_id' => 'requestId', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'request_id' => 'setRequestId', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'request_id' => 'getRequestId', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 17ed986f1577cdeb7c6edaf6b3e20cdb463e77fa Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:26 +0800 Subject: [PATCH 277/327] feat: update --- ...rListLatestGameArchiveResultModelItems.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php b/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php new file mode 100644 index 000000000..3cc87ee48 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php @@ -0,0 +1,377 @@ + 'string', +'account_id' => 'string', +'archive_time' => 'int', +'tag_status' => 'int', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'archive_time' => 'int64', +'tag_status' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'archive_time' => 'archiveTime', +'tag_status' => 'tagStatus', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'archive_time' => 'setArchiveTime', +'tag_status' => 'setTagStatus', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'archive_time' => 'getArchiveTime', +'tag_status' => 'getTagStatus', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['archive_time'] = isset($data['archive_time']) ? $data['archive_time'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets archive_time + * + * @return int + */ + public function getArchiveTime() + { + return $this->container['archive_time']; + } + + /** + * Sets archive_time + * + * @param int $archive_time archive_time + * + * @return $this + */ + public function setArchiveTime($archive_time) + { + $this->container['archive_time'] = $archive_time; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dda8c379bcae87997c3c10b542c1b67c3cb783be Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:27 +0800 Subject: [PATCH 278/327] feat: update --- .../UsercontrollerRestoreGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveForms.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveForms.php b/lib/Model/UsercontrollerRestoreGameArchiveForms.php new file mode 100644 index 000000000..ac8fdf2b5 --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a55459b1cca55eb7fa388ab782d71c78f64356e2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:28 +0800 Subject: [PATCH 279/327] feat: update --- ...UsercontrollerRestoreGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveResult.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveResult.php b/lib/Model/UsercontrollerRestoreGameArchiveResult.php new file mode 100644 index 000000000..70213b69d --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 89fcfa0c40096c2d1ec0cac33ce0ad14641b05c9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:30 +0800 Subject: [PATCH 280/327] feat: update --- ...ontrollerRestoreGameArchiveResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php b/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php new file mode 100644 index 000000000..ceaa0ab51 --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b4596edfa89063717b905451c1332a4acecf8dc1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:31 +0800 Subject: [PATCH 281/327] feat: update --- ...trollerUpdateGameArchiveTagStatusForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php new file mode 100644 index 000000000..34fef0c16 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php @@ -0,0 +1,347 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string', +'tag_status' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null, +'tag_status' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId', +'tag_status' => 'tagStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId', +'tag_status' => 'setTagStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId', +'tag_status' => 'getTagStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = 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['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 35669f74fd1dc5686fac5b5eb9dd9f12d3933eaf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:32 +0800 Subject: [PATCH 282/327] feat: update --- ...rollerUpdateGameArchiveTagStatusResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php new file mode 100644 index 000000000..74163d6b2 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b65db6fb3ca6988a140d91a49a33e512b833aa62 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:34 +0800 Subject: [PATCH 283/327] feat: update --- ...rUpdateGameArchiveTagStatusResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php new file mode 100644 index 000000000..a67d549d0 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cc15c0986b3a9327bae8b047f4cccab84c5caf23 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:35 +0800 Subject: [PATCH 284/327] feat: update --- lib/Api/AdaptApi.php | 568 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 568 insertions(+) create mode 100644 lib/Api/AdaptApi.php diff --git a/lib/Api/AdaptApi.php b/lib/Api/AdaptApi.php new file mode 100644 index 000000000..c64cf5595 --- /dev/null +++ b/lib/Api/AdaptApi.php @@ -0,0 +1,568 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation createAndSubmitAll + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult + */ + public function createAndSubmitAll($varForms) + { + list($response) = $this->createAndSubmitAllWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createAndSubmitAllWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createAndSubmitAllWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult'; + $request = $this->createAndSubmitAllRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createAndSubmitAllAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAndSubmitAllAsync($varForms) + { + return $this->createAndSubmitAllAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createAndSubmitAllAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAndSubmitAllAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult'; + $request = $this->createAndSubmitAllRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createAndSubmitAll' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createAndSubmitAllRequest($varForms) + { + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'source_platform' is set + if ($varForms['source_platform'] === null || (is_array($varForms['source_platform']) && count($varForms['source_platform']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'source_platform\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'records' is set + if ($varForms['records'] === null || (is_array($varForms['records']) && count($varForms['records']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'records\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'mix_game_version_id' is set + if ($varForms['mix_game_version_id'] === null || (is_array($varForms['mix_game_version_id']) && count($varForms['mix_game_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_game_version_id\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'mix_game_id' is set + if ($varForms['mix_game_id'] === null || (is_array($varForms['mix_game_id']) && count($varForms['mix_game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_game_id\'] when calling createAndSubmitAll' + ); + } + + $resourcePath = '/adapt/createAndSubmitAll'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + if ($varForms['game_name'] !== null) { + $formParams['gameName'] = ObjectSerializer::toFormValue($varForms['game_name']); + } + if ($varForms['game_version_id'] !== null) { + $formParams['gameVersionId'] = ObjectSerializer::toFormValue($varForms['game_version_id']); + } + if ($varForms['game_version'] !== null) { + $formParams['gameVersion'] = ObjectSerializer::toFormValue($varForms['game_version']); + } + if ($varForms['resolution_list'] !== null) { + $formParams['resolutionList'] = ObjectSerializer::toFormValue($varForms['resolution_list']); + } + if ($varForms['frame_rate_list'] !== null) { + $formParams['frameRateList'] = ObjectSerializer::toFormValue($varForms['frame_rate_list']); + } + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + $formParams['sourcePlatform'] = ObjectSerializer::toFormValue($varForms['source_platform']); + $formParams['records'] = ObjectSerializer::toFormValue($varForms['records']); + $formParams['mixGameVersionId'] = ObjectSerializer::toFormValue($varForms['mix_game_version_id']); + $formParams['mixGameId'] = ObjectSerializer::toFormValue($varForms['mix_game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryRequestById + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult + */ + public function queryRequestById($varForms) + { + list($response) = $this->queryRequestByIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryRequestByIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryRequestByIdWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult'; + $request = $this->queryRequestByIdRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryRequestByIdAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryRequestByIdAsync($varForms) + { + return $this->queryRequestByIdAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryRequestByIdAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryRequestByIdAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult'; + $request = $this->queryRequestByIdRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryRequestById' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryRequestByIdRequest($varForms) + { + // verify the required parameter 'id' is set + if ($varForms['id'] === null || (is_array($varForms['id']) && count($varForms['id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'id\'] when calling queryRequestById' + ); + } + + $resourcePath = '/adapt/queryRequestById'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['id'] = ObjectSerializer::toFormValue($varForms['id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 55eb565660f6776e944e8937608bff5066210e06 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:36 +0800 Subject: [PATCH 285/327] feat: update --- lib/Api/AiApi.php | 2688 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2688 insertions(+) create mode 100644 lib/Api/AiApi.php diff --git a/lib/Api/AiApi.php b/lib/Api/AiApi.php new file mode 100644 index 000000000..4e24e7b5e --- /dev/null +++ b/lib/Api/AiApi.php @@ -0,0 +1,2688 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation batchUpdateKbVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult + */ + public function batchUpdateKbVersion($varForms) + { + list($response) = $this->batchUpdateKbVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateKbVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateKbVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult'; + $request = $this->batchUpdateKbVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateKbVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateKbVersionAsync($varForms) + { + return $this->batchUpdateKbVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchUpdateKbVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateKbVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult'; + $request = $this->batchUpdateKbVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchUpdateKbVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchUpdateKbVersionRequest($varForms) + { + // verify the required parameter 'role_ids' is set + if ($varForms['role_ids'] === null || (is_array($varForms['role_ids']) && count($varForms['role_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'role_ids\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'kb_id' is set + if ($varForms['kb_id'] === null || (is_array($varForms['kb_id']) && count($varForms['kb_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kb_id\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'kb_version_id' is set + if ($varForms['kb_version_id'] === null || (is_array($varForms['kb_version_id']) && count($varForms['kb_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kb_version_id\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling batchUpdateKbVersion' + ); + } + + $resourcePath = '/ai/batchUpdateKbVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['roleIds'] = ObjectSerializer::toFormValue($varForms['role_ids']); + $formParams['kbId'] = ObjectSerializer::toFormValue($varForms['kb_id']); + $formParams['kbVersionId'] = ObjectSerializer::toFormValue($varForms['kb_version_id']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation cancelQueue + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult + */ + public function cancelQueue($varForms) + { + list($response) = $this->cancelQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelQueueWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult'; + $request = $this->cancelQueueRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelQueueAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelQueueAsync($varForms) + { + return $this->cancelQueueAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelQueueAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult'; + $request = $this->cancelQueueRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'cancelQueue' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function cancelQueueRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling cancelQueue' + ); + } + + $resourcePath = '/ai/cancelQueue'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createNpcRole + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult + */ + public function createNpcRole($varForms) + { + list($response) = $this->createNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createNpcRoleWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult'; + $request = $this->createNpcRoleRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createNpcRoleAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createNpcRoleAsync($varForms) + { + return $this->createNpcRoleAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createNpcRoleAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult'; + $request = $this->createNpcRoleRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createNpcRole' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createNpcRoleRequest($varForms) + { + // verify the required parameter 'name' is set + if ($varForms['name'] === null || (is_array($varForms['name']) && count($varForms['name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'name\'] when calling createNpcRole' + ); + } + // verify the required parameter 'description' is set + if ($varForms['description'] === null || (is_array($varForms['description']) && count($varForms['description']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'description\'] when calling createNpcRole' + ); + } + // verify the required parameter 'figure_id' is set + if ($varForms['figure_id'] === null || (is_array($varForms['figure_id']) && count($varForms['figure_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'figure_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'voice_id' is set + if ($varForms['voice_id'] === null || (is_array($varForms['voice_id']) && count($varForms['voice_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'voice_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'characters' is set + if ($varForms['characters'] === null || (is_array($varForms['characters']) && count($varForms['characters']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'characters\'] when calling createNpcRole' + ); + } + // verify the required parameter 'greetings' is set + if ($varForms['greetings'] === null || (is_array($varForms['greetings']) && count($varForms['greetings']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'greetings\'] when calling createNpcRole' + ); + } + // verify the required parameter 'guidance' is set + if ($varForms['guidance'] === null || (is_array($varForms['guidance']) && count($varForms['guidance']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'guidance\'] when calling createNpcRole' + ); + } + // verify the required parameter 'short_memory_round' is set + if ($varForms['short_memory_round'] === null || (is_array($varForms['short_memory_round']) && count($varForms['short_memory_round']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'short_memory_round\'] when calling createNpcRole' + ); + } + // verify the required parameter 'tenant_id' is set + if ($varForms['tenant_id'] === null || (is_array($varForms['tenant_id']) && count($varForms['tenant_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'tenant_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling createNpcRole' + ); + } + // verify the required parameter 'llm_model_id' is set + if ($varForms['llm_model_id'] === null || (is_array($varForms['llm_model_id']) && count($varForms['llm_model_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'llm_model_id\'] when calling createNpcRole' + ); + } + + $resourcePath = '/ai/createNpcRole'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['name'] = ObjectSerializer::toFormValue($varForms['name']); + $formParams['description'] = ObjectSerializer::toFormValue($varForms['description']); + $formParams['figureId'] = ObjectSerializer::toFormValue($varForms['figure_id']); + $formParams['voiceId'] = ObjectSerializer::toFormValue($varForms['voice_id']); + $formParams['characters'] = ObjectSerializer::toFormValue($varForms['characters']); + $formParams['greetings'] = ObjectSerializer::toFormValue($varForms['greetings']); + $formParams['guidance'] = ObjectSerializer::toFormValue($varForms['guidance']); + if ($varForms['knowledge_bases'] !== null) { + $formParams['knowledgeBases'] = ObjectSerializer::toFormValue($varForms['knowledge_bases']); + } + if ($varForms['plugin_ids'] !== null) { + $formParams['pluginIds'] = ObjectSerializer::toFormValue($varForms['plugin_ids']); + } + $formParams['shortMemoryRound'] = ObjectSerializer::toFormValue($varForms['short_memory_round']); + $formParams['tenantId'] = ObjectSerializer::toFormValue($varForms['tenant_id']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + $formParams['llmModelId'] = ObjectSerializer::toFormValue($varForms['llm_model_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult + */ + public function deleteModels($varForms) + { + list($response) = $this->deleteModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult'; + $request = $this->deleteModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteModelsAsync($varForms) + { + return $this->deleteModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult'; + $request = $this->deleteModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteModelsRequest($varForms) + { + // verify the required parameter 'resource_id' is set + if ($varForms['resource_id'] === null || (is_array($varForms['resource_id']) && count($varForms['resource_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'resource_id\'] when calling deleteModels' + ); + } + + $resourcePath = '/ai/deleteModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['resourceId'] = ObjectSerializer::toFormValue($varForms['resource_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getPrompt + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult + */ + public function getPrompt($varForms) + { + list($response) = $this->getPromptWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getPromptWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getPromptWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult'; + $request = $this->getPromptRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getPromptAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromptAsync($varForms) + { + return $this->getPromptAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPromptAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromptAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult'; + $request = $this->getPromptRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPrompt' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getPromptRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling getPrompt' + ); + } + + $resourcePath = '/ai/getPrompt'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getQueue + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult + */ + public function getQueue($varForms) + { + list($response) = $this->getQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getQueueWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult'; + $request = $this->getQueueRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getQueueAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getQueueAsync($varForms) + { + return $this->getQueueAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getQueueAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult'; + $request = $this->getQueueRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getQueue' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getQueueRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling getQueue' + ); + } + + $resourcePath = '/ai/getQueue'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult + */ + public function listModels($varForms) + { + list($response) = $this->listModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult'; + $request = $this->listModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listModelsAsync($varForms) + { + return $this->listModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult'; + $request = $this->listModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listModelsRequest($varForms) + { + // verify the required parameter 'page_number' is set + if ($varForms['page_number'] === null || (is_array($varForms['page_number']) && count($varForms['page_number']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'page_number\'] when calling listModels' + ); + } + // verify the required parameter 'page_size' is set + if ($varForms['page_size'] === null || (is_array($varForms['page_size']) && count($varForms['page_size']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'page_size\'] when calling listModels' + ); + } + + $resourcePath = '/ai/listModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['model_type'] !== null) { + $formParams['modelType'] = ObjectSerializer::toFormValue($varForms['model_type']); + } + if ($varForms['model_file_type'] !== null) { + $formParams['modelFileType'] = ObjectSerializer::toFormValue($varForms['model_file_type']); + } + if ($varForms['model_series'] !== null) { + $formParams['modelSeries'] = ObjectSerializer::toFormValue($varForms['model_series']); + } + if ($varForms['model_file_name'] !== null) { + $formParams['modelFileName'] = ObjectSerializer::toFormValue($varForms['model_file_name']); + } + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation prompt + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult + */ + public function prompt($varForms) + { + list($response) = $this->promptWithHttpInfo($varForms); + return $response; + } + + /** + * Operation promptWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult, HTTP status code, HTTP response headers (array of strings) + */ + public function promptWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult'; + $request = $this->promptRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation promptAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function promptAsync($varForms) + { + return $this->promptAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation promptAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function promptAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult'; + $request = $this->promptRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'prompt' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function promptRequest($varForms) + { + // verify the required parameter 'scene_type' is set + if ($varForms['scene_type'] === null || (is_array($varForms['scene_type']) && count($varForms['scene_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'scene_type\'] when calling prompt' + ); + } + // verify the required parameter 'prompt_param' is set + if ($varForms['prompt_param'] === null || (is_array($varForms['prompt_param']) && count($varForms['prompt_param']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'prompt_param\'] when calling prompt' + ); + } + + $resourcePath = '/ai/prompt'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['sceneType'] = ObjectSerializer::toFormValue($varForms['scene_type']); + $formParams['promptParam'] = ObjectSerializer::toFormValue($varForms['prompt_param']); + if ($varForms['resources'] !== null) { + $formParams['resources'] = ObjectSerializer::toFormValue($varForms['resources']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult + */ + public function updateModels($varForms) + { + list($response) = $this->updateModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult'; + $request = $this->updateModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateModelsAsync($varForms) + { + return $this->updateModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult'; + $request = $this->updateModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateModelsRequest($varForms) + { + // verify the required parameter 'resource_id' is set + if ($varForms['resource_id'] === null || (is_array($varForms['resource_id']) && count($varForms['resource_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'resource_id\'] when calling updateModels' + ); + } + // verify the required parameter 'desc' is set + if ($varForms['desc'] === null || (is_array($varForms['desc']) && count($varForms['desc']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'desc\'] when calling updateModels' + ); + } + + $resourcePath = '/ai/updateModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['resourceId'] = ObjectSerializer::toFormValue($varForms['resource_id']); + $formParams['desc'] = ObjectSerializer::toFormValue($varForms['desc']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateNpcRole + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult + */ + public function updateNpcRole($varForms) + { + list($response) = $this->updateNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateNpcRoleWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult'; + $request = $this->updateNpcRoleRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateNpcRoleAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateNpcRoleAsync($varForms) + { + return $this->updateNpcRoleAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateNpcRoleAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult'; + $request = $this->updateNpcRoleRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateNpcRole' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateNpcRoleRequest($varForms) + { + // verify the required parameter 'id' is set + if ($varForms['id'] === null || (is_array($varForms['id']) && count($varForms['id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'name' is set + if ($varForms['name'] === null || (is_array($varForms['name']) && count($varForms['name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'name\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'description' is set + if ($varForms['description'] === null || (is_array($varForms['description']) && count($varForms['description']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'description\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'figure_id' is set + if ($varForms['figure_id'] === null || (is_array($varForms['figure_id']) && count($varForms['figure_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'figure_id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'voice_id' is set + if ($varForms['voice_id'] === null || (is_array($varForms['voice_id']) && count($varForms['voice_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'voice_id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'characters' is set + if ($varForms['characters'] === null || (is_array($varForms['characters']) && count($varForms['characters']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'characters\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'greetings' is set + if ($varForms['greetings'] === null || (is_array($varForms['greetings']) && count($varForms['greetings']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'greetings\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'guidance' is set + if ($varForms['guidance'] === null || (is_array($varForms['guidance']) && count($varForms['guidance']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'guidance\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'short_memory_round' is set + if ($varForms['short_memory_round'] === null || (is_array($varForms['short_memory_round']) && count($varForms['short_memory_round']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'short_memory_round\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'llm_model_id' is set + if ($varForms['llm_model_id'] === null || (is_array($varForms['llm_model_id']) && count($varForms['llm_model_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'llm_model_id\'] when calling updateNpcRole' + ); + } + + $resourcePath = '/ai/updateNpcRole'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['id'] = ObjectSerializer::toFormValue($varForms['id']); + $formParams['name'] = ObjectSerializer::toFormValue($varForms['name']); + $formParams['description'] = ObjectSerializer::toFormValue($varForms['description']); + $formParams['figureId'] = ObjectSerializer::toFormValue($varForms['figure_id']); + $formParams['voiceId'] = ObjectSerializer::toFormValue($varForms['voice_id']); + $formParams['characters'] = ObjectSerializer::toFormValue($varForms['characters']); + $formParams['greetings'] = ObjectSerializer::toFormValue($varForms['greetings']); + $formParams['guidance'] = ObjectSerializer::toFormValue($varForms['guidance']); + if ($varForms['knowledge_bases'] !== null) { + $formParams['knowledgeBases'] = ObjectSerializer::toFormValue($varForms['knowledge_bases']); + } + if ($varForms['plugin_ids'] !== null) { + $formParams['pluginIds'] = ObjectSerializer::toFormValue($varForms['plugin_ids']); + } + $formParams['shortMemoryRound'] = ObjectSerializer::toFormValue($varForms['short_memory_round']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + $formParams['llmModelId'] = ObjectSerializer::toFormValue($varForms['llm_model_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation uploadModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult + */ + public function uploadModels($varForms) + { + list($response) = $this->uploadModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult'; + $request = $this->uploadModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadModelsAsync($varForms) + { + return $this->uploadModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation uploadModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult'; + $request = $this->uploadModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'uploadModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function uploadModelsRequest($varForms) + { + // verify the required parameter 'model_type' is set + if ($varForms['model_type'] === null || (is_array($varForms['model_type']) && count($varForms['model_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_type\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_name' is set + if ($varForms['model_name'] === null || (is_array($varForms['model_name']) && count($varForms['model_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_name\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_file_path' is set + if ($varForms['model_file_path'] === null || (is_array($varForms['model_file_path']) && count($varForms['model_file_path']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_file_path\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_files' is set + if ($varForms['model_files'] === null || (is_array($varForms['model_files']) && count($varForms['model_files']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_files\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_file_type' is set + if ($varForms['model_file_type'] === null || (is_array($varForms['model_file_type']) && count($varForms['model_file_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_file_type\'] when calling uploadModels' + ); + } + + $resourcePath = '/ai/uploadModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['modelType'] = ObjectSerializer::toFormValue($varForms['model_type']); + $formParams['modelName'] = ObjectSerializer::toFormValue($varForms['model_name']); + $formParams['modelFilePath'] = ObjectSerializer::toFormValue($varForms['model_file_path']); + $formParams['modelFiles'] = ObjectSerializer::toFormValue($varForms['model_files']); + if ($varForms['desc'] !== null) { + $formParams['desc'] = ObjectSerializer::toFormValue($varForms['desc']); + } + $formParams['modelFileType'] = ObjectSerializer::toFormValue($varForms['model_file_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 75e173a34ff2c6888fd78896af7d4369a13c6fdd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:38 +0800 Subject: [PATCH 286/327] feat: update --- lib/Api/ConsoleAdminApi.php | 8121 +++++++++++++++++++++++++++++++++++ 1 file changed, 8121 insertions(+) create mode 100644 lib/Api/ConsoleAdminApi.php diff --git a/lib/Api/ConsoleAdminApi.php b/lib/Api/ConsoleAdminApi.php new file mode 100644 index 000000000..dea4504c4 --- /dev/null +++ b/lib/Api/ConsoleAdminApi.php @@ -0,0 +1,8121 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation activateDeployment + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult + */ + public function activateDeployment($varForms) + { + list($response) = $this->activateDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation activateDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function activateDeploymentWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult'; + $request = $this->activateDeploymentRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation activateDeploymentAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function activateDeploymentAsync($varForms) + { + return $this->activateDeploymentAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation activateDeploymentAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function activateDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult'; + $request = $this->activateDeploymentRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'activateDeployment' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function activateDeploymentRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling activateDeployment' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling activateDeployment' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling activateDeployment' + ); + } + + $resourcePath = '/consoleAdmin/activateDeployment'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + if ($varForms['max_concurrency'] !== null) { + $formParams['maxConcurrency'] = ObjectSerializer::toFormValue($varForms['max_concurrency']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation adaptGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult + */ + public function adaptGameVersion($varForms) + { + list($response) = $this->adaptGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation adaptGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function adaptGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult'; + $request = $this->adaptGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation adaptGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function adaptGameVersionAsync($varForms) + { + return $this->adaptGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation adaptGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function adaptGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult'; + $request = $this->adaptGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'adaptGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function adaptGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling adaptGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/adaptGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation addGameToProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult + */ + public function addGameToProject($varForms) + { + list($response) = $this->addGameToProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation addGameToProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function addGameToProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult'; + $request = $this->addGameToProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation addGameToProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addGameToProjectAsync($varForms) + { + return $this->addGameToProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation addGameToProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addGameToProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult'; + $request = $this->addGameToProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'addGameToProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function addGameToProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling addGameToProject' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling addGameToProject' + ); + } + + $resourcePath = '/consoleAdmin/addGameToProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation batchUpdateDispatchConfig + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult + */ + public function batchUpdateDispatchConfig($varForms) + { + list($response) = $this->batchUpdateDispatchConfigWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateDispatchConfigWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateDispatchConfigWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult'; + $request = $this->batchUpdateDispatchConfigRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateDispatchConfigAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateDispatchConfigAsync($varForms) + { + return $this->batchUpdateDispatchConfigAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchUpdateDispatchConfigAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateDispatchConfigAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult'; + $request = $this->batchUpdateDispatchConfigRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchUpdateDispatchConfig' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchUpdateDispatchConfigRequest($varForms) + { + // verify the required parameter 'mix_project_id' is set + if ($varForms['mix_project_id'] === null || (is_array($varForms['mix_project_id']) && count($varForms['mix_project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_project_id\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'instance_id' is set + if ($varForms['instance_id'] === null || (is_array($varForms['instance_id']) && count($varForms['instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'instance_id\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'app_name' is set + if ($varForms['app_name'] === null || (is_array($varForms['app_name']) && count($varForms['app_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_name\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'config_list' is set + if ($varForms['config_list'] === null || (is_array($varForms['config_list']) && count($varForms['config_list']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'config_list\'] when calling batchUpdateDispatchConfig' + ); + } + + $resourcePath = '/consoleAdmin/batchUpdateDispatchConfig'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mixProjectId'] = ObjectSerializer::toFormValue($varForms['mix_project_id']); + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + $formParams['appName'] = ObjectSerializer::toFormValue($varForms['app_name']); + $formParams['configList'] = ObjectSerializer::toFormValue($varForms['config_list']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult + */ + public function createGame($varForms) + { + list($response) = $this->createGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult'; + $request = $this->createGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createGameAsync($varForms) + { + return $this->createGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult'; + $request = $this->createGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createGameRequest($varForms) + { + // verify the required parameter 'game_name' is set + if ($varForms['game_name'] === null || (is_array($varForms['game_name']) && count($varForms['game_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_name\'] when calling createGame' + ); + } + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling createGame' + ); + } + + $resourcePath = '/consoleAdmin/createGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameName'] = ObjectSerializer::toFormValue($varForms['game_name']); + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + if ($varForms['os_type'] !== null) { + $formParams['osType'] = ObjectSerializer::toFormValue($varForms['os_type']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createOrder + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult + */ + public function createOrder($varForms) + { + list($response) = $this->createOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrderWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult'; + $request = $this->createOrderRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createOrderAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrderAsync($varForms) + { + return $this->createOrderAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createOrderAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult'; + $request = $this->createOrderRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createOrder' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createOrderRequest($varForms) + { + // verify the required parameter 'category_code' is set + if ($varForms['category_code'] === null || (is_array($varForms['category_code']) && count($varForms['category_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'category_code\'] when calling createOrder' + ); + } + // verify the required parameter 'commodity_code' is set + if ($varForms['commodity_code'] === null || (is_array($varForms['commodity_code']) && count($varForms['commodity_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_code\'] when calling createOrder' + ); + } + // verify the required parameter 'primary_charge_item_code' is set + if ($varForms['primary_charge_item_code'] === null || (is_array($varForms['primary_charge_item_code']) && count($varForms['primary_charge_item_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'primary_charge_item_code\'] when calling createOrder' + ); + } + // verify the required parameter 'attribute_request_list' is set + if ($varForms['attribute_request_list'] === null || (is_array($varForms['attribute_request_list']) && count($varForms['attribute_request_list']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'attribute_request_list\'] when calling createOrder' + ); + } + // verify the required parameter 'order_type' is set + if ($varForms['order_type'] === null || (is_array($varForms['order_type']) && count($varForms['order_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'order_type\'] when calling createOrder' + ); + } + + $resourcePath = '/consoleAdmin/createOrder'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['categoryCode'] = ObjectSerializer::toFormValue($varForms['category_code']); + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + if ($varForms['instance_id'] !== null) { + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + } + $formParams['primaryChargeItemCode'] = ObjectSerializer::toFormValue($varForms['primary_charge_item_code']); + $formParams['attributeRequestList'] = ObjectSerializer::toFormValue($varForms['attribute_request_list']); + $formParams['orderType'] = ObjectSerializer::toFormValue($varForms['order_type']); + if ($varForms['auto_renew'] !== null) { + $formParams['autoRenew'] = ObjectSerializer::toFormValue($varForms['auto_renew']); + } + if ($varForms['create_order_ext_params'] !== null) { + $formParams['createOrderExtParams'] = ObjectSerializer::toFormValue($varForms['create_order_ext_params']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult + */ + public function createProject($varForms) + { + list($response) = $this->createProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult'; + $request = $this->createProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createProjectAsync($varForms) + { + return $this->createProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult'; + $request = $this->createProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createProjectRequest($varForms) + { + // verify the required parameter 'project_name' is set + if ($varForms['project_name'] === null || (is_array($varForms['project_name']) && count($varForms['project_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_name\'] when calling createProject' + ); + } + + $resourcePath = '/consoleAdmin/createProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectName'] = ObjectSerializer::toFormValue($varForms['project_name']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult + */ + public function deleteGame($varForms) + { + list($response) = $this->deleteGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult'; + $request = $this->deleteGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameAsync($varForms) + { + return $this->deleteGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult'; + $request = $this->deleteGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling deleteGame' + ); + } + + $resourcePath = '/consoleAdmin/deleteGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult + */ + public function deleteGameVersion($varForms) + { + list($response) = $this->deleteGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult'; + $request = $this->deleteGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameVersionAsync($varForms) + { + return $this->deleteGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult'; + $request = $this->deleteGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling deleteGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/deleteGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult + */ + public function deleteProject($varForms) + { + list($response) = $this->deleteProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult'; + $request = $this->deleteProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProjectAsync($varForms) + { + return $this->deleteProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult'; + $request = $this->deleteProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling deleteProject' + ); + } + + $resourcePath = '/consoleAdmin/deleteProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getBillFlowInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult + */ + public function getBillFlowInfo($varForms) + { + list($response) = $this->getBillFlowInfoWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getBillFlowInfoWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getBillFlowInfoWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult'; + $request = $this->getBillFlowInfoRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getBillFlowInfoAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBillFlowInfoAsync($varForms) + { + return $this->getBillFlowInfoAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getBillFlowInfoAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBillFlowInfoAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult'; + $request = $this->getBillFlowInfoRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getBillFlowInfo' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getBillFlowInfoRequest($varForms) + { + // verify the required parameter 'accounting_period_from' is set + if ($varForms['accounting_period_from'] === null || (is_array($varForms['accounting_period_from']) && count($varForms['accounting_period_from']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_from\'] when calling getBillFlowInfo' + ); + } + // verify the required parameter 'accounting_period_to' is set + if ($varForms['accounting_period_to'] === null || (is_array($varForms['accounting_period_to']) && count($varForms['accounting_period_to']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_to\'] when calling getBillFlowInfo' + ); + } + + $resourcePath = '/consoleAdmin/getBillFlowInfo'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountingPeriodFrom'] = ObjectSerializer::toFormValue($varForms['accounting_period_from']); + $formParams['accountingPeriodTo'] = ObjectSerializer::toFormValue($varForms['accounting_period_to']); + if ($varForms['commodity_code'] !== null) { + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + } + if ($varForms['tenant_id'] !== null) { + $formParams['tenantId'] = ObjectSerializer::toFormValue($varForms['tenant_id']); + } + if ($varForms['order_id'] !== null) { + $formParams['orderId'] = ObjectSerializer::toFormValue($varForms['order_id']); + } + if ($varForms['status'] !== null) { + $formParams['status'] = ObjectSerializer::toFormValue($varForms['status']); + } + if ($varForms['consume_type'] !== null) { + $formParams['consumeType'] = ObjectSerializer::toFormValue($varForms['consume_type']); + } + if ($varForms['bill_type'] !== null) { + $formParams['billType'] = ObjectSerializer::toFormValue($varForms['bill_type']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameInstanceContainerRatio + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult + */ + public function getGameInstanceContainerRatio($varForms) + { + list($response) = $this->getGameInstanceContainerRatioWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameInstanceContainerRatioWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameInstanceContainerRatioWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult'; + $request = $this->getGameInstanceContainerRatioRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameInstanceContainerRatioAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameInstanceContainerRatioAsync($varForms) + { + return $this->getGameInstanceContainerRatioAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameInstanceContainerRatioAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameInstanceContainerRatioAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult'; + $request = $this->getGameInstanceContainerRatioRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameInstanceContainerRatio' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameInstanceContainerRatioRequest($varForms) + { + // verify the required parameter 'commodity_instance_id' is set + if ($varForms['commodity_instance_id'] === null || (is_array($varForms['commodity_instance_id']) && count($varForms['commodity_instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_instance_id\'] when calling getGameInstanceContainerRatio' + ); + } + // verify the required parameter 'games' is set + if ($varForms['games'] === null || (is_array($varForms['games']) && count($varForms['games']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'games\'] when calling getGameInstanceContainerRatio' + ); + } + + $resourcePath = '/consoleAdmin/getGameInstanceContainerRatio'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['commodityInstanceId'] = ObjectSerializer::toFormValue($varForms['commodity_instance_id']); + $formParams['games'] = ObjectSerializer::toFormValue($varForms['games']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameRecommendedInstance + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult + */ + public function getGameRecommendedInstance($varForms) + { + list($response) = $this->getGameRecommendedInstanceWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameRecommendedInstanceWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameRecommendedInstanceWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult'; + $request = $this->getGameRecommendedInstanceRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameRecommendedInstanceAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameRecommendedInstanceAsync($varForms) + { + return $this->getGameRecommendedInstanceAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameRecommendedInstanceAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameRecommendedInstanceAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult'; + $request = $this->getGameRecommendedInstanceRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameRecommendedInstance' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameRecommendedInstanceRequest($varForms) + { + // verify the required parameter 'game' is set + if ($varForms['game'] === null || (is_array($varForms['game']) && count($varForms['game']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game\'] when calling getGameRecommendedInstance' + ); + } + // verify the required parameter 'commodity_instance_ids' is set + if ($varForms['commodity_instance_ids'] === null || (is_array($varForms['commodity_instance_ids']) && count($varForms['commodity_instance_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_instance_ids\'] when calling getGameRecommendedInstance' + ); + } + + $resourcePath = '/consoleAdmin/getGameRecommendedInstance'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['game'] = ObjectSerializer::toFormValue($varForms['game']); + $formParams['commodityInstanceIds'] = ObjectSerializer::toFormValue($varForms['commodity_instance_ids']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult + */ + public function getGameVersion($varForms) + { + list($response) = $this->getGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult'; + $request = $this->getGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionAsync($varForms) + { + return $this->getGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult'; + $request = $this->getGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling getGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/getGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameVersionProgress + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult + */ + public function getGameVersionProgress($varForms) + { + list($response) = $this->getGameVersionProgressWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionProgressWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionProgressWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult'; + $request = $this->getGameVersionProgressRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionProgressAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionProgressAsync($varForms) + { + return $this->getGameVersionProgressAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameVersionProgressAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionProgressAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult'; + $request = $this->getGameVersionProgressRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameVersionProgress' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameVersionProgressRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling getGameVersionProgress' + ); + } + + $resourcePath = '/consoleAdmin/getGameVersionProgress'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOrder + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult + */ + public function getOrder($varForms) + { + list($response) = $this->getOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrderWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult'; + $request = $this->getOrderRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOrderAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrderAsync($varForms) + { + return $this->getOrderAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOrderAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult'; + $request = $this->getOrderRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOrder' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOrderRequest($varForms) + { + // verify the required parameter 'order_id' is set + if ($varForms['order_id'] === null || (is_array($varForms['order_id']) && count($varForms['order_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'order_id\'] when calling getOrder' + ); + } + + $resourcePath = '/consoleAdmin/getOrder'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['orderId'] = ObjectSerializer::toFormValue($varForms['order_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listActivateableInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult + */ + public function listActivateableInstances($varForms) + { + list($response) = $this->listActivateableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivateableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivateableInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult'; + $request = $this->listActivateableInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivateableInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivateableInstancesAsync($varForms) + { + return $this->listActivateableInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listActivateableInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivateableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult'; + $request = $this->listActivateableInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listActivateableInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listActivateableInstancesRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listActivateableInstances' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling listActivateableInstances' + ); + } + + $resourcePath = '/consoleAdmin/listActivateableInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listActivatedInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult + */ + public function listActivatedInstances($varForms) + { + list($response) = $this->listActivatedInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivatedInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivatedInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult'; + $request = $this->listActivatedInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivatedInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivatedInstancesAsync($varForms) + { + return $this->listActivatedInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listActivatedInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivatedInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult'; + $request = $this->listActivatedInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listActivatedInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listActivatedInstancesRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listActivatedInstances' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listActivatedInstances' + ); + } + + $resourcePath = '/consoleAdmin/listActivatedInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listControllersOfGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult + */ + public function listControllersOfGame($varForms) + { + list($response) = $this->listControllersOfGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listControllersOfGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listControllersOfGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult'; + $request = $this->listControllersOfGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listControllersOfGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listControllersOfGameAsync($varForms) + { + return $this->listControllersOfGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listControllersOfGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listControllersOfGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult'; + $request = $this->listControllersOfGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listControllersOfGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listControllersOfGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listControllersOfGame' + ); + } + + $resourcePath = '/consoleAdmin/listControllersOfGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listDeployableInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult + */ + public function listDeployableInstances($varForms) + { + list($response) = $this->listDeployableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listDeployableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listDeployableInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult'; + $request = $this->listDeployableInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listDeployableInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listDeployableInstancesAsync($varForms) + { + return $this->listDeployableInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listDeployableInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listDeployableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult'; + $request = $this->listDeployableInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listDeployableInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listDeployableInstancesRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling listDeployableInstances' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listDeployableInstances' + ); + } + + $resourcePath = '/consoleAdmin/listDeployableInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameCcu + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult + */ + public function listGameCcu($varForms) + { + list($response) = $this->listGameCcuWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameCcuWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameCcuWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult'; + $request = $this->listGameCcuRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameCcuAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameCcuAsync($varForms) + { + return $this->listGameCcuAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameCcuAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameCcuAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult'; + $request = $this->listGameCcuRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameCcu' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameCcuRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGameCcu'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameDeployDetailsOfProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult + */ + public function listGameDeployDetailsOfProject($varForms) + { + list($response) = $this->listGameDeployDetailsOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameDeployDetailsOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameDeployDetailsOfProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult'; + $request = $this->listGameDeployDetailsOfProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameDeployDetailsOfProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameDeployDetailsOfProjectAsync($varForms) + { + return $this->listGameDeployDetailsOfProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameDeployDetailsOfProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameDeployDetailsOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult'; + $request = $this->listGameDeployDetailsOfProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameDeployDetailsOfProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameDeployDetailsOfProjectRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGameDeployDetailsOfProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['project_id'] !== null) { + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + } + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameVersions + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult + */ + public function listGameVersions($varForms) + { + list($response) = $this->listGameVersionsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameVersionsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameVersionsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult'; + $request = $this->listGameVersionsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameVersionsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameVersionsAsync($varForms) + { + return $this->listGameVersionsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameVersionsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameVersionsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult'; + $request = $this->listGameVersionsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameVersions' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameVersionsRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listGameVersions' + ); + } + + $resourcePath = '/consoleAdmin/listGameVersions'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGames + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult + */ + public function listGames($varForms) + { + list($response) = $this->listGamesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGamesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGamesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult'; + $request = $this->listGamesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGamesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGamesAsync($varForms) + { + return $this->listGamesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGamesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGamesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult'; + $request = $this->listGamesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGames' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGamesRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGames'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listInstancesOfProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult + */ + public function listInstancesOfProject($varForms) + { + list($response) = $this->listInstancesOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listInstancesOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listInstancesOfProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult'; + $request = $this->listInstancesOfProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listInstancesOfProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listInstancesOfProjectAsync($varForms) + { + return $this->listInstancesOfProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listInstancesOfProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listInstancesOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult'; + $request = $this->listInstancesOfProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listInstancesOfProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listInstancesOfProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listInstancesOfProject' + ); + } + + $resourcePath = '/consoleAdmin/listInstancesOfProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_result'] !== null) { + $formParams['maxResult'] = ObjectSerializer::toFormValue($varForms['max_result']); + } + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listMonthBill + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult + */ + public function listMonthBill($varForms) + { + list($response) = $this->listMonthBillWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listMonthBillWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listMonthBillWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult'; + $request = $this->listMonthBillRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listMonthBillAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMonthBillAsync($varForms) + { + return $this->listMonthBillAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listMonthBillAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMonthBillAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult'; + $request = $this->listMonthBillRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listMonthBill' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listMonthBillRequest($varForms) + { + // verify the required parameter 'accounting_period_from' is set + if ($varForms['accounting_period_from'] === null || (is_array($varForms['accounting_period_from']) && count($varForms['accounting_period_from']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_from\'] when calling listMonthBill' + ); + } + // verify the required parameter 'accounting_period_to' is set + if ($varForms['accounting_period_to'] === null || (is_array($varForms['accounting_period_to']) && count($varForms['accounting_period_to']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_to\'] when calling listMonthBill' + ); + } + + $resourcePath = '/consoleAdmin/listMonthBill'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountingPeriodFrom'] = ObjectSerializer::toFormValue($varForms['accounting_period_from']); + $formParams['accountingPeriodTo'] = ObjectSerializer::toFormValue($varForms['accounting_period_to']); + if ($varForms['status'] !== null) { + $formParams['status'] = ObjectSerializer::toFormValue($varForms['status']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listProjects + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult + */ + public function listProjects($varForms) + { + list($response) = $this->listProjectsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listProjectsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listProjectsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult'; + $request = $this->listProjectsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listProjectsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listProjectsAsync($varForms) + { + return $this->listProjectsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listProjectsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listProjectsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult'; + $request = $this->listProjectsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listProjects' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listProjectsRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listProjects'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listVersionDeployInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult + */ + public function listVersionDeployInstances($varForms) + { + list($response) = $this->listVersionDeployInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listVersionDeployInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listVersionDeployInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult'; + $request = $this->listVersionDeployInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listVersionDeployInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listVersionDeployInstancesAsync($varForms) + { + return $this->listVersionDeployInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listVersionDeployInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listVersionDeployInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult'; + $request = $this->listVersionDeployInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listVersionDeployInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listVersionDeployInstancesRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listVersionDeployInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['project_id'] !== null) { + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + } + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + if ($varForms['version_id'] !== null) { + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + } + if ($varForms['deploy_status'] !== null) { + $formParams['deployStatus'] = ObjectSerializer::toFormValue($varForms['deploy_status']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryAdaptResultByVersionId + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult + */ + public function queryAdaptResultByVersionId($varForms) + { + list($response) = $this->queryAdaptResultByVersionIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryAdaptResultByVersionIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryAdaptResultByVersionIdWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult'; + $request = $this->queryAdaptResultByVersionIdRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAdaptResultByVersionIdAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAdaptResultByVersionIdAsync($varForms) + { + return $this->queryAdaptResultByVersionIdAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryAdaptResultByVersionIdAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAdaptResultByVersionIdAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult'; + $request = $this->queryAdaptResultByVersionIdRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryAdaptResultByVersionId' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryAdaptResultByVersionIdRequest($varForms) + { + // verify the required parameter 'mix_version_id' is set + if ($varForms['mix_version_id'] === null || (is_array($varForms['mix_version_id']) && count($varForms['mix_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_version_id\'] when calling queryAdaptResultByVersionId' + ); + } + + $resourcePath = '/consoleAdmin/queryAdaptResultByVersionId'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mixVersionId'] = ObjectSerializer::toFormValue($varForms['mix_version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation recommendSpecification + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult + */ + public function recommendSpecification($varForms) + { + list($response) = $this->recommendSpecificationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation recommendSpecificationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function recommendSpecificationWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult'; + $request = $this->recommendSpecificationRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation recommendSpecificationAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function recommendSpecificationAsync($varForms) + { + return $this->recommendSpecificationAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation recommendSpecificationAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function recommendSpecificationAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult'; + $request = $this->recommendSpecificationRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'recommendSpecification' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function recommendSpecificationRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling recommendSpecification' + ); + } + // verify the required parameter 'game_version_id' is set + if ($varForms['game_version_id'] === null || (is_array($varForms['game_version_id']) && count($varForms['game_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_version_id\'] when calling recommendSpecification' + ); + } + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling recommendSpecification' + ); + } + + $resourcePath = '/consoleAdmin/recommendSpecification'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['gameVersionId'] = ObjectSerializer::toFormValue($varForms['game_version_id']); + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation removeGameFromProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult + */ + public function removeGameFromProject($varForms) + { + list($response) = $this->removeGameFromProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation removeGameFromProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function removeGameFromProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult'; + $request = $this->removeGameFromProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation removeGameFromProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeGameFromProjectAsync($varForms) + { + return $this->removeGameFromProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation removeGameFromProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeGameFromProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult'; + $request = $this->removeGameFromProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'removeGameFromProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function removeGameFromProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling removeGameFromProject' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling removeGameFromProject' + ); + } + + $resourcePath = '/consoleAdmin/removeGameFromProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation rtOverView + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult + */ + public function rtOverView($varForms) + { + list($response) = $this->rtOverViewWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtOverViewWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtOverViewWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult'; + $request = $this->rtOverViewRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtOverViewAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtOverViewAsync($varForms) + { + return $this->rtOverViewAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation rtOverViewAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtOverViewAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult'; + $request = $this->rtOverViewRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'rtOverView' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function rtOverViewRequest($varForms) + { + + $resourcePath = '/consoleAdmin/rtOverView'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation rtTrend + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult + */ + public function rtTrend($varForms) + { + list($response) = $this->rtTrendWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtTrendWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtTrendWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult'; + $request = $this->rtTrendRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtTrendAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtTrendAsync($varForms) + { + return $this->rtTrendAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation rtTrendAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtTrendAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult'; + $request = $this->rtTrendRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'rtTrend' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function rtTrendRequest($varForms) + { + + $resourcePath = '/consoleAdmin/rtTrend'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['group_type'] !== null) { + $formParams['groupType'] = ObjectSerializer::toFormValue($varForms['group_type']); + } + if ($varForms['indicator_types'] !== null) { + $formParams['indicatorTypes'] = ObjectSerializer::toFormValue($varForms['indicator_types']); + } + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation submitDeployment + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult + */ + public function submitDeployment($varForms) + { + list($response) = $this->submitDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitDeploymentWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult'; + $request = $this->submitDeploymentRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitDeploymentAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitDeploymentAsync($varForms) + { + return $this->submitDeploymentAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation submitDeploymentAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult'; + $request = $this->submitDeploymentRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'submitDeployment' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function submitDeploymentRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'cloud_game_instance_ids' is set + if ($varForms['cloud_game_instance_ids'] === null || (is_array($varForms['cloud_game_instance_ids']) && count($varForms['cloud_game_instance_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'cloud_game_instance_ids\'] when calling submitDeployment' + ); + } + // verify the required parameter 'operation_type' is set + if ($varForms['operation_type'] === null || (is_array($varForms['operation_type']) && count($varForms['operation_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operation_type\'] when calling submitDeployment' + ); + } + + $resourcePath = '/consoleAdmin/submitDeployment'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + $formParams['cloudGameInstanceIds'] = ObjectSerializer::toFormValue($varForms['cloud_game_instance_ids']); + $formParams['operationType'] = ObjectSerializer::toFormValue($varForms['operation_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation submitRefund + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult + */ + public function submitRefund($varForms) + { + list($response) = $this->submitRefundWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitRefundWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitRefundWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult'; + $request = $this->submitRefundRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitRefundAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitRefundAsync($varForms) + { + return $this->submitRefundAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation submitRefundAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitRefundAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult'; + $request = $this->submitRefundRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'submitRefund' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function submitRefundRequest($varForms) + { + // verify the required parameter 'commodity_code' is set + if ($varForms['commodity_code'] === null || (is_array($varForms['commodity_code']) && count($varForms['commodity_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_code\'] when calling submitRefund' + ); + } + // verify the required parameter 'instance_id' is set + if ($varForms['instance_id'] === null || (is_array($varForms['instance_id']) && count($varForms['instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'instance_id\'] when calling submitRefund' + ); + } + // verify the required parameter 'refund_type' is set + if ($varForms['refund_type'] === null || (is_array($varForms['refund_type']) && count($varForms['refund_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'refund_type\'] when calling submitRefund' + ); + } + + $resourcePath = '/consoleAdmin/submitRefund'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + $formParams['refundType'] = ObjectSerializer::toFormValue($varForms['refund_type']); + if ($varForms['refund_reason'] !== null) { + $formParams['refundReason'] = ObjectSerializer::toFormValue($varForms['refund_reason']); + } + if ($varForms['refund_reason_type'] !== null) { + $formParams['refundReasonType'] = ObjectSerializer::toFormValue($varForms['refund_reason_type']); + } + if ($varForms['target_expire_time'] !== null) { + $formParams['targetExpireTime'] = ObjectSerializer::toFormValue($varForms['target_expire_time']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation uploadGameVersionByDownload + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult + */ + public function uploadGameVersionByDownload($varForms) + { + list($response) = $this->uploadGameVersionByDownloadWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadGameVersionByDownloadWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadGameVersionByDownloadWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult'; + $request = $this->uploadGameVersionByDownloadRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadGameVersionByDownloadAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadGameVersionByDownloadAsync($varForms) + { + return $this->uploadGameVersionByDownloadAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation uploadGameVersionByDownloadAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadGameVersionByDownloadAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult'; + $request = $this->uploadGameVersionByDownloadRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'uploadGameVersionByDownload' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function uploadGameVersionByDownloadRequest($varForms) + { + // verify the required parameter 'hash' is set + if ($varForms['hash'] === null || (is_array($varForms['hash']) && count($varForms['hash']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'hash\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'download_type' is set + if ($varForms['download_type'] === null || (is_array($varForms['download_type']) && count($varForms['download_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'download_type\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'version_name' is set + if ($varForms['version_name'] === null || (is_array($varForms['version_name']) && count($varForms['version_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_name\'] when calling uploadGameVersionByDownload' + ); + } + + $resourcePath = '/consoleAdmin/uploadGameVersionByDownload'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['hash'] = ObjectSerializer::toFormValue($varForms['hash']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['downloadType'] = ObjectSerializer::toFormValue($varForms['download_type']); + $formParams['versionName'] = ObjectSerializer::toFormValue($varForms['version_name']); + if ($varForms['os_manifest'] !== null) { + $formParams['osManifest'] = ObjectSerializer::toFormValue($varForms['os_manifest']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From a9cbbf41df213f57a2fd78beabf012585ae746ba Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:40 +0800 Subject: [PATCH 287/327] feat: update --- lib/Api/DispatchApi.php | 4240 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 4240 insertions(+) create mode 100644 lib/Api/DispatchApi.php diff --git a/lib/Api/DispatchApi.php b/lib/Api/DispatchApi.php new file mode 100644 index 000000000..46771c09a --- /dev/null +++ b/lib/Api/DispatchApi.php @@ -0,0 +1,4240 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation batchStopGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult + */ + public function batchStopGame($varForms) + { + list($response) = $this->batchStopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchStopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchStopGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult'; + $request = $this->batchStopGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchStopGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchStopGameAsync($varForms) + { + return $this->batchStopGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchStopGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchStopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult'; + $request = $this->batchStopGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchStopGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchStopGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling batchStopGame' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling batchStopGame' + ); + } + // verify the required parameter 'token' is set + if ($varForms['token'] === null || (is_array($varForms['token']) && count($varForms['token']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'token\'] when calling batchStopGame' + ); + } + + $resourcePath = '/batchStopGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['token'] = ObjectSerializer::toFormValue($varForms['token']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + if ($varForms['track_info'] !== null) { + $formParams['trackInfo'] = ObjectSerializer::toFormValue($varForms['track_info']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation cancelGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult + */ + public function cancelGameHang($varForms) + { + list($response) = $this->cancelGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult'; + $request = $this->cancelGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelGameHangAsync($varForms) + { + return $this->cancelGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult'; + $request = $this->cancelGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'cancelGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function cancelGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling cancelGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling cancelGameHang' + ); + } + + $resourcePath = '/cancelGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation clientNotify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult + */ + public function clientNotify($varForms) + { + list($response) = $this->clientNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation clientNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function clientNotifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult'; + $request = $this->clientNotifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation clientNotifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function clientNotifyAsync($varForms) + { + return $this->clientNotifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation clientNotifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function clientNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult'; + $request = $this->clientNotifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'clientNotify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function clientNotifyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling clientNotify' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling clientNotify' + ); + } + // verify the required parameter 'value' is set + if ($varForms['value'] === null || (is_array($varForms['value']) && count($varForms['value']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'value\'] when calling clientNotify' + ); + } + + $resourcePath = '/clientNotify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['value'] = ObjectSerializer::toFormValue($varForms['value']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation gameNotify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult + */ + public function gameNotify($varForms) + { + list($response) = $this->gameNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation gameNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function gameNotifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult'; + $request = $this->gameNotifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation gameNotifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function gameNotifyAsync($varForms) + { + return $this->gameNotifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation gameNotifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function gameNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult'; + $request = $this->gameNotifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'gameNotify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function gameNotifyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling gameNotify' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling gameNotify' + ); + } + // verify the required parameter 'type' is set + if ($varForms['type'] === null || (is_array($varForms['type']) && count($varForms['type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'type\'] when calling gameNotify' + ); + } + + $resourcePath = '/gameNotify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['type'] = ObjectSerializer::toFormValue($varForms['type']); + if ($varForms['value'] !== null) { + $formParams['value'] = ObjectSerializer::toFormValue($varForms['value']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameConcurrency + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult + */ + public function getGameConcurrency($varForms) + { + list($response) = $this->getGameConcurrencyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameConcurrencyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameConcurrencyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult'; + $request = $this->getGameConcurrencyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameConcurrencyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameConcurrencyAsync($varForms) + { + return $this->getGameConcurrencyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameConcurrencyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameConcurrencyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult'; + $request = $this->getGameConcurrencyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameConcurrency' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameConcurrencyRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getGameConcurrency' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getGameConcurrency' + ); + } + + $resourcePath = '/getGameConcurrency'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['query_queue_concurrency'] !== null) { + $formParams['queryQueueConcurrency'] = ObjectSerializer::toFormValue($varForms['query_queue_concurrency']); + } + if ($varForms['queue_user_level'] !== null) { + $formParams['queueUserLevel'] = ObjectSerializer::toFormValue($varForms['queue_user_level']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getStock + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult + */ + public function getStock($varForms) + { + list($response) = $this->getStockWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStockWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStockWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult'; + $request = $this->getStockRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStockAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStockAsync($varForms) + { + return $this->getStockAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getStockAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStockAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult'; + $request = $this->getStockRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getStock' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getStockRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getStock' + ); + } + // verify the required parameter 'type' is set + if ($varForms['type'] === null || (is_array($varForms['type']) && count($varForms['type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'type\'] when calling getStock' + ); + } + + $resourcePath = '/getStock'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['type'] = ObjectSerializer::toFormValue($varForms['type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getStopGameToken + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult + */ + public function getStopGameToken($varForms) + { + list($response) = $this->getStopGameTokenWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStopGameTokenWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStopGameTokenWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult'; + $request = $this->getStopGameTokenRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStopGameTokenAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStopGameTokenAsync($varForms) + { + return $this->getStopGameTokenAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getStopGameTokenAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStopGameTokenAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult'; + $request = $this->getStopGameTokenRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getStopGameToken' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getStopGameTokenRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getStopGameToken' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getStopGameToken' + ); + } + + $resourcePath = '/getStopGameToken'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameServerIp + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult + */ + public function listGameServerIp($varForms) + { + list($response) = $this->listGameServerIpWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameServerIpWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameServerIpWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult'; + $request = $this->listGameServerIpRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameServerIpAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameServerIpAsync($varForms) + { + return $this->listGameServerIpAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameServerIpAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameServerIpAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult'; + $request = $this->listGameServerIpRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameServerIp' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameServerIpRequest($varForms) + { + + $resourcePath = '/listGameServerIp'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult + */ + public function queryGameHang($varForms) + { + list($response) = $this->queryGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult'; + $request = $this->queryGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryGameHangAsync($varForms) + { + return $this->queryGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult'; + $request = $this->queryGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling queryGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling queryGameHang' + ); + } + + $resourcePath = '/queryGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation querySessionStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult + */ + public function querySessionStatus($varForms) + { + list($response) = $this->querySessionStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation querySessionStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function querySessionStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult'; + $request = $this->querySessionStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation querySessionStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function querySessionStatusAsync($varForms) + { + return $this->querySessionStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation querySessionStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function querySessionStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult'; + $request = $this->querySessionStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'querySessionStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function querySessionStatusRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling querySessionStatus' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling querySessionStatus' + ); + } + + $resourcePath = '/querySessionStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation replaceSlot + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult + */ + public function replaceSlot($varForms) + { + list($response) = $this->replaceSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation replaceSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function replaceSlotWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult'; + $request = $this->replaceSlotRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation replaceSlotAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function replaceSlotAsync($varForms) + { + return $this->replaceSlotAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation replaceSlotAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function replaceSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult'; + $request = $this->replaceSlotRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'replaceSlot' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function replaceSlotRequest($varForms) + { + // verify the required parameter 'replace_session' is set + if ($varForms['replace_session'] === null || (is_array($varForms['replace_session']) && count($varForms['replace_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'replace_session\'] when calling replaceSlot' + ); + } + // 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[\'account_id\'] when calling replaceSlot' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling replaceSlot' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling replaceSlot' + ); + } + + $resourcePath = '/replaceSlot'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['replaceSession'] = ObjectSerializer::toFormValue($varForms['replace_session']); + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['biz_param'] !== null) { + $formParams['bizParam'] = ObjectSerializer::toFormValue($varForms['biz_param']); + } + if ($varForms['client_ip'] !== null) { + $formParams['clientIp'] = ObjectSerializer::toFormValue($varForms['client_ip']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + if ($varForms['codec'] !== null) { + $formParams['codec'] = ObjectSerializer::toFormValue($varForms['codec']); + } + if ($varForms['resolution'] !== null) { + $formParams['resolution'] = ObjectSerializer::toFormValue($varForms['resolution']); + } + if ($varForms['bit_rate'] !== null) { + $formParams['bitRate'] = ObjectSerializer::toFormValue($varForms['bit_rate']); + } + if ($varForms['fps'] !== null) { + $formParams['fps'] = ObjectSerializer::toFormValue($varForms['fps']); + } + if ($varForms['game_cmd_param'] !== null) { + $formParams['gameCmdParam'] = ObjectSerializer::toFormValue($varForms['game_cmd_param']); + } + if ($varForms['user_level'] !== null) { + $formParams['userLevel'] = ObjectSerializer::toFormValue($varForms['user_level']); + } + if ($varForms['start_param'] !== null) { + $formParams['startParam'] = ObjectSerializer::toFormValue($varForms['start_param']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation setGameAlive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult + */ + public function setGameAlive($varForms) + { + list($response) = $this->setGameAliveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameAliveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameAliveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult'; + $request = $this->setGameAliveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameAliveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameAliveAsync($varForms) + { + return $this->setGameAliveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation setGameAliveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameAliveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult'; + $request = $this->setGameAliveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'setGameAlive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function setGameAliveRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling setGameAlive' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling setGameAlive' + ); + } + // verify the required parameter 'keep_alive' is set + if ($varForms['keep_alive'] === null || (is_array($varForms['keep_alive']) && count($varForms['keep_alive']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'keep_alive\'] when calling setGameAlive' + ); + } + + $resourcePath = '/setGameAlive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['keepAlive'] = ObjectSerializer::toFormValue($varForms['keep_alive']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation setGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult + */ + public function setGameHang($varForms) + { + list($response) = $this->setGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult'; + $request = $this->setGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameHangAsync($varForms) + { + return $this->setGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation setGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult'; + $request = $this->setGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'setGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function setGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling setGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling setGameHang' + ); + } + // verify the required parameter 'duration' is set + if ($varForms['duration'] === null || (is_array($varForms['duration']) && count($varForms['duration']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'duration\'] when calling setGameHang' + ); + } + + $resourcePath = '/setGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['duration'] = ObjectSerializer::toFormValue($varForms['duration']); + if ($varForms['kick_in_the_game'] !== null) { + $formParams['kickInTheGame'] = ObjectSerializer::toFormValue($varForms['kick_in_the_game']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult + */ + public function stopGame($varForms) + { + list($response) = $this->stopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult'; + $request = $this->stopGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameAsync($varForms) + { + return $this->stopGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult'; + $request = $this->stopGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopGameRequest($varForms) + { + // 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[\'account_id\'] when calling stopGame' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling stopGame' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopGame' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling stopGame' + ); + } + + $resourcePath = '/stopGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopPreopenContainer + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult + */ + public function stopPreopenContainer($varForms) + { + list($response) = $this->stopPreopenContainerWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopPreopenContainerWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopPreopenContainerWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult'; + $request = $this->stopPreopenContainerRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopPreopenContainerAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopPreopenContainerAsync($varForms) + { + return $this->stopPreopenContainerAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopPreopenContainerAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopPreopenContainerAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult'; + $request = $this->stopPreopenContainerRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopPreopenContainer' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopPreopenContainerRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopPreopenContainer' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling stopPreopenContainer' + ); + } + + $resourcePath = '/stopPreopenContainer'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['number_of_batches'] !== null) { + $formParams['numberOfBatches'] = ObjectSerializer::toFormValue($varForms['number_of_batches']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation tryToGetSlot + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult + */ + public function tryToGetSlot($varForms) + { + list($response) = $this->tryToGetSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult'; + $request = $this->tryToGetSlotRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotAsync($varForms) + { + return $this->tryToGetSlotAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation tryToGetSlotAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult'; + $request = $this->tryToGetSlotRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'tryToGetSlot' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function tryToGetSlotRequest($varForms) + { + // 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[\'account_id\'] when calling tryToGetSlot' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling tryToGetSlot' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling tryToGetSlot' + ); + } + + $resourcePath = '/tryToGetSlot'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['region_id'] !== null) { + $formParams['regionId'] = ObjectSerializer::toFormValue($varForms['region_id']); + } + if ($varForms['re_connect'] !== null) { + $formParams['reConnect'] = ObjectSerializer::toFormValue($varForms['re_connect']); + } + if ($varForms['biz_param'] !== null) { + $formParams['bizParam'] = ObjectSerializer::toFormValue($varForms['biz_param']); + } + if ($varForms['client_ip'] !== null) { + $formParams['clientIp'] = ObjectSerializer::toFormValue($varForms['client_ip']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + if ($varForms['user_level'] !== null) { + $formParams['userLevel'] = ObjectSerializer::toFormValue($varForms['user_level']); + } + if ($varForms['codec'] !== null) { + $formParams['codec'] = ObjectSerializer::toFormValue($varForms['codec']); + } + if ($varForms['resolution'] !== null) { + $formParams['resolution'] = ObjectSerializer::toFormValue($varForms['resolution']); + } + if ($varForms['bit_rate'] !== null) { + $formParams['bitRate'] = ObjectSerializer::toFormValue($varForms['bit_rate']); + } + if ($varForms['fps'] !== null) { + $formParams['fps'] = ObjectSerializer::toFormValue($varForms['fps']); + } + if ($varForms['game_cmd_param'] !== null) { + $formParams['gameCmdParam'] = ObjectSerializer::toFormValue($varForms['game_cmd_param']); + } + if ($varForms['start_param'] !== null) { + $formParams['startParam'] = ObjectSerializer::toFormValue($varForms['start_param']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation tryToGetSlots + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult + */ + public function tryToGetSlots($varForms) + { + list($response) = $this->tryToGetSlotsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult'; + $request = $this->tryToGetSlotsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotsAsync($varForms) + { + return $this->tryToGetSlotsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation tryToGetSlotsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult'; + $request = $this->tryToGetSlotsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'tryToGetSlots' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function tryToGetSlotsRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling tryToGetSlots' + ); + } + // verify the required parameter 'parallel_schedule' is set + if ($varForms['parallel_schedule'] === null || (is_array($varForms['parallel_schedule']) && count($varForms['parallel_schedule']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'parallel_schedule\'] when calling tryToGetSlots' + ); + } + // verify the required parameter 'requests' is set + if ($varForms['requests'] === null || (is_array($varForms['requests']) && count($varForms['requests']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'requests\'] when calling tryToGetSlots' + ); + } + + $resourcePath = '/tryToGetSlots'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['parallelSchedule'] = ObjectSerializer::toFormValue($varForms['parallel_schedule']); + $formParams['requests'] = ObjectSerializer::toFormValue($varForms['requests']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updatePreopenStrategy + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult + */ + public function updatePreopenStrategy($varForms) + { + list($response) = $this->updatePreopenStrategyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updatePreopenStrategyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updatePreopenStrategyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult'; + $request = $this->updatePreopenStrategyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updatePreopenStrategyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePreopenStrategyAsync($varForms) + { + return $this->updatePreopenStrategyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updatePreopenStrategyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePreopenStrategyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult'; + $request = $this->updatePreopenStrategyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updatePreopenStrategy' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updatePreopenStrategyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling updatePreopenStrategy' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling updatePreopenStrategy' + ); + } + + $resourcePath = '/updatePreopenStrategy'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['pre_start_cmd'] !== null) { + $formParams['preStartCmd'] = ObjectSerializer::toFormValue($varForms['pre_start_cmd']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 6348b4106a863237d3be1c3e8782a64820009e42 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:42 +0800 Subject: [PATCH 288/327] feat: update --- lib/Api/LiveApi.php | 780 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 780 insertions(+) create mode 100644 lib/Api/LiveApi.php diff --git a/lib/Api/LiveApi.php b/lib/Api/LiveApi.php new file mode 100644 index 000000000..d4c05a1aa --- /dev/null +++ b/lib/Api/LiveApi.php @@ -0,0 +1,780 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation queryStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult + */ + public function queryStatus($varForms) + { + list($response) = $this->queryStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult'; + $request = $this->queryStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryStatusAsync($varForms) + { + return $this->queryStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult'; + $request = $this->queryStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryStatusRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling queryStatus' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling queryStatus' + ); + } + + $resourcePath = '/live/queryStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['live_id'] !== null) { + $formParams['liveId'] = ObjectSerializer::toFormValue($varForms['live_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation startGameLive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult + */ + public function startGameLive($varForms) + { + list($response) = $this->startGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation startGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function startGameLiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult'; + $request = $this->startGameLiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation startGameLiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startGameLiveAsync($varForms) + { + return $this->startGameLiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation startGameLiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult'; + $request = $this->startGameLiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'startGameLive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function startGameLiveRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling startGameLive' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling startGameLive' + ); + } + // verify the required parameter 'server_url' is set + if ($varForms['server_url'] === null || (is_array($varForms['server_url']) && count($varForms['server_url']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'server_url\'] when calling startGameLive' + ); + } + // verify the required parameter 'stream_key' is set + if ($varForms['stream_key'] === null || (is_array($varForms['stream_key']) && count($varForms['stream_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'stream_key\'] when calling startGameLive' + ); + } + + $resourcePath = '/live/startGameLive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['serverUrl'] = ObjectSerializer::toFormValue($varForms['server_url']); + $formParams['streamKey'] = ObjectSerializer::toFormValue($varForms['stream_key']); + if ($varForms['config'] !== null) { + $formParams['config'] = ObjectSerializer::toFormValue($varForms['config']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopGameLive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult + */ + public function stopGameLive($varForms) + { + list($response) = $this->stopGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameLiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult'; + $request = $this->stopGameLiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameLiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameLiveAsync($varForms) + { + return $this->stopGameLiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopGameLiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult'; + $request = $this->stopGameLiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopGameLive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopGameLiveRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopGameLive' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling stopGameLive' + ); + } + + $resourcePath = '/live/stopGameLive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['live_id'] !== null) { + $formParams['liveId'] = ObjectSerializer::toFormValue($varForms['live_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From a39e43a7aafddbba2327d00d66a1ffc5ab4d3239 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:43 +0800 Subject: [PATCH 289/327] feat: update --- lib/Api/MultiplayApi.php | 1424 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 1424 insertions(+) create mode 100644 lib/Api/MultiplayApi.php diff --git a/lib/Api/MultiplayApi.php b/lib/Api/MultiplayApi.php new file mode 100644 index 000000000..70f1cf16e --- /dev/null +++ b/lib/Api/MultiplayApi.php @@ -0,0 +1,1424 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation close + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult + */ + public function close($varForms) + { + list($response) = $this->closeWithHttpInfo($varForms); + return $response; + } + + /** + * Operation closeWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult, HTTP status code, HTTP response headers (array of strings) + */ + public function closeWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult'; + $request = $this->closeRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation closeAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeAsync($varForms) + { + return $this->closeAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation closeAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult'; + $request = $this->closeRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'close' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function closeRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling close' + ); + } + + $resourcePath = '/multiplay/close'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation init + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult + */ + public function init($varForms) + { + list($response) = $this->initWithHttpInfo($varForms); + return $response; + } + + /** + * Operation initWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult, HTTP status code, HTTP response headers (array of strings) + */ + public function initWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult'; + $request = $this->initRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation initAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initAsync($varForms) + { + return $this->initAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation initAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult'; + $request = $this->initRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'init' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function initRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling init' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling init' + ); + } + + $resourcePath = '/multiplay/init'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['config'] !== null) { + $formParams['config'] = ObjectSerializer::toFormValue($varForms['config']); + } + if ($varForms['tokens'] !== null) { + $formParams['tokens'] = ObjectSerializer::toFormValue($varForms['tokens']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation join + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult + */ + public function join($varForms) + { + list($response) = $this->joinWithHttpInfo($varForms); + return $response; + } + + /** + * Operation joinWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult, HTTP status code, HTTP response headers (array of strings) + */ + public function joinWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult'; + $request = $this->joinRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation joinAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function joinAsync($varForms) + { + return $this->joinAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation joinAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function joinAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult'; + $request = $this->joinRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'join' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function joinRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling join' + ); + } + // 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[\'account_id\'] when calling join' + ); + } + + $resourcePath = '/multiplay/join'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + if ($varForms['control_id'] !== null) { + $formParams['controlId'] = ObjectSerializer::toFormValue($varForms['control_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation leave + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult + */ + public function leave($varForms) + { + list($response) = $this->leaveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation leaveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function leaveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult'; + $request = $this->leaveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation leaveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function leaveAsync($varForms) + { + return $this->leaveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation leaveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function leaveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult'; + $request = $this->leaveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'leave' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function leaveRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling leave' + ); + } + // verify the required parameter 'kick_out' is set + if ($varForms['kick_out'] === null || (is_array($varForms['kick_out']) && count($varForms['kick_out']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kick_out\'] when calling leave' + ); + } + // verify the required parameter 'token_ids' is set + if ($varForms['token_ids'] === null || (is_array($varForms['token_ids']) && count($varForms['token_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'token_ids\'] when calling leave' + ); + } + + $resourcePath = '/multiplay/leave'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + $formParams['kickOut'] = ObjectSerializer::toFormValue($varForms['kick_out']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + $formParams['tokenIds'] = ObjectSerializer::toFormValue($varForms['token_ids']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation modify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult + */ + public function modify($varForms) + { + list($response) = $this->modifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation modifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function modifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult'; + $request = $this->modifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation modifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function modifyAsync($varForms) + { + return $this->modifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation modifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function modifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult'; + $request = $this->modifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'modify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function modifyRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling modify' + ); + } + + $resourcePath = '/multiplay/modify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + if ($varForms['tokens'] !== null) { + $formParams['tokens'] = ObjectSerializer::toFormValue($varForms['tokens']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation query + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult + */ + public function query($varForms) + { + list($response) = $this->queryWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult'; + $request = $this->queryRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAsync($varForms) + { + return $this->queryAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult'; + $request = $this->queryRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'query' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling query' + ); + } + + $resourcePath = '/multiplay/query'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 5acf7adf9943ddd514940627ca7ebf26dd81ef57 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:45 +0800 Subject: [PATCH 290/327] feat: update --- lib/Api/TokenApi.php | 498 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 498 insertions(+) create mode 100644 lib/Api/TokenApi.php diff --git a/lib/Api/TokenApi.php b/lib/Api/TokenApi.php new file mode 100644 index 000000000..ab8df7d1a --- /dev/null +++ b/lib/Api/TokenApi.php @@ -0,0 +1,498 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getPair + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult + */ + public function getPair() + { + list($response) = $this->getPairWithHttpInfo(); + return $response; + } + + /** + * Operation getPairWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getPairWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult'; + $request = $this->getPairRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getPairAsync + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPairAsync() + { + return $this->getPairAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPairAsyncWithHttpInfo + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPairAsyncWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult'; + $request = $this->getPairRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPair' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getPairRequest() + { + + $resourcePath = '/sts?type=pair'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getTriple + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult + */ + public function getTriple() + { + list($response) = $this->getTripleWithHttpInfo(); + return $response; + } + + /** + * Operation getTripleWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getTripleWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult'; + $request = $this->getTripleRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getTripleAsync + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTripleAsync() + { + return $this->getTripleAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getTripleAsyncWithHttpInfo + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTripleAsyncWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult'; + $request = $this->getTripleRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getTriple' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getTripleRequest() + { + + $resourcePath = '/sts'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From b389b779478a3d41687e9955efbca468d857d4fe Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:46 +0800 Subject: [PATCH 291/327] feat: update --- lib/Api/UsercontrollerApi.php | 1471 +++++++++++++++++++++++++++++++++ 1 file changed, 1471 insertions(+) create mode 100644 lib/Api/UsercontrollerApi.php diff --git a/lib/Api/UsercontrollerApi.php b/lib/Api/UsercontrollerApi.php new file mode 100644 index 000000000..78079b926 --- /dev/null +++ b/lib/Api/UsercontrollerApi.php @@ -0,0 +1,1471 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult + */ + public function deleteGameArchive($varForms) + { + list($response) = $this->deleteGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult'; + $request = $this->deleteGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameArchiveAsync($varForms) + { + return $this->deleteGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult'; + $request = $this->deleteGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameArchiveRequest($varForms) + { + // 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[\'account_id\'] when calling deleteGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling deleteGameArchive' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling deleteGameArchive' + ); + } + + $resourcePath = '/usercontroller/deleteGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameTrialSurplusDuration + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult + */ + public function getGameTrialSurplusDuration($varForms) + { + list($response) = $this->getGameTrialSurplusDurationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameTrialSurplusDurationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameTrialSurplusDurationWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult'; + $request = $this->getGameTrialSurplusDurationRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameTrialSurplusDurationAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameTrialSurplusDurationAsync($varForms) + { + return $this->getGameTrialSurplusDurationAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameTrialSurplusDurationAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameTrialSurplusDurationAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult'; + $request = $this->getGameTrialSurplusDurationRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameTrialSurplusDuration' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameTrialSurplusDurationRequest($varForms) + { + // 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[\'account_id\'] when calling getGameTrialSurplusDuration' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getGameTrialSurplusDuration' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling getGameTrialSurplusDuration' + ); + } + + $resourcePath = '/usercontroller/getGameTrialSurplusDuration'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUserGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult + */ + public function getUserGameArchive($varForms) + { + list($response) = $this->getUserGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getUserGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getUserGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult'; + $request = $this->getUserGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUserGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUserGameArchiveAsync($varForms) + { + return $this->getUserGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUserGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUserGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult'; + $request = $this->getUserGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUserGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUserGameArchiveRequest($varForms) + { + // 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[\'account_id\'] when calling getUserGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getUserGameArchive' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling getUserGameArchive' + ); + } + + $resourcePath = '/usercontroller/getUserGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listLatestGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult + */ + public function listLatestGameArchive($varForms) + { + list($response) = $this->listLatestGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listLatestGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listLatestGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult'; + $request = $this->listLatestGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listLatestGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listLatestGameArchiveAsync($varForms) + { + return $this->listLatestGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listLatestGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listLatestGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult'; + $request = $this->listLatestGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listLatestGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listLatestGameArchiveRequest($varForms) + { + // 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[\'account_id\'] when calling listLatestGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listLatestGameArchive' + ); + } + + $resourcePath = '/usercontroller/listLatestGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['tag_status'] !== null) { + $formParams['tagStatus'] = ObjectSerializer::toFormValue($varForms['tag_status']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation restoreGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult + */ + public function restoreGameArchive($varForms) + { + list($response) = $this->restoreGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation restoreGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function restoreGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult'; + $request = $this->restoreGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation restoreGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function restoreGameArchiveAsync($varForms) + { + return $this->restoreGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation restoreGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function restoreGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult'; + $request = $this->restoreGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'restoreGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function restoreGameArchiveRequest($varForms) + { + // 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[\'account_id\'] when calling restoreGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling restoreGameArchive' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling restoreGameArchive' + ); + } + + $resourcePath = '/usercontroller/restoreGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateGameArchiveTagStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult + */ + public function updateGameArchiveTagStatus($varForms) + { + list($response) = $this->updateGameArchiveTagStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateGameArchiveTagStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateGameArchiveTagStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult'; + $request = $this->updateGameArchiveTagStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateGameArchiveTagStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGameArchiveTagStatusAsync($varForms) + { + return $this->updateGameArchiveTagStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateGameArchiveTagStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGameArchiveTagStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult'; + $request = $this->updateGameArchiveTagStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateGameArchiveTagStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateGameArchiveTagStatusRequest($varForms) + { + // 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[\'account_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'tag_status' is set + if ($varForms['tag_status'] === null || (is_array($varForms['tag_status']) && count($varForms['tag_status']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'tag_status\'] when calling updateGameArchiveTagStatus' + ); + } + + $resourcePath = '/usercontroller/updateGameArchiveTagStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + $formParams['tagStatus'] = ObjectSerializer::toFormValue($varForms['tag_status']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From ab75de34cf729f1462bb077f35d93c27c486da0f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:47 +0800 Subject: [PATCH 292/327] feat: update --- lib/Api/ApiException.php | 109 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 lib/Api/ApiException.php diff --git a/lib/Api/ApiException.php b/lib/Api/ApiException.php new file mode 100644 index 000000000..2114f45a3 --- /dev/null +++ b/lib/Api/ApiException.php @@ -0,0 +1,109 @@ +responseHeaders = $responseHeaders; + $this->responseBody = $responseBody; + } + + /** + * Gets the HTTP response header + * + * @return string[]|null HTTP response header + */ + public function getResponseHeaders() + { + return $this->responseHeaders; + } + + /** + * Gets the HTTP body of the server response either as Json or string + * + * @return mixed HTTP body of the server response either as \stdClass or string + */ + public function getResponseBody() + { + return $this->responseBody; + } + + /** + * Sets the deseralized response object (during deserialization) + * + * @param mixed $obj Deserialized response object + * + * @return void + */ + public function setResponseObject($obj) + { + $this->responseObject = $obj; + } + + /** + * Gets the deseralized response object (during deserialization) + * + * @return mixed the deserialized response object + */ + public function getResponseObject() + { + return $this->responseObject; + } +} From f8ba8dd9282e6cfda971aaf3b78a95850774bedf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:49 +0800 Subject: [PATCH 293/327] feat: update --- lib/Api/Configuration.php | 256 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 lib/Api/Configuration.php diff --git a/lib/Api/Configuration.php b/lib/Api/Configuration.php new file mode 100644 index 000000000..d4a757bfd --- /dev/null +++ b/lib/Api/Configuration.php @@ -0,0 +1,256 @@ +defaultHeaders[$key] = $value; + return $this; + } + + /** + * + * @param string $key + * + * @return string + */ + public function getHeader($key) + { + return isset($this->defaultHeaders[$key]) ? $this->defaultHeaders[$key] : null; + } + + public function getHeaders() { + return $this->defaultHeaders; + } + + /** + * + * @param string $accessKey + * + * @return $this + */ + public function setAccessKey($accessKey) + { + $this->accessKey = $accessKey; + return $this; + } + + /** + * + * @return string + */ + public function getAccessKey() + { + return $this->accessKey; + } + + /** + * + * @param string $secretKey + * + * @return $this + */ + public function setSecretKey($secretKey) + { + $this->secretKey = $secretKey; + return $this; + } + + /** + * + * @return string + */ + public function getSecretKey() + { + return $this->secretKey; + } + + /** + * + * @param string $scheme + * + * @return $this + */ + public function setScheme($scheme) + { + $this->scheme = $scheme; + return $this; + } + + /** + * + * @return string + */ + public function getScheme() + { + return $this->scheme; + } + + /** + * + * @param string $host + * + * @return $this + */ + public function setHost($host) + { + $this->host = $host; + return $this; + } + + /** + * + * @return string + */ + public function getHost() + { + return $this->host; + } + + /** + * @return string + */ + public function getSignatureVersion() { + return $this->signatureVersion; + } + + /** + * @param string $signatureVersion + * @return $this + */ + public function setSignatureVersion($signatureVersion) { + $this->signatureVersion = $signatureVersion; + return $this; + } + + /** + * @return string + */ + public function getSignatureMethod() { + return $this->signatureMethod; + } + + /** + * @param string $signatureMethod + * @return $this + */ + public function setSignatureMethod($signatureMethod) { + $this->signatureMethod = $signatureMethod; + return $this; + } + + /** + * + * @return Configuration + */ + public static function getDefaultConfiguration() + { + if (self::$defaultConfiguration === null) { + self::$defaultConfiguration = new Configuration(); + } + + return self::$defaultConfiguration; + } + + /** + * + * @param Configuration $config + * + * @return void + */ + public static function setDefaultConfiguration(Configuration $config) + { + self::$defaultConfiguration = $config; + } + +} From a860e28795eb0a5766dba68633abc140ac5b435a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:51 +0800 Subject: [PATCH 294/327] feat: update --- lib/Api/ObjectSerializer.php | 286 +++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 lib/Api/ObjectSerializer.php diff --git a/lib/Api/ObjectSerializer.php b/lib/Api/ObjectSerializer.php new file mode 100644 index 000000000..8b7834a57 --- /dev/null +++ b/lib/Api/ObjectSerializer.php @@ -0,0 +1,286 @@ +format('Y-m-d') : $data->format('Y-m-dTH:i:sZ'); + } elseif (is_array($data)) { + foreach ($data as $property => $value) { + $data[$property] = self::sanitizeForSerialization($value); + } + return $data; + } elseif (is_object($data)) { + $values = []; + $formats = $data::serialFormats(); + foreach ($data::serialTypes() as $property => $serialType) { + $getter = $data::getters()[$property]; + $value = $data->$getter(); + if ($value !== null + && !in_array($serialType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) + && method_exists($serialType, 'getAllowableEnumValues') + && !in_array($value, $serialType::getAllowableEnumValues())) { + $imploded = implode("', '", $serialType::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$serialType', must be one of: '$imploded'"); + } + if ($value !== null) { + $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $serialType, $formats[$property]); + } + } + return (object)$values; + } else { + return (string)$data; + } + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the path, by url-encoding. + * + * @param string $value a string which will be part of the path + * + * @return string the serialized object + */ + public static function toPathValue($value) + { + return rawurlencode(self::toString($value)); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the query, by imploding comma-separated if it's an object. + * If it's a string, pass through unchanged. It will be url-encoded + * later. + * + * @param string[]|string|\DateTime $object an object to be serialized to a string + * @param string|null $format the format of the parameter + * + * @return string the serialized object + */ + public static function toQueryValue($object, $format = null) + { + if (is_array($object)) { + return implode(',', $object); + } else { + return self::toString($object, $format); + } + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the header. If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * + * @param string $value a string which will be part of the header + * + * @return string the header string + */ + public static function toHeaderValue($value) + { + return self::toString($value); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the http body (form parameter). If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * + * @param string $value the value of the form parameter + * + * @return string the form string + */ + public static function toFormValue($value) + { + return self::toString($value); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the parameter. If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * If it's a date, format it in Y-m-d + * + * @param string|\DateTime $value the value of the parameter + * @param string|null $format the format of the parameter + * + * @return string the header string + */ + public static function toString($value, $format = null) + { + if (is_bool($value)) { + return self::serializeBool((bool)$value); + } elseif (is_array($value)) { + foreach ($value as $p => $v) { + $value[$p] = self::sanitizeForSerialization($v); + } + return json_encode($value); + } elseif ($value instanceof \DateTime) { + return ($format === 'date') ? $value->format('Y-m-d') : $value->format('Y-m-dTH:i:sZ'); + } else { + return $value; + } + } + + /** + * Serialize an bool to a string. + * + * @param bool $bool bool to serialize to a string + * + * @return string + */ + public static function serializeBool($bool) { + return $bool ? 'true' : 'false'; + } + + /** + * Serialize an array to a string. + * + * @param array $collection collection to serialize to a string + * @param string $collectionFormat the format use for serialization (csv, + * ssv, tsv, pipes, multi) + * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array + * + * @return string + */ + //public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) + //{ + // if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { + // // http_build_query() almost does the job for us. We just + // // need to fix the result of multidimensional arrays. + // return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); + // } + // switch ($collectionFormat) { + // case 'pipes': + // return implode('|', $collection); + // + // case 'tsv': + // return implode("\t", $collection); + // + // case 'ssv': + // return implode(' ', $collection); + // + // case 'csv': + // // Deliberate fall through. CSV is default format. + // default: + // return implode(',', $collection); + // } + //} + + /** + * Deserialize a JSON string into an object + * + * @param mixed $data object or primitive to be deserialized + * @param string $class class name is passed as a string + * @param string[] $httpHeaders HTTP headers + * @param string $discriminator discriminator if polymorphism is used + * + * @return object|array|null an single or an array of $class instances + */ + public static function deserialize($data, $class, $httpHeaders = null) + { + if (null === $data) { + return null; + } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] + $inner = substr($class, 4, -1); + $deserialized = []; + if (strrpos($inner, ",") !== false) { + $subClass_array = explode(',', $inner, 2); + $subClass = $subClass_array[1]; + foreach ($data as $key => $value) { + $deserialized[$key] = self::deserialize($value, $subClass, null); + } + } + return $deserialized; + } elseif (strcasecmp(substr($class, -2), '[]') === 0) { + $subClass = substr($class, 0, -2); + $values = []; + foreach ($data as $key => $value) { + $values[] = self::deserialize($value, $subClass, null); + } + return $values; + } elseif ($class === 'object') { + settype($data, 'array'); + return $data; + } elseif ($class === '\DateTime') { + // Some API's return an invalid, empty string as a + // date-time property. DateTime::__construct() will return + // the current time for empty input which is probably not + // what is meant. The invalid empty string is probably to + // be interpreted as a missing field/value. Let's handle + // this graceful. + if (!empty($data)) { + return new \DateTime($data); + } else { + return null; + } + } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { + settype($data, $class); + return $data; + } elseif (method_exists($class, 'getAllowableEnumValues')) { + if (!in_array($data, $class::getAllowableEnumValues())) { + $imploded = implode("', '", $class::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); + } + return $data; + } else { + // If a discriminator is defined and points to a valid subclass, use it. + $discriminator = $class::DISCRIMINATOR; + if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { + $subclass = '\Yjopenapi\Client\Model\\' . $data->{$discriminator}; + if (is_subclass_of($subclass, $class)) { + $class = $subclass; + } + } + $instance = new $class(); + foreach ($instance::serialTypes() as $property => $type) { + $propertySetter = $instance::setters()[$property]; + + if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) { + continue; + } + + $propertyValue = $data->{$instance::attributeMap()[$property]}; + if (isset($propertyValue)) { + $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); + } + } + return $instance; + } + } +} From 7626cafd728ead1afdbc47124078db04e7ba2b2d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:52 +0800 Subject: [PATCH 295/327] feat: update --- lib/Model/ModelInterface.php | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 lib/Model/ModelInterface.php diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php new file mode 100644 index 000000000..0f31e5f89 --- /dev/null +++ b/lib/Model/ModelInterface.php @@ -0,0 +1,74 @@ + Date: Wed, 23 Oct 2024 00:16:54 +0800 Subject: [PATCH 296/327] feat: update --- lib/Api/HeaderSelector.php | 159 +++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 lib/Api/HeaderSelector.php diff --git a/lib/Api/HeaderSelector.php b/lib/Api/HeaderSelector.php new file mode 100644 index 000000000..9e206d766 --- /dev/null +++ b/lib/Api/HeaderSelector.php @@ -0,0 +1,159 @@ +selectAcceptHeader($accept); + if ($accept !== null) { + $headers['Accept'] = $accept; + } + + $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); + return $headers; + } + + /** + * Return the header 'Accept' based on an array of Accept provided + * + * @param string[] $accept Array of header + * + * @return string Accept (e.g. application/json) + */ + private function selectAcceptHeader($accept) + { + if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { + return null; + } elseif (preg_grep("/application\/json/i", $accept)) { + return 'application/json'; + } else { + return implode(',', $accept); + } + } + + /** + * Return the content type based on an array of content-type provided + * + * @param string[] $contentType Array fo content-type + * + * @return string Content-Type (e.g. application/json) + */ + private function selectContentTypeHeader($contentType) + { + if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { + return 'application/json'; + } elseif (preg_grep("/application\/json/i", $contentType)) { + return 'application/json'; + } else { + return implode(',', $contentType); + } + } + + /** + * Return the sign headers + * + * @param string[] $formParams + * @param \Yjopenapi\Client\Configuration $config + * @return string[] + */ + public function prepareSignHeader($formParams, $queryParams, $httpMethod, $config) { + $accessKey = $config->getAccessKey(); + $nonce = str_replace("-", "", Uuid::uuid4()); + $version = $config->getSignatureVersion(); + $method = $config->getSignatureMethod(); + $now = new \DateTime(); + $timestamp = $now->setTimezone(new \DateTimeZone('UTC'))->format('Y-m-d\TH:i:s\Z'); + + $values = []; + $values['AccessKey'] = $accessKey; + $values['SignatureNonce'] = $nonce; + $values['SignatureVersion'] = $version; + $values['SignatureMethod'] = $method; + $values['Timestamp'] = $timestamp; + + if (count($queryParams) > 0) { + foreach ($queryParams as $queryParamName => $queryParamValue) { + $values[$queryParamName] = $queryParamValue; + } + } + + if (count($formParams) > 0) { + foreach ($formParams as $formParamName => $formParamValue) { + $values[$formParamName] = $formParamValue; + } + } + + $headers = []; + $headers['Signature'] = self::md5Hex(self::getSignRaw($values, $httpMethod, $config->getSecretKey())); + $headers['Accesskey'] = $accessKey; + $headers['Signaturenonce'] = $nonce; + $headers['Signatureversion'] = $version; + $headers['Timestamp'] = $timestamp; + $headers['Signaturemethod'] = $method; + return $headers; + } + + private function getSignRaw($values, $httpMethod, $secretKey) { + return $secretKey . '&' . self::keySignInput($values, $httpMethod); + } + + private function keySignInput($values, $httpMethod) { + ksort($values); + + $strToSign = $httpMethod . '&' . self::encodeURLComponent("/"); + + $arr = []; + foreach ($values as $k => $v) { + array_push($arr, $k . '=' . self::encodeURLComponent($v)); + } + return $strToSign . '&' . self::encodeURLComponent(implode('&', $arr)); + } + + private function encodeURLComponent($str) { + $escape = rawurlencode($str); + $escape = str_replace( "+", "%20", $escape); + $escape = str_replace( "*", "%2A", $escape); + $escape = str_replace( "%7E", "~", $escape); + return $escape; + } + + private function md5Hex($str) { + return md5($str); + } +} + From 9b75d09e20a6897dc10583dfe8dd1b2110b09f3c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:55 +0800 Subject: [PATCH 297/327] feat: update --- composer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..7abc3fb29 --- /dev/null +++ b/composer.json @@ -0,0 +1,30 @@ +{ + "name": "alibabacloud/alibabacloud-yjopenapi-php-client", + "description": "YuanJing OpenAPI SDK for PHP", + "keywords": [ + "yuanjing", + "openapi", + "php", + "sdk", + "api" + ], + "homepage": "https://www.yuanjingio.com", + "license": "Apache-2.0", + "authors": [ + { + "name": "yuanjing-sdk-team", + "homepage": "https://github.com/aliyun/alibabacloud-yjopenapi-php-client" + } + ], + "require": { + "php": ">=5.5", + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/guzzle": "^6.2", + "ramsey/uuid": "^2.9" + }, + "autoload": { + "psr-4": { "Yjopenapi\\Client\\" : "lib/" } + } +} From a0218aaa1e3dbd50ef51720144add7626a9d3116 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:56 +0800 Subject: [PATCH 298/327] feat: update --- README.md | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..7b4c21c6a --- /dev/null +++ b/README.md @@ -0,0 +1,155 @@ +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# YuanJing OpenAPI SDK for PHP + +## Requirements + +PHP 5.5 and later + +## Installation + +### Composer + +To install the bindings via Composer: +``` +composer require alibabacloud/alibabacloud-yjopenapi-php-client 1.1.20241023 +``` + +Then run `composer install` + +### Manual Installation + +Download the files and include `autoload.php`: + +```php + require_once('/path/to/vendor/autoload.php'); +``` + +## Usage + +``` +setHost(host) + ->setAccessKey(Your Access Key) + ->setSecretKey(Your Secret Key); + + +// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder +$api = new \Yjopenapi\Client\Api\{{Api}}(new \GuzzleHttp\Client(), $configuration); +try { + // OpenAPI result + $result = $api->{{Method}}(${{Param}}) + + // OpenAPI result with header + $resultWithHeader = $api->{{Method}}WithHttpInfo(${{Param}}) + $result = $resultWithHeader[0] + + // OpenAPI TraceId + $traceId = $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Trace_Id][0] + // OpenAPI Status Code + statusCode := $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Result_Status][0] + +} catch (\Yjopenapi\Client\Api\ApiException $e) { + // handle exception +} + +``` + +## Explain Of Usage Placeholder + +| Api | Method | Params | Result | Description | +| ------------ | ------------- | ------------- | ------------- | ------------- | + | *AdaptApi* | **createAndSubmitAll** | *createAndSubmitAllForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult* | createAndSubmitAll | + | *AdaptApi* | **queryRequestById** | *queryRequestByIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult* | queryRequestById | + | *AiApi* | **batchUpdateKbVersion** | *batchUpdateKbVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult* | | + | *AiApi* | **cancelQueue** | *cancelQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult* | 取消排队 | + | *AiApi* | **createNpcRole** | *createNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult* | | + | *AiApi* | **deleteModels** | *deleteModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult* | 删除私有模型 | + | *AiApi* | **getPrompt** | *getPromptForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult* | 查询推理结果 | + | *AiApi* | **getQueue** | *getQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult* | 查询排队 | + | *AiApi* | **listModels** | *listModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult* | 查看私有模型列表 | + | *AiApi* | **prompt** | *promptForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult* | 场景化推理 | + | *AiApi* | **updateModels** | *updateModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult* | 修改私有模型信息 | + | *AiApi* | **updateNpcRole** | *updateNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult* | | + | *AiApi* | **uploadModels** | *uploadModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult* | 上传私有模型 | + | *ConsoleAdminApi* | **activateDeployment** | *activateDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult* | | + | *ConsoleAdminApi* | **adaptGameVersion** | *adaptGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult* | | + | *ConsoleAdminApi* | **addGameToProject** | *addGameToProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult* | | + | *ConsoleAdminApi* | **batchUpdateDispatchConfig** | *batchUpdateDispatchConfigForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult* | 批量更新游戏各自调度配置 | + | *ConsoleAdminApi* | **createGame** | *createGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult* | | + | *ConsoleAdminApi* | **createOrder** | *createOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult* | 订单下单 | + | *ConsoleAdminApi* | **createProject** | *createProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult* | | + | *ConsoleAdminApi* | **deleteGame** | *deleteGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult* | | + | *ConsoleAdminApi* | **deleteGameVersion** | *deleteGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult* | | + | *ConsoleAdminApi* | **deleteProject** | *deleteProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult* | | + | *ConsoleAdminApi* | **getBillFlowInfo** | *getBillFlowInfoForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult* | | + | *ConsoleAdminApi* | **getGameInstanceContainerRatio** | *getGameInstanceContainerRatioForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult* | | + | *ConsoleAdminApi* | **getGameRecommendedInstance** | *getGameRecommendedInstanceForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult* | | + | *ConsoleAdminApi* | **getGameVersion** | *getGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult* | | + | *ConsoleAdminApi* | **getGameVersionProgress** | *getGameVersionProgressForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult* | | + | *ConsoleAdminApi* | **getOrder** | *getOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult* | 查询订单 | + | *ConsoleAdminApi* | **listActivateableInstances** | *listActivateableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult* | | + | *ConsoleAdminApi* | **listActivatedInstances** | *listActivatedInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult* | | + | *ConsoleAdminApi* | **listControllersOfGame** | *listControllersOfGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult* | | + | *ConsoleAdminApi* | **listDeployableInstances** | *listDeployableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult* | | + | *ConsoleAdminApi* | **listGameCcu** | *listGameCcuForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult* | 分游戏实时并发 | + | *ConsoleAdminApi* | **listGameDeployDetailsOfProject** | *listGameDeployDetailsOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 | + | *ConsoleAdminApi* | **listGameVersions** | *listGameVersionsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult* | | + | *ConsoleAdminApi* | **listGames** | *listGamesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult* | | + | *ConsoleAdminApi* | **listInstancesOfProject** | *listInstancesOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 | + | *ConsoleAdminApi* | **listMonthBill** | *listMonthBillForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult* | 月度账单列表 | + | *ConsoleAdminApi* | **listProjects** | *listProjectsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult* | | + | *ConsoleAdminApi* | **listVersionDeployInstances** | *listVersionDeployInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 | + | *ConsoleAdminApi* | **queryAdaptResultByVersionId** | *queryAdaptResultByVersionIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 | + | *ConsoleAdminApi* | **recommendSpecification** | *recommendSpecificationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult* | | + | *ConsoleAdminApi* | **removeGameFromProject** | *removeGameFromProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult* | | + | *ConsoleAdminApi* | **rtOverView** | *rtOverViewForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult* | 实时并发数 | + | *ConsoleAdminApi* | **rtTrend** | *rtTrendForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult* | 实时并发趋势图 | + | *ConsoleAdminApi* | **submitDeployment** | *submitDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult* | | + | *ConsoleAdminApi* | **submitRefund** | *submitRefundForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult* | 订单退订 | + | *ConsoleAdminApi* | **uploadGameVersionByDownload** | *uploadGameVersionByDownloadForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult* | | + | *DispatchApi* | **batchStopGame** | *batchStopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult* | | + | *DispatchApi* | **cancelGameHang** | *cancelGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult* | 取消游戏挂机 | + | *DispatchApi* | **clientNotify** | *clientNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult* | clientNotify | + | *DispatchApi* | **gameNotify** | *gameNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult* | 游戏通知接口 | + | *DispatchApi* | **getGameConcurrency** | *getGameConcurrencyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 | + | *DispatchApi* | **getStock** | *getStockForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult* | 调用GetStock获取游戏当前库存 | + | *DispatchApi* | **getStopGameToken** | *getStopGameTokenForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult* | 全量踢下线获取token | + | *DispatchApi* | **listGameServerIp** | *listGameServerIpForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult* | | + | *DispatchApi* | **queryGameHang** | *queryGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult* | 查询游戏挂机状态 | + | *DispatchApi* | **querySessionStatus** | *querySessionStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult* | 查询会话当前状态 | + | *DispatchApi* | **replaceSlot** | *replaceSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult* | replaceSlot | + | *DispatchApi* | **setGameAlive** | *setGameAliveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult* | 设置游戏可运行时长 | + | *DispatchApi* | **setGameHang** | *setGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult* | 设置游戏挂机 | + | *DispatchApi* | **stopGame** | *stopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 | + | *DispatchApi* | **stopPreopenContainer** | *stopPreopenContainerForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult* | 停止预开容器 | + | *DispatchApi* | **tryToGetSlot** | *tryToGetSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 | + | *DispatchApi* | **tryToGetSlots** | *tryToGetSlotsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult* | tryToGetSlots | + | *DispatchApi* | **updatePreopenStrategy** | *updatePreopenStrategyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult* | 更新预开预起策略 | + | *LiveApi* | **queryStatus** | *queryStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult* | | + | *LiveApi* | **startGameLive** | *startGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult* | | + | *LiveApi* | **stopGameLive** | *stopGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult* | | + | *MultiplayApi* | **close** | *closeForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult* | | + | *MultiplayApi* | **init** | *initForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult* | | + | *MultiplayApi* | **join** | *joinForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult* | | + | *MultiplayApi* | **leave** | *leaveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult* | | + | *MultiplayApi* | **modify** | *modifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult* | | + | *MultiplayApi* | **query** | *queryForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult* | | + | *TokenApi* | **getPair** | | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult* | 获取临时安全令牌(二元组) | + | *TokenApi* | **getTriple** | | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult* | 获取临时安全令牌 | + | *UsercontrollerApi* | **deleteGameArchive** | *deleteGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult* | | + | *UsercontrollerApi* | **getGameTrialSurplusDuration** | *getGameTrialSurplusDurationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult* | | + | *UsercontrollerApi* | **getUserGameArchive** | *getUserGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult* | | + | *UsercontrollerApi* | **listLatestGameArchive** | *listLatestGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult* | | + | *UsercontrollerApi* | **restoreGameArchive** | *restoreGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult* | | + | *UsercontrollerApi* | **updateGameArchiveTagStatus** | *updateGameArchiveTagStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult* | | + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + From 84162468785ae7f5783f0d15797c27c24729371c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:58 +0800 Subject: [PATCH 299/327] feat: update From f33dbd4920a0a0f93be58258b33545f76de2c634 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:16:59 +0800 Subject: [PATCH 300/327] feat: update --- .gitignore | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..190e83fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +workspace.xml +.DS_Store +.tmp +.settings +*~ +.pyc +*.py[co] +# IDEA IDE +.idea* +build/ +dist/ +out/ +.gitignore +coverage.* +.history/ +vendor/ +composer.lock \ No newline at end of file From 1e994d575c4d0469be69dac8357804478e284c69 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:00 +0800 Subject: [PATCH 301/327] feat: update From 26e19d531acefc39d93ae03400fcb3aa47909013 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:01 +0800 Subject: [PATCH 302/327] feat: update From 47d8767e06d26774c34663b34873327c5f566c83 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:03 +0800 Subject: [PATCH 303/327] feat: update From 101f2799a69822f18fc38ce30a97ea25af5b341a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:04 +0800 Subject: [PATCH 304/327] feat: update From 2eee67924e64acf81ffdd2590979455f5d552137 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:05 +0800 Subject: [PATCH 305/327] feat: update From 8e17ed9c3fcb2098631001e886a55569f8c77f20 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:07 +0800 Subject: [PATCH 306/327] feat: update From 3e1b6ffb961b36f3ff23b133472b042c42ed4ad0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:08 +0800 Subject: [PATCH 307/327] feat: update From bd4cce6957fa744eecea6118650cb3f4afecaa5a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:09 +0800 Subject: [PATCH 308/327] feat: update From 107a4bc8c9cd568dc1b2767eaebffad066a8febe Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:11 +0800 Subject: [PATCH 309/327] feat: update From 845e3a44297a75aa266bdd3f5f87aeffa39fccbf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:12 +0800 Subject: [PATCH 310/327] feat: update From 045d8fcc88d92b44122fda0670351bf5bb6c2916 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:13 +0800 Subject: [PATCH 311/327] feat: update From d32bc503a12494cb77d58b7f12de09623457d3cd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:14 +0800 Subject: [PATCH 312/327] feat: update From 0040d652c4c9efc6c127c09e44e99f5aaca7a411 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:16 +0800 Subject: [PATCH 313/327] feat: update From 551e048b9af080cde368be8f78d3bbcd2bcd0fe8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:17 +0800 Subject: [PATCH 314/327] feat: update From efb22d86ad3d6c9e568346e1e350346b7a18669a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:18 +0800 Subject: [PATCH 315/327] feat: update From 530970387878da155e2dfbb029b951deea9270c9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:20 +0800 Subject: [PATCH 316/327] feat: update From 83d08c3691c08513ba01672c3c75c4bb2ccfc9b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:21 +0800 Subject: [PATCH 317/327] feat: update From abda9263bba9c51f702388de200e623aecb2a354 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:22 +0800 Subject: [PATCH 318/327] feat: update From 10589723f9580ae18c67aee7547f44f969068f6b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:23 +0800 Subject: [PATCH 319/327] feat: update From 8a32b299f8e23952813e7eda59008319aabe31ed Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:25 +0800 Subject: [PATCH 320/327] feat: update From 2fa687fedb9431c532d610381e23149c41946cd9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:26 +0800 Subject: [PATCH 321/327] feat: update From 5135dba7b7660ece8588f0a456bf2a9e197af358 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:27 +0800 Subject: [PATCH 322/327] feat: update From baed32abe617e4a2d413383ce0b37863a2a015e2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:29 +0800 Subject: [PATCH 323/327] feat: update From 946a315dca0eb28497f45bd50349217136ccbb08 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:30 +0800 Subject: [PATCH 324/327] feat: update From ec879afcfed228bf421df226e595e6fa48215efd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:31 +0800 Subject: [PATCH 325/327] feat: update From 9fb44df6c1a3f2ce2682de12f25419afeab93f93 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:32 +0800 Subject: [PATCH 326/327] feat: update From aa0bae2d0e9cfd1779d8cc91100078958732e7a3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 23 Oct 2024 00:17:34 +0800 Subject: [PATCH 327/327] feat: update