tencentcloud-sdk-nodejs-intl-en 3.0.338 → 3.0.342

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.338",
3
+ "version": "3.0.342",
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,
@@ -1379,7 +1379,6 @@ Hourly RI fee
1379
1379
  New monthly subscription
1380
1380
  Monthly subscription renewal
1381
1381
  Monthly subscription specification adjustment
1382
- Monthly subscription specification adjustment
1383
1382
  Monthly subscription refund
1384
1383
  * @type {string || null}
1385
1384
  */
@@ -1500,7 +1500,7 @@ class RemoveUserFromGroupRequest extends AbstractModel {
1500
1500
  super();
1501
1501
 
1502
1502
  /**
1503
- * The UID of the user to be deleted and an array corresponding to the User Group IDs
1503
+ * The user’s UIN/UID to be deleted and the array corresponding to the user group ID.
1504
1504
  * @type {Array.<GroupIdOfUidInfo> || null}
1505
1505
  */
1506
1506
  this.Info = null;
@@ -1694,6 +1694,12 @@ class GroupIdOfUidInfo extends AbstractModel {
1694
1694
  constructor(){
1695
1695
  super();
1696
1696
 
1697
+ /**
1698
+ * User Group ID
1699
+ * @type {number || null}
1700
+ */
1701
+ this.GroupId = null;
1702
+
1697
1703
  /**
1698
1704
  * Sub-user UID
1699
1705
  * @type {number || null}
@@ -1701,10 +1707,10 @@ class GroupIdOfUidInfo extends AbstractModel {
1701
1707
  this.Uid = null;
1702
1708
 
1703
1709
  /**
1704
- * User Group ID
1710
+ * Sub-user UIN. For UIN and UID, at least one of them is required.
1705
1711
  * @type {number || null}
1706
1712
  */
1707
- this.GroupId = null;
1713
+ this.Uin = null;
1708
1714
 
1709
1715
  }
1710
1716
 
@@ -1715,8 +1721,9 @@ class GroupIdOfUidInfo extends AbstractModel {
1715
1721
  if (!params) {
1716
1722
  return;
1717
1723
  }
1718
- this.Uid = 'Uid' in params ? params.Uid : null;
1719
1724
  this.GroupId = 'GroupId' in params ? params.GroupId : null;
1725
+ this.Uid = 'Uid' in params ? params.Uid : null;
1726
+ this.Uin = 'Uin' in params ? params.Uin : null;
1720
1727
 
1721
1728
  }
1722
1729
  }
@@ -4832,7 +4839,7 @@ class AddUserToGroupRequest extends AbstractModel {
4832
4839
  super();
4833
4840
 
4834
4841
  /**
4835
- * How sub-user UIDs are associated with the ID of the user group they are added to.
4842
+ * The association between the user group ID and the sub-user UIN/UID.
4836
4843
  * @type {Array.<GroupIdOfUidInfo> || null}
4837
4844
  */
4838
4845
  this.Info = null;
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.338";
1
+ const sdkVersion = "3.0.342";
2
2
  module.exports = sdkVersion
@@ -88,27 +88,31 @@ class LivenessCompareRequest extends AbstractModel {
88
88
  super();
89
89
 
90
90
  /**
91
- * Base64 string of the image for face comparison.
92
- The size of the Base64-encoded image data can be up to 3 MB. JPG and PNG formats are supported.
93
- Please use the standard Base64 encoding scheme (with the "=" padding). For the encoding conventions, please see RFC 4648.
91
+ * Liveness detection type. Valid values: LIP/ACTION/SILENT.
92
+ LIP: numeric mode; ACTION: motion mode; SILENT: silent mode. You need to select a mode to input.
94
93
  * @type {string || null}
95
94
  */
96
- this.ImageBase64 = null;
95
+ this.LivenessType = null;
97
96
 
98
97
  /**
99
- * Base64 string of the video for liveness detection.
100
- The size of the Base64-encoded video data can be up to 8 MB. MP4, AVI, and FLV formats are supported.
98
+ * Base64 string of the image for face comparison.
99
+ The size of the Base64-encoded image data can be up to 3 MB. JPG and PNG formats are supported.
101
100
  Please use the standard Base64 encoding scheme (with the "=" padding). For the encoding conventions, please see RFC 4648.
101
+
102
+ Either the `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageBase64` will be used.
102
103
  * @type {string || null}
103
104
  */
104
- this.VideoBase64 = null;
105
+ this.ImageBase64 = null;
105
106
 
106
107
  /**
107
- * Liveness detection type. Valid values: LIP/ACTION/SILENT.
108
- LIP: numeric mode; ACTION: motion mode; SILENT: silent mode. You need to select a mode to input.
108
+ * URL of the image for face comparison. The size of the downloaded image after Base64 encoding can be up to 3 MB. JPG and PNG formats are supported.
109
+
110
+ Either the `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageBase64` will be used.
111
+
112
+ We recommend you store the image in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability. The download speed and stability of non-Tencent Cloud URLs may be low.
109
113
  * @type {string || null}
110
114
  */
111
- this.LivenessType = null;
115
+ this.ImageUrl = null;
112
116
 
113
117
  /**
114
118
  * Lip mode: set this parameter to a custom 4-digit verification code.
@@ -127,6 +131,26 @@ Silent mode: do not pass in this parameter.
127
131
  */
128
132
  this.Optional = null;
129
133
 
134
+ /**
135
+ * Base64 string of the video for liveness detection.
136
+ The size of the Base64-encoded video data can be up to 8 MB. MP4, AVI, and FLV formats are supported.
137
+ Please use the standard Base64 encoding scheme (with the "=" padding). For the encoding conventions, please see RFC 4648.
138
+
139
+ Either the `VideoUrl` or `VideoBase64` of the video must be provided. If both are provided, only `VideoBase64` will be used.
140
+ * @type {string || null}
141
+ */
142
+ this.VideoBase64 = null;
143
+
144
+ /**
145
+ * URL of the video for liveness detection. The size of the downloaded video after Base64 encoding can be up to 8 MB. It takes no more than 4 seconds to download. MP4, AVI, and FLV formats are supported.
146
+
147
+ Either the `VideoUrl` or `VideoBase64` of the video must be provided. If both are provided, only `VideoBase64` will be used.
148
+
149
+ We recommend you store the video in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability. The download speed and stability of non-Tencent Cloud URLs may be low.
150
+ * @type {string || null}
151
+ */
152
+ this.VideoUrl = null;
153
+
130
154
  }
131
155
 
132
156
  /**
@@ -136,11 +160,13 @@ Silent mode: do not pass in this parameter.
136
160
  if (!params) {
137
161
  return;
138
162
  }
139
- this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
140
- this.VideoBase64 = 'VideoBase64' in params ? params.VideoBase64 : null;
141
163
  this.LivenessType = 'LivenessType' in params ? params.LivenessType : null;
164
+ this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
165
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
142
166
  this.ValidateData = 'ValidateData' in params ? params.ValidateData : null;
143
167
  this.Optional = 'Optional' in params ? params.Optional : null;
168
+ this.VideoBase64 = 'VideoBase64' in params ? params.VideoBase64 : null;
169
+ this.VideoUrl = 'VideoUrl' in params ? params.VideoUrl : null;
144
170
 
145
171
  }
146
172
  }
@@ -604,16 +604,22 @@ class BindingPolicyObjectRequest extends AbstractModel {
604
604
  super();
605
605
 
606
606
  /**
607
- * Policy group ID. If `PolicyId` is used, this parameter will be ignored, and any value, e.g., 0, can be passed in.
607
+ * Required. The value is fixed to monitor.
608
+ * @type {string || null}
609
+ */
610
+ this.Module = null;
611
+
612
+ /**
613
+ * Policy group ID, such as `4739573`. This parameter will be disused soon. Another parameter `PolicyId` is recommended.
608
614
  * @type {number || null}
609
615
  */
610
616
  this.GroupId = null;
611
617
 
612
618
  /**
613
- * Required. The value is fixed to monitor.
619
+ * Alarm policy ID, such as `policy-gh892hg0`. At least one of the two parameters, `PolicyId` and `GroupId`, must be specified; otherwise, an error will be reported. `PolicyId` is preferred over `GroupId` when both of them are specified.
614
620
  * @type {string || null}
615
621
  */
616
- this.Module = null;
622
+ this.PolicyId = null;
617
623
 
618
624
  /**
619
625
  * Instance group ID.
@@ -627,12 +633,6 @@ class BindingPolicyObjectRequest extends AbstractModel {
627
633
  */
628
634
  this.Dimensions = null;
629
635
 
630
- /**
631
- * Alarm policy ID. If this parameter is used, `GroupId` will be ignored.
632
- * @type {string || null}
633
- */
634
- this.PolicyId = null;
635
-
636
636
  }
637
637
 
638
638
  /**
@@ -642,8 +642,9 @@ class BindingPolicyObjectRequest extends AbstractModel {
642
642
  if (!params) {
643
643
  return;
644
644
  }
645
- this.GroupId = 'GroupId' in params ? params.GroupId : null;
646
645
  this.Module = 'Module' in params ? params.Module : null;
646
+ this.GroupId = 'GroupId' in params ? params.GroupId : null;
647
+ this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
647
648
  this.InstanceGroupId = 'InstanceGroupId' in params ? params.InstanceGroupId : null;
648
649
 
649
650
  if (params.Dimensions) {
@@ -654,7 +655,6 @@ class BindingPolicyObjectRequest extends AbstractModel {
654
655
  this.Dimensions.push(obj);
655
656
  }
656
657
  }
657
- this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
658
658
 
659
659
  }
660
660
  }
@@ -2081,13 +2081,13 @@ class ModifyDBInstanceSpecRequest extends AbstractModel {
2081
2081
  this.SwitchTag = null;
2082
2082
 
2083
2083
  /**
2084
- * The earliest time to start a switch.
2084
+ * The earliest time to start a switch in the format of "HH:MM:SS", such as "01:00:00".
2085
2085
  * @type {string || null}
2086
2086
  */
2087
2087
  this.SwitchStartTime = null;
2088
2088
 
2089
2089
  /**
2090
- * The latest time to start a switch.
2090
+ * The latest time to start a switch in the format of "HH:MM:SS", such as "01:30:00".
2091
2091
  * @type {string || null}
2092
2092
  */
2093
2093
  this.SwitchEndTime = null;
@@ -2247,6 +2247,56 @@ class DescribeZonesRequest extends AbstractModel {
2247
2247
  }
2248
2248
  }
2249
2249
 
2250
+ /**
2251
+ * Purchasable specification details in an AZ in a region.
2252
+ * @class
2253
+ */
2254
+ class SpecInfo extends AbstractModel {
2255
+ constructor(){
2256
+ super();
2257
+
2258
+ /**
2259
+ * Region abbreviation, which corresponds to the `Region` field of `RegionSet`
2260
+ * @type {string || null}
2261
+ */
2262
+ this.Region = null;
2263
+
2264
+ /**
2265
+ * AZ abbreviate, which corresponds to the `Zone` field of `ZoneSet`
2266
+ * @type {string || null}
2267
+ */
2268
+ this.Zone = null;
2269
+
2270
+ /**
2271
+ * Specification details list
2272
+ * @type {Array.<SpecItemInfo> || null}
2273
+ */
2274
+ this.SpecItemInfoList = null;
2275
+
2276
+ }
2277
+
2278
+ /**
2279
+ * @private
2280
+ */
2281
+ deserialize(params) {
2282
+ if (!params) {
2283
+ return;
2284
+ }
2285
+ this.Region = 'Region' in params ? params.Region : null;
2286
+ this.Zone = 'Zone' in params ? params.Zone : null;
2287
+
2288
+ if (params.SpecItemInfoList) {
2289
+ this.SpecItemInfoList = new Array();
2290
+ for (let z in params.SpecItemInfoList) {
2291
+ let obj = new SpecItemInfo();
2292
+ obj.deserialize(params.SpecItemInfoList[z]);
2293
+ this.SpecItemInfoList.push(obj);
2294
+ }
2295
+ }
2296
+
2297
+ }
2298
+ }
2299
+
2250
2300
  /**
2251
2301
  * DescribeReadOnlyGroups response structure.
2252
2302
  * @class
@@ -2326,30 +2376,68 @@ class SetAutoRenewFlagResponse extends AbstractModel {
2326
2376
  }
2327
2377
 
2328
2378
  /**
2329
- * Purchasable specification details in an AZ in a region.
2379
+ * Network information.
2330
2380
  * @class
2331
2381
  */
2332
- class SpecInfo extends AbstractModel {
2382
+ class NetworkAccess extends AbstractModel {
2333
2383
  constructor(){
2334
2384
  super();
2335
2385
 
2336
2386
  /**
2337
- * Region abbreviation, which corresponds to the `Region` field of `RegionSet`
2387
+ * Network resource ID, instance ID or RO group ID (this field has been deprecated)
2388
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2338
2389
  * @type {string || null}
2339
2390
  */
2340
- this.Region = null;
2391
+ this.ResourceId = null;
2341
2392
 
2342
2393
  /**
2343
- * AZ abbreviate, which corresponds to the `Zone` field of `ZoneSet`
2394
+ * Resource type. Valid values: `1` (instance), `2` (RO group) (this field has been deprecated)
2395
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2396
+ * @type {number || null}
2397
+ */
2398
+ this.ResourceType = null;
2399
+
2400
+ /**
2401
+ * VPC ID
2402
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2344
2403
  * @type {string || null}
2345
2404
  */
2346
- this.Zone = null;
2405
+ this.VpcId = null;
2347
2406
 
2348
2407
  /**
2349
- * Specification details list
2350
- * @type {Array.<SpecItemInfo> || null}
2408
+ * IPv4 address
2409
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2410
+ * @type {string || null}
2351
2411
  */
2352
- this.SpecItemInfoList = null;
2412
+ this.Vip = null;
2413
+
2414
+ /**
2415
+ * IPv6 address
2416
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2417
+ * @type {string || null}
2418
+ */
2419
+ this.Vip6 = null;
2420
+
2421
+ /**
2422
+ * Access port
2423
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2424
+ * @type {number || null}
2425
+ */
2426
+ this.Vport = null;
2427
+
2428
+ /**
2429
+ * Subnet ID
2430
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2431
+ * @type {string || null}
2432
+ */
2433
+ this.SubnetId = null;
2434
+
2435
+ /**
2436
+ * Network status. Valid values: `1` (applying), `2` (in use), `3` (deleting), `4` (deleted)
2437
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2438
+ * @type {number || null}
2439
+ */
2440
+ this.VpcStatus = null;
2353
2441
 
2354
2442
  }
2355
2443
 
@@ -2360,17 +2448,14 @@ class SpecInfo extends AbstractModel {
2360
2448
  if (!params) {
2361
2449
  return;
2362
2450
  }
2363
- this.Region = 'Region' in params ? params.Region : null;
2364
- this.Zone = 'Zone' in params ? params.Zone : null;
2365
-
2366
- if (params.SpecItemInfoList) {
2367
- this.SpecItemInfoList = new Array();
2368
- for (let z in params.SpecItemInfoList) {
2369
- let obj = new SpecItemInfo();
2370
- obj.deserialize(params.SpecItemInfoList[z]);
2371
- this.SpecItemInfoList.push(obj);
2372
- }
2373
- }
2451
+ this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
2452
+ this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
2453
+ this.VpcId = 'VpcId' in params ? params.VpcId : null;
2454
+ this.Vip = 'Vip' in params ? params.Vip : null;
2455
+ this.Vip6 = 'Vip6' in params ? params.Vip6 : null;
2456
+ this.Vport = 'Vport' in params ? params.Vport : null;
2457
+ this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
2458
+ this.VpcStatus = 'VpcStatus' in params ? params.VpcStatus : null;
2374
2459
 
2375
2460
  }
2376
2461
  }
@@ -2554,6 +2639,13 @@ Note: this field may return `null`, indicating that no valid values can be obtai
2554
2639
  */
2555
2640
  this.DBInstanceNetInfo = null;
2556
2641
 
2642
+ /**
2643
+ * Network information list of the RO group
2644
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2645
+ * @type {Array.<NetworkAccess> || null}
2646
+ */
2647
+ this.NetworkAccessList = null;
2648
+
2557
2649
  }
2558
2650
 
2559
2651
  /**
@@ -2597,6 +2689,15 @@ Note: this field may return `null`, indicating that no valid values can be obtai
2597
2689
  }
2598
2690
  }
2599
2691
 
2692
+ if (params.NetworkAccessList) {
2693
+ this.NetworkAccessList = new Array();
2694
+ for (let z in params.NetworkAccessList) {
2695
+ let obj = new NetworkAccess();
2696
+ obj.deserialize(params.NetworkAccessList[z]);
2697
+ this.NetworkAccessList.push(obj);
2698
+ }
2699
+ }
2700
+
2600
2701
  }
2601
2702
  }
2602
2703
 
@@ -3413,6 +3514,13 @@ Note: this field may return `null`, indicating that no valid values can be obtai
3413
3514
  */
3414
3515
  this.TagList = null;
3415
3516
 
3517
+ /**
3518
+ * Database kernel version
3519
+ Note: this field may return `null`, indicating that no valid values can be obtained.
3520
+ * @type {string || null}
3521
+ */
3522
+ this.DBKernelVersion = null;
3523
+
3416
3524
  }
3417
3525
 
3418
3526
  /**
@@ -3461,6 +3569,7 @@ Note: this field may return `null`, indicating that no valid values can be obtai
3461
3569
  this.TagList.push(obj);
3462
3570
  }
3463
3571
  }
3572
+ this.DBKernelVersion = 'DBKernelVersion' in params ? params.DBKernelVersion : null;
3464
3573
 
3465
3574
  }
3466
3575
  }
@@ -3745,7 +3854,10 @@ Note: this field may return `null`, indicating that no valid values can be obtai
3745
3854
  this.Name = null;
3746
3855
 
3747
3856
  /**
3748
- * Value type of the parameter. Valid values: `integer`, `real` (floating-point), `bool`, `enum`, `mutil_enum` (this type of parameter can be set to multiple enumerated values)
3857
+ * Value type of the parameter. Valid values: `integer`, `real` (floating-point), `bool`, `enum`, `mutil_enum` (this type of parameter can be set to multiple enumerated values).
3858
+ For an `integer` or `real` parameter, the `Min` field represents the minimum value and the `Max` field the maximum value.
3859
+ For a `bool` parameter, the valid values include `true` and `false`;
3860
+ For an `enum` or `mutil_enum` parameter, the `EnumValue` field represents the valid values.
3749
3861
  Note: this field may return `null`, indicating that no valid values can be obtained.
3750
3862
  * @type {string || null}
3751
3863
  */
@@ -4208,25 +4320,25 @@ class DescribeSlowQueryAnalysisRequest extends AbstractModel {
4208
4320
  this.DatabaseName = null;
4209
4321
 
4210
4322
  /**
4211
- * Sort by field. Valid values: `CallNum`, `CostTime`, `AvgCostTime`.
4323
+ * Sort by field. Valid values: `CallNum`, `CostTime`, `AvgCostTime`. Default value: `CallNum`.
4212
4324
  * @type {string || null}
4213
4325
  */
4214
4326
  this.OrderBy = null;
4215
4327
 
4216
4328
  /**
4217
- * Sorting order. Valid values: `asc` (ascending), `desc` (descending).
4329
+ * Sorting order. Valid values: `asc` (ascending), `desc` (descending). Default value: `desc`.
4218
4330
  * @type {string || null}
4219
4331
  */
4220
4332
  this.OrderByType = null;
4221
4333
 
4222
4334
  /**
4223
- * Number of entries per page. Value range: [1,100].
4335
+ * Number of entries per page. Value range: [1,100]. Default value: `50`.
4224
4336
  * @type {number || null}
4225
4337
  */
4226
4338
  this.Limit = null;
4227
4339
 
4228
4340
  /**
4229
- * Pagination offset. Value range: [0,INF).
4341
+ * Pagination offset. Value range: [0,INF). Default value: `0`.
4230
4342
  * @type {number || null}
4231
4343
  */
4232
4344
  this.Offset = null;
@@ -4528,7 +4640,7 @@ class DBInstance extends AbstractModel {
4528
4640
  this.DBCharset = null;
4529
4641
 
4530
4642
  /**
4531
- * PostgreSQL kernel version
4643
+ * PostgreSQL major version
4532
4644
  * @type {string || null}
4533
4645
  */
4534
4646
  this.DBVersion = null;
@@ -4634,6 +4746,20 @@ Note: this field may return null, indicating that no valid values can be obtaine
4634
4746
  */
4635
4747
  this.OfflineTime = null;
4636
4748
 
4749
+ /**
4750
+ * Database kernel version
4751
+ Note: this field may return `null`, indicating that no valid values can be obtained.
4752
+ * @type {string || null}
4753
+ */
4754
+ this.DBKernelVersion = null;
4755
+
4756
+ /**
4757
+ * Network information list of the instance
4758
+ Note: this field may return `null`, indicating that no valid values can be obtained.
4759
+ * @type {Array.<NetworkAccess> || null}
4760
+ */
4761
+ this.NetworkAccessList = null;
4762
+
4637
4763
  }
4638
4764
 
4639
4765
  /**
@@ -4691,6 +4817,16 @@ Note: this field may return null, indicating that no valid values can be obtaine
4691
4817
  this.ReadOnlyInstanceNum = 'ReadOnlyInstanceNum' in params ? params.ReadOnlyInstanceNum : null;
4692
4818
  this.StatusInReadonlyGroup = 'StatusInReadonlyGroup' in params ? params.StatusInReadonlyGroup : null;
4693
4819
  this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null;
4820
+ this.DBKernelVersion = 'DBKernelVersion' in params ? params.DBKernelVersion : null;
4821
+
4822
+ if (params.NetworkAccessList) {
4823
+ this.NetworkAccessList = new Array();
4824
+ for (let z in params.NetworkAccessList) {
4825
+ let obj = new NetworkAccess();
4826
+ obj.deserialize(params.NetworkAccessList[z]);
4827
+ this.NetworkAccessList.push(obj);
4828
+ }
4829
+ }
4694
4830
 
4695
4831
  }
4696
4832
  }
@@ -7111,9 +7247,10 @@ module.exports = {
7111
7247
  ModifyAccountRemarkResponse: ModifyAccountRemarkResponse,
7112
7248
  UpgradeDBInstanceRequest: UpgradeDBInstanceRequest,
7113
7249
  DescribeZonesRequest: DescribeZonesRequest,
7250
+ SpecInfo: SpecInfo,
7114
7251
  DescribeReadOnlyGroupsResponse: DescribeReadOnlyGroupsResponse,
7115
7252
  SetAutoRenewFlagResponse: SetAutoRenewFlagResponse,
7116
- SpecInfo: SpecInfo,
7253
+ NetworkAccess: NetworkAccess,
7117
7254
  ResetAccountPasswordResponse: ResetAccountPasswordResponse,
7118
7255
  ModifyDBInstancesProjectResponse: ModifyDBInstancesProjectResponse,
7119
7256
  ReadOnlyGroup: ReadOnlyGroup,
@@ -58,9 +58,10 @@ const ModifyDBInstanceSpecRequest = models.ModifyDBInstanceSpecRequest;
58
58
  const ModifyAccountRemarkResponse = models.ModifyAccountRemarkResponse;
59
59
  const UpgradeDBInstanceRequest = models.UpgradeDBInstanceRequest;
60
60
  const DescribeZonesRequest = models.DescribeZonesRequest;
61
+ const SpecInfo = models.SpecInfo;
61
62
  const DescribeReadOnlyGroupsResponse = models.DescribeReadOnlyGroupsResponse;
62
63
  const SetAutoRenewFlagResponse = models.SetAutoRenewFlagResponse;
63
- const SpecInfo = models.SpecInfo;
64
+ const NetworkAccess = models.NetworkAccess;
64
65
  const ResetAccountPasswordResponse = models.ResetAccountPasswordResponse;
65
66
  const ModifyDBInstancesProjectResponse = models.ModifyDBInstancesProjectResponse;
66
67
  const ReadOnlyGroup = models.ReadOnlyGroup;
@@ -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
  /**