diff --git a/VERSION b/VERSION index 9578e94..a6c8cf7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.28 +0.3.29 diff --git a/src/UKMS/Apis/DisableKeyRequest.php b/src/UKMS/Apis/DisableKeyRequest.php index 6840c9d..e8ce062 100644 --- a/src/UKMS/Apis/DisableKeyRequest.php +++ b/src/UKMS/Apis/DisableKeyRequest.php @@ -72,7 +72,7 @@ public function setProjectId($projectId) /** * KeyId: 密钥 DB 数字 ID。 * - * @return integer|null + * @return string|null */ public function getKeyId() { @@ -82,7 +82,7 @@ public function getKeyId() /** * KeyId: 密钥 DB 数字 ID。 * - * @param int $keyId + * @param string $keyId */ public function setKeyId($keyId) { diff --git a/src/UKMS/Apis/EnableKeyRequest.php b/src/UKMS/Apis/EnableKeyRequest.php index cd07f82..f819762 100644 --- a/src/UKMS/Apis/EnableKeyRequest.php +++ b/src/UKMS/Apis/EnableKeyRequest.php @@ -72,7 +72,7 @@ public function setProjectId($projectId) /** * KeyId: 密钥 DB 数字 ID。 * - * @return integer|null + * @return string|null */ public function getKeyId() { @@ -82,7 +82,7 @@ public function getKeyId() /** * KeyId: 密钥 DB 数字 ID。 * - * @param int $keyId + * @param string $keyId */ public function setKeyId($keyId) { diff --git a/src/UKMS/Apis/GenerateMacRequest.php b/src/UKMS/Apis/GenerateMacRequest.php index 98a3b75..8caa4ff 100644 --- a/src/UKMS/Apis/GenerateMacRequest.php +++ b/src/UKMS/Apis/GenerateMacRequest.php @@ -26,6 +26,7 @@ public function __construct() $this->markRequired("Region"); $this->markRequired("KeyId"); $this->markRequired("MacMessage"); + $this->markRequired("MacAlgorithm"); } @@ -109,4 +110,24 @@ public function setMacMessage($macMessage) { $this->set("MacMessage", $macMessage); } + + /** + * MacAlgorithm: 用于生成消息认证码的 MAC 算法。 + * + * @return string|null + */ + public function getMacAlgorithm() + { + return $this->get("MacAlgorithm"); + } + + /** + * MacAlgorithm: 用于生成消息认证码的 MAC 算法。 + * + * @param string $macAlgorithm + */ + public function setMacAlgorithm($macAlgorithm) + { + $this->set("MacAlgorithm", $macAlgorithm); + } } diff --git a/src/UKMS/Apis/ScheduleKeyDeletionRequest.php b/src/UKMS/Apis/ScheduleKeyDeletionRequest.php index d42c212..eed3e79 100644 --- a/src/UKMS/Apis/ScheduleKeyDeletionRequest.php +++ b/src/UKMS/Apis/ScheduleKeyDeletionRequest.php @@ -72,7 +72,7 @@ public function setProjectId($projectId) /** * KeyId: 密钥 DB 数字 ID。 * - * @return integer|null + * @return string|null */ public function getKeyId() { @@ -82,7 +82,7 @@ public function getKeyId() /** * KeyId: 密钥 DB 数字 ID。 * - * @param int $keyId + * @param string $keyId */ public function setKeyId($keyId) { @@ -108,4 +108,24 @@ public function setResourceId($resourceId) { $this->set("ResourceId", $resourceId); } + + /** + * DeleteDay: 删除等待天数,取值范围为 7~30 天;未填写时默认为 30 天。 + * + * @return integer|null + */ + public function getDeleteDay() + { + return $this->get("DeleteDay"); + } + + /** + * DeleteDay: 删除等待天数,取值范围为 7~30 天;未填写时默认为 30 天。 + * + * @param int $deleteDay + */ + public function setDeleteDay($deleteDay) + { + $this->set("DeleteDay", $deleteDay); + } } diff --git a/src/UKMS/Apis/VerifyRequest.php b/src/UKMS/Apis/VerifyRequest.php index c5290fd..423f439 100644 --- a/src/UKMS/Apis/VerifyRequest.php +++ b/src/UKMS/Apis/VerifyRequest.php @@ -24,7 +24,6 @@ public function __construct() { parent::__construct(["Action" => "Verify"]); $this->markRequired("Region"); - $this->markRequired("ResourceId"); $this->markRequired("KeyId"); $this->markRequired("SigningMessage"); $this->markRequired("SignatureResult"); @@ -73,26 +72,6 @@ public function setProjectId($projectId) $this->set("ProjectId", $projectId); } - /** - * 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); - } - /** * KeyId: 密钥 ID、ARN 或别名。 * @@ -173,6 +152,26 @@ public function setSigningAlgorithm($signingAlgorithm) $this->set("SigningAlgorithm", $signingAlgorithm); } + /** + * 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); + } + /** * MessageType: 消息类型。可选值:RAW、DIGEST;默认 RAW。 * diff --git a/src/UKMS/UKMSClient.php b/src/UKMS/UKMSClient.php index 6865e6f..b734671 100644 --- a/src/UKMS/UKMSClient.php +++ b/src/UKMS/UKMSClient.php @@ -317,7 +317,7 @@ public function describeKey(DescribeKeyRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (integer) 密钥 DB 数字 ID。 + * "KeyId" => (string) 密钥 DB 数字 ID。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -373,7 +373,7 @@ public function disableKeyRotation(DisableKeyRotationRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (integer) 密钥 DB 数字 ID。 + * "KeyId" => (string) 密钥 DB 数字 ID。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -589,6 +589,7 @@ public function generateDataKeyWithoutPlaintext(GenerateDataKeyWithoutPlaintextR * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "KeyId" => (string) 密钥ID * "MacMessage" => (string) 待哈希的消息。 + * "MacAlgorithm" => (string) 用于生成消息认证码的 MAC 算法。 * ] * * Outputs: @@ -868,8 +869,9 @@ public function rotateKeyOnDemand(RotateKeyOnDemandRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (integer) 密钥 DB 数字 ID。 + * "KeyId" => (string) 密钥 DB 数字 ID。 * "ResourceId" => (string) UKMS 实例资源 ID。 + * "DeleteDay" => (integer) 删除等待天数,取值范围为 7~30 天;未填写时默认为 30 天。 * ] * * Outputs: @@ -990,11 +992,11 @@ public function updateKeyDescription(UpdateKeyDescriptionRequest $request = null * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "ResourceId" => (string) UKMS 实例资源 ID。 * "KeyId" => (string) 密钥 ID、ARN 或别名。 * "SigningMessage" => (string) 待验签的消息或消息摘要,Base64 编码。 * "SignatureResult" => (string) 待验证的签名,Base64 编码。 * "SigningAlgorithm" => (string) 签名时使用的算法。可选值:RSASSA_PSS_SHA_256、RSASSA_PSS_SHA_384、RSASSA_PSS_SHA_512、RSASSA_PKCS1_V1_5_SHA_256、RSASSA_PKCS1_V1_5_SHA_384、RSASSA_PKCS1_V1_5_SHA_512、ECDSA_SHA_256、ECDSA_SHA_384、ECDSA_SHA_512;须与密钥 KeySpec 匹配。 + * "ResourceId" => (string) UKMS 实例资源 ID。 * "MessageType" => (string) 消息类型。可选值:RAW、DIGEST;默认 RAW。 * ] *