@ucloud-sdks/ucloud-sdk-js 0.2.22 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -371,6 +371,10 @@ export interface DescribeKeyResponse {
371
371
  * 密钥元数据。
372
372
  */
373
373
  KeyMetadata: {
374
+ /**
375
+ * 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
376
+ */
377
+ ProjectId?: string;
374
378
  /**
375
379
  * 密钥资源长 ID。
376
380
  */
@@ -419,6 +423,10 @@ export interface DescribeKeyResponse {
419
423
  * 计划删除时间,Unix 时间戳。
420
424
  */
421
425
  DeletionDate?: number;
426
+ /**
427
+ * 密钥所属组织的数字 ID,来源于密钥关联的资源交易记录。
428
+ */
429
+ OrganizationId?: number;
422
430
  };
423
431
  }
424
432
  /**
@@ -791,6 +799,18 @@ export interface ListAliasesRequest {
791
799
  * 返回数据长度。
792
800
  */
793
801
  Limit?: number;
802
+ /**
803
+ * 按完整别名(含 alias/ 前缀)进行子串模糊匹配
804
+ */
805
+ Alias?: string;
806
+ /**
807
+ * 排序字段
808
+ */
809
+ OrderBy?: string;
810
+ /**
811
+ * 排序方向,默认 desc
812
+ */
813
+ Sort?: string;
794
814
  }
795
815
  /**
796
816
  * ListAliases - 获取 UKMS 实例下的别名列表。
@@ -842,6 +862,18 @@ export interface ListKeysRequest {
842
862
  * 返回数据长度。最大1000
843
863
  */
844
864
  Limit?: number;
865
+ /**
866
+ * 状态筛选:Active、Deactivated、PendingDeletion
867
+ */
868
+ Status?: string;
869
+ /**
870
+ * 排序字段
871
+ */
872
+ OrderBy?: string;
873
+ /**
874
+ * 排序方向,默认 desc
875
+ */
876
+ Sort?: string;
845
877
  }
846
878
  /**
847
879
  * ListKeys - 查询用户的主密钥信息列表。
@@ -851,6 +883,10 @@ export interface ListKeysResponse {
851
883
  * 密钥信息数组,每项为 DEK/ListKeys item。
852
884
  */
853
885
  Data: {
886
+ /**
887
+ * 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
888
+ */
889
+ ProjectId?: string;
854
890
  /**
855
891
  * 对外主密钥 ID(ukms_key_info.key_id)。
856
892
  */
@@ -903,6 +939,10 @@ export interface ListKeysResponse {
903
939
  * 下次自动轮转时间(Unix 时间戳,秒);仅在已开启自动轮转时返回。
904
940
  */
905
941
  NextRotationDate?: number;
942
+ /**
943
+ * 密钥所属组织的数字 ID,来源于密钥关联的资源交易记录。
944
+ */
945
+ OrganizationId?: number;
906
946
  }[];
907
947
  /**
908
948
  * 符合条件的总数,不同于 Limit。
@@ -925,6 +965,18 @@ export interface ListScheduleDeletionKeysRequest {
925
965
  * 列表排序方式, 可选项: "-created_time", "created_time","plan_delete_time","-plan_delete_time";默认按-plan_delete_time 计划删除时间升序返回
926
966
  */
927
967
  OrderBy?: string;
968
+ /**
969
+ * 按密钥 ID 或别名模糊过滤
970
+ */
971
+ Alias?: string;
972
+ /**
973
+ * UKMS 实例资源 ID
974
+ */
975
+ ResourceId?: string;
976
+ /**
977
+ * 排序方向,默认 desc
978
+ */
979
+ Sort?: string;
928
980
  }
929
981
  /**
930
982
  * ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
@@ -939,29 +991,29 @@ export interface ListScheduleDeletionKeysResponse {
939
991
  */
940
992
  KeyId: string;
941
993
  /**
942
- * 密钥类型,仅支持UCloudManagedKeysCustomerManagedKeys。默认值CustomerManagedKeys
994
+ * 密钥类型,如RSAEC、DES
943
995
  */
944
- Type: string;
996
+ KeyType: string;
945
997
  /**
946
- * 对密钥的描述说明
998
+ * 创建时间
947
999
  */
948
- Description: string;
1000
+ CreatedTime: number;
949
1001
  /**
950
- * 是否启用
1002
+ * 别名,与CMK一一对应
951
1003
  */
952
- Enabled: boolean;
1004
+ Alias: string;
953
1005
  /**
954
- * 创建时间 时间戳
1006
+ * 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised"
955
1007
  */
956
- CreatedTime: number;
1008
+ Status: string;
957
1009
  /**
958
- * 最后修改时间 时间戳
1010
+ * 更新时间
959
1011
  */
960
- LastModifiedTime: number;
1012
+ UpdateTime: number;
961
1013
  /**
962
- * 别名,与CMK一一对应
1014
+ * 对密钥的描述说明
963
1015
  */
964
- Alias?: string;
1016
+ Description?: string;
965
1017
  /**
966
1018
  * 计划删除时间 时间戳
967
1019
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.22",
4
+ "version": "0.2.24",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,