Skip to content

Commit 8562239

Browse files
authored
sdk: rolling update for 0.11.114 (#343)
1 parent bd64404 commit 8562239

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎ucloud/services/ukms/client.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ def describe_key(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
211211
- **KeyState** (str) - 密钥对外状态。取值:Enabled、Disabled、PendingDeletion、PendingImport、Unavailable。
212212
- **KeyUsage** (list) - 密钥用途。取值:ENCRYPT_DECRYPT、SIGN_VERIFY、GENERATE_VERIFY_MAC、KEY_AGREEMENT。
213213
- **KeyVersion** (int) - 当前密钥版本。
214+
- **OrganizationId** (int) - 密钥所属组织的数字 ID,来源于密钥关联的资源交易记录。
214215
- **Origin** (str) - 密钥材料来源。取值:UCLOUD_KMS、EXTERNAL;当前 CreateKey 仅支持 UCLOUD_KMS。
216+
- **ProjectId** (str) - 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
215217
- **ResourceId** (str) - 密钥所属的 UKMS 实例资源 ID。
216218
217219
@@ -690,8 +692,10 @@ def list_keys(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
690692
- **KeySpec** (str) - 密钥规格。取值:SYMMETRIC_DEFAULT、RSA_2048、RSA_3072、RSA_4096、ECC_NIST_P256、ECC_NIST_P384、ECC_NIST_P521、HMAC_256、HMAC_384、HMAC_512。
691693
- **KeyUsage** (list) - 按 KeySpec 派生的密钥用途。取值:ENCRYPT_DECRYPT、SIGN_VERIFY、GENERATE_VERIFY_MAC、KEY_AGREEMENT。
692694
- **NextRotationDate** (int) - 下次自动轮转时间(Unix 时间戳,秒);仅在已开启自动轮转时返回。
695+
- **OrganizationId** (int) - 密钥所属组织的数字 ID,来源于密钥关联的资源交易记录。
693696
- **Origin** (str) - 密钥来源,由 Origin 派生。取值:ucloud、import。当前 CreateKey 仅支持 ucloud。
694697
- **PlanDeleteTime** (int) - 计划删除时间,Unix 时间戳。
698+
- **ProjectId** (str) - 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
695699
- **ResourceId** (str) - 密钥所属的 UKMS 实例资源 ID。
696700
- **RotationPeriodInDays** (int) - 自动轮转周期(天);未开启时为 0
697701
- **Status** (str) - 数据库密钥状态。常见取值:Active、Deactivated、PendingDeletion。

‎ucloud/services/ukms/schemas/models.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ class KeyMetadataSchema(schema.ResponseSchema):
1919
"KeyState": fields.Str(required=True, load_from="KeyState"),
2020
"KeyUsage": fields.List(fields.Str()),
2121
"KeyVersion": fields.Int(required=True, load_from="KeyVersion"),
22+
"OrganizationId": fields.Int(
23+
required=False, load_from="OrganizationId"
24+
),
2225
"Origin": fields.Str(required=True, load_from="Origin"),
26+
"ProjectId": fields.Str(required=False, load_from="ProjectId"),
2327
"ResourceId": fields.Str(required=True, load_from="ResourceId"),
2428
}
2529

@@ -52,10 +56,14 @@ class DEKSchema(schema.ResponseSchema):
5256
"NextRotationDate": fields.Int(
5357
required=False, load_from="NextRotationDate"
5458
),
59+
"OrganizationId": fields.Int(
60+
required=False, load_from="OrganizationId"
61+
),
5562
"Origin": fields.Str(required=True, load_from="Origin"),
5663
"PlanDeleteTime": fields.Int(
5764
required=False, load_from="PlanDeleteTime"
5865
),
66+
"ProjectId": fields.Str(required=False, load_from="ProjectId"),
5967
"ResourceId": fields.Str(required=True, load_from="ResourceId"),
6068
"RotationPeriodInDays": fields.Int(
6169
required=True, load_from="RotationPeriodInDays"

‎ucloud/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.11.113"
1+
version = "0.11.114"

0 commit comments

Comments
 (0)