tencentcloud-sdk-nodejs-intl-en 3.0.504 → 3.0.505

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.504",
3
+ "version": "3.0.505",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.504";
1
+ const sdkVersion = "3.0.505";
2
2
  module.exports = sdkVersion
@@ -18,6 +18,7 @@ const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
19
  const ModifyClusterNameRequest = models.ModifyClusterNameRequest;
20
20
  const DescribeRollbackTimeRangeRequest = models.DescribeRollbackTimeRangeRequest;
21
+ const InquirePriceRenewRequest = models.InquirePriceRenewRequest;
21
22
  const ObjectTask = models.ObjectTask;
22
23
  const DescribeBackupConfigRequest = models.DescribeBackupConfigRequest;
23
24
  const DescribeAccountsRequest = models.DescribeAccountsRequest;
@@ -36,6 +37,7 @@ const ClusterInstanceDetail = models.ClusterInstanceDetail;
36
37
  const Account = models.Account;
37
38
  const IsolateInstanceResponse = models.IsolateInstanceResponse;
38
39
  const ModifyInstanceNameResponse = models.ModifyInstanceNameResponse;
40
+ const DescribeParamTemplatesRequest = models.DescribeParamTemplatesRequest;
39
41
  const PauseServerlessRequest = models.PauseServerlessRequest;
40
42
  const CreateClustersResponse = models.CreateClustersResponse;
41
43
  const SetRenewFlagRequest = models.SetRenewFlagRequest;
@@ -67,8 +69,10 @@ const CreateClustersRequest = models.CreateClustersRequest;
67
69
  const DescribeClustersResponse = models.DescribeClustersResponse;
68
70
  const DescribeBackupConfigResponse = models.DescribeBackupConfigResponse;
69
71
  const ModifyDBInstanceSecurityGroupsRequest = models.ModifyDBInstanceSecurityGroupsRequest;
72
+ const DescribeParamTemplatesResponse = models.DescribeParamTemplatesResponse;
70
73
  const AddInstancesResponse = models.AddInstancesResponse;
71
74
  const Addr = models.Addr;
75
+ const ParamTemplateListInfo = models.ParamTemplateListInfo;
72
76
  const DescribeProjectSecurityGroupsRequest = models.DescribeProjectSecurityGroupsRequest;
73
77
  const ModifyClusterParamResponse = models.ModifyClusterParamResponse;
74
78
  const SecurityGroup = models.SecurityGroup;
@@ -80,6 +84,7 @@ const DescribeInstanceSlowQueriesResponse = models.DescribeInstanceSlowQueriesRe
80
84
  const DescribeInstancesRequest = models.DescribeInstancesRequest;
81
85
  const DescribeBackupDownloadUrlResponse = models.DescribeBackupDownloadUrlResponse;
82
86
  const ResumeServerlessRequest = models.ResumeServerlessRequest;
87
+ const InquirePriceCreateRequest = models.InquirePriceCreateRequest;
83
88
  const BillingResourceInfo = models.BillingResourceInfo;
84
89
  const ModifyClusterNameResponse = models.ModifyClusterNameResponse;
85
90
  const DescribeInstanceSpecsRequest = models.DescribeInstanceSpecsRequest;
@@ -89,6 +94,7 @@ const CynosdbCluster = models.CynosdbCluster;
89
94
  const BinlogItem = models.BinlogItem;
90
95
  const OfflineClusterResponse = models.OfflineClusterResponse;
91
96
  const InstanceSpec = models.InstanceSpec;
97
+ const InquirePriceCreateResponse = models.InquirePriceCreateResponse;
92
98
  const SetRenewFlagResponse = models.SetRenewFlagResponse;
93
99
  const UpgradeInstanceRequest = models.UpgradeInstanceRequest;
94
100
  const DescribeMaintainPeriodResponse = models.DescribeMaintainPeriodResponse;
@@ -109,6 +115,7 @@ const DescribeBinlogSaveDaysResponse = models.DescribeBinlogSaveDaysResponse;
109
115
  const ModifyClusterParamRequest = models.ModifyClusterParamRequest;
110
116
  const DescribeAccountsResponse = models.DescribeAccountsResponse;
111
117
  const OfflineInstanceRequest = models.OfflineInstanceRequest;
118
+ const TradePrice = models.TradePrice;
112
119
  const DescribeInstanceSpecsResponse = models.DescribeInstanceSpecsResponse;
113
120
  const OfflineInstanceResponse = models.OfflineInstanceResponse;
114
121
  const ParamItem = models.ParamItem;
@@ -117,6 +124,7 @@ const ModifyBackupConfigRequest = models.ModifyBackupConfigRequest;
117
124
  const DescribeInstanceSlowQueriesRequest = models.DescribeInstanceSlowQueriesRequest;
118
125
  const DescribeBinlogsRequest = models.DescribeBinlogsRequest;
119
126
  const ModifyBackupConfigResponse = models.ModifyBackupConfigResponse;
127
+ const InquirePriceRenewResponse = models.InquirePriceRenewResponse;
120
128
 
121
129
 
122
130
  /**
@@ -184,6 +192,17 @@ class CynosdbClient extends AbstractClient {
184
192
  this.request("DescribeBackupConfig", req, resp, cb);
185
193
  }
186
194
 
195
+ /**
196
+ * This API is used to query all parameter templates information of a user-specified product.
197
+ * @param {DescribeParamTemplatesRequest} req
198
+ * @param {function(string, DescribeParamTemplatesResponse):void} cb
199
+ * @public
200
+ */
201
+ DescribeParamTemplates(req, cb) {
202
+ let resp = new DescribeParamTemplatesResponse();
203
+ this.request("DescribeParamTemplates", req, resp, cb);
204
+ }
205
+
187
206
  /**
188
207
  * This API is used to query instance groups.
189
208
  * @param {DescribeClusterInstanceGrpsRequest} req
@@ -207,14 +226,14 @@ class CynosdbClient extends AbstractClient {
207
226
  }
208
227
 
209
228
  /**
210
- * This API is used to pause a serverless cluster.
211
- * @param {PauseServerlessRequest} req
212
- * @param {function(string, PauseServerlessResponse):void} cb
229
+ * This API is used to rename a backup file.
230
+ * @param {ModifyBackupNameRequest} req
231
+ * @param {function(string, ModifyBackupNameResponse):void} cb
213
232
  * @public
214
233
  */
215
- PauseServerless(req, cb) {
216
- let resp = new PauseServerlessResponse();
217
- this.request("PauseServerless", req, resp, cb);
234
+ ModifyBackupName(req, cb) {
235
+ let resp = new ModifyBackupNameResponse();
236
+ this.request("ModifyBackupName", req, resp, cb);
218
237
  }
219
238
 
220
239
  /**
@@ -338,6 +357,17 @@ class CynosdbClient extends AbstractClient {
338
357
  this.request("IsolateCluster", req, resp, cb);
339
358
  }
340
359
 
360
+ /**
361
+ * This API is used to query the purchasable price of a cluster.
362
+ * @param {InquirePriceCreateRequest} req
363
+ * @param {function(string, InquirePriceCreateResponse):void} cb
364
+ * @public
365
+ */
366
+ InquirePriceCreate(req, cb) {
367
+ let resp = new InquirePriceCreateResponse();
368
+ this.request("InquirePriceCreate", req, resp, cb);
369
+ }
370
+
341
371
  /**
342
372
  * This API is used to query the download address of a cluster backup file.
343
373
  * @param {DescribeBackupDownloadUrlRequest} req
@@ -416,14 +446,14 @@ class CynosdbClient extends AbstractClient {
416
446
  }
417
447
 
418
448
  /**
419
- * This API is used to rename a backup file.
420
- * @param {ModifyBackupNameRequest} req
421
- * @param {function(string, ModifyBackupNameResponse):void} cb
449
+ * This API is used to query the renewal price of a cluster.
450
+ * @param {InquirePriceRenewRequest} req
451
+ * @param {function(string, InquirePriceRenewResponse):void} cb
422
452
  * @public
423
453
  */
424
- ModifyBackupName(req, cb) {
425
- let resp = new ModifyBackupNameResponse();
426
- this.request("ModifyBackupName", req, resp, cb);
454
+ InquirePriceRenew(req, cb) {
455
+ let resp = new InquirePriceRenewResponse();
456
+ this.request("InquirePriceRenew", req, resp, cb);
427
457
  }
428
458
 
429
459
  /**
@@ -459,6 +489,17 @@ class CynosdbClient extends AbstractClient {
459
489
  this.request("DescribeResourcesByDealName", req, resp, cb);
460
490
  }
461
491
 
492
+ /**
493
+ * This API is used to pause a serverless cluster.
494
+ * @param {PauseServerlessRequest} req
495
+ * @param {function(string, PauseServerlessResponse):void} cb
496
+ * @public
497
+ */
498
+ PauseServerless(req, cb) {
499
+ let resp = new PauseServerlessResponse();
500
+ this.request("PauseServerless", req, resp, cb);
501
+ }
502
+
462
503
  /**
463
504
  * This API is used to modify the parameters of a cluster.
464
505
  * @param {ModifyClusterParamRequest} req
@@ -79,6 +79,48 @@ class DescribeRollbackTimeRangeRequest extends AbstractModel {
79
79
  }
80
80
  }
81
81
 
82
+ /**
83
+ * InquirePriceRenew request structure.
84
+ * @class
85
+ */
86
+ class InquirePriceRenewRequest extends AbstractModel {
87
+ constructor(){
88
+ super();
89
+
90
+ /**
91
+ * Cluster ID
92
+ * @type {string || null}
93
+ */
94
+ this.ClusterId = null;
95
+
96
+ /**
97
+ * Validity period, which needs to be used together with `TimeUnit`.
98
+ * @type {number || null}
99
+ */
100
+ this.TimeSpan = null;
101
+
102
+ /**
103
+ * Unit of validity period, which needs to be used together with `TimeSpan`. Valid values: `d` (day), `m` (month).
104
+ * @type {string || null}
105
+ */
106
+ this.TimeUnit = null;
107
+
108
+ }
109
+
110
+ /**
111
+ * @private
112
+ */
113
+ deserialize(params) {
114
+ if (!params) {
115
+ return;
116
+ }
117
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
118
+ this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
119
+ this.TimeUnit = 'TimeUnit' in params ? params.TimeUnit : null;
120
+
121
+ }
122
+ }
123
+
82
124
  /**
83
125
  * Task information
84
126
  * @class
@@ -853,6 +895,27 @@ class ModifyInstanceNameResponse extends AbstractModel {
853
895
  }
854
896
  }
855
897
 
898
+ /**
899
+ * DescribeParamTemplates request structure.
900
+ * @class
901
+ */
902
+ class DescribeParamTemplatesRequest extends AbstractModel {
903
+ constructor(){
904
+ super();
905
+
906
+ }
907
+
908
+ /**
909
+ * @private
910
+ */
911
+ deserialize(params) {
912
+ if (!params) {
913
+ return;
914
+ }
915
+
916
+ }
917
+ }
918
+
856
919
  /**
857
920
  * PauseServerless request structure.
858
921
  * @class
@@ -2899,6 +2962,56 @@ class ModifyDBInstanceSecurityGroupsRequest extends AbstractModel {
2899
2962
  }
2900
2963
  }
2901
2964
 
2965
+ /**
2966
+ * DescribeParamTemplates response structure.
2967
+ * @class
2968
+ */
2969
+ class DescribeParamTemplatesResponse extends AbstractModel {
2970
+ constructor(){
2971
+ super();
2972
+
2973
+ /**
2974
+ * Number of parameter templates
2975
+ * @type {number || null}
2976
+ */
2977
+ this.TotalCount = null;
2978
+
2979
+ /**
2980
+ * Parameter template information
2981
+ * @type {Array.<ParamTemplateListInfo> || null}
2982
+ */
2983
+ this.Items = null;
2984
+
2985
+ /**
2986
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2987
+ * @type {string || null}
2988
+ */
2989
+ this.RequestId = null;
2990
+
2991
+ }
2992
+
2993
+ /**
2994
+ * @private
2995
+ */
2996
+ deserialize(params) {
2997
+ if (!params) {
2998
+ return;
2999
+ }
3000
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
3001
+
3002
+ if (params.Items) {
3003
+ this.Items = new Array();
3004
+ for (let z in params.Items) {
3005
+ let obj = new ParamTemplateListInfo();
3006
+ obj.deserialize(params.Items[z]);
3007
+ this.Items.push(obj);
3008
+ }
3009
+ }
3010
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3011
+
3012
+ }
3013
+ }
3014
+
2902
3015
  /**
2903
3016
  * AddInstances response structure.
2904
3017
  * @class
@@ -2994,6 +3107,55 @@ class Addr extends AbstractModel {
2994
3107
  }
2995
3108
  }
2996
3109
 
3110
+ /**
3111
+ * Parameter template information
3112
+ * @class
3113
+ */
3114
+ class ParamTemplateListInfo extends AbstractModel {
3115
+ constructor(){
3116
+ super();
3117
+
3118
+ /**
3119
+ * Parameter template ID
3120
+ * @type {number || null}
3121
+ */
3122
+ this.Id = null;
3123
+
3124
+ /**
3125
+ * Parameter template name
3126
+ * @type {string || null}
3127
+ */
3128
+ this.TemplateName = null;
3129
+
3130
+ /**
3131
+ * Parameter template description
3132
+ * @type {string || null}
3133
+ */
3134
+ this.TemplateDescription = null;
3135
+
3136
+ /**
3137
+ * Engine version
3138
+ * @type {string || null}
3139
+ */
3140
+ this.EngineVersion = null;
3141
+
3142
+ }
3143
+
3144
+ /**
3145
+ * @private
3146
+ */
3147
+ deserialize(params) {
3148
+ if (!params) {
3149
+ return;
3150
+ }
3151
+ this.Id = 'Id' in params ? params.Id : null;
3152
+ this.TemplateName = 'TemplateName' in params ? params.TemplateName : null;
3153
+ this.TemplateDescription = 'TemplateDescription' in params ? params.TemplateDescription : null;
3154
+ this.EngineVersion = 'EngineVersion' in params ? params.EngineVersion : null;
3155
+
3156
+ }
3157
+ }
3158
+
2997
3159
  /**
2998
3160
  * DescribeProjectSecurityGroups request structure.
2999
3161
  * @class
@@ -3539,6 +3701,97 @@ class ResumeServerlessRequest extends AbstractModel {
3539
3701
  }
3540
3702
  }
3541
3703
 
3704
+ /**
3705
+ * InquirePriceCreate request structure.
3706
+ * @class
3707
+ */
3708
+ class InquirePriceCreateRequest extends AbstractModel {
3709
+ constructor(){
3710
+ super();
3711
+
3712
+ /**
3713
+ * AZ
3714
+ * @type {string || null}
3715
+ */
3716
+ this.Zone = null;
3717
+
3718
+ /**
3719
+ * Purchase quantity
3720
+ * @type {number || null}
3721
+ */
3722
+ this.GoodsNum = null;
3723
+
3724
+ /**
3725
+ * Instance type for purchase. Valid values: `PREPAID`, `POSTPAID`, `SERVERLESS`.
3726
+ * @type {string || null}
3727
+ */
3728
+ this.InstancePayMode = null;
3729
+
3730
+ /**
3731
+ * Storage type for purchase. Valid values: `PREPAID`, `POSTPAID`.
3732
+ * @type {string || null}
3733
+ */
3734
+ this.StoragePayMode = null;
3735
+
3736
+ /**
3737
+ * Number of CPU cores, which is required when `InstancePayMode` is `PREPAID` or `POSTPAID`.
3738
+ * @type {number || null}
3739
+ */
3740
+ this.Cpu = null;
3741
+
3742
+ /**
3743
+ * Memory size in GB, which is required when `InstancePayMode` is `PREPAID` or `POSTPAID`.
3744
+ * @type {number || null}
3745
+ */
3746
+ this.Memory = null;
3747
+
3748
+ /**
3749
+ * CCU size, which is required when `InstancePayMode` is `SERVERLESS`.
3750
+ * @type {number || null}
3751
+ */
3752
+ this.Ccu = null;
3753
+
3754
+ /**
3755
+ * Storage size, which is required when `StoragePayMode` is `PREPAID`.
3756
+ * @type {number || null}
3757
+ */
3758
+ this.StorageLimit = null;
3759
+
3760
+ /**
3761
+ * Validity period, which is required when `InstancePayMode` is `PREPAID`.
3762
+ * @type {number || null}
3763
+ */
3764
+ this.TimeSpan = null;
3765
+
3766
+ /**
3767
+ * Duration unit, which is required when `InstancePayMode` is `PREPAID`. Valid values: `m` (month), `d` (day).
3768
+ * @type {string || null}
3769
+ */
3770
+ this.TimeUnit = null;
3771
+
3772
+ }
3773
+
3774
+ /**
3775
+ * @private
3776
+ */
3777
+ deserialize(params) {
3778
+ if (!params) {
3779
+ return;
3780
+ }
3781
+ this.Zone = 'Zone' in params ? params.Zone : null;
3782
+ this.GoodsNum = 'GoodsNum' in params ? params.GoodsNum : null;
3783
+ this.InstancePayMode = 'InstancePayMode' in params ? params.InstancePayMode : null;
3784
+ this.StoragePayMode = 'StoragePayMode' in params ? params.StoragePayMode : null;
3785
+ this.Cpu = 'Cpu' in params ? params.Cpu : null;
3786
+ this.Memory = 'Memory' in params ? params.Memory : null;
3787
+ this.Ccu = 'Ccu' in params ? params.Ccu : null;
3788
+ this.StorageLimit = 'StorageLimit' in params ? params.StorageLimit : null;
3789
+ this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
3790
+ this.TimeUnit = 'TimeUnit' in params ? params.TimeUnit : null;
3791
+
3792
+ }
3793
+ }
3794
+
3542
3795
  /**
3543
3796
  * Billable resource information
3544
3797
  * @class
@@ -4207,6 +4460,58 @@ class InstanceSpec extends AbstractModel {
4207
4460
  }
4208
4461
  }
4209
4462
 
4463
+ /**
4464
+ * InquirePriceCreate response structure.
4465
+ * @class
4466
+ */
4467
+ class InquirePriceCreateResponse extends AbstractModel {
4468
+ constructor(){
4469
+ super();
4470
+
4471
+ /**
4472
+ * Instance price
4473
+ * @type {TradePrice || null}
4474
+ */
4475
+ this.InstancePrice = null;
4476
+
4477
+ /**
4478
+ * Storage price
4479
+ * @type {TradePrice || null}
4480
+ */
4481
+ this.StoragePrice = null;
4482
+
4483
+ /**
4484
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4485
+ * @type {string || null}
4486
+ */
4487
+ this.RequestId = null;
4488
+
4489
+ }
4490
+
4491
+ /**
4492
+ * @private
4493
+ */
4494
+ deserialize(params) {
4495
+ if (!params) {
4496
+ return;
4497
+ }
4498
+
4499
+ if (params.InstancePrice) {
4500
+ let obj = new TradePrice();
4501
+ obj.deserialize(params.InstancePrice)
4502
+ this.InstancePrice = obj;
4503
+ }
4504
+
4505
+ if (params.StoragePrice) {
4506
+ let obj = new TradePrice();
4507
+ obj.deserialize(params.StoragePrice)
4508
+ this.StoragePrice = obj;
4509
+ }
4510
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4511
+
4512
+ }
4513
+ }
4514
+
4210
4515
  /**
4211
4516
  * SetRenewFlag response structure.
4212
4517
  * @class
@@ -5500,6 +5805,73 @@ class OfflineInstanceRequest extends AbstractModel {
5500
5805
  }
5501
5806
  }
5502
5807
 
5808
+ /**
5809
+ * Billing details
5810
+ * @class
5811
+ */
5812
+ class TradePrice extends AbstractModel {
5813
+ constructor(){
5814
+ super();
5815
+
5816
+ /**
5817
+ * The non-discounted total price of monthly subscribed resources (unit: US cent)
5818
+ Note: This field may return null, indicating that no valid values can be obtained.
5819
+ * @type {number || null}
5820
+ */
5821
+ this.TotalPrice = null;
5822
+
5823
+ /**
5824
+ * Total discount. `100` means no discount.
5825
+ * @type {number || null}
5826
+ */
5827
+ this.Discount = null;
5828
+
5829
+ /**
5830
+ * The discounted total price of monthly subscribed resources (unit: US cent). If a discount is applied, `TotalPriceDiscount` will be the product of `TotalPrice` and `Discount`.
5831
+ Note: This field may return null, indicating that no valid values can be obtained.
5832
+ * @type {number || null}
5833
+ */
5834
+ this.TotalPriceDiscount = null;
5835
+
5836
+ /**
5837
+ * The non-discounted unit price of pay-as-you-go resources (unit: US cent)
5838
+ Note: This field may return null, indicating that no valid values can be obtained.
5839
+ * @type {number || null}
5840
+ */
5841
+ this.UnitPrice = null;
5842
+
5843
+ /**
5844
+ * The discounted unit price of pay-as-you-go resources (unit: US cent). If a discount is applied, `UnitPriceDiscount` will be the product of `UnitPrice` and `Discount`.
5845
+ Note: This field may return null, indicating that no valid values can be obtained.
5846
+ * @type {number || null}
5847
+ */
5848
+ this.UnitPriceDiscount = null;
5849
+
5850
+ /**
5851
+ * Price unit
5852
+ * @type {string || null}
5853
+ */
5854
+ this.ChargeUnit = null;
5855
+
5856
+ }
5857
+
5858
+ /**
5859
+ * @private
5860
+ */
5861
+ deserialize(params) {
5862
+ if (!params) {
5863
+ return;
5864
+ }
5865
+ this.TotalPrice = 'TotalPrice' in params ? params.TotalPrice : null;
5866
+ this.Discount = 'Discount' in params ? params.Discount : null;
5867
+ this.TotalPriceDiscount = 'TotalPriceDiscount' in params ? params.TotalPriceDiscount : null;
5868
+ this.UnitPrice = 'UnitPrice' in params ? params.UnitPrice : null;
5869
+ this.UnitPriceDiscount = 'UnitPriceDiscount' in params ? params.UnitPriceDiscount : null;
5870
+ this.ChargeUnit = 'ChargeUnit' in params ? params.ChargeUnit : null;
5871
+
5872
+ }
5873
+ }
5874
+
5503
5875
  /**
5504
5876
  * DescribeInstanceSpecs response structure.
5505
5877
  * @class
@@ -5935,9 +6307,81 @@ class ModifyBackupConfigResponse extends AbstractModel {
5935
6307
  }
5936
6308
  }
5937
6309
 
6310
+ /**
6311
+ * InquirePriceRenew response structure.
6312
+ * @class
6313
+ */
6314
+ class InquirePriceRenewResponse extends AbstractModel {
6315
+ constructor(){
6316
+ super();
6317
+
6318
+ /**
6319
+ * Cluster ID
6320
+ * @type {string || null}
6321
+ */
6322
+ this.ClusterId = null;
6323
+
6324
+ /**
6325
+ * Instance ID list
6326
+ * @type {Array.<string> || null}
6327
+ */
6328
+ this.InstanceIds = null;
6329
+
6330
+ /**
6331
+ * Price of instance specification in array
6332
+ * @type {Array.<TradePrice> || null}
6333
+ */
6334
+ this.Prices = null;
6335
+
6336
+ /**
6337
+ * Total renewal price of compute node
6338
+ * @type {number || null}
6339
+ */
6340
+ this.InstanceRealTotalPrice = null;
6341
+
6342
+ /**
6343
+ * Total renewal price of storage node
6344
+ * @type {number || null}
6345
+ */
6346
+ this.StorageRealTotalPrice = null;
6347
+
6348
+ /**
6349
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6350
+ * @type {string || null}
6351
+ */
6352
+ this.RequestId = null;
6353
+
6354
+ }
6355
+
6356
+ /**
6357
+ * @private
6358
+ */
6359
+ deserialize(params) {
6360
+ if (!params) {
6361
+ return;
6362
+ }
6363
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
6364
+ this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
6365
+
6366
+ if (params.Prices) {
6367
+ this.Prices = new Array();
6368
+ for (let z in params.Prices) {
6369
+ let obj = new TradePrice();
6370
+ obj.deserialize(params.Prices[z]);
6371
+ this.Prices.push(obj);
6372
+ }
6373
+ }
6374
+ this.InstanceRealTotalPrice = 'InstanceRealTotalPrice' in params ? params.InstanceRealTotalPrice : null;
6375
+ this.StorageRealTotalPrice = 'StorageRealTotalPrice' in params ? params.StorageRealTotalPrice : null;
6376
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
6377
+
6378
+ }
6379
+ }
6380
+
5938
6381
  module.exports = {
5939
6382
  ModifyClusterNameRequest: ModifyClusterNameRequest,
5940
6383
  DescribeRollbackTimeRangeRequest: DescribeRollbackTimeRangeRequest,
6384
+ InquirePriceRenewRequest: InquirePriceRenewRequest,
5941
6385
  ObjectTask: ObjectTask,
5942
6386
  DescribeBackupConfigRequest: DescribeBackupConfigRequest,
5943
6387
  DescribeAccountsRequest: DescribeAccountsRequest,
@@ -5956,6 +6400,7 @@ module.exports = {
5956
6400
  Account: Account,
5957
6401
  IsolateInstanceResponse: IsolateInstanceResponse,
5958
6402
  ModifyInstanceNameResponse: ModifyInstanceNameResponse,
6403
+ DescribeParamTemplatesRequest: DescribeParamTemplatesRequest,
5959
6404
  PauseServerlessRequest: PauseServerlessRequest,
5960
6405
  CreateClustersResponse: CreateClustersResponse,
5961
6406
  SetRenewFlagRequest: SetRenewFlagRequest,
@@ -5987,8 +6432,10 @@ module.exports = {
5987
6432
  DescribeClustersResponse: DescribeClustersResponse,
5988
6433
  DescribeBackupConfigResponse: DescribeBackupConfigResponse,
5989
6434
  ModifyDBInstanceSecurityGroupsRequest: ModifyDBInstanceSecurityGroupsRequest,
6435
+ DescribeParamTemplatesResponse: DescribeParamTemplatesResponse,
5990
6436
  AddInstancesResponse: AddInstancesResponse,
5991
6437
  Addr: Addr,
6438
+ ParamTemplateListInfo: ParamTemplateListInfo,
5992
6439
  DescribeProjectSecurityGroupsRequest: DescribeProjectSecurityGroupsRequest,
5993
6440
  ModifyClusterParamResponse: ModifyClusterParamResponse,
5994
6441
  SecurityGroup: SecurityGroup,
@@ -6000,6 +6447,7 @@ module.exports = {
6000
6447
  DescribeInstancesRequest: DescribeInstancesRequest,
6001
6448
  DescribeBackupDownloadUrlResponse: DescribeBackupDownloadUrlResponse,
6002
6449
  ResumeServerlessRequest: ResumeServerlessRequest,
6450
+ InquirePriceCreateRequest: InquirePriceCreateRequest,
6003
6451
  BillingResourceInfo: BillingResourceInfo,
6004
6452
  ModifyClusterNameResponse: ModifyClusterNameResponse,
6005
6453
  DescribeInstanceSpecsRequest: DescribeInstanceSpecsRequest,
@@ -6009,6 +6457,7 @@ module.exports = {
6009
6457
  BinlogItem: BinlogItem,
6010
6458
  OfflineClusterResponse: OfflineClusterResponse,
6011
6459
  InstanceSpec: InstanceSpec,
6460
+ InquirePriceCreateResponse: InquirePriceCreateResponse,
6012
6461
  SetRenewFlagResponse: SetRenewFlagResponse,
6013
6462
  UpgradeInstanceRequest: UpgradeInstanceRequest,
6014
6463
  DescribeMaintainPeriodResponse: DescribeMaintainPeriodResponse,
@@ -6029,6 +6478,7 @@ module.exports = {
6029
6478
  ModifyClusterParamRequest: ModifyClusterParamRequest,
6030
6479
  DescribeAccountsResponse: DescribeAccountsResponse,
6031
6480
  OfflineInstanceRequest: OfflineInstanceRequest,
6481
+ TradePrice: TradePrice,
6032
6482
  DescribeInstanceSpecsResponse: DescribeInstanceSpecsResponse,
6033
6483
  OfflineInstanceResponse: OfflineInstanceResponse,
6034
6484
  ParamItem: ParamItem,
@@ -6037,5 +6487,6 @@ module.exports = {
6037
6487
  DescribeInstanceSlowQueriesRequest: DescribeInstanceSlowQueriesRequest,
6038
6488
  DescribeBinlogsRequest: DescribeBinlogsRequest,
6039
6489
  ModifyBackupConfigResponse: ModifyBackupConfigResponse,
6490
+ InquirePriceRenewResponse: InquirePriceRenewResponse,
6040
6491
 
6041
6492
  }
@@ -51,7 +51,7 @@ Tencent Cloud team <noreply@mail.qcloud.com>
51
51
  this.TaskType = null;
52
52
 
53
53
  /**
54
- * Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will be sent to Tencent Cloud.
54
+ * Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
55
55
  * @type {string || null}
56
56
  */
57
57
  this.ReplyToAddresses = null;
@@ -63,7 +63,7 @@ Tencent Cloud team <noreply@mail.qcloud.com>
63
63
  this.Template = null;
64
64
 
65
65
  /**
66
- * Email content when emails are sent by calling the API. This parameter is currently unavailable.
66
+ * Disused
67
67
  * @type {Simple || null}
68
68
  */
69
69
  this.Simple = null;
@@ -675,7 +675,7 @@ class GetSendEmailStatusResponse extends AbstractModel {
675
675
  super();
676
676
 
677
677
  /**
678
- * Email sending status list
678
+ * Status of sent emails
679
679
  * @type {Array.<SendEmailStatus> || null}
680
680
  */
681
681
  this.EmailStatusList = null;
@@ -738,7 +738,7 @@ Sender <email address>
738
738
  this.Subject = null;
739
739
 
740
740
  /**
741
- * Reply-to address. You can enter a valid personal email address that can receive emails. If this field is left empty, reply emails will be sent to Tencent Cloud.
741
+ * Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
742
742
  * @type {string || null}
743
743
  */
744
744
  this.ReplyToAddresses = null;
@@ -750,7 +750,7 @@ Sender <email address>
750
750
  this.Template = null;
751
751
 
752
752
  /**
753
- * Email content when sending emails by calling the API.
753
+ * Disused
754
754
  * @type {Simple || null}
755
755
  */
756
756
  this.Simple = null;
@@ -1650,7 +1650,7 @@ class UpdateEmailTemplateRequest extends AbstractModel {
1650
1650
  }
1651
1651
 
1652
1652
  /**
1653
- * Describes the email sending status.
1653
+ * Describes the email sending status
1654
1654
  * @class
1655
1655
  */
1656
1656
  class SendEmailStatus extends AbstractModel {
@@ -1658,7 +1658,7 @@ class SendEmailStatus extends AbstractModel {
1658
1658
  super();
1659
1659
 
1660
1660
  /**
1661
- * `MessageId` field returned by the `SendEmail` API
1661
+ * The `MessageId` field returned by the `SendEmail` API
1662
1662
  * @type {string || null}
1663
1663
  */
1664
1664
  this.MessageId = null;
@@ -1676,40 +1676,40 @@ class SendEmailStatus extends AbstractModel {
1676
1676
  this.FromEmailAddress = null;
1677
1677
 
1678
1678
  /**
1679
- * Tencent Cloud processing status:
1680
- 0: successful.
1681
- 1001: internal system exception.
1682
- 1002: internal system exception.
1683
- 1003: internal system exception.
1684
- 1003: internal system exception.
1685
- 1004: email sending timeout.
1686
- 1005: internal system exception.
1687
- 1006: you have sent too many emails to the same address in a short period.
1688
- 1007: the email address is in the blocklist.
1689
- 1009: internal system exception.
1690
- 1010: daily email sending limit exceeded.
1691
- 1011: no permission to send custom content. Use a template.
1692
- 2001: no results found.
1693
- 3007: invalid template ID or unavailable template.
1694
- 3008: template status exception.
1695
- 3009: no permission to use this template.
1696
- 3010: the format of the `TemplateData` field is incorrect.
1697
- 3014: unable to send the email because the sender domain is not verified.
1698
- 3020: the recipient email address is in the blocklist.
1699
- 3024: failed to pre-check the email address format.
1700
- 3030: email sending is restricted temporarily due to high bounce rate.
1701
- 3033: the account has insufficient balance or overdue payment.
1679
+ * Tencent Cloud processing status
1680
+ 0: Successful.
1681
+ 1001: Internal system exception.
1682
+ 1002: Internal system exception.
1683
+ 1003: Internal system exception.
1684
+ 1003: Internal system exception.
1685
+ 1004: Email sending timed out.
1686
+ 1005: Internal system exception.
1687
+ 1006: You have sent too many emails to the same address in a short period.
1688
+ 1007: The email address is in the blocklist.
1689
+ 1009: Internal system exception.
1690
+ 1010: The daily email sending limit is exceeded.
1691
+ 1011: You have no permission to send custom content. Use a template.
1692
+ 2001: No results were found.
1693
+ 3007: The template ID is invalid or the template is unavailable.
1694
+ 3008: Template status exception.
1695
+ 3009: You have no permission to use this template.
1696
+ 3010: The format of the `TemplateData` field is incorrect.
1697
+ 3014: The email cannot be sent because the sender domain is not verified.
1698
+ 3020: The recipient email address is in the blocklist.
1699
+ 3024: Failed to precheck the email address format.
1700
+ 3030: Email sending is restricted temporarily due to high bounce rate.
1701
+ 3033: The account has insufficient balance or overdue payment.
1702
1702
  * @type {number || null}
1703
1703
  */
1704
1704
  this.SendStatus = null;
1705
1705
 
1706
1706
  /**
1707
- * Recipient processing status:
1707
+ * Recipient processing status
1708
1708
  0: Tencent Cloud has accepted the request and added it to the send queue.
1709
- 1: the email is delivered successfully, `DeliverTime` indicates the time when the email is delivered successfully.
1710
- 2: the email is discarded. `DeliverMessage` indicates the reason for discarding.
1711
- 3: the recipient's ESP rejects the email, probably because the email address does not exist or due to other reasons.
1712
- 8: the email is delayed by the ESP. `DeliverMessage` indicates the reason for delay.
1709
+ 1: The email is delivered successfully. `DeliverTime` indicates the time when the email is delivered successfully.
1710
+ 2: The email is discarded. `DeliverMessage` indicates the reason for discarding.
1711
+ 3: The recipient's ESP rejects the email, probably because the email address does not exist or due to other reasons.
1712
+ 8: The email is delayed by the ESP. `DeliverMessage` indicates the reason for delay.
1713
1713
  * @type {number || null}
1714
1714
  */
1715
1715
  this.DeliverStatus = null;
@@ -1745,7 +1745,7 @@ class SendEmailStatus extends AbstractModel {
1745
1745
  this.UserClicked = null;
1746
1746
 
1747
1747
  /**
1748
- * Whether the recipient has unsubscribed from emails sent by the sender
1748
+ * Whether the recipient has unsubscribed from the email sent by the sender
1749
1749
  * @type {boolean || null}
1750
1750
  */
1751
1751
  this.UserUnsubscribed = null;
@@ -1894,7 +1894,7 @@ class ListEmailTemplatesResponse extends AbstractModel {
1894
1894
  this.TemplatesMetadata = null;
1895
1895
 
1896
1896
  /**
1897
- * Total number of templates.
1897
+ * Total number of templates
1898
1898
  * @type {number || null}
1899
1899
  */
1900
1900
  this.TotalCount = null;
@@ -2023,31 +2023,31 @@ class GetSendEmailStatusRequest extends AbstractModel {
2023
2023
  super();
2024
2024
 
2025
2025
  /**
2026
- * Sent date. This parameter is required. You can only query the sending status for a single date at a time.
2026
+ * Date sent. This parameter is required. You can only query the sending status for a single date at a time.
2027
2027
  * @type {string || null}
2028
2028
  */
2029
2029
  this.RequestDate = null;
2030
2030
 
2031
2031
  /**
2032
- * Offset. Default value: `0`
2032
+ * Offset. Default value: `0`.
2033
2033
  * @type {number || null}
2034
2034
  */
2035
2035
  this.Offset = null;
2036
2036
 
2037
2037
  /**
2038
- * Maximum number of pulled entries. The maximum value is `100`.
2038
+ * Maximum number of pulled entries. Maximum value: `100`.
2039
2039
  * @type {number || null}
2040
2040
  */
2041
2041
  this.Limit = null;
2042
2042
 
2043
2043
  /**
2044
- * `MessageId` field returned by the `SendMail` API
2044
+ * The `MessageId` field returned by the `SendMail` API.
2045
2045
  * @type {string || null}
2046
2046
  */
2047
2047
  this.MessageId = null;
2048
2048
 
2049
2049
  /**
2050
- * Recipient email address
2050
+ * Recipient email address.
2051
2051
  * @type {string || null}
2052
2052
  */
2053
2053
  this.ToEmailAddress = null;
@@ -2147,6 +2147,18 @@ class ListEmailIdentitiesResponse extends AbstractModel {
2147
2147
  */
2148
2148
  this.EmailIdentities = null;
2149
2149
 
2150
+ /**
2151
+ * Maximum reputation level
2152
+ * @type {number || null}
2153
+ */
2154
+ this.MaxReputationLevel = null;
2155
+
2156
+ /**
2157
+ * Maximum number of emails sent per domain name
2158
+ * @type {number || null}
2159
+ */
2160
+ this.MaxDailyQuota = null;
2161
+
2150
2162
  /**
2151
2163
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2152
2164
  * @type {string || null}
@@ -2171,6 +2183,8 @@ class ListEmailIdentitiesResponse extends AbstractModel {
2171
2183
  this.EmailIdentities.push(obj);
2172
2184
  }
2173
2185
  }
2186
+ this.MaxReputationLevel = 'MaxReputationLevel' in params ? params.MaxReputationLevel : null;
2187
+ this.MaxDailyQuota = 'MaxDailyQuota' in params ? params.MaxDailyQuota : null;
2174
2188
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
2175
2189
 
2176
2190
  }
@@ -2348,6 +2362,18 @@ class EmailIdentity extends AbstractModel {
2348
2362
  */
2349
2363
  this.SendingEnabled = null;
2350
2364
 
2365
+ /**
2366
+ * Current reputation level
2367
+ * @type {number || null}
2368
+ */
2369
+ this.CurrentReputationLevel = null;
2370
+
2371
+ /**
2372
+ * Maximum number of messages sent per day
2373
+ * @type {number || null}
2374
+ */
2375
+ this.DailyQuota = null;
2376
+
2351
2377
  }
2352
2378
 
2353
2379
  /**
@@ -2360,6 +2386,8 @@ class EmailIdentity extends AbstractModel {
2360
2386
  this.IdentityName = 'IdentityName' in params ? params.IdentityName : null;
2361
2387
  this.IdentityType = 'IdentityType' in params ? params.IdentityType : null;
2362
2388
  this.SendingEnabled = 'SendingEnabled' in params ? params.SendingEnabled : null;
2389
+ this.CurrentReputationLevel = 'CurrentReputationLevel' in params ? params.CurrentReputationLevel : null;
2390
+ this.DailyQuota = 'DailyQuota' in params ? params.DailyQuota : null;
2363
2391
 
2364
2392
  }
2365
2393
  }
@@ -2828,6 +2856,12 @@ class GetEmailTemplateResponse extends AbstractModel {
2828
2856
  */
2829
2857
  this.TemplateContent = null;
2830
2858
 
2859
+ /**
2860
+ * Template status. Valid values: `0` (approved); `1` (pending approval); `2` (rejected).
2861
+ * @type {number || null}
2862
+ */
2863
+ this.TemplateStatus = null;
2864
+
2831
2865
  /**
2832
2866
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2833
2867
  * @type {string || null}
@@ -2849,6 +2883,7 @@ class GetEmailTemplateResponse extends AbstractModel {
2849
2883
  obj.deserialize(params.TemplateContent)
2850
2884
  this.TemplateContent = obj;
2851
2885
  }
2886
+ this.TemplateStatus = 'TemplateStatus' in params ? params.TemplateStatus : null;
2852
2887
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
2853
2888
 
2854
2889
  }
@@ -115,6 +115,7 @@ class SesClient extends AbstractClient {
115
115
 
116
116
  /**
117
117
  * This API is used to get email sending status. Only data within 30 days can be queried.
118
+ Default API request rate limit: 1 request/sec.
118
119
  * @param {GetSendEmailStatusRequest} req
119
120
  * @param {function(string, GetSendEmailStatusResponse):void} cb
120
121
  * @public
@@ -236,7 +237,7 @@ Note: Only an approved template can be used to send emails.
236
237
  }
237
238
 
238
239
  /**
239
- * This API is used to send a TEXT or HTML email to multiple recipients at a time for marketing or notification purposes. By default, you can send emails using a template only. To send custom content, please contact your sales rep to enable this feature. You need to create a recipient group with email addresses first and then send emails by group ID. SES supports scheduled and recurring email sending tasks. You need to pass in `TimedParam` for a scheduled task and `CycleParam` for a recurring one.
240
+ * This API is used to send a TEXT or HTML email to multiple recipients at a time for marketing or notification purposes. By default, you can send emails using a template only. You need to create a recipient group with email addresses first and then send emails by group ID. SES supports scheduled and recurring email sending tasks. You need to pass in `TimedParam` for a scheduled task and `CycleParam` for a recurring one.
240
241
  * @param {BatchSendEmailRequest} req
241
242
  * @param {function(string, BatchSendEmailResponse):void} cb
242
243
  * @public
@@ -302,7 +303,7 @@ Note: Only an approved template can be used to send emails.
302
303
  }
303
304
 
304
305
  /**
305
- * This API is used to send a TEXT or HTML email triggered for authentication or transaction. By default, you can send emails using a template only. To send custom content, please contact your sales rep to enable this feature.
306
+ * This API is used to send an HTML or TEXT email triggered for authentication or transaction. By default, you can send emails using a template only.
306
307
  * @param {SendEmailRequest} req
307
308
  * @param {function(string, SendEmailResponse):void} cb
308
309
  * @public
@@ -534,6 +534,12 @@ It can contain 2-128 letters, digits, and symbols (=,.@:/-). Regex: [\w+=,.@:\/-
534
534
  */
535
535
  this.Tags = null;
536
536
 
537
+ /**
538
+ * UIN of the initiator
539
+ * @type {string || null}
540
+ */
541
+ this.SourceIdentity = null;
542
+
537
543
  }
538
544
 
539
545
  /**
@@ -557,6 +563,7 @@ It can contain 2-128 letters, digits, and symbols (=,.@:/-). Regex: [\w+=,.@:\/-
557
563
  this.Tags.push(obj);
558
564
  }
559
565
  }
566
+ this.SourceIdentity = 'SourceIdentity' in params ? params.SourceIdentity : null;
560
567
 
561
568
  }
562
569
  }