tencentcloud-sdk-nodejs-intl-en 3.0.1411 → 3.0.1413

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.
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1411";
1
+ const sdkVersion = "3.0.1413";
2
2
  module.exports = sdkVersion
@@ -117,6 +117,7 @@ const ListDataKeysRequest = models.ListDataKeysRequest;
117
117
  const DeleteWhiteBoxKeyResponse = models.DeleteWhiteBoxKeyResponse;
118
118
  const ListDataKeyDetailRequest = models.ListDataKeyDetailRequest;
119
119
  const CancelDataKeyDeletionResponse = models.CancelDataKeyDeletionResponse;
120
+ const RotateKeyResponse = models.RotateKeyResponse;
120
121
  const ListKeysRequest = models.ListKeysRequest;
121
122
  const DescribeWhiteBoxDecryptKeyRequest = models.DescribeWhiteBoxDecryptKeyRequest;
122
123
  const DataKey = models.DataKey;
@@ -158,6 +159,7 @@ const PostQuantumCryptoVerifyResponse = models.PostQuantumCryptoVerifyResponse;
158
159
  const DescribeWhiteBoxDecryptKeyResponse = models.DescribeWhiteBoxDecryptKeyResponse;
159
160
  const DescribeWhiteBoxDeviceFingerprintsResponse = models.DescribeWhiteBoxDeviceFingerprintsResponse;
160
161
  const PostQuantumCryptoDecryptResponse = models.PostQuantumCryptoDecryptResponse;
162
+ const RotateKeyRequest = models.RotateKeyRequest;
161
163
  const DisableDataKeysRequest = models.DisableDataKeysRequest;
162
164
  const UpdateKeyDescriptionRequest = models.UpdateKeyDescriptionRequest;
163
165
  const UnbindCloudResourceResponse = models.UnbindCloudResourceResponse;
@@ -685,6 +687,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
685
687
  this.request("DisableKeyRotation", req, resp, cb);
686
688
  }
687
689
 
690
+ /**
691
+ * Rotate the designated customer master key immediately. You can call DescribeKey to return the last rotation time and the next rotation time, and determine whether the rotation is successful.
692
+ * @param {RotateKeyRequest} req
693
+ * @param {function(string, RotateKeyResponse):void} cb
694
+ * @public
695
+ */
696
+ RotateKey(req, cb) {
697
+ let resp = new RotateKeyResponse();
698
+ this.request("RotateKey", req, resp, cb);
699
+ }
700
+
688
701
  /**
689
702
  * Get the master key list details according to the specified Offset and Limit.
690
703
  * @param {ListKeyDetailRequest} req
@@ -2615,149 +2615,155 @@ class DataKeyMetadata extends AbstractModel {
2615
2615
  super();
2616
2616
 
2617
2617
  /**
2618
- * DataKey globally unique id.
2618
+ * <p>Globally unique ID of the DataKey</p>
2619
2619
  * @type {string || null}
2620
2620
  */
2621
2621
  this.DataKeyId = null;
2622
2622
 
2623
2623
  /**
2624
- * Globally unique id of the CMK.
2624
+ * <p>Globally unique ID of the CMK.</p>
2625
2625
  * @type {string || null}
2626
2626
  */
2627
2627
  this.KeyId = null;
2628
2628
 
2629
2629
  /**
2630
- * CMK name.
2630
+ * <p>CMK name</p>
2631
2631
  * @type {string || null}
2632
2632
  */
2633
2633
  this.KeyName = null;
2634
2634
 
2635
2635
  /**
2636
- * Key name as a more recognizable and understandable data key.
2636
+ * <p>Data key name that is easier to identify and understand as a key</p>
2637
2637
  * @type {string || null}
2638
2638
  */
2639
2639
  this.DataKeyName = null;
2640
2640
 
2641
2641
  /**
2642
- * Specifies the length of the data key in bytes.
2642
+ * <p>Length of the data key, in bytes</p>
2643
2643
  * @type {number || null}
2644
2644
  */
2645
2645
  this.NumberOfBytes = null;
2646
2646
 
2647
2647
  /**
2648
- * Key key creation time.
2648
+ * <p>Key creation time</p>
2649
2649
  * @type {number || null}
2650
2650
  */
2651
2651
  this.CreateTime = null;
2652
2652
 
2653
2653
  /**
2654
- * DataKey description.
2654
+ * <p>Description of DataKey</p>
2655
2655
  * @type {string || null}
2656
2656
  */
2657
2657
  this.Description = null;
2658
2658
 
2659
2659
  /**
2660
- * DataKey status. valid values: Enabled, Disabled, PendingDelete.
2660
+ * <p>DataKey state, value: Enabled | Disabled | PendingDelete</p>
2661
2661
  * @type {string || null}
2662
2662
  */
2663
2663
  this.KeyState = null;
2664
2664
 
2665
2665
  /**
2666
- * Creator.
2666
+ * <p>Creator.</p>
2667
2667
  * @type {number || null}
2668
2668
  */
2669
2669
  this.CreatorUin = null;
2670
2670
 
2671
2671
  /**
2672
- * Specifies the creator of the data key. valid values: user (user-created) or product name (auto-created by authorized cloud services).
2672
+ * <p>Creator of the data key. For user-created keys, it is user; for keys automatically created by authorized cloud services, it is the corresponding product name.</p>
2673
2673
  * @type {string || null}
2674
2674
  */
2675
2675
  this.Owner = null;
2676
2676
 
2677
2677
  /**
2678
- * The time when schedule deletion.
2678
+ * <p>Schedule deletion time</p>
2679
2679
  * @type {number || null}
2680
2680
  */
2681
2681
  this.DeletionDate = null;
2682
2682
 
2683
2683
  /**
2684
- * Specifies the key material type of DataKey. valid values: TENCENT_KMS (created by KMS), EXTERNAL (user import).
2684
+ * <p>DataKey key material type. For keys created by KMS: TENCENT_KMS. For keys of user import type: EXTERNAL.</p>
2685
2685
  * @type {string || null}
2686
2686
  */
2687
2687
  this.Origin = null;
2688
2688
 
2689
2689
  /**
2690
- * HSM cluster ID (only applicable to KMS exclusive/managed service instance).
2690
+ * <p>HSM Cluster ID (only applicable to KMS exclusive edition/managed version service instances)</p>
2691
2691
  * @type {string || null}
2692
2692
  */
2693
2693
  this.HsmClusterId = null;
2694
2694
 
2695
2695
  /**
2696
- * Resource ID in the format of `creatorUin/$creatorUin/$dataKeyId`.
2696
+ * <p>Resource ID, format: creatorUin/$creatorUin/$dataKeyId</p>
2697
2697
  * @type {string || null}
2698
2698
  */
2699
2699
  this.ResourceId = null;
2700
2700
 
2701
2701
  /**
2702
- * Whether the key is a primary replica. valid values: `0` (primary), `1` (synced replica).
2702
+ * <p>Whether the key is a primary replica. 0: primary replica, 1: synced replica.</p>
2703
2703
  * @type {number || null}
2704
2704
  */
2705
2705
  this.IsSyncReplica = null;
2706
2706
 
2707
2707
  /**
2708
- * Synchronous original region.
2708
+ * <p>Synchronous original region</p>
2709
2709
  * @type {string || null}
2710
2710
  */
2711
2711
  this.SourceRegion = null;
2712
2712
 
2713
2713
  /**
2714
- * The state of key synchronization. valid values: 0 (unsynced), 1 (synchronization successful), 2 (synchronization failed), 3 (synchronizing).
2714
+ * <p>Key synchronization status. 0: unsynced, 1: synchronization successful, 2: synchronization failure, 3: syncing.</p>
2715
2715
  * @type {number || null}
2716
2716
  */
2717
2717
  this.SyncStatus = null;
2718
2718
 
2719
2719
  /**
2720
- * Sresult description}.
2720
+ * <p>Synchronous result description</p>
2721
2721
  * @type {string || null}
2722
2722
  */
2723
2723
  this.SyncMessages = null;
2724
2724
 
2725
2725
  /**
2726
- * Start time of synchronization.
2726
+ * <p>Start time of synchronization</p>
2727
2727
  * @type {number || null}
2728
2728
  */
2729
2729
  this.SyncStartTime = null;
2730
2730
 
2731
2731
  /**
2732
- * Specifies the synchronous end time.
2732
+ * <p>Synchronous end time</p>
2733
2733
  * @type {number || null}
2734
2734
  */
2735
2735
  this.SyncEndTime = null;
2736
2736
 
2737
2737
  /**
2738
- * Synchronous original cluster. if empty, it is a public cloud public cluster.
2738
+ * <p>Synchronous primitive cluster. If empty, it is a public cloud public cluster.</p>
2739
2739
  * @type {string || null}
2740
2740
  */
2741
2741
  this.SourceHsmClusterId = null;
2742
2742
 
2743
2743
  /**
2744
- * Member account appId.
2744
+ * <p>Member account appId</p>
2745
2745
  * @type {number || null}
2746
2746
  */
2747
2747
  this.AccountAppId = null;
2748
2748
 
2749
2749
  /**
2750
- * Member account UIN
2750
+ * <p>member account uin</p>
2751
2751
  * @type {number || null}
2752
2752
  */
2753
2753
  this.AccountUin = null;
2754
2754
 
2755
2755
  /**
2756
- * Member account name.
2756
+ * <p>Enter the member account name.</p>
2757
2757
  * @type {string || null}
2758
2758
  */
2759
2759
  this.AccountName = null;
2760
2760
 
2761
+ /**
2762
+ * <p>Creator UIN</p>
2763
+ * @type {string || null}
2764
+ */
2765
+ this.CreatorUinString = null;
2766
+
2761
2767
  }
2762
2768
 
2763
2769
  /**
@@ -2791,6 +2797,7 @@ class DataKeyMetadata extends AbstractModel {
2791
2797
  this.AccountAppId = 'AccountAppId' in params ? params.AccountAppId : null;
2792
2798
  this.AccountUin = 'AccountUin' in params ? params.AccountUin : null;
2793
2799
  this.AccountName = 'AccountName' in params ? params.AccountName : null;
2800
+ this.CreatorUinString = 'CreatorUinString' in params ? params.CreatorUinString : null;
2794
2801
 
2795
2802
  }
2796
2803
  }
@@ -4199,6 +4206,18 @@ class GetServiceStatusResponse extends AbstractModel {
4199
4206
  */
4200
4207
  this.RegionsQps = null;
4201
4208
 
4209
+ /**
4210
+ * <p>Regional information of the resource</p>
4211
+ * @type {number || null}
4212
+ */
4213
+ this.ResourceZone = null;
4214
+
4215
+ /**
4216
+ * <p>Regional availability zone info of the resource</p>
4217
+ * @type {number || null}
4218
+ */
4219
+ this.ResourceRegion = null;
4220
+
4202
4221
  /**
4203
4222
  * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
4204
4223
  * @type {string || null}
@@ -4259,6 +4278,8 @@ class GetServiceStatusResponse extends AbstractModel {
4259
4278
  this.RegionsQps.push(obj);
4260
4279
  }
4261
4280
  }
4281
+ this.ResourceZone = 'ResourceZone' in params ? params.ResourceZone : null;
4282
+ this.ResourceRegion = 'ResourceRegion' in params ? params.ResourceRegion : null;
4262
4283
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
4263
4284
 
4264
4285
  }
@@ -4644,6 +4665,41 @@ class CancelDataKeyDeletionResponse extends AbstractModel {
4644
4665
  }
4645
4666
  }
4646
4667
 
4668
+ /**
4669
+ * RotateKey response structure.
4670
+ * @class
4671
+ */
4672
+ class RotateKeyResponse extends AbstractModel {
4673
+ constructor(){
4674
+ super();
4675
+
4676
+ /**
4677
+ * <p>Task ID used to identify this rotation. You can call DescribeKey to return the last rotation time and next rotation time, and determine whether the rotation is successful.</p>
4678
+ * @type {string || null}
4679
+ */
4680
+ this.TaskId = null;
4681
+
4682
+ /**
4683
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
4684
+ * @type {string || null}
4685
+ */
4686
+ this.RequestId = null;
4687
+
4688
+ }
4689
+
4690
+ /**
4691
+ * @private
4692
+ */
4693
+ deserialize(params) {
4694
+ if (!params) {
4695
+ return;
4696
+ }
4697
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
4698
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4699
+
4700
+ }
4701
+ }
4702
+
4647
4703
  /**
4648
4704
  * ListKeys request structure.
4649
4705
  * @class
@@ -4925,6 +4981,12 @@ class KeyMetadata extends AbstractModel {
4925
4981
  */
4926
4982
  this.AccountName = null;
4927
4983
 
4984
+ /**
4985
+ * <p>Creator UIN</p>
4986
+ * @type {string || null}
4987
+ */
4988
+ this.CreatorUinString = null;
4989
+
4928
4990
  }
4929
4991
 
4930
4992
  /**
@@ -4962,6 +5024,7 @@ class KeyMetadata extends AbstractModel {
4962
5024
  this.AccountAppId = 'AccountAppId' in params ? params.AccountAppId : null;
4963
5025
  this.AccountUin = 'AccountUin' in params ? params.AccountUin : null;
4964
5026
  this.AccountName = 'AccountName' in params ? params.AccountName : null;
5027
+ this.CreatorUinString = 'CreatorUinString' in params ? params.CreatorUinString : null;
4965
5028
 
4966
5029
  }
4967
5030
  }
@@ -6332,6 +6395,46 @@ If `EncryptionPublicKey` is passed in, this field contains the Base64-encoded ci
6332
6395
  }
6333
6396
  }
6334
6397
 
6398
+ /**
6399
+ * RotateKey request structure.
6400
+ * @class
6401
+ */
6402
+ class RotateKeyRequest extends AbstractModel {
6403
+ constructor(){
6404
+ super();
6405
+
6406
+ /**
6407
+ * <p>Globally unique ID of the CMK.</p>
6408
+ * @type {string || null}
6409
+ */
6410
+ this.KeyId = null;
6411
+
6412
+ /**
6413
+ * <p>Member account information for multi-account scenarios</p>
6414
+ * @type {MemberAccount || null}
6415
+ */
6416
+ this.MemberAccount = null;
6417
+
6418
+ }
6419
+
6420
+ /**
6421
+ * @private
6422
+ */
6423
+ deserialize(params) {
6424
+ if (!params) {
6425
+ return;
6426
+ }
6427
+ this.KeyId = 'KeyId' in params ? params.KeyId : null;
6428
+
6429
+ if (params.MemberAccount) {
6430
+ let obj = new MemberAccount();
6431
+ obj.deserialize(params.MemberAccount)
6432
+ this.MemberAccount = obj;
6433
+ }
6434
+
6435
+ }
6436
+ }
6437
+
6335
6438
  /**
6336
6439
  * DisableDataKeys request structure.
6337
6440
  * @class
@@ -6704,6 +6807,7 @@ module.exports = {
6704
6807
  DeleteWhiteBoxKeyResponse: DeleteWhiteBoxKeyResponse,
6705
6808
  ListDataKeyDetailRequest: ListDataKeyDetailRequest,
6706
6809
  CancelDataKeyDeletionResponse: CancelDataKeyDeletionResponse,
6810
+ RotateKeyResponse: RotateKeyResponse,
6707
6811
  ListKeysRequest: ListKeysRequest,
6708
6812
  DescribeWhiteBoxDecryptKeyRequest: DescribeWhiteBoxDecryptKeyRequest,
6709
6813
  DataKey: DataKey,
@@ -6745,6 +6849,7 @@ module.exports = {
6745
6849
  DescribeWhiteBoxDecryptKeyResponse: DescribeWhiteBoxDecryptKeyResponse,
6746
6850
  DescribeWhiteBoxDeviceFingerprintsResponse: DescribeWhiteBoxDeviceFingerprintsResponse,
6747
6851
  PostQuantumCryptoDecryptResponse: PostQuantumCryptoDecryptResponse,
6852
+ RotateKeyRequest: RotateKeyRequest,
6748
6853
  DisableDataKeysRequest: DisableDataKeysRequest,
6749
6854
  UpdateKeyDescriptionRequest: UpdateKeyDescriptionRequest,
6750
6855
  UnbindCloudResourceResponse: UnbindCloudResourceResponse,