tencentcloud-sdk-nodejs-intl-en 3.0.335 → 3.0.339

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.335",
3
+ "version": "3.0.339",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,7 @@ const ModifyDDoSGeoIPBlockConfigRequest = models.ModifyDDoSGeoIPBlockConfigReque
30
30
  const DescribeL7RulesBySSLCertIdResponse = models.DescribeL7RulesBySSLCertIdResponse;
31
31
  const DescribeListDDoSSpeedLimitConfigRequest = models.DescribeListDDoSSpeedLimitConfigRequest;
32
32
  const InstanceRelation = models.InstanceRelation;
33
+ const ModifyNewDomainRulesRequest = models.ModifyNewDomainRulesRequest;
33
34
  const DescribeListProtocolBlockConfigResponse = models.DescribeListProtocolBlockConfigResponse;
34
35
  const DescribeListBGPInstancesRequest = models.DescribeListBGPInstancesRequest;
35
36
  const KeyValue = models.KeyValue;
@@ -42,6 +43,7 @@ const CreateIPAlarmThresholdConfigRequest = models.CreateIPAlarmThresholdConfigR
42
43
  const DescribeDefaultAlarmThresholdResponse = models.DescribeDefaultAlarmThresholdResponse;
43
44
  const CreateDDoSAIRequest = models.CreateDDoSAIRequest;
44
45
  const DescribeListProtectThresholdConfigRequest = models.DescribeListProtectThresholdConfigRequest;
46
+ const ModifyNewDomainRulesResponse = models.ModifyNewDomainRulesResponse;
45
47
  const CreateWaterPrintConfigResponse = models.CreateWaterPrintConfigResponse;
46
48
  const DescribeListBGPIPInstancesRequest = models.DescribeListBGPIPInstancesRequest;
47
49
  const StaticPackRelation = models.StaticPackRelation;
@@ -65,6 +67,7 @@ const BGPIPInstanceUsages = models.BGPIPInstanceUsages;
65
67
  const ModifyPacketFilterConfigResponse = models.ModifyPacketFilterConfigResponse;
66
68
  const DescribeListDDoSGeoIPBlockConfigRequest = models.DescribeListDDoSGeoIPBlockConfigRequest;
67
69
  const Layer7Rule = models.Layer7Rule;
70
+ const L4RuleSource = models.L4RuleSource;
68
71
  const CreateDDoSSpeedLimitConfigRequest = models.CreateDDoSSpeedLimitConfigRequest;
69
72
  const CreateDDoSGeoIPBlockConfigRequest = models.CreateDDoSGeoIPBlockConfigRequest;
70
73
  const CreateProtocolBlockConfigRequest = models.CreateProtocolBlockConfigRequest;
@@ -126,6 +129,7 @@ const AssociateDDoSEipAddressRequest = models.AssociateDDoSEipAddressRequest;
126
129
  const AssociateDDoSEipLoadBalancerResponse = models.AssociateDDoSEipLoadBalancerResponse;
127
130
  const CreateBlackWhiteIpListRequest = models.CreateBlackWhiteIpListRequest;
128
131
  const DescribeBizTrendResponse = models.DescribeBizTrendResponse;
132
+ const NewL7RuleEntry = models.NewL7RuleEntry;
129
133
  const CreateBoundIPResponse = models.CreateBoundIPResponse;
130
134
  const SpeedValue = models.SpeedValue;
131
135
  const SwitchWaterPrintConfigRequest = models.SwitchWaterPrintConfigRequest;
@@ -311,6 +315,17 @@ class AntiddosClient extends AbstractClient {
311
315
  this.request("DescribeListBlackWhiteIpList", req, resp, cb);
312
316
  }
313
317
 
318
+ /**
319
+ * This API is used to modify layer-7 forwarding rules.
320
+ * @param {ModifyNewDomainRulesRequest} req
321
+ * @param {function(string, ModifyNewDomainRulesResponse):void} cb
322
+ * @public
323
+ */
324
+ ModifyNewDomainRules(req, cb) {
325
+ let resp = new ModifyNewDomainRulesResponse();
326
+ this.request("ModifyNewDomainRules", req, resp, cb);
327
+ }
328
+
314
329
  /**
315
330
  * This API is used to get a list of Anti-DDoS region blocking configurations.
316
331
  * @param {DescribeListDDoSGeoIPBlockConfigRequest} req
@@ -411,7 +426,7 @@ class AntiddosClient extends AbstractClient {
411
426
  }
412
427
 
413
428
  /**
414
- * This API is used to get CC attack data, including total peak requests (QPS) and attack requests (QPS).
429
+ * This API is used to get CC attack data, including total QPS peaks, attack QPS, total number of requests and number of attack requests.
415
430
  * @param {DescribeCCTrendRequest} req
416
431
  * @param {function(string, DescribeCCTrendResponse):void} cb
417
432
  * @public
@@ -647,6 +647,53 @@ class InstanceRelation extends AbstractModel {
647
647
  }
648
648
  }
649
649
 
650
+ /**
651
+ * ModifyNewDomainRules request structure.
652
+ * @class
653
+ */
654
+ class ModifyNewDomainRulesRequest extends AbstractModel {
655
+ constructor(){
656
+ super();
657
+
658
+ /**
659
+ * Anti-DDoS service type (`bgpip`: Anti-DDoS Advanced).
660
+ * @type {string || null}
661
+ */
662
+ this.Business = null;
663
+
664
+ /**
665
+ * Anti-DDoS instance ID.
666
+ * @type {string || null}
667
+ */
668
+ this.Id = null;
669
+
670
+ /**
671
+ * Domain name forwarding rule.
672
+ * @type {NewL7RuleEntry || null}
673
+ */
674
+ this.Rule = null;
675
+
676
+ }
677
+
678
+ /**
679
+ * @private
680
+ */
681
+ deserialize(params) {
682
+ if (!params) {
683
+ return;
684
+ }
685
+ this.Business = 'Business' in params ? params.Business : null;
686
+ this.Id = 'Id' in params ? params.Id : null;
687
+
688
+ if (params.Rule) {
689
+ let obj = new NewL7RuleEntry();
690
+ obj.deserialize(params.Rule)
691
+ this.Rule = obj;
692
+ }
693
+
694
+ }
695
+ }
696
+
650
697
  /**
651
698
  * DescribeListProtocolBlockConfig response structure.
652
699
  * @class
@@ -1182,6 +1229,46 @@ class DescribeListProtectThresholdConfigRequest extends AbstractModel {
1182
1229
  }
1183
1230
  }
1184
1231
 
1232
+ /**
1233
+ * ModifyNewDomainRules response structure.
1234
+ * @class
1235
+ */
1236
+ class ModifyNewDomainRulesResponse extends AbstractModel {
1237
+ constructor(){
1238
+ super();
1239
+
1240
+ /**
1241
+ * Success code.
1242
+ * @type {SuccessCode || null}
1243
+ */
1244
+ this.Success = null;
1245
+
1246
+ /**
1247
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1248
+ * @type {string || null}
1249
+ */
1250
+ this.RequestId = null;
1251
+
1252
+ }
1253
+
1254
+ /**
1255
+ * @private
1256
+ */
1257
+ deserialize(params) {
1258
+ if (!params) {
1259
+ return;
1260
+ }
1261
+
1262
+ if (params.Success) {
1263
+ let obj = new SuccessCode();
1264
+ obj.deserialize(params.Success)
1265
+ this.Success = obj;
1266
+ }
1267
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1268
+
1269
+ }
1270
+ }
1271
+
1185
1272
  /**
1186
1273
  * CreateWaterPrintConfig response structure.
1187
1274
  * @class
@@ -1278,6 +1365,12 @@ class DescribeListBGPIPInstancesRequest extends AbstractModel {
1278
1365
  */
1279
1366
  this.FilterEipEipAddressStatus = null;
1280
1367
 
1368
+ /**
1369
+ * Whether to obtain only Anti-DDoS instances with Sec-MCA enabled. Valid values: `1` (only obtain Anti-DDoS instances with Sec-MCA enabled) and `0` (obtain other Anti-DDoS instances).
1370
+ * @type {number || null}
1371
+ */
1372
+ this.FilterDamDDoSStatus = null;
1373
+
1281
1374
  }
1282
1375
 
1283
1376
  /**
@@ -1296,6 +1389,7 @@ class DescribeListBGPIPInstancesRequest extends AbstractModel {
1296
1389
  this.FilterName = 'FilterName' in params ? params.FilterName : null;
1297
1390
  this.FilterEipType = 'FilterEipType' in params ? params.FilterEipType : null;
1298
1391
  this.FilterEipEipAddressStatus = 'FilterEipEipAddressStatus' in params ? params.FilterEipEipAddressStatus : null;
1392
+ this.FilterDamDDoSStatus = 'FilterDamDDoSStatus' in params ? params.FilterDamDDoSStatus : null;
1299
1393
 
1300
1394
  }
1301
1395
  }
@@ -1708,6 +1802,18 @@ Note: this field may return `null`, indicating that no valid values can be obtai
1708
1802
  */
1709
1803
  this.Domain = null;
1710
1804
 
1805
+ /**
1806
+ * Whether to enable Sec-MCA. Valid values: `1` (enabled) and `0` (disabled).
1807
+ * @type {number || null}
1808
+ */
1809
+ this.DamDDoSStatus = null;
1810
+
1811
+ /**
1812
+ *
1813
+ * @type {number || null}
1814
+ */
1815
+ this.V6Flag = null;
1816
+
1711
1817
  }
1712
1818
 
1713
1819
  /**
@@ -1774,6 +1880,8 @@ Note: this field may return `null`, indicating that no valid values can be obtai
1774
1880
  this.EipAddressInfo = obj;
1775
1881
  }
1776
1882
  this.Domain = 'Domain' in params ? params.Domain : null;
1883
+ this.DamDDoSStatus = 'DamDDoSStatus' in params ? params.DamDDoSStatus : null;
1884
+ this.V6Flag = 'V6Flag' in params ? params.V6Flag : null;
1777
1885
 
1778
1886
  }
1779
1887
  }
@@ -2344,6 +2452,49 @@ class Layer7Rule extends AbstractModel {
2344
2452
  }
2345
2453
  }
2346
2454
 
2455
+ /**
2456
+ * List of layer-4 forwarding rules
2457
+ * @class
2458
+ */
2459
+ class L4RuleSource extends AbstractModel {
2460
+ constructor(){
2461
+ super();
2462
+
2463
+ /**
2464
+ * IP or domain name for forwarding.
2465
+ * @type {string || null}
2466
+ */
2467
+ this.Source = null;
2468
+
2469
+ /**
2470
+ * Weight. Value range: [0,100].
2471
+ * @type {number || null}
2472
+ */
2473
+ this.Weight = null;
2474
+
2475
+ /**
2476
+ * 8000
2477
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2478
+ * @type {number || null}
2479
+ */
2480
+ this.Port = null;
2481
+
2482
+ }
2483
+
2484
+ /**
2485
+ * @private
2486
+ */
2487
+ deserialize(params) {
2488
+ if (!params) {
2489
+ return;
2490
+ }
2491
+ this.Source = 'Source' in params ? params.Source : null;
2492
+ this.Weight = 'Weight' in params ? params.Weight : null;
2493
+ this.Port = 'Port' in params ? params.Port : null;
2494
+
2495
+ }
2496
+ }
2497
+
2347
2498
  /**
2348
2499
  * CreateDDoSSpeedLimitConfig request structure.
2349
2500
  * @class
@@ -5219,6 +5370,204 @@ class DescribeBizTrendResponse extends AbstractModel {
5219
5370
  }
5220
5371
  }
5221
5372
 
5373
+ /**
5374
+ * Layer-7 rule.
5375
+ * @class
5376
+ */
5377
+ class NewL7RuleEntry extends AbstractModel {
5378
+ constructor(){
5379
+ super();
5380
+
5381
+ /**
5382
+ * Session persistence duration, in seconds.
5383
+ * @type {number || null}
5384
+ */
5385
+ this.KeepTime = null;
5386
+
5387
+ /**
5388
+ * Load balancing method. Valid value: `1` (weighed polling).
5389
+ * @type {number || null}
5390
+ */
5391
+ this.LbType = null;
5392
+
5393
+ /**
5394
+ * List of origins
5395
+ * @type {Array.<L4RuleSource> || null}
5396
+ */
5397
+ this.SourceList = null;
5398
+
5399
+ /**
5400
+ * Whether session persistence is enabled. Valid values: `0` (disabled) and `1` (enabled).
5401
+ * @type {number || null}
5402
+ */
5403
+ this.KeepEnable = null;
5404
+
5405
+ /**
5406
+ * Forwarding domain name.
5407
+ * @type {string || null}
5408
+ */
5409
+ this.Domain = null;
5410
+
5411
+ /**
5412
+ * Forwarding protocol. Valid values: `http` and `https`.
5413
+ * @type {string || null}
5414
+ */
5415
+ this.Protocol = null;
5416
+
5417
+ /**
5418
+ * Forwarding method. Valid values: `1` (by domain name); `2` (by IP).
5419
+ * @type {number || null}
5420
+ */
5421
+ this.SourceType = null;
5422
+
5423
+ /**
5424
+ * Whether to enable **Forward HTTPS requests via HTTP**. Valid values: `0` (disabled) and `1` (enabled). It defaults to `0`.
5425
+ * @type {number || null}
5426
+ */
5427
+ this.HttpsToHttpEnable = null;
5428
+
5429
+ /**
5430
+ * Rule status. Valid values: `0` (the rule was successfully configured), `1` (configuring the rule), `2` (rule configuration failed), `3` (deleting the rule), `5` (failed to delete rule), `6` (rule awaiting configuration), `7` (rule awaiting deletion), and `8` (rule awaiting certificate configuration).
5431
+ * @type {number || null}
5432
+ */
5433
+ this.Status = null;
5434
+
5435
+ /**
5436
+ * CC protection level based on HTTPS.
5437
+ * @type {string || null}
5438
+ */
5439
+ this.CCLevel = null;
5440
+
5441
+ /**
5442
+ * CC protection status based on HTTPS. Valid values: `0` (disabled) and `1` (enabled).
5443
+ * @type {number || null}
5444
+ */
5445
+ this.CCEnable = null;
5446
+
5447
+ /**
5448
+ * CC protection threshold based on HTTPS.
5449
+ * @type {number || null}
5450
+ */
5451
+ this.CCThreshold = null;
5452
+
5453
+ /**
5454
+ * Region code.
5455
+ * @type {number || null}
5456
+ */
5457
+ this.Region = null;
5458
+
5459
+ /**
5460
+ * Rule description.
5461
+ * @type {string || null}
5462
+ */
5463
+ this.RuleName = null;
5464
+
5465
+ /**
5466
+ * [Disused] When the certificate is an external certificate, the certificate content should be provided here.
5467
+ * @type {string || null}
5468
+ */
5469
+ this.Cert = null;
5470
+
5471
+ /**
5472
+ * Modification time.
5473
+ * @type {string || null}
5474
+ */
5475
+ this.ModifyTime = null;
5476
+
5477
+ /**
5478
+ * Rule ID. This field is not required for adding a rule, but is required for modifying or deleting a rule.
5479
+ * @type {string || null}
5480
+ */
5481
+ this.RuleId = null;
5482
+
5483
+ /**
5484
+ * Anti-DDoS instance IP address.
5485
+ * @type {string || null}
5486
+ */
5487
+ this.Ip = null;
5488
+
5489
+ /**
5490
+ * [Disused] When the certificate is an external certificate, the certificate key should be provided here.
5491
+ * @type {string || null}
5492
+ */
5493
+ this.PrivateKey = null;
5494
+
5495
+ /**
5496
+ * Certificate source. When the forwarding protocol is HTTPS, this field must be set to `2` (Tencent Cloud managed certificate), and for HTTP protocol, it can be set to `0`.
5497
+ * @type {number || null}
5498
+ */
5499
+ this.CertType = null;
5500
+
5501
+ /**
5502
+ * Access port number.
5503
+ Note: this field may return `null`, indicating that no valid values can be obtained.
5504
+ * @type {number || null}
5505
+ */
5506
+ this.VirtualPort = null;
5507
+
5508
+ /**
5509
+ * CC protection status. Valid values: `0` (disabled) and `1` (enabled).
5510
+ * @type {number || null}
5511
+ */
5512
+ this.CCStatus = null;
5513
+
5514
+ /**
5515
+ * When the certificate is managed by Tencent Cloud, this field must be set to the ID of the managed certificate.
5516
+ * @type {string || null}
5517
+ */
5518
+ this.SSLId = null;
5519
+
5520
+ /**
5521
+ * Resource ID.
5522
+ * @type {string || null}
5523
+ */
5524
+ this.Id = null;
5525
+
5526
+ }
5527
+
5528
+ /**
5529
+ * @private
5530
+ */
5531
+ deserialize(params) {
5532
+ if (!params) {
5533
+ return;
5534
+ }
5535
+ this.KeepTime = 'KeepTime' in params ? params.KeepTime : null;
5536
+ this.LbType = 'LbType' in params ? params.LbType : null;
5537
+
5538
+ if (params.SourceList) {
5539
+ this.SourceList = new Array();
5540
+ for (let z in params.SourceList) {
5541
+ let obj = new L4RuleSource();
5542
+ obj.deserialize(params.SourceList[z]);
5543
+ this.SourceList.push(obj);
5544
+ }
5545
+ }
5546
+ this.KeepEnable = 'KeepEnable' in params ? params.KeepEnable : null;
5547
+ this.Domain = 'Domain' in params ? params.Domain : null;
5548
+ this.Protocol = 'Protocol' in params ? params.Protocol : null;
5549
+ this.SourceType = 'SourceType' in params ? params.SourceType : null;
5550
+ this.HttpsToHttpEnable = 'HttpsToHttpEnable' in params ? params.HttpsToHttpEnable : null;
5551
+ this.Status = 'Status' in params ? params.Status : null;
5552
+ this.CCLevel = 'CCLevel' in params ? params.CCLevel : null;
5553
+ this.CCEnable = 'CCEnable' in params ? params.CCEnable : null;
5554
+ this.CCThreshold = 'CCThreshold' in params ? params.CCThreshold : null;
5555
+ this.Region = 'Region' in params ? params.Region : null;
5556
+ this.RuleName = 'RuleName' in params ? params.RuleName : null;
5557
+ this.Cert = 'Cert' in params ? params.Cert : null;
5558
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
5559
+ this.RuleId = 'RuleId' in params ? params.RuleId : null;
5560
+ this.Ip = 'Ip' in params ? params.Ip : null;
5561
+ this.PrivateKey = 'PrivateKey' in params ? params.PrivateKey : null;
5562
+ this.CertType = 'CertType' in params ? params.CertType : null;
5563
+ this.VirtualPort = 'VirtualPort' in params ? params.VirtualPort : null;
5564
+ this.CCStatus = 'CCStatus' in params ? params.CCStatus : null;
5565
+ this.SSLId = 'SSLId' in params ? params.SSLId : null;
5566
+ this.Id = 'Id' in params ? params.Id : null;
5567
+
5568
+ }
5569
+ }
5570
+
5222
5571
  /**
5223
5572
  * CreateBoundIP response structure.
5224
5573
  * @class
@@ -5440,7 +5789,7 @@ Note: this field may return `null`, indicating that no valid values can be obtai
5440
5789
  this.Id = null;
5441
5790
 
5442
5791
  /**
5443
- * Metric. Valid values: `inqps`: total peak requests; `dropqps`: peak attack requests
5792
+ * Metric. Valid values: `inqps` (total QPS peaks), `dropqps` (attack QPS peaks), `incount` (total number of requests), and `dropcount` (number of attack requests).
5444
5793
  * @type {string || null}
5445
5794
  */
5446
5795
  this.MetricName = null;
@@ -6727,7 +7076,7 @@ class DescribeCCTrendRequest extends AbstractModel {
6727
7076
  this.EndTime = null;
6728
7077
 
6729
7078
  /**
6730
- * Metric. Valid values: `inqps`: total peak requests; `dropqps`: peak attack requests
7079
+ * Metric. Valid values: `inqps` (total QPS peaks), `dropqps` (attack QPS peaks), `incount` (total number of requests), and `dropcount` (number of attack requests).
6731
7080
  * @type {string || null}
6732
7081
  */
6733
7082
  this.MetricName = null;
@@ -6780,6 +7129,7 @@ module.exports = {
6780
7129
  DescribeL7RulesBySSLCertIdResponse: DescribeL7RulesBySSLCertIdResponse,
6781
7130
  DescribeListDDoSSpeedLimitConfigRequest: DescribeListDDoSSpeedLimitConfigRequest,
6782
7131
  InstanceRelation: InstanceRelation,
7132
+ ModifyNewDomainRulesRequest: ModifyNewDomainRulesRequest,
6783
7133
  DescribeListProtocolBlockConfigResponse: DescribeListProtocolBlockConfigResponse,
6784
7134
  DescribeListBGPInstancesRequest: DescribeListBGPInstancesRequest,
6785
7135
  KeyValue: KeyValue,
@@ -6792,6 +7142,7 @@ module.exports = {
6792
7142
  DescribeDefaultAlarmThresholdResponse: DescribeDefaultAlarmThresholdResponse,
6793
7143
  CreateDDoSAIRequest: CreateDDoSAIRequest,
6794
7144
  DescribeListProtectThresholdConfigRequest: DescribeListProtectThresholdConfigRequest,
7145
+ ModifyNewDomainRulesResponse: ModifyNewDomainRulesResponse,
6795
7146
  CreateWaterPrintConfigResponse: CreateWaterPrintConfigResponse,
6796
7147
  DescribeListBGPIPInstancesRequest: DescribeListBGPIPInstancesRequest,
6797
7148
  StaticPackRelation: StaticPackRelation,
@@ -6815,6 +7166,7 @@ module.exports = {
6815
7166
  ModifyPacketFilterConfigResponse: ModifyPacketFilterConfigResponse,
6816
7167
  DescribeListDDoSGeoIPBlockConfigRequest: DescribeListDDoSGeoIPBlockConfigRequest,
6817
7168
  Layer7Rule: Layer7Rule,
7169
+ L4RuleSource: L4RuleSource,
6818
7170
  CreateDDoSSpeedLimitConfigRequest: CreateDDoSSpeedLimitConfigRequest,
6819
7171
  CreateDDoSGeoIPBlockConfigRequest: CreateDDoSGeoIPBlockConfigRequest,
6820
7172
  CreateProtocolBlockConfigRequest: CreateProtocolBlockConfigRequest,
@@ -6876,6 +7228,7 @@ module.exports = {
6876
7228
  AssociateDDoSEipLoadBalancerResponse: AssociateDDoSEipLoadBalancerResponse,
6877
7229
  CreateBlackWhiteIpListRequest: CreateBlackWhiteIpListRequest,
6878
7230
  DescribeBizTrendResponse: DescribeBizTrendResponse,
7231
+ NewL7RuleEntry: NewL7RuleEntry,
6879
7232
  CreateBoundIPResponse: CreateBoundIPResponse,
6880
7233
  SpeedValue: SpeedValue,
6881
7234
  SwitchWaterPrintConfigRequest: SwitchWaterPrintConfigRequest,
@@ -220,6 +220,13 @@ Note: this field may return null, indicating that no valid values can be obtaine
220
220
  */
221
221
  this.SetType = null;
222
222
 
223
+ /**
224
+ * Cluster type for service deployment
225
+ Note: this field may return null, indicating that no valid values found.
226
+ * @type {string || null}
227
+ */
228
+ this.DeploymentType = null;
229
+
223
230
  }
224
231
 
225
232
  /**
@@ -255,6 +262,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
255
262
  }
256
263
  this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
257
264
  this.SetType = 'SetType' in params ? params.SetType : null;
265
+ this.DeploymentType = 'DeploymentType' in params ? params.DeploymentType : null;
258
266
 
259
267
  }
260
268
  }
@@ -2850,6 +2858,20 @@ Note: this field may return null, indicating that no valid values can be obtaine
2850
2858
  */
2851
2859
  this.SetType = null;
2852
2860
 
2861
+ /**
2862
+ * Cluster type for service deployment
2863
+ Note: this field may return null, indicating that no valid values found.
2864
+ * @type {string || null}
2865
+ */
2866
+ this.DeploymentType = null;
2867
+
2868
+ /**
2869
+ * Whether it’s for special usage
2870
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2871
+ * @type {string || null}
2872
+ */
2873
+ this.SpecialUse = null;
2874
+
2853
2875
  /**
2854
2876
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2855
2877
  * @type {string || null}
@@ -2913,6 +2935,8 @@ Note: this field may return null, indicating that no valid values can be obtaine
2913
2935
  this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
2914
2936
  this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
2915
2937
  this.SetType = 'SetType' in params ? params.SetType : null;
2938
+ this.DeploymentType = 'DeploymentType' in params ? params.DeploymentType : null;
2939
+ this.SpecialUse = 'SpecialUse' in params ? params.SpecialUse : null;
2916
2940
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
2917
2941
 
2918
2942
  }
@@ -5612,13 +5636,13 @@ class CreatePluginRequest extends AbstractModel {
5612
5636
  super();
5613
5637
 
5614
5638
  /**
5615
- * Custom plugin name. A plugin name contain up to 50 characters out of a-z, A-Z, 0-9, and _, which must begin with a letter and end with a letter or a number.
5639
+ * Custom plugin name. A plugin name should contain 2-50 characters out of a-z, A-Z, 0-9, and _, which must begin with a letter and end with a letter or a number.
5616
5640
  * @type {string || null}
5617
5641
  */
5618
5642
  this.PluginName = null;
5619
5643
 
5620
5644
  /**
5621
- * Plugin type. Valid value: `IPControl`.
5645
+ * Plugin type. Valid values: `IPControl`, `TrafficControl`, `Cors`, `CustomReq`, `CustomAuth`
5622
5646
  * @type {string || null}
5623
5647
  */
5624
5648
  this.PluginType = null;
@@ -6042,7 +6066,7 @@ class DomainSetList extends AbstractModel {
6042
6066
  this.DomainName = null;
6043
6067
 
6044
6068
  /**
6045
- * Domain name resolution status. True: success; False: failure.
6069
+ * Domain name resolution status. `1`: normal, `0`: failed
6046
6070
  * @type {number || null}
6047
6071
  */
6048
6072
  this.Status = null;
@@ -669,7 +669,27 @@ class DescribeBillDetailRequest extends AbstractModel {
669
669
  this.ResourceId = null;
670
670
 
671
671
  /**
672
- *
672
+ * Action type to query. Valid values:
673
+ Purchase
674
+ Renewal
675
+ Modify
676
+ Refund
677
+ Deduction
678
+ Hourly settlement
679
+ Daily settlement
680
+ Monthly settlement
681
+ Offline project deduction
682
+ Offline deduction
683
+ adjust-CR
684
+ adjust-DR
685
+ One-off RI Fee
686
+ Spot
687
+ Hourly RI fee
688
+ New monthly subscription
689
+ Monthly subscription renewal
690
+ Monthly subscription specification adjustment
691
+ Monthly subscription specification adjustment
692
+ Monthly subscription refund
673
693
  * @type {string || null}
674
694
  */
675
695
  this.ActionType = null;
@@ -680,6 +700,13 @@ class DescribeBillDetailRequest extends AbstractModel {
680
700
  */
681
701
  this.ProjectId = null;
682
702
 
703
+ /**
704
+ * Business code
705
+ Note: To query business codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>.
706
+ * @type {string || null}
707
+ */
708
+ this.BusinessCode = null;
709
+
683
710
  }
684
711
 
685
712
  /**
@@ -701,6 +728,7 @@ class DescribeBillDetailRequest extends AbstractModel {
701
728
  this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
702
729
  this.ActionType = 'ActionType' in params ? params.ActionType : null;
703
730
  this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
731
+ this.BusinessCode = 'BusinessCode' in params ? params.BusinessCode : null;
704
732
 
705
733
  }
706
734
  }
@@ -1369,6 +1397,13 @@ Monthly subscription refund
1369
1397
  */
1370
1398
  this.PayMode = null;
1371
1399
 
1400
+ /**
1401
+ * Business code
1402
+ Note: To query business codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>.
1403
+ * @type {string || null}
1404
+ */
1405
+ this.BusinessCode = null;
1406
+
1372
1407
  }
1373
1408
 
1374
1409
  /**
@@ -1386,6 +1421,7 @@ Monthly subscription refund
1386
1421
  this.ActionType = 'ActionType' in params ? params.ActionType : null;
1387
1422
  this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
1388
1423
  this.PayMode = 'PayMode' in params ? params.PayMode : null;
1424
+ this.BusinessCode = 'BusinessCode' in params ? params.BusinessCode : null;
1389
1425
 
1390
1426
  }
1391
1427
  }
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.335";
1
+ const sdkVersion = "3.0.339";
2
2
  module.exports = sdkVersion
@@ -46,6 +46,7 @@ const ModifyDBInstancesProjectResponse = models.ModifyDBInstancesProjectResponse
46
46
  const DBBackupTimeConfig = models.DBBackupTimeConfig;
47
47
  const DescribeDBLogFilesRequest = models.DescribeDBLogFilesRequest;
48
48
  const NodeInfo = models.NodeInfo;
49
+ const ModifySyncTaskAttributeResponse = models.ModifySyncTaskAttributeResponse;
49
50
  const ModifyDBInstanceSecurityGroupsResponse = models.ModifyDBInstanceSecurityGroupsResponse;
50
51
  const ResetAccountPasswordRequest = models.ResetAccountPasswordRequest;
51
52
  const CopyAccountPrivilegesResponse = models.CopyAccountPrivilegesResponse;
@@ -71,6 +72,7 @@ const ModifyDBInstanceNameRequest = models.ModifyDBInstanceNameRequest;
71
72
  const ModifyBackupTimeRequest = models.ModifyBackupTimeRequest;
72
73
  const SecurityGroupBound = models.SecurityGroupBound;
73
74
  const ColumnPrivilege = models.ColumnPrivilege;
75
+ const ModifySyncTaskAttributeRequest = models.ModifySyncTaskAttributeRequest;
74
76
  const InitDBInstancesRequest = models.InitDBInstancesRequest;
75
77
  const AssociateSecurityGroupsResponse = models.AssociateSecurityGroupsResponse;
76
78
  const DBInstance = models.DBInstance;
@@ -97,6 +99,7 @@ const DeleteAccountRequest = models.DeleteAccountRequest;
97
99
  const DescribeFlowRequest = models.DescribeFlowRequest;
98
100
  const ModifyAccountPrivilegesRequest = models.ModifyAccountPrivilegesRequest;
99
101
  const DescribeDBPerformanceResponse = models.DescribeDBPerformanceResponse;
102
+ const ModifyDBSyncModeRequest = models.ModifyDBSyncModeRequest;
100
103
  const DescribeInstanceNodeInfoRequest = models.DescribeInstanceNodeInfoRequest;
101
104
  const CreateAccountResponse = models.CreateAccountResponse;
102
105
  const DescribeLogFileRetentionPeriodResponse = models.DescribeLogFileRetentionPeriodResponse;
@@ -114,6 +117,7 @@ const DescribeDBSlowLogsResponse = models.DescribeDBSlowLogsResponse;
114
117
  const DescribeLogFileRetentionPeriodRequest = models.DescribeLogFileRetentionPeriodRequest;
115
118
  const ModifyDBInstancesProjectRequest = models.ModifyDBInstancesProjectRequest;
116
119
  const MonitorData = models.MonitorData;
120
+ const ModifyDBSyncModeResponse = models.ModifyDBSyncModeResponse;
117
121
  const DescribeInstanceNodeInfoResponse = models.DescribeInstanceNodeInfoResponse;
118
122
  const ModifyLogFileRetentionPeriodResponse = models.ModifyLogFileRetentionPeriodResponse;
119
123
  const DisassociateSecurityGroupsResponse = models.DisassociateSecurityGroupsResponse;
@@ -322,6 +326,17 @@ Note: accounts with the same username but different hosts are different accounts
322
326
  this.request("DescribeDBLogFiles", req, resp, cb);
323
327
  }
324
328
 
329
+ /**
330
+ * This API is used to modify sync task attributes (currently, only the task name can be modified).
331
+ * @param {ModifySyncTaskAttributeRequest} req
332
+ * @param {function(string, ModifySyncTaskAttributeResponse):void} cb
333
+ * @public
334
+ */
335
+ ModifySyncTaskAttribute(req, cb) {
336
+ let resp = new ModifySyncTaskAttributeResponse();
337
+ this.request("ModifySyncTaskAttribute", req, resp, cb);
338
+ }
339
+
325
340
  /**
326
341
  * This API is used to terminate a pay-as-you-go instance.
327
342
  * @param {DestroyHourDBInstanceRequest} req
@@ -438,6 +453,17 @@ If no filter is specified, 20 instances will be returned by default. Up to 100 i
438
453
  this.request("ModifyDBInstanceSecurityGroups", req, resp, cb);
439
454
  }
440
455
 
456
+ /**
457
+ * This API is used to modify the sync mode of a TencentDB instance.
458
+ * @param {ModifyDBSyncModeRequest} req
459
+ * @param {function(string, ModifyDBSyncModeResponse):void} cb
460
+ * @public
461
+ */
462
+ ModifyDBSyncMode(req, cb) {
463
+ let resp = new ModifyDBSyncModeResponse();
464
+ this.request("ModifyDBSyncMode", req, resp, cb);
465
+ }
466
+
441
467
  /**
442
468
  * This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.
443
469
  * @param {CloseDBExtranetAccessRequest} req
@@ -720,7 +720,7 @@ class CreateAccountRequest extends AbstractModel {
720
720
  this.Host = null;
721
721
 
722
722
  /**
723
- * Account password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
723
+ * Account password. It must contain 8-32 characters in all of the following four types: lowercase letters, uppercase letters, digits, and symbols (()~!@#$%^&*-+=_|{}[]:<>,.?/), and cannot start with a slash (/).
724
724
  * @type {string || null}
725
725
  */
726
726
  this.Password = null;
@@ -1442,6 +1442,34 @@ class NodeInfo extends AbstractModel {
1442
1442
  }
1443
1443
  }
1444
1444
 
1445
+ /**
1446
+ * ModifySyncTaskAttribute response structure.
1447
+ * @class
1448
+ */
1449
+ class ModifySyncTaskAttributeResponse extends AbstractModel {
1450
+ constructor(){
1451
+ super();
1452
+
1453
+ /**
1454
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1455
+ * @type {string || null}
1456
+ */
1457
+ this.RequestId = null;
1458
+
1459
+ }
1460
+
1461
+ /**
1462
+ * @private
1463
+ */
1464
+ deserialize(params) {
1465
+ if (!params) {
1466
+ return;
1467
+ }
1468
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1469
+
1470
+ }
1471
+ }
1472
+
1445
1473
  /**
1446
1474
  * ModifyDBInstanceSecurityGroups response structure.
1447
1475
  * @class
@@ -2008,11 +2036,11 @@ class GrantAccountPrivilegesRequest extends AbstractModel {
2008
2036
  this.DbName = null;
2009
2037
 
2010
2038
  /**
2011
- * Global permission. Valid values: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER, SHOW DATABASES
2012
- Database permission. Valid values: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER
2013
- Table/view permission. Valid values: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER
2014
- Stored procedure/function permission. Valid values: ALTER ROUTINE, EXECUTE
2015
- Field permission. Valid values: INSERT, REFERENCES, SELECT, UPDATE
2039
+ * Global permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`, `SHOW DATABASES`, `REPLICATION CLIENT`, `REPLICATION SLAVE`.
2040
+ Database permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`.
2041
+ Table/View permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
2042
+ Stored procedure/function permission. Valid values: `ALTER ROUTINE`, `EXECUTE`.
2043
+ Field permission. Valid values: `INSERT`, `REFERENCES`, `SELECT`, `UPDATE`.
2016
2044
  * @type {Array.<string> || null}
2017
2045
  */
2018
2046
  this.Privileges = null;
@@ -2663,6 +2691,41 @@ class ColumnPrivilege extends AbstractModel {
2663
2691
  }
2664
2692
  }
2665
2693
 
2694
+ /**
2695
+ * ModifySyncTaskAttribute request structure.
2696
+ * @class
2697
+ */
2698
+ class ModifySyncTaskAttributeRequest extends AbstractModel {
2699
+ constructor(){
2700
+ super();
2701
+
2702
+ /**
2703
+ * IDs of tasks for which to modify the attributes. The IDs can be obtained by the return value of the `DescribeSyncTasks` API. Up to 100 tasks can be operated at a time.
2704
+ * @type {Array.<string> || null}
2705
+ */
2706
+ this.TaskIds = null;
2707
+
2708
+ /**
2709
+ * Task name. You can specify any name you like, but its length cannot exceed 100 characters.
2710
+ * @type {string || null}
2711
+ */
2712
+ this.TaskName = null;
2713
+
2714
+ }
2715
+
2716
+ /**
2717
+ * @private
2718
+ */
2719
+ deserialize(params) {
2720
+ if (!params) {
2721
+ return;
2722
+ }
2723
+ this.TaskIds = 'TaskIds' in params ? params.TaskIds : null;
2724
+ this.TaskName = 'TaskName' in params ? params.TaskName : null;
2725
+
2726
+ }
2727
+ }
2728
+
2666
2729
  /**
2667
2730
  * InitDBInstances request structure.
2668
2731
  * @class
@@ -3868,6 +3931,12 @@ Note: this field may return null, indicating that no valid values can be obtaine
3868
3931
  */
3869
3932
  this.ExampleSql = null;
3870
3933
 
3934
+ /**
3935
+ * Host address of the account
3936
+ * @type {string || null}
3937
+ */
3938
+ this.Host = null;
3939
+
3871
3940
  }
3872
3941
 
3873
3942
  /**
@@ -3895,6 +3964,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
3895
3964
  this.TsMin = 'TsMin' in params ? params.TsMin : null;
3896
3965
  this.User = 'User' in params ? params.User : null;
3897
3966
  this.ExampleSql = 'ExampleSql' in params ? params.ExampleSql : null;
3967
+ this.Host = 'Host' in params ? params.Host : null;
3898
3968
 
3899
3969
  }
3900
3970
  }
@@ -4209,8 +4279,8 @@ Note: if the parameter is left empty, no change will be made to the granted data
4209
4279
  this.DatabasePrivileges = null;
4210
4280
 
4211
4281
  /**
4212
- * Table permission. Valid values of `Privileges`: `"SELECT"`, `"INSERT"`, `"UPDATE"`, `"DELETE"`, `"CREATE"`, `"DROP"`, `"REFERENCES"`, `"INDEX"`, `"ALTER"`, `"CREATE VIEW"`, `"SHOW VIEW"`, `"TRIGGER"`.
4213
- Note: if the parameter is left empty, no change will be made to the granted table permissions. To clear the granted table permissions, set `Privileges` to an empty array.
4282
+ * Database table permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
4283
+ Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set `Privileges` to an empty array.
4214
4284
  * @type {Array.<TablePrivilege> || null}
4215
4285
  */
4216
4286
  this.TablePrivileges = null;
@@ -4223,22 +4293,22 @@ Note: if the parameter is left empty, no change will be made to the granted colu
4223
4293
  this.ColumnPrivileges = null;
4224
4294
 
4225
4295
  /**
4226
- * View permission. Valid values of `Privileges`: `"SELECT"`, `"INSERT"`, `"UPDATE"`, `"DELETE"`, `"CREATE"`, `"DROP"`, `"REFERENCES"`, `"INDEX"`, `"ALTER"`, `"CREATE VIEW"`, `"SHOW VIEW"`, `"TRIGGER"`.
4227
- Note: if the parameter is left empty, no change will be made to the granted view permissions. To clear the granted view permissions, set `Privileges` to an empty array.
4296
+ * Database view permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
4297
+ Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set `Privileges` to an empty array.
4228
4298
  * @type {Array.<ViewPrivileges> || null}
4229
4299
  */
4230
4300
  this.ViewPrivileges = null;
4231
4301
 
4232
4302
  /**
4233
- * Function permissions. Valid values of `Privileges`: `"ALTER ROUTINE"`, `"EXECUTE"`.
4234
- Note: if the parameter is left empty, no change will be made to the granted function permissions. To clear the granted function permissions, set `Privileges` to an empty array.
4303
+ * Database function permissions. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
4304
+ Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set `Privileges` to an empty array.
4235
4305
  * @type {Array.<FunctionPrivilege> || null}
4236
4306
  */
4237
4307
  this.FunctionPrivileges = null;
4238
4308
 
4239
4309
  /**
4240
- * Stored procedure permission. Valid values of `Privileges`: `"ALTER ROUTINE"`, `"EXECUTE"`.
4241
- Note: if the parameter is left empty, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set `Privileges` to an empty array.
4310
+ * Database stored procedure permission. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
4311
+ Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set `Privileges` to an empty array.
4242
4312
  * @type {Array.<ProcedurePrivilege> || null}
4243
4313
  */
4244
4314
  this.ProcedurePrivileges = null;
@@ -4469,6 +4539,41 @@ class DescribeDBPerformanceResponse extends AbstractModel {
4469
4539
  }
4470
4540
  }
4471
4541
 
4542
+ /**
4543
+ * ModifyDBSyncMode request structure.
4544
+ * @class
4545
+ */
4546
+ class ModifyDBSyncModeRequest extends AbstractModel {
4547
+ constructor(){
4548
+ super();
4549
+
4550
+ /**
4551
+ * ID of an instance for which to modify the sync mode. The ID is in the format of tdsql-ow728lmc.
4552
+ * @type {string || null}
4553
+ */
4554
+ this.InstanceId = null;
4555
+
4556
+ /**
4557
+ * Sync mode. Valid values: `0` (async), `1` (strong sync), `2` (downgradable strong sync).
4558
+ * @type {number || null}
4559
+ */
4560
+ this.SyncMode = null;
4561
+
4562
+ }
4563
+
4564
+ /**
4565
+ * @private
4566
+ */
4567
+ deserialize(params) {
4568
+ if (!params) {
4569
+ return;
4570
+ }
4571
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
4572
+ this.SyncMode = 'SyncMode' in params ? params.SyncMode : null;
4573
+
4574
+ }
4575
+ }
4576
+
4472
4577
  /**
4473
4578
  * DescribeInstanceNodeInfo request structure.
4474
4579
  * @class
@@ -5343,6 +5448,41 @@ class MonitorData extends AbstractModel {
5343
5448
  }
5344
5449
  }
5345
5450
 
5451
+ /**
5452
+ * ModifyDBSyncMode response structure.
5453
+ * @class
5454
+ */
5455
+ class ModifyDBSyncModeResponse extends AbstractModel {
5456
+ constructor(){
5457
+ super();
5458
+
5459
+ /**
5460
+ * Async task ID. The task status can be queried through the `DescribeFlow` API.
5461
+ * @type {number || null}
5462
+ */
5463
+ this.FlowId = null;
5464
+
5465
+ /**
5466
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
5467
+ * @type {string || null}
5468
+ */
5469
+ this.RequestId = null;
5470
+
5471
+ }
5472
+
5473
+ /**
5474
+ * @private
5475
+ */
5476
+ deserialize(params) {
5477
+ if (!params) {
5478
+ return;
5479
+ }
5480
+ this.FlowId = 'FlowId' in params ? params.FlowId : null;
5481
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
5482
+
5483
+ }
5484
+ }
5485
+
5346
5486
  /**
5347
5487
  * DescribeInstanceNodeInfo response structure.
5348
5488
  * @class
@@ -5564,6 +5704,7 @@ module.exports = {
5564
5704
  DBBackupTimeConfig: DBBackupTimeConfig,
5565
5705
  DescribeDBLogFilesRequest: DescribeDBLogFilesRequest,
5566
5706
  NodeInfo: NodeInfo,
5707
+ ModifySyncTaskAttributeResponse: ModifySyncTaskAttributeResponse,
5567
5708
  ModifyDBInstanceSecurityGroupsResponse: ModifyDBInstanceSecurityGroupsResponse,
5568
5709
  ResetAccountPasswordRequest: ResetAccountPasswordRequest,
5569
5710
  CopyAccountPrivilegesResponse: CopyAccountPrivilegesResponse,
@@ -5589,6 +5730,7 @@ module.exports = {
5589
5730
  ModifyBackupTimeRequest: ModifyBackupTimeRequest,
5590
5731
  SecurityGroupBound: SecurityGroupBound,
5591
5732
  ColumnPrivilege: ColumnPrivilege,
5733
+ ModifySyncTaskAttributeRequest: ModifySyncTaskAttributeRequest,
5592
5734
  InitDBInstancesRequest: InitDBInstancesRequest,
5593
5735
  AssociateSecurityGroupsResponse: AssociateSecurityGroupsResponse,
5594
5736
  DBInstance: DBInstance,
@@ -5615,6 +5757,7 @@ module.exports = {
5615
5757
  DescribeFlowRequest: DescribeFlowRequest,
5616
5758
  ModifyAccountPrivilegesRequest: ModifyAccountPrivilegesRequest,
5617
5759
  DescribeDBPerformanceResponse: DescribeDBPerformanceResponse,
5760
+ ModifyDBSyncModeRequest: ModifyDBSyncModeRequest,
5618
5761
  DescribeInstanceNodeInfoRequest: DescribeInstanceNodeInfoRequest,
5619
5762
  CreateAccountResponse: CreateAccountResponse,
5620
5763
  DescribeLogFileRetentionPeriodResponse: DescribeLogFileRetentionPeriodResponse,
@@ -5632,6 +5775,7 @@ module.exports = {
5632
5775
  DescribeLogFileRetentionPeriodRequest: DescribeLogFileRetentionPeriodRequest,
5633
5776
  ModifyDBInstancesProjectRequest: ModifyDBInstancesProjectRequest,
5634
5777
  MonitorData: MonitorData,
5778
+ ModifyDBSyncModeResponse: ModifyDBSyncModeResponse,
5635
5779
  DescribeInstanceNodeInfoResponse: DescribeInstanceNodeInfoResponse,
5636
5780
  ModifyLogFileRetentionPeriodResponse: ModifyLogFileRetentionPeriodResponse,
5637
5781
  DisassociateSecurityGroupsResponse: DisassociateSecurityGroupsResponse,
@@ -8031,6 +8031,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
8031
8031
  */
8032
8032
  this.Output = null;
8033
8033
 
8034
+ /**
8035
+ * Transcoding progress. Value range: 0-100
8036
+ Note: This field may return `null`, indicating that no valid value was found.
8037
+ * @type {number || null}
8038
+ */
8039
+ this.Progress = null;
8040
+
8034
8041
  }
8035
8042
 
8036
8043
  /**
@@ -8056,6 +8063,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
8056
8063
  obj.deserialize(params.Output)
8057
8064
  this.Output = obj;
8058
8065
  }
8066
+ this.Progress = 'Progress' in params ? params.Progress : null;
8059
8067
 
8060
8068
  }
8061
8069
  }
@@ -1399,6 +1399,35 @@ class DescribeExistedInstancesRequest extends AbstractModel {
1399
1399
  }
1400
1400
  }
1401
1401
 
1402
+ /**
1403
+ * Node custom parameter
1404
+ * @class
1405
+ */
1406
+ class InstanceExtraArgs extends AbstractModel {
1407
+ constructor(){
1408
+ super();
1409
+
1410
+ /**
1411
+ * Kubelet custom parameter, in the format of ["k1=v1", "k1=v2"], for example: ["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"].
1412
+ Note: this field may return `null`, indicating that no valid value is obtained.
1413
+ * @type {Array.<string> || null}
1414
+ */
1415
+ this.Kubelet = null;
1416
+
1417
+ }
1418
+
1419
+ /**
1420
+ * @private
1421
+ */
1422
+ deserialize(params) {
1423
+ if (!params) {
1424
+ return;
1425
+ }
1426
+ this.Kubelet = 'Kubelet' in params ? params.Kubelet : null;
1427
+
1428
+ }
1429
+ }
1430
+
1402
1431
  /**
1403
1432
  * DescribeRegions response structure.
1404
1433
  * @class
@@ -1591,6 +1620,34 @@ class RouteTableInfo extends AbstractModel {
1591
1620
  }
1592
1621
  }
1593
1622
 
1623
+ /**
1624
+ * EnableClusterDeletionProtection response structure.
1625
+ * @class
1626
+ */
1627
+ class EnableClusterDeletionProtectionResponse extends AbstractModel {
1628
+ constructor(){
1629
+ super();
1630
+
1631
+ /**
1632
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1633
+ * @type {string || null}
1634
+ */
1635
+ this.RequestId = null;
1636
+
1637
+ }
1638
+
1639
+ /**
1640
+ * @private
1641
+ */
1642
+ deserialize(params) {
1643
+ if (!params) {
1644
+ return;
1645
+ }
1646
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1647
+
1648
+ }
1649
+ }
1650
+
1594
1651
  /**
1595
1652
  * Cluster-associated scaling group information
1596
1653
  * @class
@@ -3913,6 +3970,34 @@ class GetUpgradeInstanceProgressRequest extends AbstractModel {
3913
3970
  }
3914
3971
  }
3915
3972
 
3973
+ /**
3974
+ * EnableClusterDeletionProtection request structure.
3975
+ * @class
3976
+ */
3977
+ class EnableClusterDeletionProtectionRequest extends AbstractModel {
3978
+ constructor(){
3979
+ super();
3980
+
3981
+ /**
3982
+ * Cluster ID
3983
+ * @type {string || null}
3984
+ */
3985
+ this.ClusterId = null;
3986
+
3987
+ }
3988
+
3989
+ /**
3990
+ * @private
3991
+ */
3992
+ deserialize(params) {
3993
+ if (!params) {
3994
+ return;
3995
+ }
3996
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3997
+
3998
+ }
3999
+ }
4000
+
3916
4001
  /**
3917
4002
  * AddNodeToNodePool response structure.
3918
4003
  * @class
@@ -3942,19 +4027,18 @@ class AddNodeToNodePoolResponse extends AbstractModel {
3942
4027
  }
3943
4028
 
3944
4029
  /**
3945
- * Node custom parameter
4030
+ * DisableClusterDeletionProtection request structure.
3946
4031
  * @class
3947
4032
  */
3948
- class InstanceExtraArgs extends AbstractModel {
4033
+ class DisableClusterDeletionProtectionRequest extends AbstractModel {
3949
4034
  constructor(){
3950
4035
  super();
3951
4036
 
3952
4037
  /**
3953
- * Kubelet custom parameter, in the format of ["k1=v1", "k1=v2"], for example: ["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"].
3954
- Note: this field may return `null`, indicating that no valid value is obtained.
3955
- * @type {Array.<string> || null}
4038
+ * Cluster ID
4039
+ * @type {string || null}
3956
4040
  */
3957
- this.Kubelet = null;
4041
+ this.ClusterId = null;
3958
4042
 
3959
4043
  }
3960
4044
 
@@ -3965,7 +4049,7 @@ Note: this field may return `null`, indicating that no valid value is obtained.
3965
4049
  if (!params) {
3966
4050
  return;
3967
4051
  }
3968
- this.Kubelet = 'Kubelet' in params ? params.Kubelet : null;
4052
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3969
4053
 
3970
4054
  }
3971
4055
  }
@@ -6960,6 +7044,34 @@ class CreateClusterInstancesResponse extends AbstractModel {
6960
7044
  }
6961
7045
  }
6962
7046
 
7047
+ /**
7048
+ * DisableClusterDeletionProtection response structure.
7049
+ * @class
7050
+ */
7051
+ class DisableClusterDeletionProtectionResponse extends AbstractModel {
7052
+ constructor(){
7053
+ super();
7054
+
7055
+ /**
7056
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
7057
+ * @type {string || null}
7058
+ */
7059
+ this.RequestId = null;
7060
+
7061
+ }
7062
+
7063
+ /**
7064
+ * @private
7065
+ */
7066
+ deserialize(params) {
7067
+ if (!params) {
7068
+ return;
7069
+ }
7070
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
7071
+
7072
+ }
7073
+ }
7074
+
6963
7075
  /**
6964
7076
  * DescribeClusterAsGroupOption request structure.
6965
7077
  * @class
@@ -9040,11 +9152,13 @@ module.exports = {
9040
9152
  RunInstancesForNode: RunInstancesForNode,
9041
9153
  DeleteClusterAsGroupsRequest: DeleteClusterAsGroupsRequest,
9042
9154
  DescribeExistedInstancesRequest: DescribeExistedInstancesRequest,
9155
+ InstanceExtraArgs: InstanceExtraArgs,
9043
9156
  DescribeRegionsResponse: DescribeRegionsResponse,
9044
9157
  ModifyPrometheusAlertRuleResponse: ModifyPrometheusAlertRuleResponse,
9045
9158
  AddNodeToNodePoolRequest: AddNodeToNodePoolRequest,
9046
9159
  EnableVpcCniNetworkTypeResponse: EnableVpcCniNetworkTypeResponse,
9047
9160
  RouteTableInfo: RouteTableInfo,
9161
+ EnableClusterDeletionProtectionResponse: EnableClusterDeletionProtectionResponse,
9048
9162
  ClusterAsGroup: ClusterAsGroup,
9049
9163
  Instance: Instance,
9050
9164
  DescribeVpcCniPodLimitsResponse: DescribeVpcCniPodLimitsResponse,
@@ -9089,8 +9203,9 @@ module.exports = {
9089
9203
  DescribeClusterNodePoolsResponse: DescribeClusterNodePoolsResponse,
9090
9204
  UpgradeAbleInstancesItem: UpgradeAbleInstancesItem,
9091
9205
  GetUpgradeInstanceProgressRequest: GetUpgradeInstanceProgressRequest,
9206
+ EnableClusterDeletionProtectionRequest: EnableClusterDeletionProtectionRequest,
9092
9207
  AddNodeToNodePoolResponse: AddNodeToNodePoolResponse,
9093
- InstanceExtraArgs: InstanceExtraArgs,
9208
+ DisableClusterDeletionProtectionRequest: DisableClusterDeletionProtectionRequest,
9094
9209
  DescribeRegionsRequest: DescribeRegionsRequest,
9095
9210
  DescribeClustersResponse: DescribeClustersResponse,
9096
9211
  DescribeVpcCniPodLimitsRequest: DescribeVpcCniPodLimitsRequest,
@@ -9148,6 +9263,7 @@ module.exports = {
9148
9263
  AddExistedInstancesResponse: AddExistedInstancesResponse,
9149
9264
  DeleteClusterRouteTableResponse: DeleteClusterRouteTableResponse,
9150
9265
  CreateClusterInstancesResponse: CreateClusterInstancesResponse,
9266
+ DisableClusterDeletionProtectionResponse: DisableClusterDeletionProtectionResponse,
9151
9267
  DescribeClusterAsGroupOptionRequest: DescribeClusterAsGroupOptionRequest,
9152
9268
  ModifyClusterAttributeResponse: ModifyClusterAttributeResponse,
9153
9269
  CreateClusterEndpointRequest: CreateClusterEndpointRequest,
@@ -42,11 +42,13 @@ const DeleteClusterRequest = models.DeleteClusterRequest;
42
42
  const RunInstancesForNode = models.RunInstancesForNode;
43
43
  const DeleteClusterAsGroupsRequest = models.DeleteClusterAsGroupsRequest;
44
44
  const DescribeExistedInstancesRequest = models.DescribeExistedInstancesRequest;
45
+ const InstanceExtraArgs = models.InstanceExtraArgs;
45
46
  const DescribeRegionsResponse = models.DescribeRegionsResponse;
46
47
  const ModifyPrometheusAlertRuleResponse = models.ModifyPrometheusAlertRuleResponse;
47
48
  const AddNodeToNodePoolRequest = models.AddNodeToNodePoolRequest;
48
49
  const EnableVpcCniNetworkTypeResponse = models.EnableVpcCniNetworkTypeResponse;
49
50
  const RouteTableInfo = models.RouteTableInfo;
51
+ const EnableClusterDeletionProtectionResponse = models.EnableClusterDeletionProtectionResponse;
50
52
  const ClusterAsGroup = models.ClusterAsGroup;
51
53
  const Instance = models.Instance;
52
54
  const DescribeVpcCniPodLimitsResponse = models.DescribeVpcCniPodLimitsResponse;
@@ -91,8 +93,9 @@ const ModifyNodePoolInstanceTypesRequest = models.ModifyNodePoolInstanceTypesReq
91
93
  const DescribeClusterNodePoolsResponse = models.DescribeClusterNodePoolsResponse;
92
94
  const UpgradeAbleInstancesItem = models.UpgradeAbleInstancesItem;
93
95
  const GetUpgradeInstanceProgressRequest = models.GetUpgradeInstanceProgressRequest;
96
+ const EnableClusterDeletionProtectionRequest = models.EnableClusterDeletionProtectionRequest;
94
97
  const AddNodeToNodePoolResponse = models.AddNodeToNodePoolResponse;
95
- const InstanceExtraArgs = models.InstanceExtraArgs;
98
+ const DisableClusterDeletionProtectionRequest = models.DisableClusterDeletionProtectionRequest;
96
99
  const DescribeRegionsRequest = models.DescribeRegionsRequest;
97
100
  const DescribeClustersResponse = models.DescribeClustersResponse;
98
101
  const DescribeVpcCniPodLimitsRequest = models.DescribeVpcCniPodLimitsRequest;
@@ -150,6 +153,7 @@ const UpgradeClusterInstancesResponse = models.UpgradeClusterInstancesResponse;
150
153
  const AddExistedInstancesResponse = models.AddExistedInstancesResponse;
151
154
  const DeleteClusterRouteTableResponse = models.DeleteClusterRouteTableResponse;
152
155
  const CreateClusterInstancesResponse = models.CreateClusterInstancesResponse;
156
+ const DisableClusterDeletionProtectionResponse = models.DisableClusterDeletionProtectionResponse;
153
157
  const DescribeClusterAsGroupOptionRequest = models.DescribeClusterAsGroupOptionRequest;
154
158
  const ModifyClusterAttributeResponse = models.ModifyClusterAttributeResponse;
155
159
  const CreateClusterEndpointRequest = models.CreateClusterEndpointRequest;
@@ -239,6 +243,17 @@ class TkeClient extends AbstractClient {
239
243
  this.request("CreateCluster", req, resp, cb);
240
244
  }
241
245
 
246
+ /**
247
+ * This API is used to remove a node from a node pool but retain it in the cluster.
248
+ * @param {RemoveNodeFromNodePoolRequest} req
249
+ * @param {function(string, RemoveNodeFromNodePoolResponse):void} cb
250
+ * @public
251
+ */
252
+ RemoveNodeFromNodePool(req, cb) {
253
+ let resp = new RemoveNodeFromNodePoolResponse();
254
+ this.request("RemoveNodeFromNodePool", req, resp, cb);
255
+ }
256
+
242
257
  /**
243
258
  * This API is used to query detailed information of a node pool.
244
259
  * @param {DescribeClusterNodePoolDetailRequest} req
@@ -492,6 +507,17 @@ class TkeClient extends AbstractClient {
492
507
  this.request("DescribeExistedInstances", req, resp, cb);
493
508
  }
494
509
 
510
+ /**
511
+ * This API is used to enable cluster deletion protection.
512
+ * @param {EnableClusterDeletionProtectionRequest} req
513
+ * @param {function(string, EnableClusterDeletionProtectionResponse):void} cb
514
+ * @public
515
+ */
516
+ EnableClusterDeletionProtection(req, cb) {
517
+ let resp = new EnableClusterDeletionProtectionResponse();
518
+ this.request("EnableClusterDeletionProtection", req, resp, cb);
519
+ }
520
+
495
521
  /**
496
522
  * This API is used to query the node pool list
497
523
  * @param {DescribeClusterNodePoolsRequest} req
@@ -702,14 +728,14 @@ class TkeClient extends AbstractClient {
702
728
  }
703
729
 
704
730
  /**
705
- * This API is used to remove a node from a node pool but retain it in the cluster.
706
- * @param {RemoveNodeFromNodePoolRequest} req
707
- * @param {function(string, RemoveNodeFromNodePoolResponse):void} cb
731
+ * This API is used to disable cluster deletion protection.
732
+ * @param {DisableClusterDeletionProtectionRequest} req
733
+ * @param {function(string, DisableClusterDeletionProtectionResponse):void} cb
708
734
  * @public
709
735
  */
710
- RemoveNodeFromNodePool(req, cb) {
711
- let resp = new RemoveNodeFromNodePoolResponse();
712
- this.request("RemoveNodeFromNodePool", req, resp, cb);
736
+ DisableClusterDeletionProtection(req, cb) {
737
+ let resp = new DisableClusterDeletionProtectionResponse();
738
+ this.request("DisableClusterDeletionProtection", req, resp, cb);
713
739
  }
714
740
 
715
741
  /**