Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.28
0.3.29
4 changes: 2 additions & 2 deletions src/UKMS/Apis/DisableKeyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setProjectId($projectId)
/**
* KeyId: 密钥 DB 数字 ID。
*
* @return integer|null
* @return string|null
*/
public function getKeyId()
{
Expand All @@ -82,7 +82,7 @@ public function getKeyId()
/**
* KeyId: 密钥 DB 数字 ID。
*
* @param int $keyId
* @param string $keyId
*/
public function setKeyId($keyId)
{
Expand Down
4 changes: 2 additions & 2 deletions src/UKMS/Apis/EnableKeyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setProjectId($projectId)
/**
* KeyId: 密钥 DB 数字 ID。
*
* @return integer|null
* @return string|null
*/
public function getKeyId()
{
Expand All @@ -82,7 +82,7 @@ public function getKeyId()
/**
* KeyId: 密钥 DB 数字 ID。
*
* @param int $keyId
* @param string $keyId
*/
public function setKeyId($keyId)
{
Expand Down
21 changes: 21 additions & 0 deletions src/UKMS/Apis/GenerateMacRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct()
$this->markRequired("Region");
$this->markRequired("KeyId");
$this->markRequired("MacMessage");
$this->markRequired("MacAlgorithm");
}


Expand Down Expand Up @@ -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);
}
}
24 changes: 22 additions & 2 deletions src/UKMS/Apis/ScheduleKeyDeletionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setProjectId($projectId)
/**
* KeyId: 密钥 DB 数字 ID。
*
* @return integer|null
* @return string|null
*/
public function getKeyId()
{
Expand All @@ -82,7 +82,7 @@ public function getKeyId()
/**
* KeyId: 密钥 DB 数字 ID。
*
* @param int $keyId
* @param string $keyId
*/
public function setKeyId($keyId)
{
Expand All @@ -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);
}
}
41 changes: 20 additions & 21 deletions src/UKMS/Apis/VerifyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 或别名。
*
Expand Down Expand Up @@ -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。
*
Expand Down
10 changes: 6 additions & 4 deletions src/UKMS/UKMSClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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。
* ]
*
Expand Down Expand Up @@ -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。
* ]
*
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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。
* ]
*
Expand Down
Loading