@ucloud-sdks/ucloud-sdk-js 0.2.36 → 0.2.37

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.
@@ -243,13 +243,13 @@ export interface CreateKeyRequest {
243
243
  */
244
244
  KeyUsage?: string;
245
245
  /**
246
- * 密钥材料来源,默认 UCLOUD_KMS。当前仅支持 UCLOUD_KMS;EXTERNAL 为 BYOK 规划值,当前传入会返回 100660
246
+ * 密钥材料来源,默认 UCLOUD_KMS。当前仅支持 UCLOUD_KMS;EXTERNAL 为 BYOK 规划值,当前传入会返回 1230
247
247
  */
248
248
  Origin?: string;
249
249
  /**
250
250
  * 是否开启删除保护。可选值:true、false;默认 false。
251
251
  */
252
- DeletionProtection?: string;
252
+ DeletionProtection?: boolean;
253
253
  }
254
254
  /**
255
255
  * CreateKey - 创建密钥。
@@ -281,7 +281,7 @@ export interface DecryptRequest {
281
281
  */
282
282
  EncryptionContext?: string;
283
283
  /**
284
- * 解密算法。可选值:SYMMETRIC_DEFAULT、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256;非对称密钥解密时必填或使用默认 RSAES_OAEP_SHA_256。
284
+ * 解密算法。可选值:SYMMETRIC_DEFAULT、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256;非对称密钥解密时必填。
285
285
  */
286
286
  EncryptionAlgorithm?: string;
287
287
  }
@@ -342,7 +342,7 @@ export interface DescribeKeyResponse {
342
342
  */
343
343
  KeyMetadata: {
344
344
  /**
345
- * 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
345
+ * 密钥所属项目ID
346
346
  */
347
347
  ProjectId?: string;
348
348
  /**
@@ -393,6 +393,14 @@ export interface DescribeKeyResponse {
393
393
  * 计划删除时间,Unix 时间戳。
394
394
  */
395
395
  DeletionDate?: number;
396
+ /**
397
+ * ucs:ukms:{Region}:{CompanyId}:key/{KeyId}
398
+ */
399
+ Arn?: string;
400
+ /**
401
+ * 所属组织数字 ID
402
+ */
403
+ OrganizationId?: number;
396
404
  };
397
405
  }
398
406
  /**
@@ -400,7 +408,7 @@ export interface DescribeKeyResponse {
400
408
  */
401
409
  export interface DisableKeyRequest {
402
410
  /**
403
- * 密钥 DB 数字 ID
411
+ * 密钥资源长 ID
404
412
  */
405
413
  KeyId: string;
406
414
  /**
@@ -424,7 +432,7 @@ export interface DisableKeyRotationRequest {
424
432
  /**
425
433
  * UKMS 实例资源 ID。
426
434
  */
427
- ResourceId?: string;
435
+ ResourceId: string;
428
436
  }
429
437
  /**
430
438
  * DisableKeyRotation - 关闭密钥自动轮转。
@@ -436,7 +444,7 @@ export interface DisableKeyRotationResponse {
436
444
  */
437
445
  export interface EnableKeyRequest {
438
446
  /**
439
- * 密钥 DB 数字 ID
447
+ * 密钥资源长 ID
440
448
  */
441
449
  KeyId: string;
442
450
  /**
@@ -910,7 +918,7 @@ export interface ListKeysResponse {
910
918
  */
911
919
  KeyUsage: string[];
912
920
  /**
913
- * 密钥来源,由 Origin 派生。取值:ucloudimport。当前 CreateKey 仅支持 ucloud
921
+ * 密钥来源,由 Origin 派生。取值:UCLOUD_KMSEXTERNAL。当前 CreateKey 仅支持 UCLOUD_KMS
914
922
  */
915
923
  Origin: string;
916
924
  /**
@@ -970,7 +978,7 @@ export interface RotateKeyOnDemandRequest {
970
978
  /**
971
979
  * UKMS 实例资源 ID。
972
980
  */
973
- ResourceId?: string;
981
+ ResourceId: string;
974
982
  }
975
983
  /**
976
984
  * RotateKeyOnDemand - 立即触发一次密钥轮转。
@@ -986,7 +994,7 @@ export interface RotateKeyOnDemandResponse {
986
994
  */
987
995
  export interface ScheduleKeyDeletionRequest {
988
996
  /**
989
- * 密钥 DB 数字 ID
997
+ * 密钥资源长 ID
990
998
  */
991
999
  KeyId: string;
992
1000
  /**
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.36",
4
+ "version": "0.2.37",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,