From 459c629f2c041b403a7462ef349703848f4dedae Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Mon, 10 Aug 2026 10:03:50 +0000 Subject: [PATCH] sdk: rolling update for 0.3.30 --- VERSION | 2 +- src/UKMS/Apis/ListAliasesRequest.php | 60 +++++++++++++ src/UKMS/Apis/ListKeysRequest.php | 60 +++++++++++++ .../Apis/ListScheduleDeletionKeysRequest.php | 64 ++++++++++++- src/UKMS/Models/CMK.php | 90 +++++++++---------- src/UKMS/UKMSClient.php | 21 +++-- 6 files changed, 243 insertions(+), 54 deletions(-) diff --git a/VERSION b/VERSION index a6c8cf7..cfa5015 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.29 +0.3.30 diff --git a/src/UKMS/Apis/ListAliasesRequest.php b/src/UKMS/Apis/ListAliasesRequest.php index bfe7783..e18e5f3 100644 --- a/src/UKMS/Apis/ListAliasesRequest.php +++ b/src/UKMS/Apis/ListAliasesRequest.php @@ -147,4 +147,64 @@ public function setLimit($limit) { $this->set("Limit", $limit); } + + /** + * Alias: 按完整别名(含 alias/ 前缀)进行子串模糊匹配 + * + * @return string|null + */ + public function getAlias() + { + return $this->get("Alias"); + } + + /** + * Alias: 按完整别名(含 alias/ 前缀)进行子串模糊匹配 + * + * @param string $alias + */ + public function setAlias($alias) + { + $this->set("Alias", $alias); + } + + /** + * OrderBy: 排序字段 + * + * @return string|null + */ + public function getOrderBy() + { + return $this->get("OrderBy"); + } + + /** + * OrderBy: 排序字段 + * + * @param string $orderBy + */ + public function setOrderBy($orderBy) + { + $this->set("OrderBy", $orderBy); + } + + /** + * Sort: 排序方向,默认 desc + * + * @return string|null + */ + public function getSort() + { + return $this->get("Sort"); + } + + /** + * Sort: 排序方向,默认 desc + * + * @param string $sort + */ + public function setSort($sort) + { + $this->set("Sort", $sort); + } } diff --git a/src/UKMS/Apis/ListKeysRequest.php b/src/UKMS/Apis/ListKeysRequest.php index 3ff708a..a855a2e 100644 --- a/src/UKMS/Apis/ListKeysRequest.php +++ b/src/UKMS/Apis/ListKeysRequest.php @@ -147,4 +147,64 @@ public function setLimit($limit) { $this->set("Limit", $limit); } + + /** + * Status: 状态筛选:Active、Deactivated、PendingDeletion + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 状态筛选:Active、Deactivated、PendingDeletion + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * OrderBy: 排序字段 + * + * @return string|null + */ + public function getOrderBy() + { + return $this->get("OrderBy"); + } + + /** + * OrderBy: 排序字段 + * + * @param string $orderBy + */ + public function setOrderBy($orderBy) + { + $this->set("OrderBy", $orderBy); + } + + /** + * Sort: 排序方向,默认 desc + * + * @return string|null + */ + public function getSort() + { + return $this->get("Sort"); + } + + /** + * Sort: 排序方向,默认 desc + * + * @param string $sort + */ + public function setSort($sort) + { + $this->set("Sort", $sort); + } } diff --git a/src/UKMS/Apis/ListScheduleDeletionKeysRequest.php b/src/UKMS/Apis/ListScheduleDeletionKeysRequest.php index f35a0a6..91cbfa3 100644 --- a/src/UKMS/Apis/ListScheduleDeletionKeysRequest.php +++ b/src/UKMS/Apis/ListScheduleDeletionKeysRequest.php @@ -28,7 +28,7 @@ public function __construct() /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -38,7 +38,7 @@ public function getProjectId() } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @param string $projectId */ @@ -106,4 +106,64 @@ public function setOrderBy($orderBy) { $this->set("OrderBy", $orderBy); } + + /** + * Alias: 按密钥 ID 或别名模糊过滤 + * + * @return string|null + */ + public function getAlias() + { + return $this->get("Alias"); + } + + /** + * Alias: 按密钥 ID 或别名模糊过滤 + * + * @param string $alias + */ + public function setAlias($alias) + { + $this->set("Alias", $alias); + } + + /** + * ResourceId: UKMS 实例资源 ID + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: UKMS 实例资源 ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * Sort: 排序方向,默认 desc + * + * @return string|null + */ + public function getSort() + { + return $this->get("Sort"); + } + + /** + * Sort: 排序方向,默认 desc + * + * @param string $sort + */ + public function setSort($sort) + { + $this->set("Sort", $sort); + } } diff --git a/src/UKMS/Models/CMK.php b/src/UKMS/Models/CMK.php index cccedbe..65a459a 100644 --- a/src/UKMS/Models/CMK.php +++ b/src/UKMS/Models/CMK.php @@ -43,123 +43,123 @@ public function setKeyId($keyId) } /** - * Type: 密钥类型,仅支持UCloudManagedKeys、CustomerManagedKeys。默认值CustomerManagedKeys + * KeyType: 密钥类型,如RSA、EC、DES * * @return string|null */ - public function getType() + public function getKeyType() { - return $this->get("Type"); + return $this->get("KeyType"); } /** - * Type: 密钥类型,仅支持UCloudManagedKeys、CustomerManagedKeys。默认值CustomerManagedKeys + * KeyType: 密钥类型,如RSA、EC、DES * - * @param string $type + * @param string $keyType */ - public function setType($type) + public function setKeyType($keyType) { - $this->set("Type", $type); + $this->set("KeyType", $keyType); } /** - * Description: 对密钥的描述说明 + * CreatedTime: 创建时间 * - * @return string|null + * @return integer|null */ - public function getDescription() + public function getCreatedTime() { - return $this->get("Description"); + return $this->get("CreatedTime"); } /** - * Description: 对密钥的描述说明 + * CreatedTime: 创建时间 * - * @param string $description + * @param int $createdTime */ - public function setDescription($description) + public function setCreatedTime($createdTime) { - $this->set("Description", $description); + $this->set("CreatedTime", $createdTime); } /** - * Enabled: 是否启用 + * Alias: 别名,与CMK一一对应 * - * @return boolean|null + * @return string|null */ - public function getEnabled() + public function getAlias() { - return $this->get("Enabled"); + return $this->get("Alias"); } /** - * Enabled: 是否启用 + * Alias: 别名,与CMK一一对应 * - * @param boolean $enabled + * @param string $alias */ - public function setEnabled($enabled) + public function setAlias($alias) { - $this->set("Enabled", $enabled); + $this->set("Alias", $alias); } /** - * CreatedTime: 创建时间 时间戳 + * Status: 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised" * - * @return integer|null + * @return string|null */ - public function getCreatedTime() + public function getStatus() { - return $this->get("CreatedTime"); + return $this->get("Status"); } /** - * CreatedTime: 创建时间 时间戳 + * Status: 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised" * - * @param int $createdTime + * @param string $status */ - public function setCreatedTime($createdTime) + public function setStatus($status) { - $this->set("CreatedTime", $createdTime); + $this->set("Status", $status); } /** - * LastModifiedTime: 最后修改时间 时间戳 + * UpdateTime: 更新时间 * * @return integer|null */ - public function getLastModifiedTime() + public function getUpdateTime() { - return $this->get("LastModifiedTime"); + return $this->get("UpdateTime"); } /** - * LastModifiedTime: 最后修改时间 时间戳 + * UpdateTime: 更新时间 * - * @param int $lastModifiedTime + * @param int $updateTime */ - public function setLastModifiedTime($lastModifiedTime) + public function setUpdateTime($updateTime) { - $this->set("LastModifiedTime", $lastModifiedTime); + $this->set("UpdateTime", $updateTime); } /** - * Alias: 别名,与CMK一一对应 + * Description: 对密钥的描述说明 * * @return string|null */ - public function getAlias() + public function getDescription() { - return $this->get("Alias"); + return $this->get("Description"); } /** - * Alias: 别名,与CMK一一对应 + * Description: 对密钥的描述说明 * - * @param string $alias + * @param string $description */ - public function setAlias($alias) + public function setDescription($description) { - $this->set("Alias", $alias); + $this->set("Description", $description); } /** diff --git a/src/UKMS/UKMSClient.php b/src/UKMS/UKMSClient.php index b734671..86ee74c 100644 --- a/src/UKMS/UKMSClient.php +++ b/src/UKMS/UKMSClient.php @@ -714,6 +714,9 @@ public function getPublicKey(GetPublicKeyRequest $request = null) * "KeyId" => (string) 可选:筛选指定密钥资源长 ID 的别名。 * "Offset" => (integer) 列表起始位置偏移量。 * "Limit" => (integer) 返回数据长度。 + * "Alias" => (string) 按完整别名(含 alias/ 前缀)进行子串模糊匹配 + * "OrderBy" => (string) 排序字段 + * "Sort" => (string) 排序方向,默认 desc * ] * * Outputs: @@ -753,6 +756,9 @@ public function listAliases(ListAliasesRequest $request = null) * "Alias" => (string) 按密钥 ID 或别名模糊过滤。 * "Offset" => (integer) 列表起始位置偏移量。 * "Limit" => (integer) 返回数据长度。最大1000 + * "Status" => (string) 状态筛选:Active、Deactivated、PendingDeletion + * "OrderBy" => (string) 排序字段 + * "Sort" => (string) 排序方向,默认 desc * ] * * Outputs: @@ -795,10 +801,13 @@ public function listKeys(ListKeysRequest $request = null) * Arguments: * * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "Offset" => (integer) 输出列表起始位置,默认从0开始 * "Limit" => (integer) 输出列表数量,默认返回200个 * "OrderBy" => (string) 列表排序方式, 可选项: "-created_time", "created_time","plan_delete_time","-plan_delete_time";默认按-plan_delete_time 计划删除时间升序返回 + * "Alias" => (string) 按密钥 ID 或别名模糊过滤 + * "ResourceId" => (string) UKMS 实例资源 ID + * "Sort" => (string) 排序方向,默认 desc * ] * * Outputs: @@ -807,12 +816,12 @@ public function listKeys(ListKeysRequest $request = null) * "Objects" => (array) 主密钥信息组成的列表[ * [ * "KeyId" => (string) CMK 的唯一标识符 - * "Type" => (string) 密钥类型,仅支持UCloudManagedKeys、CustomerManagedKeys。默认值CustomerManagedKeys - * "Description" => (string) 对密钥的描述说明 - * "Enabled" => (boolean) 是否启用 - * "CreatedTime" => (integer) 创建时间 时间戳 - * "LastModifiedTime" => (integer) 最后修改时间 时间戳 + * "KeyType" => (string) 密钥类型,如RSA、EC、DES + * "CreatedTime" => (integer) 创建时间 * "Alias" => (string) 别名,与CMK一一对应 + * "Status" => (string) 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised" + * "UpdateTime" => (integer) 更新时间 + * "Description" => (string) 对密钥的描述说明 * "PlanDeleteTime" => (integer) 计划删除时间 时间戳 * ] * ]