From 091f3adfe8d093d5e060b1cc88d28f00ff5ded27 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Fri, 23 Oct 2026 10:03:56 +0000 Subject: [PATCH] sdk: rolling update for 0.3.66 --- VERSION | 2 +- .../Apis/ListUMInferAPIKeyV2Request.php | 231 ++++++++++++++++++ .../Apis/ListUMInferAPIKeyV2Response.php | 97 ++++++++ src/UAIModelverse/Models/APIKey.php | 4 +- src/UAIModelverse/UAIModelverseClient.php | 35 +-- 5 files changed, 352 insertions(+), 17 deletions(-) create mode 100644 src/UAIModelverse/Apis/ListUMInferAPIKeyV2Request.php create mode 100644 src/UAIModelverse/Apis/ListUMInferAPIKeyV2Response.php diff --git a/VERSION b/VERSION index 9610d877..8bb19af9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.65 +0.3.66 diff --git a/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Request.php b/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Request.php new file mode 100644 index 00000000..8c05e8d3 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Request.php @@ -0,0 +1,231 @@ + "ListUMInferAPIKeyV2"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * KeyId: 按 API Key 资源 ID 精确过滤;为空不限制 + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: 按 API Key 资源 ID 精确过滤;为空不限制 + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * Offset: 从 0 开始的页号,默认 0;不是记录偏移量 + * + * @return string|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 从 0 开始的页号,默认 0;不是记录偏移量 + * + * @param string $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 每页条数;0 表示不限制条数 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 每页条数;0 表示不限制条数 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * AllStatus: 默认 false,排除已删除记录;true 包含已删除记录 + * + * @return integer|null + */ + public function getAllStatus() + { + return $this->get("AllStatus"); + } + + /** + * AllStatus: 默认 false,排除已删除记录;true 包含已删除记录 + * + * @param int $allStatus + */ + public function setAllStatus($allStatus) + { + $this->set("AllStatus", $allStatus); + } + + /** + * SandBoxDisabled: 不传不限制;0 启用,1 禁用 + * + * @return string|null + */ + public function getSandBoxDisabled() + { + return $this->get("SandBoxDisabled"); + } + + /** + * SandBoxDisabled: 不传不限制;0 启用,1 禁用 + * + * @param string $sandBoxDisabled + */ + public function setSandBoxDisabled($sandBoxDisabled) + { + $this->set("SandBoxDisabled", $sandBoxDisabled); + } + + /** + * SortByCreateTimeAsc: true 按创建时间升序,false 降序 + * + * @return boolean|null + */ + public function getSortByCreateTimeAsc() + { + return $this->get("SortByCreateTimeAsc"); + } + + /** + * SortByCreateTimeAsc: true 按创建时间升序,false 降序 + * + * @param boolean $sortByCreateTimeAsc + */ + public function setSortByCreateTimeAsc($sortByCreateTimeAsc) + { + $this->set("SortByCreateTimeAsc", $sortByCreateTimeAsc); + } + + /** + * SortByUpdateTimeAsc: true 按更新时间升序,false 降序;优先于创建时间排序 + * + * @return boolean|null + */ + public function getSortByUpdateTimeAsc() + { + return $this->get("SortByUpdateTimeAsc"); + } + + /** + * SortByUpdateTimeAsc: true 按更新时间升序,false 降序;优先于创建时间排序 + * + * @param boolean $sortByUpdateTimeAsc + */ + public function setSortByUpdateTimeAsc($sortByUpdateTimeAsc) + { + $this->set("SortByUpdateTimeAsc", $sortByUpdateTimeAsc); + } +} diff --git a/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Response.php b/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Response.php new file mode 100644 index 00000000..14438a4e --- /dev/null +++ b/src/UAIModelverse/Apis/ListUMInferAPIKeyV2Response.php @@ -0,0 +1,97 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new APIKey($item)); + } + return $result; + } + + /** + * Data: data + * + * @param APIKey[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Timestamp: 时间戳 + * + * @return integer|null + */ + public function getTimestamp() + { + return $this->get("Timestamp"); + } + + /** + * Timestamp: 时间戳 + * + * @param int $timestamp + */ + public function setTimestamp($timestamp) + { + $this->set("Timestamp", $timestamp); + } + + /** + * TotalCount: 数据量 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 数据量 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/UAIModelverse/Models/APIKey.php b/src/UAIModelverse/Models/APIKey.php index c549efa5..5a44b9f0 100644 --- a/src/UAIModelverse/Models/APIKey.php +++ b/src/UAIModelverse/Models/APIKey.php @@ -243,7 +243,7 @@ public function setCreateTime($createTime) } /** - * Key: 密钥值 + * Key: 密钥值,前四后四,中间*掩码展示 * * @return string|null */ @@ -253,7 +253,7 @@ public function getKey() } /** - * Key: 密钥值 + * Key: 密钥值,前四后四,中间*掩码展示 * * @param string $key */ diff --git a/src/UAIModelverse/UAIModelverseClient.php b/src/UAIModelverse/UAIModelverseClient.php index 1113d23d..b17d66cc 100644 --- a/src/UAIModelverse/UAIModelverseClient.php +++ b/src/UAIModelverse/UAIModelverseClient.php @@ -48,8 +48,8 @@ use UCloud\UAIModelverse\Apis\ListUFSquareModelResponse; use UCloud\UAIModelverse\Apis\ListUFSquareModelFiltersAuthRequest; use UCloud\UAIModelverse\Apis\ListUFSquareModelFiltersAuthResponse; -use UCloud\UAIModelverse\Apis\ListUMInferAPIKeyRequest; -use UCloud\UAIModelverse\Apis\ListUMInferAPIKeyResponse; +use UCloud\UAIModelverse\Apis\ListUMInferAPIKeyV2Request; +use UCloud\UAIModelverse\Apis\ListUMInferAPIKeyV2Response; use UCloud\UAIModelverse\Apis\ListUMInferRequestLogsRequest; use UCloud\UAIModelverse\Apis\ListUMInferRequestLogsResponse; use UCloud\UAIModelverse\Apis\ListUnpaidOrderSummaryRequest; @@ -105,7 +105,7 @@ class UAIModelverseClient extends Client * "OrganizationId" => (integer) 项目id * "Status" => (integer) 状态,1 正常 * "CreateTime" => (integer) 创建时间 - * "Key" => (string) 密钥值 + * "Key" => (string) 密钥值,前四后四,中间*掩码展示 * "ExpireTime" => (integer) 过期时间的unix时间戳,-1 用不过期 * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) @@ -1024,24 +1024,29 @@ public function listUFSquareModelFiltersAuth(ListUFSquareModelFiltersAuthRequest } /** - * ListUMInferAPIKey - 列表查询apikey + * ListUMInferAPIKeyV2 - 获取modelverse apikey,密钥掩码返回 * - * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_api_key + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_api_key_v2 * * Arguments: * * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Offset" => (integer) 列表起始位置偏移量,默认为0 - * "Limit" => (integer) 返回数据长度,默认为20,最大100 - * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 - * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * "KeyId" => (string) 按 API Key 资源 ID 精确过滤;为空不限制 + * "Offset" => (string) 从 0 开始的页号,默认 0;不是记录偏移量 + * "Limit" => (integer) 每页条数;0 表示不限制条数 + * "AllStatus" => (integer) 默认 false,排除已删除记录;true 包含已删除记录 + * "SandBoxDisabled" => (string) 不传不限制;0 启用,1 禁用 + * "SortByCreateTimeAsc" => (boolean) true 按创建时间升序,false 降序 + * "SortByUpdateTimeAsc" => (boolean) true 按更新时间升序,false 降序;优先于创建时间排序 * ] * * Outputs: * * $outputs = [ - * "Data" => (array) apikey[ + * "Data" => (array) data[ * [ * "IPWhitelist" => (string) ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 * "InferenceLogEnabled" => (integer) 是否开启推理日志 @@ -1054,7 +1059,7 @@ public function listUFSquareModelFiltersAuth(ListUFSquareModelFiltersAuthRequest * "OrganizationId" => (integer) 项目id * "Status" => (integer) 状态,1 正常 * "CreateTime" => (integer) 创建时间 - * "Key" => (string) 密钥值 + * "Key" => (string) 密钥值,前四后四,中间*掩码展示 * "ExpireTime" => (integer) 过期时间的unix时间戳,-1 用不过期 * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) @@ -1066,15 +1071,17 @@ public function listUFSquareModelFiltersAuth(ListUFSquareModelFiltersAuthRequest * "GrantedModels" => (array) 授权的模型,英文逗号分隔,all表示所有模型都有权限 * ] * ] + * "Timestamp" => (integer) 时间戳 + * "TotalCount" => (integer) 数据量 * ] * - * @return ListUMInferAPIKeyResponse + * @return ListUMInferAPIKeyV2Response * @throws UCloudException */ - public function listUMInferAPIKey(ListUMInferAPIKeyRequest $request = null) + public function listUMInferAPIKeyV2(ListUMInferAPIKeyV2Request $request = null) { $resp = $this->invoke($request); - return new ListUMInferAPIKeyResponse($resp->toArray(), $resp->getRequestId()); + return new ListUMInferAPIKeyV2Response($resp->toArray(), $resp->getRequestId()); } /**