tencentcloud-sdk-nodejs-intl-en 3.0.746 → 3.0.748
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.
- package/package.json +1 -1
- package/tencentcloud/as/v20180419/as_client.js +7 -5
- package/tencentcloud/as/v20180419/models.js +67 -3
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/kms/v20190118/kms_client.js +52 -0
- package/tencentcloud/kms/v20190118/models.js +317 -0
- package/tencentcloud/redis/v20180412/models.js +5 -5
- package/tencentcloud/redis/v20180412/redis_client.js +1 -1
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ const DescribeAutoScalingGroupsRequest = models.DescribeAutoScalingGroupsRequest
|
|
|
27
27
|
const LaunchConfiguration = models.LaunchConfiguration;
|
|
28
28
|
const DescribeAccountLimitsResponse = models.DescribeAccountLimitsResponse;
|
|
29
29
|
const CreateLaunchConfigurationResponse = models.CreateLaunchConfigurationResponse;
|
|
30
|
+
const RelatedInstance = models.RelatedInstance;
|
|
30
31
|
const Advice = models.Advice;
|
|
31
32
|
const CreateLifecycleHookResponse = models.CreateLifecycleHookResponse;
|
|
32
33
|
const ClearLaunchConfigurationAttributesResponse = models.ClearLaunchConfigurationAttributesResponse;
|
|
@@ -243,7 +244,7 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
/**
|
|
246
|
-
* This API
|
|
247
|
+
* This API is used to delete an auto-scaling group. Make sure that there are no `IN_SERVICE` instances in the group, and there are no ongoing scaling activities. When you delete a scaling group, instances in the status of `CREATION_FAILED`, `TERMINATION_FAILED` and `DETACH_FAILED` are not terminated.
|
|
247
248
|
* @param {DeleteAutoScalingGroupRequest} req
|
|
248
249
|
* @param {function(string, DeleteAutoScalingGroupResponse):void} cb
|
|
249
250
|
* @public
|
|
@@ -254,11 +255,12 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
254
255
|
}
|
|
255
256
|
|
|
256
257
|
/**
|
|
257
|
-
* This API is used to add the specified number of instances to
|
|
258
|
-
*
|
|
258
|
+
* This API is used to add the specified number of instances to a scaling group. It returns the scaling activity ID `ActivityId`.
|
|
259
|
+
* u200dMake sure that there are no ongoing scaling tasks.
|
|
259
260
|
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
|
|
260
|
-
* The
|
|
261
|
-
* If
|
|
261
|
+
* The total number of instances after this action cannot exceed the maximum capacity.
|
|
262
|
+
* If a scale-out action failed or partially succeeded, only the number of successfully created instances is added to the number of desired capacity.
|
|
263
|
+
* If the allocation policy is `SPOT_MIXED`, there may be multiple scaling activities triggered for one scaling task. u200dIn this case, the first activity ID (`ActivityId`) is returned.
|
|
262
264
|
* @param {ScaleOutInstancesRequest} req
|
|
263
265
|
* @param {function(string, ScaleOutInstancesResponse):void} cb
|
|
264
266
|
* @public
|
|
@@ -1176,6 +1176,45 @@ class CreateLaunchConfigurationResponse extends AbstractModel {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
|
+
/**
|
|
1180
|
+
* Information of the instances related to the current scaling activity.
|
|
1181
|
+
* @class
|
|
1182
|
+
*/
|
|
1183
|
+
class RelatedInstance extends AbstractModel {
|
|
1184
|
+
constructor(){
|
|
1185
|
+
super();
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Instance ID
|
|
1189
|
+
* @type {string || null}
|
|
1190
|
+
*/
|
|
1191
|
+
this.InstanceId = null;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Status of the instance in the scaling activity. Valid values:
|
|
1195
|
+
`INIT`: Initializing
|
|
1196
|
+
`RUNNING`: u200dProcessing u200dthe instance
|
|
1197
|
+
`SUCCESSFUL`: Task succeeded on the instance
|
|
1198
|
+
`FAILED`: Task failed on the instance
|
|
1199
|
+
* @type {string || null}
|
|
1200
|
+
*/
|
|
1201
|
+
this.InstanceStatus = null;
|
|
1202
|
+
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* @private
|
|
1207
|
+
*/
|
|
1208
|
+
deserialize(params) {
|
|
1209
|
+
if (!params) {
|
|
1210
|
+
return;
|
|
1211
|
+
}
|
|
1212
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
1213
|
+
this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
|
|
1214
|
+
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1179
1218
|
/**
|
|
1180
1219
|
* Suggestions for scaling group configurations.
|
|
1181
1220
|
* @class
|
|
@@ -1202,6 +1241,14 @@ class Advice extends AbstractModel {
|
|
|
1202
1241
|
*/
|
|
1203
1242
|
this.Solution = null;
|
|
1204
1243
|
|
|
1244
|
+
/**
|
|
1245
|
+
* u200dRisk level of the scaling group configuration. Valid values: <br>
|
|
1246
|
+
<li>WARNING<br>
|
|
1247
|
+
<li>CRITICAL<br>
|
|
1248
|
+
* @type {string || null}
|
|
1249
|
+
*/
|
|
1250
|
+
this.Level = null;
|
|
1251
|
+
|
|
1205
1252
|
}
|
|
1206
1253
|
|
|
1207
1254
|
/**
|
|
@@ -1214,6 +1261,7 @@ class Advice extends AbstractModel {
|
|
|
1214
1261
|
this.Problem = 'Problem' in params ? params.Problem : null;
|
|
1215
1262
|
this.Detail = 'Detail' in params ? params.Detail : null;
|
|
1216
1263
|
this.Solution = 'Solution' in params ? params.Solution : null;
|
|
1264
|
+
this.Level = 'Level' in params ? params.Level : null;
|
|
1217
1265
|
|
|
1218
1266
|
}
|
|
1219
1267
|
}
|
|
@@ -3934,8 +3982,8 @@ class ModifyScalingPolicyRequest extends AbstractModel {
|
|
|
3934
3982
|
this.DisableScaleIn = null;
|
|
3935
3983
|
|
|
3936
3984
|
/**
|
|
3937
|
-
*
|
|
3938
|
-
|
|
3985
|
+
* This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead.
|
|
3986
|
+
Notification group ID, which is the set of user group IDs.
|
|
3939
3987
|
* @type {Array.<string> || null}
|
|
3940
3988
|
*/
|
|
3941
3989
|
this.NotificationUserGroupIds = null;
|
|
@@ -7664,7 +7712,7 @@ class Activity extends AbstractModel {
|
|
|
7664
7712
|
this.CreatedTime = null;
|
|
7665
7713
|
|
|
7666
7714
|
/**
|
|
7667
|
-
*
|
|
7715
|
+
* This parameter has been deprecated.
|
|
7668
7716
|
* @type {Array.<ActivtyRelatedInstance> || null}
|
|
7669
7717
|
*/
|
|
7670
7718
|
this.ActivityRelatedInstanceSet = null;
|
|
@@ -7693,6 +7741,12 @@ class Activity extends AbstractModel {
|
|
|
7693
7741
|
*/
|
|
7694
7742
|
this.InvocationResultSet = null;
|
|
7695
7743
|
|
|
7744
|
+
/**
|
|
7745
|
+
* Information set of the instances related to the scaling activity.
|
|
7746
|
+
* @type {Array.<RelatedInstance> || null}
|
|
7747
|
+
*/
|
|
7748
|
+
this.RelatedInstanceSet = null;
|
|
7749
|
+
|
|
7696
7750
|
}
|
|
7697
7751
|
|
|
7698
7752
|
/**
|
|
@@ -7750,6 +7804,15 @@ class Activity extends AbstractModel {
|
|
|
7750
7804
|
}
|
|
7751
7805
|
}
|
|
7752
7806
|
|
|
7807
|
+
if (params.RelatedInstanceSet) {
|
|
7808
|
+
this.RelatedInstanceSet = new Array();
|
|
7809
|
+
for (let z in params.RelatedInstanceSet) {
|
|
7810
|
+
let obj = new RelatedInstance();
|
|
7811
|
+
obj.deserialize(params.RelatedInstanceSet[z]);
|
|
7812
|
+
this.RelatedInstanceSet.push(obj);
|
|
7813
|
+
}
|
|
7814
|
+
}
|
|
7815
|
+
|
|
7753
7816
|
}
|
|
7754
7817
|
}
|
|
7755
7818
|
|
|
@@ -8245,6 +8308,7 @@ module.exports = {
|
|
|
8245
8308
|
LaunchConfiguration: LaunchConfiguration,
|
|
8246
8309
|
DescribeAccountLimitsResponse: DescribeAccountLimitsResponse,
|
|
8247
8310
|
CreateLaunchConfigurationResponse: CreateLaunchConfigurationResponse,
|
|
8311
|
+
RelatedInstance: RelatedInstance,
|
|
8248
8312
|
Advice: Advice,
|
|
8249
8313
|
CreateLifecycleHookResponse: CreateLifecycleHookResponse,
|
|
8250
8314
|
ClearLaunchConfigurationAttributesResponse: ClearLaunchConfigurationAttributesResponse,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.748";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -42,6 +42,7 @@ const ListKeyDetailResponse = models.ListKeyDetailResponse;
|
|
|
42
42
|
const GenerateDataKeyRequest = models.GenerateDataKeyRequest;
|
|
43
43
|
const UpdateAliasResponse = models.UpdateAliasResponse;
|
|
44
44
|
const ScheduleKeyDeletionResponse = models.ScheduleKeyDeletionResponse;
|
|
45
|
+
const PostQuantumCryptoVerifyRequest = models.PostQuantumCryptoVerifyRequest;
|
|
45
46
|
const GenerateRandomResponse = models.GenerateRandomResponse;
|
|
46
47
|
const DescribeKeysRequest = models.DescribeKeysRequest;
|
|
47
48
|
const GetPublicKeyRequest = models.GetPublicKeyRequest;
|
|
@@ -93,6 +94,8 @@ const KeyMetadata = models.KeyMetadata;
|
|
|
93
94
|
const CancelKeyArchiveResponse = models.CancelKeyArchiveResponse;
|
|
94
95
|
const DecryptRequest = models.DecryptRequest;
|
|
95
96
|
const DescribeWhiteBoxKeyDetailsRequest = models.DescribeWhiteBoxKeyDetailsRequest;
|
|
97
|
+
const PostQuantumCryptoSignRequest = models.PostQuantumCryptoSignRequest;
|
|
98
|
+
const PostQuantumCryptoDecryptRequest = models.PostQuantumCryptoDecryptRequest;
|
|
96
99
|
const AsymmetricRsaDecryptResponse = models.AsymmetricRsaDecryptResponse;
|
|
97
100
|
const CancelKeyDeletionResponse = models.CancelKeyDeletionResponse;
|
|
98
101
|
const DisableKeysRequest = models.DisableKeysRequest;
|
|
@@ -105,17 +108,22 @@ const EnableKeysResponse = models.EnableKeysResponse;
|
|
|
105
108
|
const SignByAsymmetricKeyRequest = models.SignByAsymmetricKeyRequest;
|
|
106
109
|
const DescribeWhiteBoxDeviceFingerprintsRequest = models.DescribeWhiteBoxDeviceFingerprintsRequest;
|
|
107
110
|
const GetRegionsRequest = models.GetRegionsRequest;
|
|
111
|
+
const PostQuantumCryptoEncryptResponse = models.PostQuantumCryptoEncryptResponse;
|
|
108
112
|
const EncryptByWhiteBoxRequest = models.EncryptByWhiteBoxRequest;
|
|
109
113
|
const GenerateRandomRequest = models.GenerateRandomRequest;
|
|
110
114
|
const ScheduleKeyDeletionRequest = models.ScheduleKeyDeletionRequest;
|
|
115
|
+
const PostQuantumCryptoEncryptRequest = models.PostQuantumCryptoEncryptRequest;
|
|
111
116
|
const DisableKeyRequest = models.DisableKeyRequest;
|
|
112
117
|
const ImportKeyMaterialResponse = models.ImportKeyMaterialResponse;
|
|
113
118
|
const GetPublicKeyResponse = models.GetPublicKeyResponse;
|
|
114
119
|
const BindCloudResourceRequest = models.BindCloudResourceRequest;
|
|
115
120
|
const TagFilter = models.TagFilter;
|
|
121
|
+
const PostQuantumCryptoSignResponse = models.PostQuantumCryptoSignResponse;
|
|
116
122
|
const SignByAsymmetricKeyResponse = models.SignByAsymmetricKeyResponse;
|
|
123
|
+
const PostQuantumCryptoVerifyResponse = models.PostQuantumCryptoVerifyResponse;
|
|
117
124
|
const DescribeWhiteBoxDecryptKeyResponse = models.DescribeWhiteBoxDecryptKeyResponse;
|
|
118
125
|
const DescribeWhiteBoxDeviceFingerprintsResponse = models.DescribeWhiteBoxDeviceFingerprintsResponse;
|
|
126
|
+
const PostQuantumCryptoDecryptResponse = models.PostQuantumCryptoDecryptResponse;
|
|
119
127
|
const UpdateKeyDescriptionRequest = models.UpdateKeyDescriptionRequest;
|
|
120
128
|
const UnbindCloudResourceResponse = models.UnbindCloudResourceResponse;
|
|
121
129
|
const DescribeKeyResponse = models.DescribeKeyResponse;
|
|
@@ -133,6 +141,17 @@ class KmsClient extends AbstractClient {
|
|
|
133
141
|
super("kms.tencentcloudapi.com", "2019-01-18", credential, region, profile);
|
|
134
142
|
}
|
|
135
143
|
|
|
144
|
+
/**
|
|
145
|
+
* This API is used to verify a signature u200dusing PQC.
|
|
146
|
+
* @param {PostQuantumCryptoVerifyRequest} req
|
|
147
|
+
* @param {function(string, PostQuantumCryptoVerifyResponse):void} cb
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
PostQuantumCryptoVerify(req, cb) {
|
|
151
|
+
let resp = new PostQuantumCryptoVerifyResponse();
|
|
152
|
+
this.request("PostQuantumCryptoVerify", req, resp, cb);
|
|
153
|
+
}
|
|
154
|
+
|
|
136
155
|
/**
|
|
137
156
|
* This API is used to encrypt any data up to 4KB. It can be used to encrypt database passwords, RSA Key, or other small sensitive information. For application data encryption, use the DataKey generated by GenerateDataKey to perform local data encryption and decryption operations
|
|
138
157
|
* @param {EncryptRequest} req
|
|
@@ -388,6 +407,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
388
407
|
this.request("GenerateRandom", req, resp, cb);
|
|
389
408
|
}
|
|
390
409
|
|
|
410
|
+
/**
|
|
411
|
+
* u200dThis API u200dis used to decrypt ciphertext using post-quantum cryptography (PQC) algorithm, and return the plaintext.
|
|
412
|
+
* @param {PostQuantumCryptoDecryptRequest} req
|
|
413
|
+
* @param {function(string, PostQuantumCryptoDecryptResponse):void} cb
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
416
|
+
PostQuantumCryptoDecrypt(req, cb) {
|
|
417
|
+
let resp = new PostQuantumCryptoDecryptResponse();
|
|
418
|
+
this.request("PostQuantumCryptoDecrypt", req, resp, cb);
|
|
419
|
+
}
|
|
420
|
+
|
|
391
421
|
/**
|
|
392
422
|
* This API is used to overwrite the device fingerprint information of a specified key.
|
|
393
423
|
* @param {OverwriteWhiteBoxDeviceFingerprintsRequest} req
|
|
@@ -564,6 +594,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
564
594
|
this.request("CreateWhiteBoxKey", req, resp, cb);
|
|
565
595
|
}
|
|
566
596
|
|
|
597
|
+
/**
|
|
598
|
+
* u200dThis API u200dis used to encrypt using PQC. It supports up to 4 KB of data. It is applicable for encryption of database passwords, RSA keys, or other sensitive information. You can also apply `DataKey` generated by API `GenerateDataKey` to encrypt or decrypt your local data.
|
|
599
|
+
* @param {PostQuantumCryptoEncryptRequest} req
|
|
600
|
+
* @param {function(string, PostQuantumCryptoEncryptResponse):void} cb
|
|
601
|
+
* @public
|
|
602
|
+
*/
|
|
603
|
+
PostQuantumCryptoEncrypt(req, cb) {
|
|
604
|
+
let resp = new PostQuantumCryptoEncryptResponse();
|
|
605
|
+
this.request("PostQuantumCryptoEncrypt", req, resp, cb);
|
|
606
|
+
}
|
|
607
|
+
|
|
567
608
|
/**
|
|
568
609
|
* This API is used to enable a white-box key.
|
|
569
610
|
* @param {EnableWhiteBoxKeyRequest} req
|
|
@@ -652,6 +693,17 @@ Note that only when KeyUsage is `ASYMMETRIC_SIGN_VERIFY_${ALGORITHM}` (e.g., `AS
|
|
|
652
693
|
this.request("DescribeWhiteBoxDecryptKey", req, resp, cb);
|
|
653
694
|
}
|
|
654
695
|
|
|
696
|
+
/**
|
|
697
|
+
* This API is used to sign u200dusing PQC.
|
|
698
|
+
* @param {PostQuantumCryptoSignRequest} req
|
|
699
|
+
* @param {function(string, PostQuantumCryptoSignResponse):void} cb
|
|
700
|
+
* @public
|
|
701
|
+
*/
|
|
702
|
+
PostQuantumCryptoSign(req, cb) {
|
|
703
|
+
let resp = new PostQuantumCryptoSignResponse();
|
|
704
|
+
this.request("PostQuantumCryptoSign", req, resp, cb);
|
|
705
|
+
}
|
|
706
|
+
|
|
655
707
|
/**
|
|
656
708
|
* This API is used to return all regions support KMS service.
|
|
657
709
|
* @param {GetRegionsRequest} req
|
|
@@ -1094,6 +1094,48 @@ class ScheduleKeyDeletionResponse extends AbstractModel {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* PostQuantumCryptoVerify request structure.
|
|
1099
|
+
* @class
|
|
1100
|
+
*/
|
|
1101
|
+
class PostQuantumCryptoVerifyRequest extends AbstractModel {
|
|
1102
|
+
constructor(){
|
|
1103
|
+
super();
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Unique ID of a key
|
|
1107
|
+
* @type {string || null}
|
|
1108
|
+
*/
|
|
1109
|
+
this.KeyId = null;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Signature value, which is generated by calling the `PostQuantumCryptoSign` API.
|
|
1113
|
+
* @type {string || null}
|
|
1114
|
+
*/
|
|
1115
|
+
this.SignatureValue = null;
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Original message text before Base64 encoding. It cannot exceed 4096 bytes.
|
|
1119
|
+
* @type {string || null}
|
|
1120
|
+
*/
|
|
1121
|
+
this.Message = null;
|
|
1122
|
+
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* @private
|
|
1127
|
+
*/
|
|
1128
|
+
deserialize(params) {
|
|
1129
|
+
if (!params) {
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
this.KeyId = 'KeyId' in params ? params.KeyId : null;
|
|
1133
|
+
this.SignatureValue = 'SignatureValue' in params ? params.SignatureValue : null;
|
|
1134
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
1135
|
+
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1097
1139
|
/**
|
|
1098
1140
|
* GenerateRandom response structure.
|
|
1099
1141
|
* @class
|
|
@@ -3235,6 +3277,83 @@ class DescribeWhiteBoxKeyDetailsRequest extends AbstractModel {
|
|
|
3235
3277
|
}
|
|
3236
3278
|
}
|
|
3237
3279
|
|
|
3280
|
+
/**
|
|
3281
|
+
* PostQuantumCryptoSign request structure.
|
|
3282
|
+
* @class
|
|
3283
|
+
*/
|
|
3284
|
+
class PostQuantumCryptoSignRequest extends AbstractModel {
|
|
3285
|
+
constructor(){
|
|
3286
|
+
super();
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* Original message text before Base64 encoding. It cannot exceed 4096 bytes.
|
|
3290
|
+
* @type {string || null}
|
|
3291
|
+
*/
|
|
3292
|
+
this.Message = null;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Unique ID of a key
|
|
3296
|
+
* @type {string || null}
|
|
3297
|
+
*/
|
|
3298
|
+
this.KeyId = null;
|
|
3299
|
+
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* @private
|
|
3304
|
+
*/
|
|
3305
|
+
deserialize(params) {
|
|
3306
|
+
if (!params) {
|
|
3307
|
+
return;
|
|
3308
|
+
}
|
|
3309
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
3310
|
+
this.KeyId = 'KeyId' in params ? params.KeyId : null;
|
|
3311
|
+
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* PostQuantumCryptoDecrypt request structure.
|
|
3317
|
+
* @class
|
|
3318
|
+
*/
|
|
3319
|
+
class PostQuantumCryptoDecryptRequest extends AbstractModel {
|
|
3320
|
+
constructor(){
|
|
3321
|
+
super();
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* The ciphertext data to be decrypted.
|
|
3325
|
+
* @type {string || null}
|
|
3326
|
+
*/
|
|
3327
|
+
this.CiphertextBlob = null;
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* PEM-encoded public key (2048-bit RSA/SM2 key), which can be used to encrypt the `Plaintext` returned. If this field is left empty, the `Plaintext` will not be encrypted.
|
|
3331
|
+
* @type {string || null}
|
|
3332
|
+
*/
|
|
3333
|
+
this.EncryptionPublicKey = null;
|
|
3334
|
+
|
|
3335
|
+
/**
|
|
3336
|
+
* Asymmetric encryption algorithm. It is used in combination with `EncryptionPublicKey` to encrypt the returned data. u200dValues: `SM2` u200d(Return the ciphertext in the format of "C1C3C2"), `SM2_C1C3C2_ASN1` (Return the ciphertext in the format of "C1C3C2 ASN1"), `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1`, `RSAES_OAEP_SHA_256`. It defaults to `SM2` if it's not specified.
|
|
3337
|
+
* @type {string || null}
|
|
3338
|
+
*/
|
|
3339
|
+
this.EncryptionAlgorithm = null;
|
|
3340
|
+
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* @private
|
|
3345
|
+
*/
|
|
3346
|
+
deserialize(params) {
|
|
3347
|
+
if (!params) {
|
|
3348
|
+
return;
|
|
3349
|
+
}
|
|
3350
|
+
this.CiphertextBlob = 'CiphertextBlob' in params ? params.CiphertextBlob : null;
|
|
3351
|
+
this.EncryptionPublicKey = 'EncryptionPublicKey' in params ? params.EncryptionPublicKey : null;
|
|
3352
|
+
this.EncryptionAlgorithm = 'EncryptionAlgorithm' in params ? params.EncryptionAlgorithm : null;
|
|
3353
|
+
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3238
3357
|
/**
|
|
3239
3358
|
* AsymmetricRsaDecrypt response structure.
|
|
3240
3359
|
* @class
|
|
@@ -3635,6 +3754,48 @@ class GetRegionsRequest extends AbstractModel {
|
|
|
3635
3754
|
}
|
|
3636
3755
|
}
|
|
3637
3756
|
|
|
3757
|
+
/**
|
|
3758
|
+
* PostQuantumCryptoEncrypt response structure.
|
|
3759
|
+
* @class
|
|
3760
|
+
*/
|
|
3761
|
+
class PostQuantumCryptoEncryptResponse extends AbstractModel {
|
|
3762
|
+
constructor(){
|
|
3763
|
+
super();
|
|
3764
|
+
|
|
3765
|
+
/**
|
|
3766
|
+
* Base64-encoded ciphertext after encryption. This field contains the information of ciphertext and keys. It is not the result of encrypting the plaintext. To get the plaintext, you need to pass in this field to the PostQuantumCryptoDecrypt API.
|
|
3767
|
+
* @type {string || null}
|
|
3768
|
+
*/
|
|
3769
|
+
this.CiphertextBlob = null;
|
|
3770
|
+
|
|
3771
|
+
/**
|
|
3772
|
+
* Globally unique ID of the CMK used for encryption
|
|
3773
|
+
* @type {string || null}
|
|
3774
|
+
*/
|
|
3775
|
+
this.KeyId = null;
|
|
3776
|
+
|
|
3777
|
+
/**
|
|
3778
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
3779
|
+
* @type {string || null}
|
|
3780
|
+
*/
|
|
3781
|
+
this.RequestId = null;
|
|
3782
|
+
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* @private
|
|
3787
|
+
*/
|
|
3788
|
+
deserialize(params) {
|
|
3789
|
+
if (!params) {
|
|
3790
|
+
return;
|
|
3791
|
+
}
|
|
3792
|
+
this.CiphertextBlob = 'CiphertextBlob' in params ? params.CiphertextBlob : null;
|
|
3793
|
+
this.KeyId = 'KeyId' in params ? params.KeyId : null;
|
|
3794
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3795
|
+
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3638
3799
|
/**
|
|
3639
3800
|
* EncryptByWhiteBox request structure.
|
|
3640
3801
|
* @class
|
|
@@ -3740,6 +3901,41 @@ class ScheduleKeyDeletionRequest extends AbstractModel {
|
|
|
3740
3901
|
}
|
|
3741
3902
|
}
|
|
3742
3903
|
|
|
3904
|
+
/**
|
|
3905
|
+
* PostQuantumCryptoEncrypt request structure.
|
|
3906
|
+
* @class
|
|
3907
|
+
*/
|
|
3908
|
+
class PostQuantumCryptoEncryptRequest extends AbstractModel {
|
|
3909
|
+
constructor(){
|
|
3910
|
+
super();
|
|
3911
|
+
|
|
3912
|
+
/**
|
|
3913
|
+
* Globally unique ID of the CMK generated by calling the `CreateKey` API
|
|
3914
|
+
* @type {string || null}
|
|
3915
|
+
*/
|
|
3916
|
+
this.KeyId = null;
|
|
3917
|
+
|
|
3918
|
+
/**
|
|
3919
|
+
* Encrypted plaintext data. This field must be Base64-encoded. The maximum size of the original data is 4 KB.
|
|
3920
|
+
* @type {string || null}
|
|
3921
|
+
*/
|
|
3922
|
+
this.PlainText = null;
|
|
3923
|
+
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* @private
|
|
3928
|
+
*/
|
|
3929
|
+
deserialize(params) {
|
|
3930
|
+
if (!params) {
|
|
3931
|
+
return;
|
|
3932
|
+
}
|
|
3933
|
+
this.KeyId = 'KeyId' in params ? params.KeyId : null;
|
|
3934
|
+
this.PlainText = 'PlainText' in params ? params.PlainText : null;
|
|
3935
|
+
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3743
3939
|
/**
|
|
3744
3940
|
* DisableKey request structure.
|
|
3745
3941
|
* @class
|
|
@@ -3922,6 +4118,41 @@ class TagFilter extends AbstractModel {
|
|
|
3922
4118
|
}
|
|
3923
4119
|
}
|
|
3924
4120
|
|
|
4121
|
+
/**
|
|
4122
|
+
* PostQuantumCryptoSign response structure.
|
|
4123
|
+
* @class
|
|
4124
|
+
*/
|
|
4125
|
+
class PostQuantumCryptoSignResponse extends AbstractModel {
|
|
4126
|
+
constructor(){
|
|
4127
|
+
super();
|
|
4128
|
+
|
|
4129
|
+
/**
|
|
4130
|
+
* Base64-encoded signature You can use PostQuantumCryptoVerify to verify the signature value.
|
|
4131
|
+
* @type {string || null}
|
|
4132
|
+
*/
|
|
4133
|
+
this.Signature = null;
|
|
4134
|
+
|
|
4135
|
+
/**
|
|
4136
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
4137
|
+
* @type {string || null}
|
|
4138
|
+
*/
|
|
4139
|
+
this.RequestId = null;
|
|
4140
|
+
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* @private
|
|
4145
|
+
*/
|
|
4146
|
+
deserialize(params) {
|
|
4147
|
+
if (!params) {
|
|
4148
|
+
return;
|
|
4149
|
+
}
|
|
4150
|
+
this.Signature = 'Signature' in params ? params.Signature : null;
|
|
4151
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4152
|
+
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
|
|
3925
4156
|
/**
|
|
3926
4157
|
* SignByAsymmetricKey response structure.
|
|
3927
4158
|
* @class
|
|
@@ -3957,6 +4188,41 @@ class SignByAsymmetricKeyResponse extends AbstractModel {
|
|
|
3957
4188
|
}
|
|
3958
4189
|
}
|
|
3959
4190
|
|
|
4191
|
+
/**
|
|
4192
|
+
* PostQuantumCryptoVerify response structure.
|
|
4193
|
+
* @class
|
|
4194
|
+
*/
|
|
4195
|
+
class PostQuantumCryptoVerifyResponse extends AbstractModel {
|
|
4196
|
+
constructor(){
|
|
4197
|
+
super();
|
|
4198
|
+
|
|
4199
|
+
/**
|
|
4200
|
+
* Verify whether the signature is valid. `true`: The signature is valid. `false`: The signature is invalid.
|
|
4201
|
+
* @type {boolean || null}
|
|
4202
|
+
*/
|
|
4203
|
+
this.SignatureValid = null;
|
|
4204
|
+
|
|
4205
|
+
/**
|
|
4206
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
4207
|
+
* @type {string || null}
|
|
4208
|
+
*/
|
|
4209
|
+
this.RequestId = null;
|
|
4210
|
+
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
/**
|
|
4214
|
+
* @private
|
|
4215
|
+
*/
|
|
4216
|
+
deserialize(params) {
|
|
4217
|
+
if (!params) {
|
|
4218
|
+
return;
|
|
4219
|
+
}
|
|
4220
|
+
this.SignatureValid = 'SignatureValid' in params ? params.SignatureValid : null;
|
|
4221
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4222
|
+
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
|
|
3960
4226
|
/**
|
|
3961
4227
|
* DescribeWhiteBoxDecryptKey response structure.
|
|
3962
4228
|
* @class
|
|
@@ -4035,6 +4301,49 @@ class DescribeWhiteBoxDeviceFingerprintsResponse extends AbstractModel {
|
|
|
4035
4301
|
}
|
|
4036
4302
|
}
|
|
4037
4303
|
|
|
4304
|
+
/**
|
|
4305
|
+
* PostQuantumCryptoDecrypt response structure.
|
|
4306
|
+
* @class
|
|
4307
|
+
*/
|
|
4308
|
+
class PostQuantumCryptoDecryptResponse extends AbstractModel {
|
|
4309
|
+
constructor(){
|
|
4310
|
+
super();
|
|
4311
|
+
|
|
4312
|
+
/**
|
|
4313
|
+
* Globally unique CMK ID
|
|
4314
|
+
* @type {string || null}
|
|
4315
|
+
*/
|
|
4316
|
+
this.KeyId = null;
|
|
4317
|
+
|
|
4318
|
+
/**
|
|
4319
|
+
* If `EncryptionPublicKey` is left empty, a Base64-encoded ciphertext will be returned. To get the plaintext, you need to decode the ciphertext first.
|
|
4320
|
+
If `EncryptionPublicKey` is passed in, this field u200dcontains the Base64-encoded ciphertext after asymmetric encryption by using the public key in `EncryptionPublicKey` To get the plaintext, you need to first decode the Base64 format, and then decrypwith the private key corresponding with the public key. The private key is uploaded by the user.
|
|
4321
|
+
* @type {string || null}
|
|
4322
|
+
*/
|
|
4323
|
+
this.PlainText = null;
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
4327
|
+
* @type {string || null}
|
|
4328
|
+
*/
|
|
4329
|
+
this.RequestId = null;
|
|
4330
|
+
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
/**
|
|
4334
|
+
* @private
|
|
4335
|
+
*/
|
|
4336
|
+
deserialize(params) {
|
|
4337
|
+
if (!params) {
|
|
4338
|
+
return;
|
|
4339
|
+
}
|
|
4340
|
+
this.KeyId = 'KeyId' in params ? params.KeyId : null;
|
|
4341
|
+
this.PlainText = 'PlainText' in params ? params.PlainText : null;
|
|
4342
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4343
|
+
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4038
4347
|
/**
|
|
4039
4348
|
* UpdateKeyDescription request structure.
|
|
4040
4349
|
* @class
|
|
@@ -4222,6 +4531,7 @@ module.exports = {
|
|
|
4222
4531
|
GenerateDataKeyRequest: GenerateDataKeyRequest,
|
|
4223
4532
|
UpdateAliasResponse: UpdateAliasResponse,
|
|
4224
4533
|
ScheduleKeyDeletionResponse: ScheduleKeyDeletionResponse,
|
|
4534
|
+
PostQuantumCryptoVerifyRequest: PostQuantumCryptoVerifyRequest,
|
|
4225
4535
|
GenerateRandomResponse: GenerateRandomResponse,
|
|
4226
4536
|
DescribeKeysRequest: DescribeKeysRequest,
|
|
4227
4537
|
GetPublicKeyRequest: GetPublicKeyRequest,
|
|
@@ -4273,6 +4583,8 @@ module.exports = {
|
|
|
4273
4583
|
CancelKeyArchiveResponse: CancelKeyArchiveResponse,
|
|
4274
4584
|
DecryptRequest: DecryptRequest,
|
|
4275
4585
|
DescribeWhiteBoxKeyDetailsRequest: DescribeWhiteBoxKeyDetailsRequest,
|
|
4586
|
+
PostQuantumCryptoSignRequest: PostQuantumCryptoSignRequest,
|
|
4587
|
+
PostQuantumCryptoDecryptRequest: PostQuantumCryptoDecryptRequest,
|
|
4276
4588
|
AsymmetricRsaDecryptResponse: AsymmetricRsaDecryptResponse,
|
|
4277
4589
|
CancelKeyDeletionResponse: CancelKeyDeletionResponse,
|
|
4278
4590
|
DisableKeysRequest: DisableKeysRequest,
|
|
@@ -4285,17 +4597,22 @@ module.exports = {
|
|
|
4285
4597
|
SignByAsymmetricKeyRequest: SignByAsymmetricKeyRequest,
|
|
4286
4598
|
DescribeWhiteBoxDeviceFingerprintsRequest: DescribeWhiteBoxDeviceFingerprintsRequest,
|
|
4287
4599
|
GetRegionsRequest: GetRegionsRequest,
|
|
4600
|
+
PostQuantumCryptoEncryptResponse: PostQuantumCryptoEncryptResponse,
|
|
4288
4601
|
EncryptByWhiteBoxRequest: EncryptByWhiteBoxRequest,
|
|
4289
4602
|
GenerateRandomRequest: GenerateRandomRequest,
|
|
4290
4603
|
ScheduleKeyDeletionRequest: ScheduleKeyDeletionRequest,
|
|
4604
|
+
PostQuantumCryptoEncryptRequest: PostQuantumCryptoEncryptRequest,
|
|
4291
4605
|
DisableKeyRequest: DisableKeyRequest,
|
|
4292
4606
|
ImportKeyMaterialResponse: ImportKeyMaterialResponse,
|
|
4293
4607
|
GetPublicKeyResponse: GetPublicKeyResponse,
|
|
4294
4608
|
BindCloudResourceRequest: BindCloudResourceRequest,
|
|
4295
4609
|
TagFilter: TagFilter,
|
|
4610
|
+
PostQuantumCryptoSignResponse: PostQuantumCryptoSignResponse,
|
|
4296
4611
|
SignByAsymmetricKeyResponse: SignByAsymmetricKeyResponse,
|
|
4612
|
+
PostQuantumCryptoVerifyResponse: PostQuantumCryptoVerifyResponse,
|
|
4297
4613
|
DescribeWhiteBoxDecryptKeyResponse: DescribeWhiteBoxDecryptKeyResponse,
|
|
4298
4614
|
DescribeWhiteBoxDeviceFingerprintsResponse: DescribeWhiteBoxDeviceFingerprintsResponse,
|
|
4615
|
+
PostQuantumCryptoDecryptResponse: PostQuantumCryptoDecryptResponse,
|
|
4299
4616
|
UpdateKeyDescriptionRequest: UpdateKeyDescriptionRequest,
|
|
4300
4617
|
UnbindCloudResourceResponse: UnbindCloudResourceResponse,
|
|
4301
4618
|
DescribeKeyResponse: DescribeKeyResponse,
|
|
@@ -5672,7 +5672,7 @@ class DescribeReplicationGroupRequest extends AbstractModel {
|
|
|
5672
5672
|
this.GroupId = null;
|
|
5673
5673
|
|
|
5674
5674
|
/**
|
|
5675
|
-
* Keyword for fuzzy query, which can be a replication group ID or name. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get
|
|
5675
|
+
* Keyword for fuzzy query, which can be a replication group ID or name. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get them in the global replication group list.
|
|
5676
5676
|
* @type {string || null}
|
|
5677
5677
|
*/
|
|
5678
5678
|
this.SearchKey = null;
|
|
@@ -7450,7 +7450,7 @@ class DescribeTaskInfoResponse extends AbstractModel {
|
|
|
7450
7450
|
* Task status. Valid values:
|
|
7451
7451
|
- `preparing`: To be run
|
|
7452
7452
|
- `running`: Running
|
|
7453
|
-
- `succeed`:
|
|
7453
|
+
- `succeed`: Succeeded
|
|
7454
7454
|
- `failed`: Failed
|
|
7455
7455
|
- `Error`: Error occurred while running
|
|
7456
7456
|
* @type {string || null}
|
|
@@ -7464,7 +7464,7 @@ class DescribeTaskInfoResponse extends AbstractModel {
|
|
|
7464
7464
|
this.StartTime = null;
|
|
7465
7465
|
|
|
7466
7466
|
/**
|
|
7467
|
-
* Task type, including `Create`, `Configure`,
|
|
7467
|
+
* Task type, including `Create`, `Configure`, `Disable Instance`, `Clear Instance`, `Reset Password`, `Upgrade Version`, `Back up Instance`, `Modify Network`, `Migrate to New AZ` and `Promote to Master`.
|
|
7468
7468
|
* @type {string || null}
|
|
7469
7469
|
*/
|
|
7470
7470
|
this.TaskType = null;
|
|
@@ -7476,7 +7476,7 @@ class DescribeTaskInfoResponse extends AbstractModel {
|
|
|
7476
7476
|
this.InstanceId = null;
|
|
7477
7477
|
|
|
7478
7478
|
/**
|
|
7479
|
-
* Message returned by task execution, which will be
|
|
7479
|
+
* Message returned by task execution, which will be an error message when execution fails or be empty when the status is `running `or `succeed-`.
|
|
7480
7480
|
* @type {string || null}
|
|
7481
7481
|
*/
|
|
7482
7482
|
this.TaskMessage = null;
|
|
@@ -11659,7 +11659,7 @@ class Instances extends AbstractModel {
|
|
|
11659
11659
|
|
|
11660
11660
|
/**
|
|
11661
11661
|
* Instance disk size
|
|
11662
|
-
Note:
|
|
11662
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
11663
11663
|
* @type {number || null}
|
|
11664
11664
|
*/
|
|
11665
11665
|
this.DiskSize = null;
|
|
@@ -329,7 +329,7 @@ class RedisClient extends AbstractClient {
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* This API is used to upgrade the instance to a later version or
|
|
332
|
+
* This API is used to upgrade the instance to a later version or to upgrade the current standard architecture to the cluster architecture.
|
|
333
333
|
* @param {UpgradeInstanceVersionRequest} req
|
|
334
334
|
* @param {function(string, UpgradeInstanceVersionResponse):void} cb
|
|
335
335
|
* @public
|