tencentcloud-sdk-nodejs-intl-en 3.0.336 → 3.0.340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tencentcloud/antiddos/v20200309/antiddos_client.js +16 -1
- package/tencentcloud/antiddos/v20200309/models.js +355 -2
- package/tencentcloud/apigateway/v20180808/models.js +27 -3
- package/tencentcloud/billing/v20180709/models.js +37 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/mps/v20190612/models.js +8 -0
- package/tencentcloud/tke/v20180525/models.js +124 -8
- package/tencentcloud/tke/v20180525/tke_client.js +33 -7
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
1
|
+
const sdkVersion = "3.0.340";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -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
|
-
*
|
|
4030
|
+
* DisableClusterDeletionProtection request structure.
|
|
3946
4031
|
* @class
|
|
3947
4032
|
*/
|
|
3948
|
-
class
|
|
4033
|
+
class DisableClusterDeletionProtectionRequest extends AbstractModel {
|
|
3949
4034
|
constructor(){
|
|
3950
4035
|
super();
|
|
3951
4036
|
|
|
3952
4037
|
/**
|
|
3953
|
-
*
|
|
3954
|
-
|
|
3955
|
-
* @type {Array.<string> || null}
|
|
4038
|
+
* Cluster ID
|
|
4039
|
+
* @type {string || null}
|
|
3956
4040
|
*/
|
|
3957
|
-
this.
|
|
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.
|
|
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
|
-
|
|
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
|
|
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
|
|
706
|
-
* @param {
|
|
707
|
-
* @param {function(string,
|
|
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
|
-
|
|
711
|
-
let resp = new
|
|
712
|
-
this.request("
|
|
736
|
+
DisableClusterDeletionProtection(req, cb) {
|
|
737
|
+
let resp = new DisableClusterDeletionProtectionResponse();
|
|
738
|
+
this.request("DisableClusterDeletionProtection", req, resp, cb);
|
|
713
739
|
}
|
|
714
740
|
|
|
715
741
|
/**
|