tencentcloud-sdk-nodejs-intl-en 3.0.1144 → 3.0.1145

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.1144",
3
+ "version": "3.0.1145",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@ const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
19
  const CreateDefaultAlarmThresholdRequest = models.CreateDefaultAlarmThresholdRequest;
20
20
  const DescribeListBGPIPInstancesResponse = models.DescribeListBGPIPInstancesResponse;
21
- const DescribeBlackWhiteIpListResponse = models.DescribeBlackWhiteIpListResponse;
21
+ const ModifyNewDomainRulesRequest = models.ModifyNewDomainRulesRequest;
22
22
  const DeleteCCLevelPolicyRequest = models.DeleteCCLevelPolicyRequest;
23
23
  const ProxyTypeInfo = models.ProxyTypeInfo;
24
24
  const CreateBoundIPRequest = models.CreateBoundIPRequest;
@@ -32,7 +32,6 @@ const ModifyDDoSGeoIPBlockConfigRequest = models.ModifyDDoSGeoIPBlockConfigReque
32
32
  const DescribeL7RulesBySSLCertIdResponse = models.DescribeL7RulesBySSLCertIdResponse;
33
33
  const DescribeListDDoSSpeedLimitConfigRequest = models.DescribeListDDoSSpeedLimitConfigRequest;
34
34
  const InstanceRelation = models.InstanceRelation;
35
- const ModifyNewDomainRulesRequest = models.ModifyNewDomainRulesRequest;
36
35
  const RegionInfo = models.RegionInfo;
37
36
  const DescribeListProtocolBlockConfigResponse = models.DescribeListProtocolBlockConfigResponse;
38
37
  const DescribeListBGPInstancesRequest = models.DescribeListBGPInstancesRequest;
@@ -51,7 +50,6 @@ const CreateCcBlackWhiteIpListResponse = models.CreateCcBlackWhiteIpListResponse
51
50
  const DescribeDefaultAlarmThresholdResponse = models.DescribeDefaultAlarmThresholdResponse;
52
51
  const CreateNewL7RulesResponse = models.CreateNewL7RulesResponse;
53
52
  const CreateDDoSAIRequest = models.CreateDDoSAIRequest;
54
- const DescribeListProtectThresholdConfigRequest = models.DescribeListProtectThresholdConfigRequest;
55
53
  const ModifyNewDomainRulesResponse = models.ModifyNewDomainRulesResponse;
56
54
  const CcBlackWhiteIpPolicy = models.CcBlackWhiteIpPolicy;
57
55
  const L7RuleHealth = models.L7RuleHealth;
@@ -100,7 +98,6 @@ const AssociateDDoSEipAddressResponse = models.AssociateDDoSEipAddressResponse;
100
98
  const DDoSSpeedLimitConfigRelation = models.DDoSSpeedLimitConfigRelation;
101
99
  const DeleteCCLevelPolicyResponse = models.DeleteCCLevelPolicyResponse;
102
100
  const ModifyPacketFilterConfigRequest = models.ModifyPacketFilterConfigRequest;
103
- const DescribeBlackWhiteIpListRequest = models.DescribeBlackWhiteIpListRequest;
104
101
  const CreateCcGeoIPBlockConfigRequest = models.CreateCcGeoIPBlockConfigRequest;
105
102
  const DescribeBizHttpStatusResponse = models.DescribeBizHttpStatusResponse;
106
103
  const CreateDDoSSpeedLimitConfigResponse = models.CreateDDoSSpeedLimitConfigResponse;
@@ -128,7 +125,6 @@ const DescribeListDDoSSpeedLimitConfigResponse = models.DescribeListDDoSSpeedLim
128
125
  const CreateDDoSGeoIPBlockConfigResponse = models.CreateDDoSGeoIPBlockConfigResponse;
129
126
  const CCPrecisionPolicy = models.CCPrecisionPolicy;
130
127
  const DescribeOverviewDDoSEventListRequest = models.DescribeOverviewDDoSEventListRequest;
131
- const ListenerCcThreholdConfig = models.ListenerCcThreholdConfig;
132
128
  const EipAddressRelation = models.EipAddressRelation;
133
129
  const DescribeBasicDeviceStatusRequest = models.DescribeBasicDeviceStatusRequest;
134
130
  const PackInfo = models.PackInfo;
@@ -142,8 +138,6 @@ const CreateL7RuleCertsResponse = models.CreateL7RuleCertsResponse;
142
138
  const CreateCCPrecisionPolicyRequest = models.CreateCCPrecisionPolicyRequest;
143
139
  const DDoSSpeedLimitConfig = models.DDoSSpeedLimitConfig;
144
140
  const AnycastOutPackRelation = models.AnycastOutPackRelation;
145
- const ProtectThresholdRelation = models.ProtectThresholdRelation;
146
- const DescribeListProtectThresholdConfigResponse = models.DescribeListProtectThresholdConfigResponse;
147
141
  const CertIdInsL7Rules = models.CertIdInsL7Rules;
148
142
  const CreateDefaultAlarmThresholdResponse = models.CreateDefaultAlarmThresholdResponse;
149
143
  const DescribeListSchedulingDomainResponse = models.DescribeListSchedulingDomainResponse;
@@ -502,17 +496,6 @@ class AntiddosClient extends AbstractClient {
502
496
  this.request("DescribeCCLevelPolicy", req, resp, cb);
503
497
  }
504
498
 
505
- /**
506
- * This API is used to modify layer-7 forwarding rules.
507
- * @param {ModifyNewDomainRulesRequest} req
508
- * @param {function(string, ModifyNewDomainRulesResponse):void} cb
509
- * @public
510
- */
511
- ModifyNewDomainRules(req, cb) {
512
- let resp = new ModifyNewDomainRulesResponse();
513
- this.request("ModifyNewDomainRules", req, resp, cb);
514
- }
515
-
516
499
  /**
517
500
  * This API is used to bind an IP to an Anti-DDoS Pro instance Both single IP instances and multi-IP instances are available. Note that you should wait until the current binding or unbinding completes before using this async API for new operations.
518
501
  * @param {CreateBoundIPRequest} req
@@ -579,19 +562,6 @@ class AntiddosClient extends AbstractClient {
579
562
  this.request("CreateWaterPrintConfig", req, resp, cb);
580
563
  }
581
564
 
582
- /**
583
- * 接口变更
584
-
585
- This API is used to get an Anti-DDoS IP blocklist/allowlist.
586
- * @param {DescribeBlackWhiteIpListRequest} req
587
- * @param {function(string, DescribeBlackWhiteIpListResponse):void} cb
588
- * @public
589
- */
590
- DescribeBlackWhiteIpList(req, cb) {
591
- let resp = new DescribeBlackWhiteIpListResponse();
592
- this.request("DescribeBlackWhiteIpList", req, resp, cb);
593
- }
594
-
595
565
  /**
596
566
  * Gets the list of CC protection levels
597
567
  * @param {DescribeCCLevelListRequest} req
@@ -725,16 +695,14 @@ This API is used to get an Anti-DDoS IP blocklist/allowlist.
725
695
  }
726
696
 
727
697
  /**
728
- * 接口变更
729
-
730
- This API is used to get a list of protection threshold configurations for AI protection switch, protection level, and CC threshold switch.
731
- * @param {DescribeListProtectThresholdConfigRequest} req
732
- * @param {function(string, DescribeListProtectThresholdConfigResponse):void} cb
698
+ * This API is used to modify layer-7 forwarding rules.
699
+ * @param {ModifyNewDomainRulesRequest} req
700
+ * @param {function(string, ModifyNewDomainRulesResponse):void} cb
733
701
  * @public
734
702
  */
735
- DescribeListProtectThresholdConfig(req, cb) {
736
- let resp = new DescribeListProtectThresholdConfigResponse();
737
- this.request("DescribeListProtectThresholdConfig", req, resp, cb);
703
+ ModifyNewDomainRules(req, cb) {
704
+ let resp = new ModifyNewDomainRulesResponse();
705
+ this.request("ModifyNewDomainRules", req, resp, cb);
738
706
  }
739
707
 
740
708
  /**
@@ -110,30 +110,30 @@ class DescribeListBGPIPInstancesResponse extends AbstractModel {
110
110
  }
111
111
 
112
112
  /**
113
- * DescribeBlackWhiteIpList response structure.
113
+ * ModifyNewDomainRules request structure.
114
114
  * @class
115
115
  */
116
- class DescribeBlackWhiteIpListResponse extends AbstractModel {
116
+ class ModifyNewDomainRulesRequest extends AbstractModel {
117
117
  constructor(){
118
118
  super();
119
119
 
120
120
  /**
121
- * IP blocklist
122
- * @type {Array.<string> || null}
121
+ * Anti-DDoS service type (`bgpip`: Anti-DDoS Advanced).
122
+ * @type {string || null}
123
123
  */
124
- this.BlackIpList = null;
124
+ this.Business = null;
125
125
 
126
126
  /**
127
- * IP allowlist
128
- * @type {Array.<string> || null}
127
+ * Anti-DDoS instance ID.
128
+ * @type {string || null}
129
129
  */
130
- this.WhiteIpList = null;
130
+ this.Id = null;
131
131
 
132
132
  /**
133
- * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
134
- * @type {string || null}
133
+ * Domain name forwarding rule.
134
+ * @type {NewL7RuleEntry || null}
135
135
  */
136
- this.RequestId = null;
136
+ this.Rule = null;
137
137
 
138
138
  }
139
139
 
@@ -144,9 +144,14 @@ class DescribeBlackWhiteIpListResponse extends AbstractModel {
144
144
  if (!params) {
145
145
  return;
146
146
  }
147
- this.BlackIpList = 'BlackIpList' in params ? params.BlackIpList : null;
148
- this.WhiteIpList = 'WhiteIpList' in params ? params.WhiteIpList : null;
149
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
147
+ this.Business = 'Business' in params ? params.Business : null;
148
+ this.Id = 'Id' in params ? params.Id : null;
149
+
150
+ if (params.Rule) {
151
+ let obj = new NewL7RuleEntry();
152
+ obj.deserialize(params.Rule)
153
+ this.Rule = obj;
154
+ }
150
155
 
151
156
  }
152
157
  }
@@ -773,53 +778,6 @@ class InstanceRelation extends AbstractModel {
773
778
  }
774
779
  }
775
780
 
776
- /**
777
- * ModifyNewDomainRules request structure.
778
- * @class
779
- */
780
- class ModifyNewDomainRulesRequest extends AbstractModel {
781
- constructor(){
782
- super();
783
-
784
- /**
785
- * Anti-DDoS service type (`bgpip`: Anti-DDoS Advanced).
786
- * @type {string || null}
787
- */
788
- this.Business = null;
789
-
790
- /**
791
- * Anti-DDoS instance ID.
792
- * @type {string || null}
793
- */
794
- this.Id = null;
795
-
796
- /**
797
- * Domain name forwarding rule.
798
- * @type {NewL7RuleEntry || null}
799
- */
800
- this.Rule = null;
801
-
802
- }
803
-
804
- /**
805
- * @private
806
- */
807
- deserialize(params) {
808
- if (!params) {
809
- return;
810
- }
811
- this.Business = 'Business' in params ? params.Business : null;
812
- this.Id = 'Id' in params ? params.Id : null;
813
-
814
- if (params.Rule) {
815
- let obj = new NewL7RuleEntry();
816
- obj.deserialize(params.Rule)
817
- this.Rule = obj;
818
- }
819
-
820
- }
821
- }
822
-
823
781
  /**
824
782
  * Region information.
825
783
  * @class
@@ -1626,69 +1584,6 @@ class CreateDDoSAIRequest extends AbstractModel {
1626
1584
  }
1627
1585
  }
1628
1586
 
1629
- /**
1630
- * DescribeListProtectThresholdConfig request structure.
1631
- * @class
1632
- */
1633
- class DescribeListProtectThresholdConfigRequest extends AbstractModel {
1634
- constructor(){
1635
- super();
1636
-
1637
- /**
1638
- * Starting offset of the page. Value: (number of pages – 1) * items per page.
1639
- * @type {number || null}
1640
- */
1641
- this.Offset = null;
1642
-
1643
- /**
1644
- * Number of items per page. The default value is 20 when `Limit = 0`. The maximum value is 100.
1645
- * @type {number || null}
1646
- */
1647
- this.Limit = null;
1648
-
1649
- /**
1650
- * Anti-DDoS instance ID filter. Anti-DDoS instance prefix wildcard search is supported. For example, you can filter Anti-DDoS Pro instances by `bgp-*`.
1651
- * @type {string || null}
1652
- */
1653
- this.FilterInstanceId = null;
1654
-
1655
- /**
1656
- * IP filter
1657
- * @type {string || null}
1658
- */
1659
- this.FilterIp = null;
1660
-
1661
- /**
1662
- * Domain name filter for querying CC protection thresholds of domain names and protocols
1663
- * @type {string || null}
1664
- */
1665
- this.FilterDomain = null;
1666
-
1667
- /**
1668
- * Protocol filter for querying CC protection thresholds of domain names and protocols
1669
- * @type {string || null}
1670
- */
1671
- this.FilterProtocol = null;
1672
-
1673
- }
1674
-
1675
- /**
1676
- * @private
1677
- */
1678
- deserialize(params) {
1679
- if (!params) {
1680
- return;
1681
- }
1682
- this.Offset = 'Offset' in params ? params.Offset : null;
1683
- this.Limit = 'Limit' in params ? params.Limit : null;
1684
- this.FilterInstanceId = 'FilterInstanceId' in params ? params.FilterInstanceId : null;
1685
- this.FilterIp = 'FilterIp' in params ? params.FilterIp : null;
1686
- this.FilterDomain = 'FilterDomain' in params ? params.FilterDomain : null;
1687
- this.FilterProtocol = 'FilterProtocol' in params ? params.FilterProtocol : null;
1688
-
1689
- }
1690
- }
1691
-
1692
1587
  /**
1693
1588
  * ModifyNewDomainRules response structure.
1694
1589
  * @class
@@ -4195,34 +4090,6 @@ class ModifyPacketFilterConfigRequest extends AbstractModel {
4195
4090
  }
4196
4091
  }
4197
4092
 
4198
- /**
4199
- * DescribeBlackWhiteIpList request structure.
4200
- * @class
4201
- */
4202
- class DescribeBlackWhiteIpListRequest extends AbstractModel {
4203
- constructor(){
4204
- super();
4205
-
4206
- /**
4207
- * Anti-DDoS instance ID
4208
- * @type {string || null}
4209
- */
4210
- this.InstanceId = null;
4211
-
4212
- }
4213
-
4214
- /**
4215
- * @private
4216
- */
4217
- deserialize(params) {
4218
- if (!params) {
4219
- return;
4220
- }
4221
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
4222
-
4223
- }
4224
- }
4225
-
4226
4093
  /**
4227
4094
  * CreateCcGeoIPBlockConfig request structure.
4228
4095
  * @class
@@ -5784,55 +5651,6 @@ class DescribeOverviewDDoSEventListRequest extends AbstractModel {
5784
5651
  }
5785
5652
  }
5786
5653
 
5787
- /**
5788
- * CC protection thresholds of the domain name and protocol
5789
- * @class
5790
- */
5791
- class ListenerCcThreholdConfig extends AbstractModel {
5792
- constructor(){
5793
- super();
5794
-
5795
- /**
5796
- * Domain name
5797
- * @type {string || null}
5798
- */
5799
- this.Domain = null;
5800
-
5801
- /**
5802
- * Protocol. Value: `https`.
5803
- * @type {string || null}
5804
- */
5805
- this.Protocol = null;
5806
-
5807
- /**
5808
- * Status. Valid values: `0` (disabled), `1` (enabled).
5809
- * @type {number || null}
5810
- */
5811
- this.CCEnable = null;
5812
-
5813
- /**
5814
- * CC protection threshold
5815
- * @type {number || null}
5816
- */
5817
- this.CCThreshold = null;
5818
-
5819
- }
5820
-
5821
- /**
5822
- * @private
5823
- */
5824
- deserialize(params) {
5825
- if (!params) {
5826
- return;
5827
- }
5828
- this.Domain = 'Domain' in params ? params.Domain : null;
5829
- this.Protocol = 'Protocol' in params ? params.Protocol : null;
5830
- this.CCEnable = 'CCEnable' in params ? params.CCEnable : null;
5831
- this.CCThreshold = 'CCThreshold' in params ? params.CCThreshold : null;
5832
-
5833
- }
5834
- }
5835
-
5836
5654
  /**
5837
5655
  * EIP association details
5838
5656
  * @class
@@ -6508,232 +6326,6 @@ Note: This field may return null, indicating that no valid values can be obtaine
6508
6326
  }
6509
6327
  }
6510
6328
 
6511
- /**
6512
- * Protection threshold configuration information
6513
- * @class
6514
- */
6515
- class ProtectThresholdRelation extends AbstractModel {
6516
- constructor(){
6517
- super();
6518
-
6519
- /**
6520
- * DDoS protection level:
6521
- `low`: loose protection
6522
- `middle`: medium protection
6523
- `high`: strict protection
6524
- ]
6525
- * @type {string || null}
6526
- */
6527
- this.DDoSLevel = null;
6528
-
6529
- /**
6530
- * DDoS cleansing threshold (in Mbps)
6531
- * @type {number || null}
6532
- */
6533
- this.DDoSThreshold = null;
6534
-
6535
- /**
6536
- * DDoS AI protection switch:
6537
- `on`: enabled
6538
- `off`: disabled
6539
- ]
6540
- * @type {string || null}
6541
- */
6542
- this.DDoSAI = null;
6543
-
6544
- /**
6545
- * CC cleansing switch
6546
- `0`: disabled
6547
- `1`: enabled
6548
- ]
6549
- * @type {number || null}
6550
- */
6551
- this.CCEnable = null;
6552
-
6553
- /**
6554
- * CC cleansing threshold (in QPS)
6555
- * @type {number || null}
6556
- */
6557
- this.CCThreshold = null;
6558
-
6559
- /**
6560
- * Anti-DDoS instance configured
6561
- * @type {Array.<InstanceRelation> || null}
6562
- */
6563
- this.InstanceDetailList = null;
6564
-
6565
- /**
6566
- * Domain name and protocol protection thresholds
6567
- * @type {Array.<ListenerCcThreholdConfig> || null}
6568
- */
6569
- this.ListenerCcThresholdList = null;
6570
-
6571
- /**
6572
- * SYN traffic threshold
6573
- Note: This field may return null, indicating that no valid values can be obtained.
6574
- * @type {number || null}
6575
- */
6576
- this.SynFloodThreshold = null;
6577
-
6578
- /**
6579
- * SYN packet threshold
6580
- Note: This field may return null, indicating that no valid values can be obtained.
6581
- * @type {number || null}
6582
- */
6583
- this.SynFloodPktThreshold = null;
6584
-
6585
- /**
6586
- * UDP traffic threshold
6587
- Note: This field may return null, indicating that no valid values can be obtained.
6588
- * @type {number || null}
6589
- */
6590
- this.UdpFloodThreshold = null;
6591
-
6592
- /**
6593
- * UDP packet threshold
6594
- Note: This field may return null, indicating that no valid values can be obtained.
6595
- * @type {number || null}
6596
- */
6597
- this.UdpFloodPktThreshold = null;
6598
-
6599
- /**
6600
- * ACK traffic threshold
6601
- Note: This field may return null, indicating that no valid values can be obtained.
6602
- * @type {number || null}
6603
- */
6604
- this.AckFloodThreshold = null;
6605
-
6606
- /**
6607
- * ACK packet threshold
6608
- Note: This field may return null, indicating that no valid values can be obtained.
6609
- * @type {number || null}
6610
- */
6611
- this.AckFloodPktThreshold = null;
6612
-
6613
- /**
6614
- * SYNACK traffic threshold
6615
- Note: This field may return null, indicating that no valid values can be obtained.
6616
- * @type {number || null}
6617
- */
6618
- this.SynAckFloodThreshold = null;
6619
-
6620
- /**
6621
- * SYNACK packet threshold
6622
- Note: This field may return null, indicating that no valid values can be obtained.
6623
- * @type {number || null}
6624
- */
6625
- this.SynAckFloodPktThreshold = null;
6626
-
6627
- /**
6628
- * RST traffic threshold
6629
- Note: This field may return null, indicating that no valid values can be obtained.
6630
- * @type {number || null}
6631
- */
6632
- this.RstFloodThreshold = null;
6633
-
6634
- /**
6635
- * RST packet threshold
6636
- Note: This field may return null, indicating that no valid values can be obtained.
6637
- * @type {number || null}
6638
- */
6639
- this.RstFloodPktThreshold = null;
6640
-
6641
- }
6642
-
6643
- /**
6644
- * @private
6645
- */
6646
- deserialize(params) {
6647
- if (!params) {
6648
- return;
6649
- }
6650
- this.DDoSLevel = 'DDoSLevel' in params ? params.DDoSLevel : null;
6651
- this.DDoSThreshold = 'DDoSThreshold' in params ? params.DDoSThreshold : null;
6652
- this.DDoSAI = 'DDoSAI' in params ? params.DDoSAI : null;
6653
- this.CCEnable = 'CCEnable' in params ? params.CCEnable : null;
6654
- this.CCThreshold = 'CCThreshold' in params ? params.CCThreshold : null;
6655
-
6656
- if (params.InstanceDetailList) {
6657
- this.InstanceDetailList = new Array();
6658
- for (let z in params.InstanceDetailList) {
6659
- let obj = new InstanceRelation();
6660
- obj.deserialize(params.InstanceDetailList[z]);
6661
- this.InstanceDetailList.push(obj);
6662
- }
6663
- }
6664
-
6665
- if (params.ListenerCcThresholdList) {
6666
- this.ListenerCcThresholdList = new Array();
6667
- for (let z in params.ListenerCcThresholdList) {
6668
- let obj = new ListenerCcThreholdConfig();
6669
- obj.deserialize(params.ListenerCcThresholdList[z]);
6670
- this.ListenerCcThresholdList.push(obj);
6671
- }
6672
- }
6673
- this.SynFloodThreshold = 'SynFloodThreshold' in params ? params.SynFloodThreshold : null;
6674
- this.SynFloodPktThreshold = 'SynFloodPktThreshold' in params ? params.SynFloodPktThreshold : null;
6675
- this.UdpFloodThreshold = 'UdpFloodThreshold' in params ? params.UdpFloodThreshold : null;
6676
- this.UdpFloodPktThreshold = 'UdpFloodPktThreshold' in params ? params.UdpFloodPktThreshold : null;
6677
- this.AckFloodThreshold = 'AckFloodThreshold' in params ? params.AckFloodThreshold : null;
6678
- this.AckFloodPktThreshold = 'AckFloodPktThreshold' in params ? params.AckFloodPktThreshold : null;
6679
- this.SynAckFloodThreshold = 'SynAckFloodThreshold' in params ? params.SynAckFloodThreshold : null;
6680
- this.SynAckFloodPktThreshold = 'SynAckFloodPktThreshold' in params ? params.SynAckFloodPktThreshold : null;
6681
- this.RstFloodThreshold = 'RstFloodThreshold' in params ? params.RstFloodThreshold : null;
6682
- this.RstFloodPktThreshold = 'RstFloodPktThreshold' in params ? params.RstFloodPktThreshold : null;
6683
-
6684
- }
6685
- }
6686
-
6687
- /**
6688
- * DescribeListProtectThresholdConfig response structure.
6689
- * @class
6690
- */
6691
- class DescribeListProtectThresholdConfigResponse extends AbstractModel {
6692
- constructor(){
6693
- super();
6694
-
6695
- /**
6696
- * Total number of lists
6697
- * @type {number || null}
6698
- */
6699
- this.Total = null;
6700
-
6701
- /**
6702
- * List of protection threshold configurations
6703
- * @type {Array.<ProtectThresholdRelation> || null}
6704
- */
6705
- this.ConfigList = null;
6706
-
6707
- /**
6708
- * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
6709
- * @type {string || null}
6710
- */
6711
- this.RequestId = null;
6712
-
6713
- }
6714
-
6715
- /**
6716
- * @private
6717
- */
6718
- deserialize(params) {
6719
- if (!params) {
6720
- return;
6721
- }
6722
- this.Total = 'Total' in params ? params.Total : null;
6723
-
6724
- if (params.ConfigList) {
6725
- this.ConfigList = new Array();
6726
- for (let z in params.ConfigList) {
6727
- let obj = new ProtectThresholdRelation();
6728
- obj.deserialize(params.ConfigList[z]);
6729
- this.ConfigList.push(obj);
6730
- }
6731
- }
6732
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
6733
-
6734
- }
6735
- }
6736
-
6737
6329
  /**
6738
6330
  * Set of rules configured for certificates
6739
6331
  * @class
@@ -11392,7 +10984,7 @@ class DescribeCCTrendRequest extends AbstractModel {
11392
10984
  module.exports = {
11393
10985
  CreateDefaultAlarmThresholdRequest: CreateDefaultAlarmThresholdRequest,
11394
10986
  DescribeListBGPIPInstancesResponse: DescribeListBGPIPInstancesResponse,
11395
- DescribeBlackWhiteIpListResponse: DescribeBlackWhiteIpListResponse,
10987
+ ModifyNewDomainRulesRequest: ModifyNewDomainRulesRequest,
11396
10988
  DeleteCCLevelPolicyRequest: DeleteCCLevelPolicyRequest,
11397
10989
  ProxyTypeInfo: ProxyTypeInfo,
11398
10990
  CreateBoundIPRequest: CreateBoundIPRequest,
@@ -11406,7 +10998,6 @@ module.exports = {
11406
10998
  DescribeL7RulesBySSLCertIdResponse: DescribeL7RulesBySSLCertIdResponse,
11407
10999
  DescribeListDDoSSpeedLimitConfigRequest: DescribeListDDoSSpeedLimitConfigRequest,
11408
11000
  InstanceRelation: InstanceRelation,
11409
- ModifyNewDomainRulesRequest: ModifyNewDomainRulesRequest,
11410
11001
  RegionInfo: RegionInfo,
11411
11002
  DescribeListProtocolBlockConfigResponse: DescribeListProtocolBlockConfigResponse,
11412
11003
  DescribeListBGPInstancesRequest: DescribeListBGPInstancesRequest,
@@ -11425,7 +11016,6 @@ module.exports = {
11425
11016
  DescribeDefaultAlarmThresholdResponse: DescribeDefaultAlarmThresholdResponse,
11426
11017
  CreateNewL7RulesResponse: CreateNewL7RulesResponse,
11427
11018
  CreateDDoSAIRequest: CreateDDoSAIRequest,
11428
- DescribeListProtectThresholdConfigRequest: DescribeListProtectThresholdConfigRequest,
11429
11019
  ModifyNewDomainRulesResponse: ModifyNewDomainRulesResponse,
11430
11020
  CcBlackWhiteIpPolicy: CcBlackWhiteIpPolicy,
11431
11021
  L7RuleHealth: L7RuleHealth,
@@ -11474,7 +11064,6 @@ module.exports = {
11474
11064
  DDoSSpeedLimitConfigRelation: DDoSSpeedLimitConfigRelation,
11475
11065
  DeleteCCLevelPolicyResponse: DeleteCCLevelPolicyResponse,
11476
11066
  ModifyPacketFilterConfigRequest: ModifyPacketFilterConfigRequest,
11477
- DescribeBlackWhiteIpListRequest: DescribeBlackWhiteIpListRequest,
11478
11067
  CreateCcGeoIPBlockConfigRequest: CreateCcGeoIPBlockConfigRequest,
11479
11068
  DescribeBizHttpStatusResponse: DescribeBizHttpStatusResponse,
11480
11069
  CreateDDoSSpeedLimitConfigResponse: CreateDDoSSpeedLimitConfigResponse,
@@ -11502,7 +11091,6 @@ module.exports = {
11502
11091
  CreateDDoSGeoIPBlockConfigResponse: CreateDDoSGeoIPBlockConfigResponse,
11503
11092
  CCPrecisionPolicy: CCPrecisionPolicy,
11504
11093
  DescribeOverviewDDoSEventListRequest: DescribeOverviewDDoSEventListRequest,
11505
- ListenerCcThreholdConfig: ListenerCcThreholdConfig,
11506
11094
  EipAddressRelation: EipAddressRelation,
11507
11095
  DescribeBasicDeviceStatusRequest: DescribeBasicDeviceStatusRequest,
11508
11096
  PackInfo: PackInfo,
@@ -11516,8 +11104,6 @@ module.exports = {
11516
11104
  CreateCCPrecisionPolicyRequest: CreateCCPrecisionPolicyRequest,
11517
11105
  DDoSSpeedLimitConfig: DDoSSpeedLimitConfig,
11518
11106
  AnycastOutPackRelation: AnycastOutPackRelation,
11519
- ProtectThresholdRelation: ProtectThresholdRelation,
11520
- DescribeListProtectThresholdConfigResponse: DescribeListProtectThresholdConfigResponse,
11521
11107
  CertIdInsL7Rules: CertIdInsL7Rules,
11522
11108
  CreateDefaultAlarmThresholdResponse: CreateDefaultAlarmThresholdResponse,
11523
11109
  DescribeListSchedulingDomainResponse: DescribeListSchedulingDomainResponse,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1144";
1
+ const sdkVersion = "3.0.1145";
2
2
  module.exports = sdkVersion
@@ -14423,6 +14423,34 @@ class DescribeSnapshotPoliciesResponse extends AbstractModel {
14423
14423
  }
14424
14424
  }
14425
14425
 
14426
+ /**
14427
+ * EnableRoutes response structure.
14428
+ * @class
14429
+ */
14430
+ class EnableRoutesResponse extends AbstractModel {
14431
+ constructor(){
14432
+ super();
14433
+
14434
+ /**
14435
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
14436
+ * @type {string || null}
14437
+ */
14438
+ this.RequestId = null;
14439
+
14440
+ }
14441
+
14442
+ /**
14443
+ * @private
14444
+ */
14445
+ deserialize(params) {
14446
+ if (!params) {
14447
+ return;
14448
+ }
14449
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
14450
+
14451
+ }
14452
+ }
14453
+
14426
14454
  /**
14427
14455
  * DeleteVpnConnection request structure.
14428
14456
  * @class
@@ -21230,6 +21258,48 @@ class ModifyReserveIpAddressRequest extends AbstractModel {
21230
21258
  }
21231
21259
  }
21232
21260
 
21261
+ /**
21262
+ * DisableRoutes request structure.
21263
+ * @class
21264
+ */
21265
+ class DisableRoutesRequest extends AbstractModel {
21266
+ constructor(){
21267
+ super();
21268
+
21269
+ /**
21270
+ * Unique route table ID.
21271
+ * @type {string || null}
21272
+ */
21273
+ this.RouteTableId = null;
21274
+
21275
+ /**
21276
+ * Routing policy ID. This parameter cannot be used simultaneously with RouteItemIds, but at least one of them should be entered. The value of this parameter can be obtained by querying the route list ([DescribeRouteTables](https://intl.cloud.tencent.com/document/product/215/15763?from_cn_redirect=1)).
21277
+ * @type {Array.<number> || null}
21278
+ */
21279
+ this.RouteIds = null;
21280
+
21281
+ /**
21282
+ * Unique routing policy ID. This parameter cannot be used simultaneously with RouteIds, but at least one of them should be entered. The value of this parameter can be obtained by querying the route list ([DescribeRouteTables](https://intl.cloud.tencent.com/document/product/215/15763?from_cn_redirect=1)).
21283
+ * @type {Array.<string> || null}
21284
+ */
21285
+ this.RouteItemIds = null;
21286
+
21287
+ }
21288
+
21289
+ /**
21290
+ * @private
21291
+ */
21292
+ deserialize(params) {
21293
+ if (!params) {
21294
+ return;
21295
+ }
21296
+ this.RouteTableId = 'RouteTableId' in params ? params.RouteTableId : null;
21297
+ this.RouteIds = 'RouteIds' in params ? params.RouteIds : null;
21298
+ this.RouteItemIds = 'RouteItemIds' in params ? params.RouteItemIds : null;
21299
+
21300
+ }
21301
+ }
21302
+
21233
21303
  /**
21234
21304
  * DisassociateDirectConnectGatewayNatGateway request structure.
21235
21305
  * @class
@@ -21636,6 +21706,34 @@ class DescribeCustomerGatewaysRequest extends AbstractModel {
21636
21706
  }
21637
21707
  }
21638
21708
 
21709
+ /**
21710
+ * DisableRoutes response structure.
21711
+ * @class
21712
+ */
21713
+ class DisableRoutesResponse extends AbstractModel {
21714
+ constructor(){
21715
+ super();
21716
+
21717
+ /**
21718
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
21719
+ * @type {string || null}
21720
+ */
21721
+ this.RequestId = null;
21722
+
21723
+ }
21724
+
21725
+ /**
21726
+ * @private
21727
+ */
21728
+ deserialize(params) {
21729
+ if (!params) {
21730
+ return;
21731
+ }
21732
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
21733
+
21734
+ }
21735
+ }
21736
+
21639
21737
  /**
21640
21738
  * ModifySnapshotPolicies request structure.
21641
21739
  * @class
@@ -30572,6 +30670,48 @@ class ConflictSource extends AbstractModel {
30572
30670
  }
30573
30671
  }
30574
30672
 
30673
+ /**
30674
+ * EnableRoutes request structure.
30675
+ * @class
30676
+ */
30677
+ class EnableRoutesRequest extends AbstractModel {
30678
+ constructor(){
30679
+ super();
30680
+
30681
+ /**
30682
+ * Unique route table ID.
30683
+ * @type {string || null}
30684
+ */
30685
+ this.RouteTableId = null;
30686
+
30687
+ /**
30688
+ * Routing policy ID. This parameter cannot be used simultaneously with RouteItemIds, but at least one of them should be entered. The maximum number of items processed in a single request is 100. The value of this parameter can be obtained by querying the route list ([DescribeRouteTables](https://intl.cloud.tencent.com/document/product/215/15763?from_cn_redirect=1)).
30689
+ * @type {Array.<number> || null}
30690
+ */
30691
+ this.RouteIds = null;
30692
+
30693
+ /**
30694
+ * Unique routing policy ID. This parameter cannot be used simultaneously with RouteIds, but at least one of them should be entered. The maximum number of items processed in a single request is 100. The value of this parameter can be obtained by querying the route list ([DescribeRouteTables](https://intl.cloud.tencent.com/document/product/215/15763?from_cn_redirect=1)).
30695
+ * @type {Array.<string> || null}
30696
+ */
30697
+ this.RouteItemIds = null;
30698
+
30699
+ }
30700
+
30701
+ /**
30702
+ * @private
30703
+ */
30704
+ deserialize(params) {
30705
+ if (!params) {
30706
+ return;
30707
+ }
30708
+ this.RouteTableId = 'RouteTableId' in params ? params.RouteTableId : null;
30709
+ this.RouteIds = 'RouteIds' in params ? params.RouteIds : null;
30710
+ this.RouteItemIds = 'RouteItemIds' in params ? params.RouteItemIds : null;
30711
+
30712
+ }
30713
+ }
30714
+
30575
30715
  /**
30576
30716
  * DeleteTrafficPackages response structure.
30577
30717
  * @class
@@ -31983,6 +32123,7 @@ module.exports = {
31983
32123
  DescribeVpcEndPointResponse: DescribeVpcEndPointResponse,
31984
32124
  DescribeNetworkAclQuintupleEntriesRequest: DescribeNetworkAclQuintupleEntriesRequest,
31985
32125
  DescribeSnapshotPoliciesResponse: DescribeSnapshotPoliciesResponse,
32126
+ EnableRoutesResponse: EnableRoutesResponse,
31986
32127
  DeleteVpnConnectionRequest: DeleteVpnConnectionRequest,
31987
32128
  NetworkAclEntry: NetworkAclEntry,
31988
32129
  DescribeAssistantCidrRequest: DescribeAssistantCidrRequest,
@@ -32120,6 +32261,7 @@ module.exports = {
32120
32261
  DescribeSecurityGroupReferencesRequest: DescribeSecurityGroupReferencesRequest,
32121
32262
  DescribeVpcPrivateIpAddressesResponse: DescribeVpcPrivateIpAddressesResponse,
32122
32263
  ModifyReserveIpAddressRequest: ModifyReserveIpAddressRequest,
32264
+ DisableRoutesRequest: DisableRoutesRequest,
32123
32265
  DisassociateDirectConnectGatewayNatGatewayRequest: DisassociateDirectConnectGatewayNatGatewayRequest,
32124
32266
  ReleaseIPv6AddressesRequest: ReleaseIPv6AddressesRequest,
32125
32267
  DisassociateIPv6AddressResponse: DisassociateIPv6AddressResponse,
@@ -32130,6 +32272,7 @@ module.exports = {
32130
32272
  CreateRouteTableRequest: CreateRouteTableRequest,
32131
32273
  MigrateNetworkInterfaceRequest: MigrateNetworkInterfaceRequest,
32132
32274
  DescribeCustomerGatewaysRequest: DescribeCustomerGatewaysRequest,
32275
+ DisableRoutesResponse: DisableRoutesResponse,
32133
32276
  ModifySnapshotPoliciesRequest: ModifySnapshotPoliciesRequest,
32134
32277
  ModifyAddressAttributeRequest: ModifyAddressAttributeRequest,
32135
32278
  DeleteAssistantCidrRequest: DeleteAssistantCidrRequest,
@@ -32326,6 +32469,7 @@ module.exports = {
32326
32469
  CustomerGatewayVendor: CustomerGatewayVendor,
32327
32470
  DescribeAddressTemplatesRequest: DescribeAddressTemplatesRequest,
32328
32471
  ConflictSource: ConflictSource,
32472
+ EnableRoutesRequest: EnableRoutesRequest,
32329
32473
  DeleteTrafficPackagesResponse: DeleteTrafficPackagesResponse,
32330
32474
  DeleteCustomerGatewayRequest: DeleteCustomerGatewayRequest,
32331
32475
  DescribeAddressTemplatesResponse: DescribeAddressTemplatesResponse,
@@ -305,6 +305,7 @@ const DescribeIpGeolocationDatabaseUrlRequest = models.DescribeIpGeolocationData
305
305
  const DescribeVpcEndPointResponse = models.DescribeVpcEndPointResponse;
306
306
  const DescribeNetworkAclQuintupleEntriesRequest = models.DescribeNetworkAclQuintupleEntriesRequest;
307
307
  const DescribeSnapshotPoliciesResponse = models.DescribeSnapshotPoliciesResponse;
308
+ const EnableRoutesResponse = models.EnableRoutesResponse;
308
309
  const DeleteVpnConnectionRequest = models.DeleteVpnConnectionRequest;
309
310
  const NetworkAclEntry = models.NetworkAclEntry;
310
311
  const DescribeAssistantCidrRequest = models.DescribeAssistantCidrRequest;
@@ -442,6 +443,7 @@ const CreateHaVipResponse = models.CreateHaVipResponse;
442
443
  const DescribeSecurityGroupReferencesRequest = models.DescribeSecurityGroupReferencesRequest;
443
444
  const DescribeVpcPrivateIpAddressesResponse = models.DescribeVpcPrivateIpAddressesResponse;
444
445
  const ModifyReserveIpAddressRequest = models.ModifyReserveIpAddressRequest;
446
+ const DisableRoutesRequest = models.DisableRoutesRequest;
445
447
  const DisassociateDirectConnectGatewayNatGatewayRequest = models.DisassociateDirectConnectGatewayNatGatewayRequest;
446
448
  const ReleaseIPv6AddressesRequest = models.ReleaseIPv6AddressesRequest;
447
449
  const DisassociateIPv6AddressResponse = models.DisassociateIPv6AddressResponse;
@@ -452,6 +454,7 @@ const CreateDirectConnectGatewayCcnRoutesResponse = models.CreateDirectConnectGa
452
454
  const CreateRouteTableRequest = models.CreateRouteTableRequest;
453
455
  const MigrateNetworkInterfaceRequest = models.MigrateNetworkInterfaceRequest;
454
456
  const DescribeCustomerGatewaysRequest = models.DescribeCustomerGatewaysRequest;
457
+ const DisableRoutesResponse = models.DisableRoutesResponse;
455
458
  const ModifySnapshotPoliciesRequest = models.ModifySnapshotPoliciesRequest;
456
459
  const ModifyAddressAttributeRequest = models.ModifyAddressAttributeRequest;
457
460
  const DeleteAssistantCidrRequest = models.DeleteAssistantCidrRequest;
@@ -648,6 +651,7 @@ const CreateAssistantCidrResponse = models.CreateAssistantCidrResponse;
648
651
  const CustomerGatewayVendor = models.CustomerGatewayVendor;
649
652
  const DescribeAddressTemplatesRequest = models.DescribeAddressTemplatesRequest;
650
653
  const ConflictSource = models.ConflictSource;
654
+ const EnableRoutesRequest = models.EnableRoutesRequest;
651
655
  const DeleteTrafficPackagesResponse = models.DeleteTrafficPackagesResponse;
652
656
  const DeleteCustomerGatewayRequest = models.DeleteCustomerGatewayRequest;
653
657
  const DescribeAddressTemplatesResponse = models.DescribeAddressTemplatesResponse;
@@ -1376,6 +1380,17 @@ Policies to modify must be in the same direction. `PolicyIndex` must be specifie
1376
1380
  this.request("ModifyVpcEndPointServiceWhiteList", req, resp, cb);
1377
1381
  }
1378
1382
 
1383
+ /**
1384
+ * This API is used to refresh the route between a NAT gateway and Direct Connect and update the associated route table.
1385
+ * @param {RefreshDirectConnectGatewayRouteToNatGatewayRequest} req
1386
+ * @param {function(string, RefreshDirectConnectGatewayRouteToNatGatewayResponse):void} cb
1387
+ * @public
1388
+ */
1389
+ RefreshDirectConnectGatewayRouteToNatGateway(req, cb) {
1390
+ let resp = new RefreshDirectConnectGatewayRouteToNatGatewayResponse();
1391
+ this.request("RefreshDirectConnectGatewayRouteToNatGateway", req, resp, cb);
1392
+ }
1393
+
1379
1394
  /**
1380
1395
  * This API is used to create an ENI and bind it to a CVM.
1381
1396
  * You can specify private IP addresses and a primary IP when creating an ENI. The specified private IP must be idle and in the same subnet as the ENI.
@@ -2047,6 +2062,32 @@ This API is completed asynchronously. If you need to query the async job executi
2047
2062
  this.request("DeleteBandwidthPackage", req, resp, cb);
2048
2063
  }
2049
2064
 
2065
+ /**
2066
+ * This API is used to reset the `Egress` and `Ingress` rules (SecurityGroupPolicy) of a security group.
2067
+
2068
+ <ul>
2069
+ <li>This API does not support custom indexes <code>PolicyIndex</code>. </li>
2070
+ <li>For <code>SecurityGroupPolicySet</code> parameter,<ul> <ul>
2071
+ <li>If <code>SecurityGroupPolicySet.Version</code> is set to `0`, all policies will be cleared, and <code>Egress</code> and <code>Ingress</code> will be ignored. </li>
2072
+ <li>If <code>SecurityGroupPolicySet.Version</code> is not set to `0`, add <code>Egress</code> and <code>Ingress</code> policies: <ul>
2073
+ <li><code>Protocol</code>: <code>TCP</code>, <code>UDP</code>, <code>ICMP</code>, <code>ICMPV6</code>, <code>GRE</code>, or <code>ALL</code>. </li>
2074
+ <li><code>CidrBlock</code>: a CIDR block in the correct format. In the classic network, even if the CIDR block specified in <code>CidrBlock</code> contains the Tencent Cloud private IPs that are not using for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups. </li>
2075
+ <li><code>Ipv6CidrBlock</code>: an IPv6 CIDR block in the correct format. In the classic network, even if the CIDR block specified in <code>Ipv6CidrBlock</code> contains the Tencent Cloud private IPv6 addresses that are not using for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups. </li>
2076
+ <li><code>SecurityGroupId</code>: ID of the security group. It can be the ID of a security group to be modified, or the ID of another security group in the same project. All private IPs of all CVMs under the security group will be covered. If this field is used, the policy will automatically change according to the CVM associated with the group ID while being used to match network messages. You don't need to change it manually. </li>
2077
+ <li><code>Port</code>: a single port number such as 80, or a port range in the format of '8000-8010'. You may use this field only if the <code>Protocol</code> field takes the value <code>TCP</code> or <code>UDP</code>. </li>
2078
+ <li><code>Action</code>: only allows <code>ACCEPT</code> or <code>DROP</code>. </li>
2079
+ <li><code>CidrBlock</code>, <code>Ipv6CidrBlock</code>, <code>SecurityGroupId</code>, and <code>AddressTemplate</code> are mutually exclusive. <code>Protocol</code> + <code>Port</code> and <code>ServiceTemplate</code> are mutually exclusive.</li> </li>
2080
+ </ul></li></ul></li>
2081
+ </ul>
2082
+ * @param {ModifySecurityGroupPoliciesRequest} req
2083
+ * @param {function(string, ModifySecurityGroupPoliciesResponse):void} cb
2084
+ * @public
2085
+ */
2086
+ ModifySecurityGroupPolicies(req, cb) {
2087
+ let resp = new ModifySecurityGroupPoliciesResponse();
2088
+ this.request("ModifySecurityGroupPolicies", req, resp, cb);
2089
+ }
2090
+
2050
2091
  /**
2051
2092
  * This API (DescribeNetDetectStates) is used to query the list of network detection verification results.
2052
2093
  * @param {DescribeNetDetectStatesRequest} req
@@ -2301,29 +2342,14 @@ When a NAT gateway is deleted, all routes containing this gateway are deleted au
2301
2342
  }
2302
2343
 
2303
2344
  /**
2304
- * This API is used to reset the `Egress` and `Ingress` rules (SecurityGroupPolicy) of a security group.
2305
-
2306
- <ul>
2307
- <li>This API does not support custom indexes <code>PolicyIndex</code>. </li>
2308
- <li>For <code>SecurityGroupPolicySet</code> parameter,<ul> <ul>
2309
- <li>If <code>SecurityGroupPolicySet.Version</code> is set to `0`, all policies will be cleared, and <code>Egress</code> and <code>Ingress</code> will be ignored. </li>
2310
- <li>If <code>SecurityGroupPolicySet.Version</code> is not set to `0`, add <code>Egress</code> and <code>Ingress</code> policies: <ul>
2311
- <li><code>Protocol</code>: <code>TCP</code>, <code>UDP</code>, <code>ICMP</code>, <code>ICMPV6</code>, <code>GRE</code>, or <code>ALL</code>. </li>
2312
- <li><code>CidrBlock</code>: a CIDR block in the correct format. In the classic network, even if the CIDR block specified in <code>CidrBlock</code> contains the Tencent Cloud private IPs that are not using for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups. </li>
2313
- <li><code>Ipv6CidrBlock</code>: an IPv6 CIDR block in the correct format. In the classic network, even if the CIDR block specified in <code>Ipv6CidrBlock</code> contains the Tencent Cloud private IPv6 addresses that are not using for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups. </li>
2314
- <li><code>SecurityGroupId</code>: ID of the security group. It can be the ID of a security group to be modified, or the ID of another security group in the same project. All private IPs of all CVMs under the security group will be covered. If this field is used, the policy will automatically change according to the CVM associated with the group ID while being used to match network messages. You don't need to change it manually. </li>
2315
- <li><code>Port</code>: a single port number such as 80, or a port range in the format of '8000-8010'. You may use this field only if the <code>Protocol</code> field takes the value <code>TCP</code> or <code>UDP</code>. </li>
2316
- <li><code>Action</code>: only allows <code>ACCEPT</code> or <code>DROP</code>. </li>
2317
- <li><code>CidrBlock</code>, <code>Ipv6CidrBlock</code>, <code>SecurityGroupId</code>, and <code>AddressTemplate</code> are mutually exclusive. <code>Protocol</code> + <code>Port</code> and <code>ServiceTemplate</code> are mutually exclusive.</li> </li>
2318
- </ul></li></ul></li>
2319
- </ul>
2320
- * @param {ModifySecurityGroupPoliciesRequest} req
2321
- * @param {function(string, ModifySecurityGroupPoliciesResponse):void} cb
2345
+ * This API is used to disable enabled subnet routes.
2346
+ * @param {DisableRoutesRequest} req
2347
+ * @param {function(string, DisableRoutesResponse):void} cb
2322
2348
  * @public
2323
2349
  */
2324
- ModifySecurityGroupPolicies(req, cb) {
2325
- let resp = new ModifySecurityGroupPoliciesResponse();
2326
- this.request("ModifySecurityGroupPolicies", req, resp, cb);
2350
+ DisableRoutes(req, cb) {
2351
+ let resp = new DisableRoutesResponse();
2352
+ this.request("DisableRoutes", req, resp, cb);
2327
2353
  }
2328
2354
 
2329
2355
  /**
@@ -3381,14 +3407,15 @@ This API is completed asynchronously. If you need to query the execution result
3381
3407
  }
3382
3408
 
3383
3409
  /**
3384
- * This API is used to refresh the route between a NAT gateway and Direct Connect and update the associated route table.
3385
- * @param {RefreshDirectConnectGatewayRouteToNatGatewayRequest} req
3386
- * @param {function(string, RefreshDirectConnectGatewayRouteToNatGatewayResponse):void} cb
3410
+ * This API is used to enable disabled subnet routes.<br />
3411
+ The API is used to verify whether the enabled route conflicts with existing routes. If they conflict, the new route cannot be enabled and will result in a failure. When a route conflict occurs, you need to first disable the conflicting route before you can enable the new one.
3412
+ * @param {EnableRoutesRequest} req
3413
+ * @param {function(string, EnableRoutesResponse):void} cb
3387
3414
  * @public
3388
3415
  */
3389
- RefreshDirectConnectGatewayRouteToNatGateway(req, cb) {
3390
- let resp = new RefreshDirectConnectGatewayRouteToNatGatewayResponse();
3391
- this.request("RefreshDirectConnectGatewayRouteToNatGateway", req, resp, cb);
3416
+ EnableRoutes(req, cb) {
3417
+ let resp = new EnableRoutesResponse();
3418
+ this.request("EnableRoutes", req, resp, cb);
3392
3419
  }
3393
3420
 
3394
3421
  /**