tencentcloud-sdk-nodejs-intl-en 3.0.1137 → 3.0.1138
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.
|
@@ -1707,6 +1707,56 @@ class QUICParameters extends AbstractModel {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
1709
|
|
|
1710
|
+
/**
|
|
1711
|
+
* Managed rule group meta information.
|
|
1712
|
+
* @class
|
|
1713
|
+
*/
|
|
1714
|
+
class ManagedRuleGroupMeta extends AbstractModel {
|
|
1715
|
+
constructor(){
|
|
1716
|
+
super();
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* ManagedRuleGroup detailed information, output parameter only.
|
|
1720
|
+
* @type {string || null}
|
|
1721
|
+
*/
|
|
1722
|
+
this.GroupDetail = null;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* ManagedRuleGroup name, output parameter only.
|
|
1726
|
+
* @type {string || null}
|
|
1727
|
+
*/
|
|
1728
|
+
this.GroupName = null;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* All sub-rules information under current ManagedRuleGroup, output parameter only.
|
|
1732
|
+
* @type {Array.<ManagedRuleDetail> || null}
|
|
1733
|
+
*/
|
|
1734
|
+
this.RuleDetails = null;
|
|
1735
|
+
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* @private
|
|
1740
|
+
*/
|
|
1741
|
+
deserialize(params) {
|
|
1742
|
+
if (!params) {
|
|
1743
|
+
return;
|
|
1744
|
+
}
|
|
1745
|
+
this.GroupDetail = 'GroupDetail' in params ? params.GroupDetail : null;
|
|
1746
|
+
this.GroupName = 'GroupName' in params ? params.GroupName : null;
|
|
1747
|
+
|
|
1748
|
+
if (params.RuleDetails) {
|
|
1749
|
+
this.RuleDetails = new Array();
|
|
1750
|
+
for (let z in params.RuleDetails) {
|
|
1751
|
+
let obj = new ManagedRuleDetail();
|
|
1752
|
+
obj.deserialize(params.RuleDetails[z]);
|
|
1753
|
+
this.RuleDetails.push(obj);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1710
1760
|
/**
|
|
1711
1761
|
* Rate limiting rules
|
|
1712
1762
|
* @class
|
|
@@ -5109,6 +5159,71 @@ class StatusCodeCacheParam extends AbstractModel {
|
|
|
5109
5159
|
}
|
|
5110
5160
|
}
|
|
5111
5161
|
|
|
5162
|
+
/**
|
|
5163
|
+
* Action for security operation.
|
|
5164
|
+
* @class
|
|
5165
|
+
*/
|
|
5166
|
+
class SecurityAction extends AbstractModel {
|
|
5167
|
+
constructor(){
|
|
5168
|
+
super();
|
|
5169
|
+
|
|
5170
|
+
/**
|
|
5171
|
+
* Specific action name for security operation. Values:
|
|
5172
|
+
<li>`Deny`: block</li> <li>`Monitor`: monitor</li> <li>`ReturnCustomPage`: block with customized page</li> <li>`Redirect`: Redirect to URL</li> <li>`BlockIP`: IP block</li> <li>`JSChallenge`: javaScript challenge</li> <li>`ManagedChallenge`: managed challenge</li> <li>`Disabled`: disabled</li> <li>`Allow`: allow</li>.
|
|
5173
|
+
* @type {string || null}
|
|
5174
|
+
*/
|
|
5175
|
+
this.Name = null;
|
|
5176
|
+
|
|
5177
|
+
/**
|
|
5178
|
+
* Additional parameter when Name is BlockIP.
|
|
5179
|
+
* @type {BlockIPActionParameters || null}
|
|
5180
|
+
*/
|
|
5181
|
+
this.BlockIPActionParameters = null;
|
|
5182
|
+
|
|
5183
|
+
/**
|
|
5184
|
+
* Additional parameter when Name is ReturnCustomPage.
|
|
5185
|
+
* @type {ReturnCustomPageActionParameters || null}
|
|
5186
|
+
*/
|
|
5187
|
+
this.ReturnCustomPageActionParameters = null;
|
|
5188
|
+
|
|
5189
|
+
/**
|
|
5190
|
+
* Additional parameter when Name is Redirect.
|
|
5191
|
+
* @type {RedirectActionParameters || null}
|
|
5192
|
+
*/
|
|
5193
|
+
this.RedirectActionParameters = null;
|
|
5194
|
+
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
/**
|
|
5198
|
+
* @private
|
|
5199
|
+
*/
|
|
5200
|
+
deserialize(params) {
|
|
5201
|
+
if (!params) {
|
|
5202
|
+
return;
|
|
5203
|
+
}
|
|
5204
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
5205
|
+
|
|
5206
|
+
if (params.BlockIPActionParameters) {
|
|
5207
|
+
let obj = new BlockIPActionParameters();
|
|
5208
|
+
obj.deserialize(params.BlockIPActionParameters)
|
|
5209
|
+
this.BlockIPActionParameters = obj;
|
|
5210
|
+
}
|
|
5211
|
+
|
|
5212
|
+
if (params.ReturnCustomPageActionParameters) {
|
|
5213
|
+
let obj = new ReturnCustomPageActionParameters();
|
|
5214
|
+
obj.deserialize(params.ReturnCustomPageActionParameters)
|
|
5215
|
+
this.ReturnCustomPageActionParameters = obj;
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
if (params.RedirectActionParameters) {
|
|
5219
|
+
let obj = new RedirectActionParameters();
|
|
5220
|
+
obj.deserialize(params.RedirectActionParameters)
|
|
5221
|
+
this.RedirectActionParameters = obj;
|
|
5222
|
+
}
|
|
5223
|
+
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
5226
|
+
|
|
5112
5227
|
/**
|
|
5113
5228
|
* ModifyZoneSetting request structure.
|
|
5114
5229
|
* @class
|
|
@@ -5408,6 +5523,72 @@ It is disabled if this parameter is not specified.
|
|
|
5408
5523
|
}
|
|
5409
5524
|
}
|
|
5410
5525
|
|
|
5526
|
+
/**
|
|
5527
|
+
* Length limit detection rule details configuration.
|
|
5528
|
+
* @class
|
|
5529
|
+
*/
|
|
5530
|
+
class DetectLengthLimitRule extends AbstractModel {
|
|
5531
|
+
constructor(){
|
|
5532
|
+
super();
|
|
5533
|
+
|
|
5534
|
+
/**
|
|
5535
|
+
* Rule Id, output parameter only.
|
|
5536
|
+
* @type {number || null}
|
|
5537
|
+
*/
|
|
5538
|
+
this.RuleId = null;
|
|
5539
|
+
|
|
5540
|
+
/**
|
|
5541
|
+
* Rule name, output parameter only.
|
|
5542
|
+
* @type {string || null}
|
|
5543
|
+
*/
|
|
5544
|
+
this.RuleName = null;
|
|
5545
|
+
|
|
5546
|
+
/**
|
|
5547
|
+
* Rule description, output parameter only.
|
|
5548
|
+
* @type {string || null}
|
|
5549
|
+
*/
|
|
5550
|
+
this.Description = null;
|
|
5551
|
+
|
|
5552
|
+
/**
|
|
5553
|
+
* Rule configuration conditions, output parameter only.
|
|
5554
|
+
* @type {Array.<DetectLengthLimitCondition> || null}
|
|
5555
|
+
*/
|
|
5556
|
+
this.Conditions = null;
|
|
5557
|
+
|
|
5558
|
+
/**
|
|
5559
|
+
* Handling method. Values:.
|
|
5560
|
+
<li>`skip`: when request body data exceeds the detection depth set by `body_depth` in `Conditions` output parameters, skip all request body content detection.</li>.
|
|
5561
|
+
<li>`scan`: detect at the detection depth set by `body_depth` in the `Conditions` output parameters only. Truncate the excess part of the request body content directly, the excess part of the request body will not go through security detection.</li> Output paramter only.
|
|
5562
|
+
* @type {string || null}
|
|
5563
|
+
*/
|
|
5564
|
+
this.Action = null;
|
|
5565
|
+
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
/**
|
|
5569
|
+
* @private
|
|
5570
|
+
*/
|
|
5571
|
+
deserialize(params) {
|
|
5572
|
+
if (!params) {
|
|
5573
|
+
return;
|
|
5574
|
+
}
|
|
5575
|
+
this.RuleId = 'RuleId' in params ? params.RuleId : null;
|
|
5576
|
+
this.RuleName = 'RuleName' in params ? params.RuleName : null;
|
|
5577
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
5578
|
+
|
|
5579
|
+
if (params.Conditions) {
|
|
5580
|
+
this.Conditions = new Array();
|
|
5581
|
+
for (let z in params.Conditions) {
|
|
5582
|
+
let obj = new DetectLengthLimitCondition();
|
|
5583
|
+
obj.deserialize(params.Conditions[z]);
|
|
5584
|
+
this.Conditions.push(obj);
|
|
5585
|
+
}
|
|
5586
|
+
}
|
|
5587
|
+
this.Action = 'Action' in params ? params.Action : null;
|
|
5588
|
+
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5411
5592
|
/**
|
|
5412
5593
|
* Origin server group health status.
|
|
5413
5594
|
* @class
|
|
@@ -5964,7 +6145,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
5964
6145
|
}
|
|
5965
6146
|
|
|
5966
6147
|
/**
|
|
5967
|
-
*
|
|
6148
|
+
* Web security configuration.
|
|
5968
6149
|
* @class
|
|
5969
6150
|
*/
|
|
5970
6151
|
class SecurityConfig extends AbstractModel {
|
|
@@ -6037,6 +6218,13 @@ Note: This field may return `null`, indicating that no valid value can be obtain
|
|
|
6037
6218
|
*/
|
|
6038
6219
|
this.SlowPostConfig = null;
|
|
6039
6220
|
|
|
6221
|
+
/**
|
|
6222
|
+
* Detect the length limit configuration, output parameter only.
|
|
6223
|
+
Note: This field may return null, which indicates a failure to obtain a valid value.
|
|
6224
|
+
* @type {DetectLengthLimitConfig || null}
|
|
6225
|
+
*/
|
|
6226
|
+
this.DetectLengthLimitConfig = null;
|
|
6227
|
+
|
|
6040
6228
|
}
|
|
6041
6229
|
|
|
6042
6230
|
/**
|
|
@@ -6107,6 +6295,12 @@ Note: This field may return `null`, indicating that no valid value can be obtain
|
|
|
6107
6295
|
this.SlowPostConfig = obj;
|
|
6108
6296
|
}
|
|
6109
6297
|
|
|
6298
|
+
if (params.DetectLengthLimitConfig) {
|
|
6299
|
+
let obj = new DetectLengthLimitConfig();
|
|
6300
|
+
obj.deserialize(params.DetectLengthLimitConfig)
|
|
6301
|
+
this.DetectLengthLimitConfig = obj;
|
|
6302
|
+
}
|
|
6303
|
+
|
|
6110
6304
|
}
|
|
6111
6305
|
}
|
|
6112
6306
|
|
|
@@ -8285,6 +8479,62 @@ class DescribePrefetchTasksResponse extends AbstractModel {
|
|
|
8285
8479
|
}
|
|
8286
8480
|
}
|
|
8287
8481
|
|
|
8482
|
+
/**
|
|
8483
|
+
* Managed rule detail.
|
|
8484
|
+
* @class
|
|
8485
|
+
*/
|
|
8486
|
+
class ManagedRuleDetail extends AbstractModel {
|
|
8487
|
+
constructor(){
|
|
8488
|
+
super();
|
|
8489
|
+
|
|
8490
|
+
/**
|
|
8491
|
+
* Managed rule Id.
|
|
8492
|
+
* @type {string || null}
|
|
8493
|
+
*/
|
|
8494
|
+
this.RuleId = null;
|
|
8495
|
+
|
|
8496
|
+
/**
|
|
8497
|
+
* Protection level of managed rules. Values: <li>`low`: low risk, this rule has a relatively low risk and is applicable to very strict access scenarios, this level of rule may generate considerable false alarms.</li> <li>`medium`: medium risk, this means the risk of this rule is normal and is suitable for protection scenarios with stricter requirements.</li> <li>`high`: high risk, this indicates that the risk of this rule is relatively high and will not generate false alarms in most scenarios.</li> <li>`extreme`: ultra-high risk. this represents that the risk of this rule is extremely high and will not generate false alarms basically.</li>.
|
|
8498
|
+
* @type {string || null}
|
|
8499
|
+
*/
|
|
8500
|
+
this.RiskLevel = null;
|
|
8501
|
+
|
|
8502
|
+
/**
|
|
8503
|
+
* Rule description.
|
|
8504
|
+
* @type {string || null}
|
|
8505
|
+
*/
|
|
8506
|
+
this.Description = null;
|
|
8507
|
+
|
|
8508
|
+
/**
|
|
8509
|
+
* Rule tag. Some types of rules do not have tags.
|
|
8510
|
+
* @type {Array.<string> || null}
|
|
8511
|
+
*/
|
|
8512
|
+
this.Tags = null;
|
|
8513
|
+
|
|
8514
|
+
/**
|
|
8515
|
+
* Rule version.
|
|
8516
|
+
* @type {string || null}
|
|
8517
|
+
*/
|
|
8518
|
+
this.RuleVersion = null;
|
|
8519
|
+
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8522
|
+
/**
|
|
8523
|
+
* @private
|
|
8524
|
+
*/
|
|
8525
|
+
deserialize(params) {
|
|
8526
|
+
if (!params) {
|
|
8527
|
+
return;
|
|
8528
|
+
}
|
|
8529
|
+
this.RuleId = 'RuleId' in params ? params.RuleId : null;
|
|
8530
|
+
this.RiskLevel = 'RiskLevel' in params ? params.RiskLevel : null;
|
|
8531
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
8532
|
+
this.Tags = 'Tags' in params ? params.Tags : null;
|
|
8533
|
+
this.RuleVersion = 'RuleVersion' in params ? params.RuleVersion : null;
|
|
8534
|
+
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8288
8538
|
/**
|
|
8289
8539
|
* DescribeZoneSetting request structure.
|
|
8290
8540
|
* @class
|
|
@@ -8385,31 +8635,37 @@ class ModifySecurityPolicyRequest extends AbstractModel {
|
|
|
8385
8635
|
super();
|
|
8386
8636
|
|
|
8387
8637
|
/**
|
|
8388
|
-
*
|
|
8638
|
+
* Zone ID.
|
|
8389
8639
|
* @type {string || null}
|
|
8390
8640
|
*/
|
|
8391
8641
|
this.ZoneId = null;
|
|
8392
8642
|
|
|
8393
8643
|
/**
|
|
8394
|
-
* Security configuration.
|
|
8644
|
+
* Security policy configuration. <li>When the `CustomRule` in the `SecurityPolicy` parameter is set, the `AclConfg` and `IpTableConfg` in the `SecurityConfig` parameter will be ignored;</li> <li>when the `ManagedRule` in the `SecurityPolicy` parameter is set, the `WafConfig` in the `SecurityConfig` parameter will be ignored.</li> <li>For custom rules and managed rule policy configuration, using `SecurityPolicy` parameter to configure settings is recommended.</li>
|
|
8395
8645
|
* @type {SecurityConfig || null}
|
|
8396
8646
|
*/
|
|
8397
8647
|
this.SecurityConfig = null;
|
|
8398
8648
|
|
|
8399
8649
|
/**
|
|
8400
|
-
*
|
|
8650
|
+
* Security policy configuration. The parameter is recommended to use for custom policies and managed rule configurations of web protection, it supports configuring security policies with expression grammar.
|
|
8651
|
+
* @type {SecurityPolicy || null}
|
|
8652
|
+
*/
|
|
8653
|
+
this.SecurityPolicy = null;
|
|
8401
8654
|
|
|
8402
|
-
|
|
8655
|
+
/**
|
|
8656
|
+
* `SecurityPolicy` type, the following parameter values can be used for query: <li>`ZoneDefaultPolicy`: used to specify a query for site-level policies;</li> <li>`Template`: used to specify a query for policy templates. the `TemplateId` parameter needs to be specified simultaneously;</li> <li>`Host`: used to specify a query for domain-level policies (note: when using `Host` to specify a domain name service policy, only domain name services or policy templates that have been applied domain-level policies are supported).</li>
|
|
8403
8657
|
* @type {string || null}
|
|
8404
8658
|
*/
|
|
8405
8659
|
this.Entity = null;
|
|
8406
8660
|
|
|
8407
8661
|
/**
|
|
8408
|
-
*
|
|
8409
|
-
|
|
8410
|
-
|
|
8662
|
+
* Specify the domain name. When the `Entity` parameter value is set to `Host`, use the domain-level policy specified by this parameter to query the domain configuration. For example, use `www.example.com` to configure the domain-level policy for that domain name.
|
|
8663
|
+
* @type {string || null}
|
|
8664
|
+
*/
|
|
8665
|
+
this.Host = null;
|
|
8411
8666
|
|
|
8412
|
-
|
|
8667
|
+
/**
|
|
8668
|
+
* Specify the policy template ID. Use this parameter to specify the ID of the policy Template to query the Template configuration when the `Entity` parameter value is set to `Template`.
|
|
8413
8669
|
* @type {string || null}
|
|
8414
8670
|
*/
|
|
8415
8671
|
this.TemplateId = null;
|
|
@@ -8430,7 +8686,14 @@ Note: When this parameter is used, the Entity parameter will not take effect. Do
|
|
|
8430
8686
|
obj.deserialize(params.SecurityConfig)
|
|
8431
8687
|
this.SecurityConfig = obj;
|
|
8432
8688
|
}
|
|
8689
|
+
|
|
8690
|
+
if (params.SecurityPolicy) {
|
|
8691
|
+
let obj = new SecurityPolicy();
|
|
8692
|
+
obj.deserialize(params.SecurityPolicy)
|
|
8693
|
+
this.SecurityPolicy = obj;
|
|
8694
|
+
}
|
|
8433
8695
|
this.Entity = 'Entity' in params ? params.Entity : null;
|
|
8696
|
+
this.Host = 'Host' in params ? params.Host : null;
|
|
8434
8697
|
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
|
|
8435
8698
|
|
|
8436
8699
|
}
|
|
@@ -9313,54 +9576,54 @@ class ModifyDnsRecordsStatusRequest extends AbstractModel {
|
|
|
9313
9576
|
}
|
|
9314
9577
|
|
|
9315
9578
|
/**
|
|
9316
|
-
*
|
|
9579
|
+
* ModifyZone request structure.
|
|
9317
9580
|
* @class
|
|
9318
9581
|
*/
|
|
9319
|
-
class
|
|
9582
|
+
class ModifyZoneRequest extends AbstractModel {
|
|
9320
9583
|
constructor(){
|
|
9321
9584
|
super();
|
|
9322
9585
|
|
|
9323
9586
|
/**
|
|
9324
|
-
*
|
|
9587
|
+
* The site ID.
|
|
9325
9588
|
* @type {string || null}
|
|
9326
9589
|
*/
|
|
9327
9590
|
this.ZoneId = null;
|
|
9328
9591
|
|
|
9329
9592
|
/**
|
|
9330
|
-
*
|
|
9331
|
-
|
|
9593
|
+
* Site access method. Valid values:
|
|
9594
|
+
<li>full: NS access.</li>
|
|
9595
|
+
<li>partial: CNAME access. If the site is currently accessed with no domain name, it can be switched only to CNAME access.</li>
|
|
9596
|
+
<li>dnsPodAccess: DNSPod hosted access. To use this access mode, your domain name should have been hosted on DNSPod.</li>If this parameter is not input, the original configuration is maintained.
|
|
9597
|
+
* @type {string || null}
|
|
9332
9598
|
*/
|
|
9333
|
-
this.
|
|
9599
|
+
this.Type = null;
|
|
9334
9600
|
|
|
9335
9601
|
/**
|
|
9336
|
-
*
|
|
9337
|
-
|
|
9338
|
-
<li>`eofreecert`: Use a free certificate provided by EdgeOne</li>
|
|
9339
|
-
<li>`sslcert`: Configure an SSL certificate.</li>
|
|
9340
|
-
* @type {string || null}
|
|
9602
|
+
* The custom name servers. The original configuration applies if this field is not specified. It is not allowed to pass this field when a site is connected without using a domain name.
|
|
9603
|
+
* @type {VanityNameServers || null}
|
|
9341
9604
|
*/
|
|
9342
|
-
this.
|
|
9605
|
+
this.VanityNameServers = null;
|
|
9343
9606
|
|
|
9344
9607
|
/**
|
|
9345
|
-
*
|
|
9346
|
-
* @type {
|
|
9608
|
+
* The site alias. It can be up to 20 characters consisting of digits, letters, hyphens (-) and underscores (_).
|
|
9609
|
+
* @type {string || null}
|
|
9347
9610
|
*/
|
|
9348
|
-
this.
|
|
9611
|
+
this.AliasZoneName = null;
|
|
9349
9612
|
|
|
9350
9613
|
/**
|
|
9351
|
-
*
|
|
9352
|
-
<li
|
|
9353
|
-
<li
|
|
9354
|
-
|
|
9614
|
+
* The region where the site requests access. Values:
|
|
9615
|
+
<li> `global`: Global coverage</li>
|
|
9616
|
+
<li> `mainland`: Chinese mainland</li>
|
|
9617
|
+
<li> `overseas`: Outside the Chinese mainland </li>It is not allowed to pass this field when a site is connected without using a domain name.
|
|
9355
9618
|
* @type {string || null}
|
|
9356
9619
|
*/
|
|
9357
|
-
this.
|
|
9620
|
+
this.Area = null;
|
|
9358
9621
|
|
|
9359
9622
|
/**
|
|
9360
|
-
*
|
|
9361
|
-
* @type {
|
|
9623
|
+
* Name of the site. This field takes effect only when the site switches from domainless access to CNAME access.
|
|
9624
|
+
* @type {string || null}
|
|
9362
9625
|
*/
|
|
9363
|
-
this.
|
|
9626
|
+
this.ZoneName = null;
|
|
9364
9627
|
|
|
9365
9628
|
}
|
|
9366
9629
|
|
|
@@ -9372,24 +9635,91 @@ Default value: `none`.
|
|
|
9372
9635
|
return;
|
|
9373
9636
|
}
|
|
9374
9637
|
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
|
|
9375
|
-
this.
|
|
9376
|
-
this.Mode = 'Mode' in params ? params.Mode : null;
|
|
9638
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
9377
9639
|
|
|
9378
|
-
if (params.
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
obj.deserialize(params.ServerCertInfo[z]);
|
|
9383
|
-
this.ServerCertInfo.push(obj);
|
|
9384
|
-
}
|
|
9640
|
+
if (params.VanityNameServers) {
|
|
9641
|
+
let obj = new VanityNameServers();
|
|
9642
|
+
obj.deserialize(params.VanityNameServers)
|
|
9643
|
+
this.VanityNameServers = obj;
|
|
9385
9644
|
}
|
|
9386
|
-
this.
|
|
9645
|
+
this.AliasZoneName = 'AliasZoneName' in params ? params.AliasZoneName : null;
|
|
9646
|
+
this.Area = 'Area' in params ? params.Area : null;
|
|
9647
|
+
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
|
|
9387
9648
|
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9649
|
+
}
|
|
9650
|
+
}
|
|
9651
|
+
|
|
9652
|
+
/**
|
|
9653
|
+
* Custom rule configuration.
|
|
9654
|
+
* @class
|
|
9655
|
+
*/
|
|
9656
|
+
class CustomRule extends AbstractModel {
|
|
9657
|
+
constructor(){
|
|
9658
|
+
super();
|
|
9659
|
+
|
|
9660
|
+
/**
|
|
9661
|
+
* The custom rule name.
|
|
9662
|
+
* @type {string || null}
|
|
9663
|
+
*/
|
|
9664
|
+
this.Name = null;
|
|
9665
|
+
|
|
9666
|
+
/**
|
|
9667
|
+
* The specifics of the custom rule, must comply with the expression grammar, please refer to product documentation for details.
|
|
9668
|
+
* @type {string || null}
|
|
9669
|
+
*/
|
|
9670
|
+
this.Condition = null;
|
|
9671
|
+
|
|
9672
|
+
/**
|
|
9673
|
+
* Action for custom rules. The Name parameter of SecurityAction supports: <li>`Deny`: block;</li> <li>`Monitor`: observe;</li> <li>`ReturnCustomPage`: block with customized page;</li> <li>`Redirect`: Redirect to URL;</li> <li>`BlockIP`: IP blocking;</li> <li>`JSChallenge`: JavaScript challenge;</li> <li>`ManagedChallenge`: managed challenge;</li> <li>`Allow`: Allow.</li>.
|
|
9674
|
+
* @type {SecurityAction || null}
|
|
9675
|
+
*/
|
|
9676
|
+
this.Action = null;
|
|
9677
|
+
|
|
9678
|
+
/**
|
|
9679
|
+
* The custom rule status. Values: <li>`on`: enabled</li> <li>`off`: disabled</li>.
|
|
9680
|
+
* @type {string || null}
|
|
9681
|
+
*/
|
|
9682
|
+
this.Enabled = null;
|
|
9683
|
+
|
|
9684
|
+
/**
|
|
9685
|
+
* Custom rule ID. <br>Different rule configuration operations are supported by rule ID : <br> - Add a new rule: ID is empty or the ID parameter is not specified; <br> - Modify an existing rule: specify the rule ID that needs to be updated/modified; <br> - Delete an existing rule: existing rules not included in the Rules parameter will be deleted.
|
|
9686
|
+
* @type {string || null}
|
|
9687
|
+
*/
|
|
9688
|
+
this.Id = null;
|
|
9689
|
+
|
|
9690
|
+
/**
|
|
9691
|
+
* Type of custom rule. Values: <li>`BasicAccessRule`: basic access control;</li> <li>`PreciseMatchRule`: exact custom rule, default;</li> <li>`ManagedAccessRule`: expert customized rule, output parameter only.</li>The default value is PreciseMatchRule.
|
|
9692
|
+
* @type {string || null}
|
|
9693
|
+
*/
|
|
9694
|
+
this.RuleType = null;
|
|
9695
|
+
|
|
9696
|
+
/**
|
|
9697
|
+
* Customize the priority of custom rule. Range: 0-100, the default value is 0, this parameter only supports PreciseMatchRule.
|
|
9698
|
+
* @type {number || null}
|
|
9699
|
+
*/
|
|
9700
|
+
this.Priority = null;
|
|
9701
|
+
|
|
9702
|
+
}
|
|
9703
|
+
|
|
9704
|
+
/**
|
|
9705
|
+
* @private
|
|
9706
|
+
*/
|
|
9707
|
+
deserialize(params) {
|
|
9708
|
+
if (!params) {
|
|
9709
|
+
return;
|
|
9392
9710
|
}
|
|
9711
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
9712
|
+
this.Condition = 'Condition' in params ? params.Condition : null;
|
|
9713
|
+
|
|
9714
|
+
if (params.Action) {
|
|
9715
|
+
let obj = new SecurityAction();
|
|
9716
|
+
obj.deserialize(params.Action)
|
|
9717
|
+
this.Action = obj;
|
|
9718
|
+
}
|
|
9719
|
+
this.Enabled = 'Enabled' in params ? params.Enabled : null;
|
|
9720
|
+
this.Id = 'Id' in params ? params.Id : null;
|
|
9721
|
+
this.RuleType = 'RuleType' in params ? params.RuleType : null;
|
|
9722
|
+
this.Priority = 'Priority' in params ? params.Priority : null;
|
|
9393
9723
|
|
|
9394
9724
|
}
|
|
9395
9725
|
}
|
|
@@ -9590,6 +9920,34 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
9590
9920
|
}
|
|
9591
9921
|
}
|
|
9592
9922
|
|
|
9923
|
+
/**
|
|
9924
|
+
* Additional parameter for SecurityAction `Redirect`.
|
|
9925
|
+
* @class
|
|
9926
|
+
*/
|
|
9927
|
+
class RedirectActionParameters extends AbstractModel {
|
|
9928
|
+
constructor(){
|
|
9929
|
+
super();
|
|
9930
|
+
|
|
9931
|
+
/**
|
|
9932
|
+
* Redirect URL.
|
|
9933
|
+
* @type {string || null}
|
|
9934
|
+
*/
|
|
9935
|
+
this.URL = null;
|
|
9936
|
+
|
|
9937
|
+
}
|
|
9938
|
+
|
|
9939
|
+
/**
|
|
9940
|
+
* @private
|
|
9941
|
+
*/
|
|
9942
|
+
deserialize(params) {
|
|
9943
|
+
if (!params) {
|
|
9944
|
+
return;
|
|
9945
|
+
}
|
|
9946
|
+
this.URL = 'URL' in params ? params.URL : null;
|
|
9947
|
+
|
|
9948
|
+
}
|
|
9949
|
+
}
|
|
9950
|
+
|
|
9593
9951
|
/**
|
|
9594
9952
|
* DeleteOriginGroup request structure.
|
|
9595
9953
|
* @class
|
|
@@ -11008,6 +11366,42 @@ class DeleteSharedCNAMERequest extends AbstractModel {
|
|
|
11008
11366
|
}
|
|
11009
11367
|
}
|
|
11010
11368
|
|
|
11369
|
+
/**
|
|
11370
|
+
* Custom rules configuration.
|
|
11371
|
+
* @class
|
|
11372
|
+
*/
|
|
11373
|
+
class CustomRules extends AbstractModel {
|
|
11374
|
+
constructor(){
|
|
11375
|
+
super();
|
|
11376
|
+
|
|
11377
|
+
/**
|
|
11378
|
+
* The custom rule. <br>when modifying the Web protection configuration using ModifySecurityPolicy: <br> - if the Rules parameter is not specified or the parameter length of Rules is zero: clear all custom rule configurations. <br> - if the Rules parameter is not specified: keep the existing custom rule configuration without modification.
|
|
11379
|
+
* @type {Array.<CustomRule> || null}
|
|
11380
|
+
*/
|
|
11381
|
+
this.Rules = null;
|
|
11382
|
+
|
|
11383
|
+
}
|
|
11384
|
+
|
|
11385
|
+
/**
|
|
11386
|
+
* @private
|
|
11387
|
+
*/
|
|
11388
|
+
deserialize(params) {
|
|
11389
|
+
if (!params) {
|
|
11390
|
+
return;
|
|
11391
|
+
}
|
|
11392
|
+
|
|
11393
|
+
if (params.Rules) {
|
|
11394
|
+
this.Rules = new Array();
|
|
11395
|
+
for (let z in params.Rules) {
|
|
11396
|
+
let obj = new CustomRule();
|
|
11397
|
+
obj.deserialize(params.Rules[z]);
|
|
11398
|
+
this.Rules.push(obj);
|
|
11399
|
+
}
|
|
11400
|
+
}
|
|
11401
|
+
|
|
11402
|
+
}
|
|
11403
|
+
}
|
|
11404
|
+
|
|
11011
11405
|
/**
|
|
11012
11406
|
* ModifyRealtimeLogDeliveryTask request structure.
|
|
11013
11407
|
* @class
|
|
@@ -11233,6 +11627,34 @@ class DestroyPlanRequest extends AbstractModel {
|
|
|
11233
11627
|
}
|
|
11234
11628
|
}
|
|
11235
11629
|
|
|
11630
|
+
/**
|
|
11631
|
+
* Additional parameter for SecurityAction `BlockIP`.
|
|
11632
|
+
* @class
|
|
11633
|
+
*/
|
|
11634
|
+
class BlockIPActionParameters extends AbstractModel {
|
|
11635
|
+
constructor(){
|
|
11636
|
+
super();
|
|
11637
|
+
|
|
11638
|
+
/**
|
|
11639
|
+
* Penalty duration for `BlockIP`. Units: <li>`s`: second, value range 1-120;</li> <li>`m`: minute, value range 1-120;</li> <li>`h`: hour, value range 1-48.</li>.
|
|
11640
|
+
* @type {string || null}
|
|
11641
|
+
*/
|
|
11642
|
+
this.Duration = null;
|
|
11643
|
+
|
|
11644
|
+
}
|
|
11645
|
+
|
|
11646
|
+
/**
|
|
11647
|
+
* @private
|
|
11648
|
+
*/
|
|
11649
|
+
deserialize(params) {
|
|
11650
|
+
if (!params) {
|
|
11651
|
+
return;
|
|
11652
|
+
}
|
|
11653
|
+
this.Duration = 'Duration' in params ? params.Duration : null;
|
|
11654
|
+
|
|
11655
|
+
}
|
|
11656
|
+
}
|
|
11657
|
+
|
|
11236
11658
|
/**
|
|
11237
11659
|
* CreatePlan request structure.
|
|
11238
11660
|
* @class
|
|
@@ -11284,6 +11706,42 @@ If this field is not specified, the default plan duration is 1 month, with auto-
|
|
|
11284
11706
|
}
|
|
11285
11707
|
}
|
|
11286
11708
|
|
|
11709
|
+
/**
|
|
11710
|
+
* Length limit detection configuration.
|
|
11711
|
+
* @class
|
|
11712
|
+
*/
|
|
11713
|
+
class DetectLengthLimitConfig extends AbstractModel {
|
|
11714
|
+
constructor(){
|
|
11715
|
+
super();
|
|
11716
|
+
|
|
11717
|
+
/**
|
|
11718
|
+
* List of rules that detect length limits.
|
|
11719
|
+
* @type {Array.<DetectLengthLimitRule> || null}
|
|
11720
|
+
*/
|
|
11721
|
+
this.DetectLengthLimitRules = null;
|
|
11722
|
+
|
|
11723
|
+
}
|
|
11724
|
+
|
|
11725
|
+
/**
|
|
11726
|
+
* @private
|
|
11727
|
+
*/
|
|
11728
|
+
deserialize(params) {
|
|
11729
|
+
if (!params) {
|
|
11730
|
+
return;
|
|
11731
|
+
}
|
|
11732
|
+
|
|
11733
|
+
if (params.DetectLengthLimitRules) {
|
|
11734
|
+
this.DetectLengthLimitRules = new Array();
|
|
11735
|
+
for (let z in params.DetectLengthLimitRules) {
|
|
11736
|
+
let obj = new DetectLengthLimitRule();
|
|
11737
|
+
obj.deserialize(params.DetectLengthLimitRules[z]);
|
|
11738
|
+
this.DetectLengthLimitRules.push(obj);
|
|
11739
|
+
}
|
|
11740
|
+
}
|
|
11741
|
+
|
|
11742
|
+
}
|
|
11743
|
+
}
|
|
11744
|
+
|
|
11287
11745
|
/**
|
|
11288
11746
|
* DescribeFunctionRuntimeEnvironment request structure.
|
|
11289
11747
|
* @class
|
|
@@ -11548,6 +12006,43 @@ class DescribeDefaultCertificatesRequest extends AbstractModel {
|
|
|
11548
12006
|
}
|
|
11549
12007
|
}
|
|
11550
12008
|
|
|
12009
|
+
/**
|
|
12010
|
+
* Browser Cache TTL configuration parameters
|
|
12011
|
+
* @class
|
|
12012
|
+
*/
|
|
12013
|
+
class MaxAgeParameters extends AbstractModel {
|
|
12014
|
+
constructor(){
|
|
12015
|
+
super();
|
|
12016
|
+
|
|
12017
|
+
/**
|
|
12018
|
+
* Specifies whether to follow the origin server cache-control configuration, with the following values:.
|
|
12019
|
+
<Li>`On`: follow the origin server and ignore the field cachetime;</li>.
|
|
12020
|
+
<Li>`Off`: do not follow the origin server and apply the field cachetime.</li>.
|
|
12021
|
+
* @type {string || null}
|
|
12022
|
+
*/
|
|
12023
|
+
this.FollowOrigin = null;
|
|
12024
|
+
|
|
12025
|
+
/**
|
|
12026
|
+
* Custom cache time value, unit: seconds. value range: 0-315360000.<br>note: when followorigin is off, it means not following the origin server and using cachetime to set the cache time; otherwise, this field will not take effect.
|
|
12027
|
+
* @type {number || null}
|
|
12028
|
+
*/
|
|
12029
|
+
this.CacheTime = null;
|
|
12030
|
+
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
/**
|
|
12034
|
+
* @private
|
|
12035
|
+
*/
|
|
12036
|
+
deserialize(params) {
|
|
12037
|
+
if (!params) {
|
|
12038
|
+
return;
|
|
12039
|
+
}
|
|
12040
|
+
this.FollowOrigin = 'FollowOrigin' in params ? params.FollowOrigin : null;
|
|
12041
|
+
this.CacheTime = 'CacheTime' in params ? params.CacheTime : null;
|
|
12042
|
+
|
|
12043
|
+
}
|
|
12044
|
+
}
|
|
12045
|
+
|
|
11551
12046
|
/**
|
|
11552
12047
|
* ModifyApplicationProxyRule response structure.
|
|
11553
12048
|
* @class
|
|
@@ -12571,26 +13066,36 @@ Note: This field may return null, which indicates a failure to obtain a valid va
|
|
|
12571
13066
|
}
|
|
12572
13067
|
|
|
12573
13068
|
/**
|
|
12574
|
-
*
|
|
13069
|
+
* DescribeSecurityPolicy request structure.
|
|
12575
13070
|
* @class
|
|
12576
13071
|
*/
|
|
12577
|
-
class
|
|
13072
|
+
class DescribeSecurityPolicyRequest extends AbstractModel {
|
|
12578
13073
|
constructor(){
|
|
12579
13074
|
super();
|
|
12580
13075
|
|
|
12581
13076
|
/**
|
|
12582
|
-
*
|
|
12583
|
-
<Li>`On`: follow the origin server and ignore the field cachetime;</li>.
|
|
12584
|
-
<Li>`Off`: do not follow the origin server and apply the field cachetime.</li>.
|
|
13077
|
+
* Zone ID.
|
|
12585
13078
|
* @type {string || null}
|
|
12586
13079
|
*/
|
|
12587
|
-
this.
|
|
13080
|
+
this.ZoneId = null;
|
|
12588
13081
|
|
|
12589
13082
|
/**
|
|
12590
|
-
*
|
|
12591
|
-
* @type {
|
|
13083
|
+
* `SecurityPolicy` type, the following parameter values can be used for query: <li>`ZoneDefaultPolicy`: used to specify a query for site-level policies;</li> <li>`Template`: used to specify a query for policy templates. the `TemplateId` parameter needs to be specified simultaneously;</li> <li>`Host`: used to specify a query for domain-level policies (note: when using `Host` to specify a domain name service policy, only domain name services or policy templates that have been applied domain-level policies are supported).</li>
|
|
13084
|
+
* @type {string || null}
|
|
12592
13085
|
*/
|
|
12593
|
-
this.
|
|
13086
|
+
this.Entity = null;
|
|
13087
|
+
|
|
13088
|
+
/**
|
|
13089
|
+
* Specify the policy Template ID. Use this parameter to specify the ID of the policy Template to query the Template configuration when the `Entity` parameter value is set to `Template`.
|
|
13090
|
+
* @type {string || null}
|
|
13091
|
+
*/
|
|
13092
|
+
this.TemplateId = null;
|
|
13093
|
+
|
|
13094
|
+
/**
|
|
13095
|
+
* Specify the domain name. When the `Entity` parameter value is set to `Host`, use the domain-level policy specified by this parameter to query the domain configuration. For example, use `www.example.com` to configure the domain-level policy for that domain name.
|
|
13096
|
+
* @type {string || null}
|
|
13097
|
+
*/
|
|
13098
|
+
this.Host = null;
|
|
12594
13099
|
|
|
12595
13100
|
}
|
|
12596
13101
|
|
|
@@ -12601,8 +13106,10 @@ class MaxAgeParameters extends AbstractModel {
|
|
|
12601
13106
|
if (!params) {
|
|
12602
13107
|
return;
|
|
12603
13108
|
}
|
|
12604
|
-
this.
|
|
12605
|
-
this.
|
|
13109
|
+
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
|
|
13110
|
+
this.Entity = 'Entity' in params ? params.Entity : null;
|
|
13111
|
+
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
|
|
13112
|
+
this.Host = 'Host' in params ? params.Host : null;
|
|
12606
13113
|
|
|
12607
13114
|
}
|
|
12608
13115
|
}
|
|
@@ -13387,6 +13894,50 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
13387
13894
|
}
|
|
13388
13895
|
}
|
|
13389
13896
|
|
|
13897
|
+
/**
|
|
13898
|
+
* ModifyApplicationProxyStatus request structure.
|
|
13899
|
+
* @class
|
|
13900
|
+
*/
|
|
13901
|
+
class ModifyApplicationProxyStatusRequest extends AbstractModel {
|
|
13902
|
+
constructor(){
|
|
13903
|
+
super();
|
|
13904
|
+
|
|
13905
|
+
/**
|
|
13906
|
+
* The site ID.
|
|
13907
|
+
* @type {string || null}
|
|
13908
|
+
*/
|
|
13909
|
+
this.ZoneId = null;
|
|
13910
|
+
|
|
13911
|
+
/**
|
|
13912
|
+
* The proxy ID.
|
|
13913
|
+
* @type {string || null}
|
|
13914
|
+
*/
|
|
13915
|
+
this.ProxyId = null;
|
|
13916
|
+
|
|
13917
|
+
/**
|
|
13918
|
+
* The proxy status. Values:
|
|
13919
|
+
<li>`offline`: The proxy is disabled.</li>
|
|
13920
|
+
<li>`online`: The proxy is enabled.</li>
|
|
13921
|
+
* @type {string || null}
|
|
13922
|
+
*/
|
|
13923
|
+
this.Status = null;
|
|
13924
|
+
|
|
13925
|
+
}
|
|
13926
|
+
|
|
13927
|
+
/**
|
|
13928
|
+
* @private
|
|
13929
|
+
*/
|
|
13930
|
+
deserialize(params) {
|
|
13931
|
+
if (!params) {
|
|
13932
|
+
return;
|
|
13933
|
+
}
|
|
13934
|
+
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
|
|
13935
|
+
this.ProxyId = 'ProxyId' in params ? params.ProxyId : null;
|
|
13936
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
13937
|
+
|
|
13938
|
+
}
|
|
13939
|
+
}
|
|
13940
|
+
|
|
13390
13941
|
/**
|
|
13391
13942
|
* DeleteOriginGroup response structure.
|
|
13392
13943
|
* @class
|
|
@@ -15693,6 +16244,88 @@ class DescribeL4ProxyResponse extends AbstractModel {
|
|
|
15693
16244
|
}
|
|
15694
16245
|
}
|
|
15695
16246
|
|
|
16247
|
+
/**
|
|
16248
|
+
* ModifyHostsCertificate request structure.
|
|
16249
|
+
* @class
|
|
16250
|
+
*/
|
|
16251
|
+
class ModifyHostsCertificateRequest extends AbstractModel {
|
|
16252
|
+
constructor(){
|
|
16253
|
+
super();
|
|
16254
|
+
|
|
16255
|
+
/**
|
|
16256
|
+
* ID of the site.
|
|
16257
|
+
* @type {string || null}
|
|
16258
|
+
*/
|
|
16259
|
+
this.ZoneId = null;
|
|
16260
|
+
|
|
16261
|
+
/**
|
|
16262
|
+
* Domain names that you need to modify the certificate configuration
|
|
16263
|
+
* @type {Array.<string> || null}
|
|
16264
|
+
*/
|
|
16265
|
+
this.Hosts = null;
|
|
16266
|
+
|
|
16267
|
+
/**
|
|
16268
|
+
* Certificate configuration mode. Values:
|
|
16269
|
+
<li>`disable`: (Default) Do not configure the certificate</li>
|
|
16270
|
+
<li>`eofreecert`: Use a free certificate provided by EdgeOne</li>
|
|
16271
|
+
<li>`sslcert`: Configure an SSL certificate.</li>
|
|
16272
|
+
* @type {string || null}
|
|
16273
|
+
*/
|
|
16274
|
+
this.Mode = null;
|
|
16275
|
+
|
|
16276
|
+
/**
|
|
16277
|
+
* SSL certificate configuration. This parameter is effective only when the mode is sslcert. You only need to provide the CertId of the corresponding certificate. You can check the CertId from the [SSL Certificate List](https://console.cloud.tencent.com/ssl).
|
|
16278
|
+
* @type {Array.<ServerCertInfo> || null}
|
|
16279
|
+
*/
|
|
16280
|
+
this.ServerCertInfo = null;
|
|
16281
|
+
|
|
16282
|
+
/**
|
|
16283
|
+
* Whether the certificate is managed by EdgeOne. Values:
|
|
16284
|
+
<li>`none`: Not managed by EdgeOne</li>
|
|
16285
|
+
<li>`apply`: Managed by EdgeOne</li>
|
|
16286
|
+
Default value: `none`.
|
|
16287
|
+
* @type {string || null}
|
|
16288
|
+
*/
|
|
16289
|
+
this.ApplyType = null;
|
|
16290
|
+
|
|
16291
|
+
/**
|
|
16292
|
+
* In the mutual authentication scenario, this field represents the client's CA certificate, which is deployed inside the EO node and used for the client to authenticate the EO node. By default, it is disabled. If it is left blank, it indicates retaining the original configuration.
|
|
16293
|
+
* @type {MutualTLS || null}
|
|
16294
|
+
*/
|
|
16295
|
+
this.ClientCertInfo = null;
|
|
16296
|
+
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
/**
|
|
16300
|
+
* @private
|
|
16301
|
+
*/
|
|
16302
|
+
deserialize(params) {
|
|
16303
|
+
if (!params) {
|
|
16304
|
+
return;
|
|
16305
|
+
}
|
|
16306
|
+
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
|
|
16307
|
+
this.Hosts = 'Hosts' in params ? params.Hosts : null;
|
|
16308
|
+
this.Mode = 'Mode' in params ? params.Mode : null;
|
|
16309
|
+
|
|
16310
|
+
if (params.ServerCertInfo) {
|
|
16311
|
+
this.ServerCertInfo = new Array();
|
|
16312
|
+
for (let z in params.ServerCertInfo) {
|
|
16313
|
+
let obj = new ServerCertInfo();
|
|
16314
|
+
obj.deserialize(params.ServerCertInfo[z]);
|
|
16315
|
+
this.ServerCertInfo.push(obj);
|
|
16316
|
+
}
|
|
16317
|
+
}
|
|
16318
|
+
this.ApplyType = 'ApplyType' in params ? params.ApplyType : null;
|
|
16319
|
+
|
|
16320
|
+
if (params.ClientCertInfo) {
|
|
16321
|
+
let obj = new MutualTLS();
|
|
16322
|
+
obj.deserialize(params.ClientCertInfo)
|
|
16323
|
+
this.ClientCertInfo = obj;
|
|
16324
|
+
}
|
|
16325
|
+
|
|
16326
|
+
}
|
|
16327
|
+
}
|
|
16328
|
+
|
|
15696
16329
|
/**
|
|
15697
16330
|
* ModifyOriginGroup response structure.
|
|
15698
16331
|
* @class
|
|
@@ -16128,6 +16761,41 @@ class ModifyL7AccSettingResponse extends AbstractModel {
|
|
|
16128
16761
|
}
|
|
16129
16762
|
}
|
|
16130
16763
|
|
|
16764
|
+
/**
|
|
16765
|
+
* Additional parameter for SecurityAction `ReturnCustomPage`.
|
|
16766
|
+
* @class
|
|
16767
|
+
*/
|
|
16768
|
+
class ReturnCustomPageActionParameters extends AbstractModel {
|
|
16769
|
+
constructor(){
|
|
16770
|
+
super();
|
|
16771
|
+
|
|
16772
|
+
/**
|
|
16773
|
+
* Response custom status code.
|
|
16774
|
+
* @type {string || null}
|
|
16775
|
+
*/
|
|
16776
|
+
this.ResponseCode = null;
|
|
16777
|
+
|
|
16778
|
+
/**
|
|
16779
|
+
* Response custom page ID.
|
|
16780
|
+
* @type {string || null}
|
|
16781
|
+
*/
|
|
16782
|
+
this.ErrorPageId = null;
|
|
16783
|
+
|
|
16784
|
+
}
|
|
16785
|
+
|
|
16786
|
+
/**
|
|
16787
|
+
* @private
|
|
16788
|
+
*/
|
|
16789
|
+
deserialize(params) {
|
|
16790
|
+
if (!params) {
|
|
16791
|
+
return;
|
|
16792
|
+
}
|
|
16793
|
+
this.ResponseCode = 'ResponseCode' in params ? params.ResponseCode : null;
|
|
16794
|
+
this.ErrorPageId = 'ErrorPageId' in params ? params.ErrorPageId : null;
|
|
16795
|
+
|
|
16796
|
+
}
|
|
16797
|
+
}
|
|
16798
|
+
|
|
16131
16799
|
/**
|
|
16132
16800
|
* BindZoneToPlan response structure.
|
|
16133
16801
|
* @class
|
|
@@ -17422,6 +18090,46 @@ class DeleteApplicationProxyRuleRequest extends AbstractModel {
|
|
|
17422
18090
|
}
|
|
17423
18091
|
}
|
|
17424
18092
|
|
|
18093
|
+
/**
|
|
18094
|
+
* Action for specific RuleId.
|
|
18095
|
+
* @class
|
|
18096
|
+
*/
|
|
18097
|
+
class ManagedRuleAction extends AbstractModel {
|
|
18098
|
+
constructor(){
|
|
18099
|
+
super();
|
|
18100
|
+
|
|
18101
|
+
/**
|
|
18102
|
+
* Specific items under ManagedRuleGroup, used to rewrite the configuration of this individual rule item, refer to product documentation for details.
|
|
18103
|
+
* @type {string || null}
|
|
18104
|
+
*/
|
|
18105
|
+
this.RuleId = null;
|
|
18106
|
+
|
|
18107
|
+
/**
|
|
18108
|
+
* Action for the managed rule item specified by RuleId, the SecurityAction Name parameter supports: <li>`Deny`: block and respond with an block page;</li> <li>`Monitor`: observe, do not process the request and record the security event in logs;</li> <li>`Disabled`: disabled, do not scan the request and skip this rule.</li>.
|
|
18109
|
+
* @type {SecurityAction || null}
|
|
18110
|
+
*/
|
|
18111
|
+
this.Action = null;
|
|
18112
|
+
|
|
18113
|
+
}
|
|
18114
|
+
|
|
18115
|
+
/**
|
|
18116
|
+
* @private
|
|
18117
|
+
*/
|
|
18118
|
+
deserialize(params) {
|
|
18119
|
+
if (!params) {
|
|
18120
|
+
return;
|
|
18121
|
+
}
|
|
18122
|
+
this.RuleId = 'RuleId' in params ? params.RuleId : null;
|
|
18123
|
+
|
|
18124
|
+
if (params.Action) {
|
|
18125
|
+
let obj = new SecurityAction();
|
|
18126
|
+
obj.deserialize(params.Action)
|
|
18127
|
+
this.Action = obj;
|
|
18128
|
+
}
|
|
18129
|
+
|
|
18130
|
+
}
|
|
18131
|
+
}
|
|
18132
|
+
|
|
17425
18133
|
/**
|
|
17426
18134
|
* ModifyL7AccRule response structure.
|
|
17427
18135
|
* @class
|
|
@@ -18038,32 +18746,42 @@ class ModifyFunctionRequest extends AbstractModel {
|
|
|
18038
18746
|
}
|
|
18039
18747
|
|
|
18040
18748
|
/**
|
|
18041
|
-
*
|
|
18749
|
+
* Managed rule group configuration.
|
|
18042
18750
|
* @class
|
|
18043
18751
|
*/
|
|
18044
|
-
class
|
|
18752
|
+
class ManagedRuleGroup extends AbstractModel {
|
|
18045
18753
|
constructor(){
|
|
18046
18754
|
super();
|
|
18047
18755
|
|
|
18048
18756
|
/**
|
|
18049
|
-
*
|
|
18757
|
+
* Name of the managed rule group, if the configuration for the rule group is not specified, it will be processed by default, refer to product documentation for the specific value of GroupId.
|
|
18050
18758
|
* @type {string || null}
|
|
18051
18759
|
*/
|
|
18052
|
-
this.
|
|
18760
|
+
this.GroupId = null;
|
|
18053
18761
|
|
|
18054
18762
|
/**
|
|
18055
|
-
*
|
|
18763
|
+
* Protection level of the managed rule group. Values: <li>`loose`: lenient, only contain ultra-high risk rules, at this point, Action parameter needs configured instead of RuleActions parameter;</li> <li>`normal`: normal, contain ultra-high risk and high-risk rules, at this point,Action parameter needs configured instead of RuleActions parameter;</li> <li>`strict`: strict, contains ultra-high risk, high-risk and medium-risk rules, at this point, Action parameter needs configured instead of RuleActions parameter;</li> <li>`extreme`: super strict, contains ultra-high risk, high-risk, medium-risk and low-risk rules, at this point, Action parameter needs configured instead of RuleActions parameter;</li> <li>`custom`: custom, refined strategy, configure the RuleActions parameter for each individual rule, at this point, the Action field is invalid, use RuleActions to configure the refined strategy for each individual rule.</li>.
|
|
18056
18764
|
* @type {string || null}
|
|
18057
18765
|
*/
|
|
18058
|
-
this.
|
|
18766
|
+
this.SensitivityLevel = null;
|
|
18059
18767
|
|
|
18060
18768
|
/**
|
|
18061
|
-
*
|
|
18062
|
-
|
|
18063
|
-
<li>`online`: The proxy is enabled.</li>
|
|
18064
|
-
* @type {string || null}
|
|
18769
|
+
* Action for ManagedRuleGroup. the Name parameter value of SecurityAction supports: <li>`Deny`: block and respond with a block page;</li> <li>`Monitor`: observe, do not process requests and record security events in logs;</li> <li>`Disabled`: not enabled, do not scan requests and skip this rule.</li>.
|
|
18770
|
+
* @type {SecurityAction || null}
|
|
18065
18771
|
*/
|
|
18066
|
-
this.
|
|
18772
|
+
this.Action = null;
|
|
18773
|
+
|
|
18774
|
+
/**
|
|
18775
|
+
* Specific configuration of rule items under the managed rule group, valid only when SensitivityLevel is custom.
|
|
18776
|
+
* @type {Array.<ManagedRuleAction> || null}
|
|
18777
|
+
*/
|
|
18778
|
+
this.RuleActions = null;
|
|
18779
|
+
|
|
18780
|
+
/**
|
|
18781
|
+
* ManagedRuleGroup detailed information, output parameter only.
|
|
18782
|
+
* @type {ManagedRuleGroupMeta || null}
|
|
18783
|
+
*/
|
|
18784
|
+
this.MetaData = null;
|
|
18067
18785
|
|
|
18068
18786
|
}
|
|
18069
18787
|
|
|
@@ -18074,9 +18792,29 @@ class ModifyApplicationProxyStatusRequest extends AbstractModel {
|
|
|
18074
18792
|
if (!params) {
|
|
18075
18793
|
return;
|
|
18076
18794
|
}
|
|
18077
|
-
this.
|
|
18078
|
-
this.
|
|
18079
|
-
|
|
18795
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
18796
|
+
this.SensitivityLevel = 'SensitivityLevel' in params ? params.SensitivityLevel : null;
|
|
18797
|
+
|
|
18798
|
+
if (params.Action) {
|
|
18799
|
+
let obj = new SecurityAction();
|
|
18800
|
+
obj.deserialize(params.Action)
|
|
18801
|
+
this.Action = obj;
|
|
18802
|
+
}
|
|
18803
|
+
|
|
18804
|
+
if (params.RuleActions) {
|
|
18805
|
+
this.RuleActions = new Array();
|
|
18806
|
+
for (let z in params.RuleActions) {
|
|
18807
|
+
let obj = new ManagedRuleAction();
|
|
18808
|
+
obj.deserialize(params.RuleActions[z]);
|
|
18809
|
+
this.RuleActions.push(obj);
|
|
18810
|
+
}
|
|
18811
|
+
}
|
|
18812
|
+
|
|
18813
|
+
if (params.MetaData) {
|
|
18814
|
+
let obj = new ManagedRuleGroupMeta();
|
|
18815
|
+
obj.deserialize(params.MetaData)
|
|
18816
|
+
this.MetaData = obj;
|
|
18817
|
+
}
|
|
18080
18818
|
|
|
18081
18819
|
}
|
|
18082
18820
|
}
|
|
@@ -18155,22 +18893,69 @@ class CreateZoneRequest extends AbstractModel {
|
|
|
18155
18893
|
if (!params) {
|
|
18156
18894
|
return;
|
|
18157
18895
|
}
|
|
18158
|
-
this.Type = 'Type' in params ? params.Type : null;
|
|
18159
|
-
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
|
|
18160
|
-
this.Area = 'Area' in params ? params.Area : null;
|
|
18161
|
-
this.PlanId = 'PlanId' in params ? params.PlanId : null;
|
|
18162
|
-
this.AliasZoneName = 'AliasZoneName' in params ? params.AliasZoneName : null;
|
|
18896
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
18897
|
+
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
|
|
18898
|
+
this.Area = 'Area' in params ? params.Area : null;
|
|
18899
|
+
this.PlanId = 'PlanId' in params ? params.PlanId : null;
|
|
18900
|
+
this.AliasZoneName = 'AliasZoneName' in params ? params.AliasZoneName : null;
|
|
18901
|
+
|
|
18902
|
+
if (params.Tags) {
|
|
18903
|
+
this.Tags = new Array();
|
|
18904
|
+
for (let z in params.Tags) {
|
|
18905
|
+
let obj = new Tag();
|
|
18906
|
+
obj.deserialize(params.Tags[z]);
|
|
18907
|
+
this.Tags.push(obj);
|
|
18908
|
+
}
|
|
18909
|
+
}
|
|
18910
|
+
this.AllowDuplicates = 'AllowDuplicates' in params ? params.AllowDuplicates : null;
|
|
18911
|
+
this.JumpStart = 'JumpStart' in params ? params.JumpStart : null;
|
|
18912
|
+
|
|
18913
|
+
}
|
|
18914
|
+
}
|
|
18915
|
+
|
|
18916
|
+
/**
|
|
18917
|
+
* Web security policy.
|
|
18918
|
+
* @class
|
|
18919
|
+
*/
|
|
18920
|
+
class SecurityPolicy extends AbstractModel {
|
|
18921
|
+
constructor(){
|
|
18922
|
+
super();
|
|
18923
|
+
|
|
18924
|
+
/**
|
|
18925
|
+
* Custom rules. If the parameter is null or not filled, the configuration last set will be used by default.
|
|
18926
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
18927
|
+
* @type {CustomRules || null}
|
|
18928
|
+
*/
|
|
18929
|
+
this.CustomRules = null;
|
|
18930
|
+
|
|
18931
|
+
/**
|
|
18932
|
+
* Managed. If the parameter is null or not filled, the configuration last set will be used by default.
|
|
18933
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
18934
|
+
* @type {ManagedRules || null}
|
|
18935
|
+
*/
|
|
18936
|
+
this.ManagedRules = null;
|
|
18937
|
+
|
|
18938
|
+
}
|
|
18939
|
+
|
|
18940
|
+
/**
|
|
18941
|
+
* @private
|
|
18942
|
+
*/
|
|
18943
|
+
deserialize(params) {
|
|
18944
|
+
if (!params) {
|
|
18945
|
+
return;
|
|
18946
|
+
}
|
|
18163
18947
|
|
|
18164
|
-
if (params.
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18948
|
+
if (params.CustomRules) {
|
|
18949
|
+
let obj = new CustomRules();
|
|
18950
|
+
obj.deserialize(params.CustomRules)
|
|
18951
|
+
this.CustomRules = obj;
|
|
18952
|
+
}
|
|
18953
|
+
|
|
18954
|
+
if (params.ManagedRules) {
|
|
18955
|
+
let obj = new ManagedRules();
|
|
18956
|
+
obj.deserialize(params.ManagedRules)
|
|
18957
|
+
this.ManagedRules = obj;
|
|
18171
18958
|
}
|
|
18172
|
-
this.AllowDuplicates = 'AllowDuplicates' in params ? params.AllowDuplicates : null;
|
|
18173
|
-
this.JumpStart = 'JumpStart' in params ? params.JumpStart : null;
|
|
18174
18959
|
|
|
18175
18960
|
}
|
|
18176
18961
|
}
|
|
@@ -23190,54 +23975,24 @@ class ModifyApplicationProxyRuleStatusResponse extends AbstractModel {
|
|
|
23190
23975
|
}
|
|
23191
23976
|
|
|
23192
23977
|
/**
|
|
23193
|
-
*
|
|
23978
|
+
* Managed rule automatic update option.
|
|
23194
23979
|
* @class
|
|
23195
23980
|
*/
|
|
23196
|
-
class
|
|
23981
|
+
class ManagedRuleAutoUpdate extends AbstractModel {
|
|
23197
23982
|
constructor(){
|
|
23198
23983
|
super();
|
|
23199
23984
|
|
|
23200
23985
|
/**
|
|
23201
|
-
*
|
|
23202
|
-
* @type {string || null}
|
|
23203
|
-
*/
|
|
23204
|
-
this.ZoneId = null;
|
|
23205
|
-
|
|
23206
|
-
/**
|
|
23207
|
-
* Site access method. Valid values:
|
|
23208
|
-
<li>full: NS access.</li>
|
|
23209
|
-
<li>partial: CNAME access. If the site is currently accessed with no domain name, it can be switched only to CNAME access.</li>
|
|
23210
|
-
<li>dnsPodAccess: DNSPod hosted access. To use this access mode, your domain name should have been hosted on DNSPod.</li>If this parameter is not input, the original configuration is maintained.
|
|
23211
|
-
* @type {string || null}
|
|
23212
|
-
*/
|
|
23213
|
-
this.Type = null;
|
|
23214
|
-
|
|
23215
|
-
/**
|
|
23216
|
-
* The custom name servers. The original configuration applies if this field is not specified. It is not allowed to pass this field when a site is connected without using a domain name.
|
|
23217
|
-
* @type {VanityNameServers || null}
|
|
23218
|
-
*/
|
|
23219
|
-
this.VanityNameServers = null;
|
|
23220
|
-
|
|
23221
|
-
/**
|
|
23222
|
-
* The site alias. It can be up to 20 characters consisting of digits, letters, hyphens (-) and underscores (_).
|
|
23223
|
-
* @type {string || null}
|
|
23224
|
-
*/
|
|
23225
|
-
this.AliasZoneName = null;
|
|
23226
|
-
|
|
23227
|
-
/**
|
|
23228
|
-
* The region where the site requests access. Values:
|
|
23229
|
-
<li> `global`: Global coverage</li>
|
|
23230
|
-
<li> `mainland`: Chinese mainland</li>
|
|
23231
|
-
<li> `overseas`: Outside the Chinese mainland </li>It is not allowed to pass this field when a site is connected without using a domain name.
|
|
23986
|
+
* Enable automatic update to the latest version or not. Values: <li>`on`: enabled</li> <li>`off`: disabled</li>.
|
|
23232
23987
|
* @type {string || null}
|
|
23233
23988
|
*/
|
|
23234
|
-
this.
|
|
23989
|
+
this.AutoUpdateToLatestVersion = null;
|
|
23235
23990
|
|
|
23236
23991
|
/**
|
|
23237
|
-
*
|
|
23992
|
+
* Current version, compliant with ISO 8601 standard format, such as 2023-12-21T12:00:32Z, empty by default, output parameter only.
|
|
23238
23993
|
* @type {string || null}
|
|
23239
23994
|
*/
|
|
23240
|
-
this.
|
|
23995
|
+
this.RulesetVersion = null;
|
|
23241
23996
|
|
|
23242
23997
|
}
|
|
23243
23998
|
|
|
@@ -23248,17 +24003,8 @@ class ModifyZoneRequest extends AbstractModel {
|
|
|
23248
24003
|
if (!params) {
|
|
23249
24004
|
return;
|
|
23250
24005
|
}
|
|
23251
|
-
this.
|
|
23252
|
-
this.
|
|
23253
|
-
|
|
23254
|
-
if (params.VanityNameServers) {
|
|
23255
|
-
let obj = new VanityNameServers();
|
|
23256
|
-
obj.deserialize(params.VanityNameServers)
|
|
23257
|
-
this.VanityNameServers = obj;
|
|
23258
|
-
}
|
|
23259
|
-
this.AliasZoneName = 'AliasZoneName' in params ? params.AliasZoneName : null;
|
|
23260
|
-
this.Area = 'Area' in params ? params.Area : null;
|
|
23261
|
-
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
|
|
24006
|
+
this.AutoUpdateToLatestVersion = 'AutoUpdateToLatestVersion' in params ? params.AutoUpdateToLatestVersion : null;
|
|
24007
|
+
this.RulesetVersion = 'RulesetVersion' in params ? params.RulesetVersion : null;
|
|
23262
24008
|
|
|
23263
24009
|
}
|
|
23264
24010
|
}
|
|
@@ -23532,6 +24278,34 @@ class AlgDetectSession extends AbstractModel {
|
|
|
23532
24278
|
}
|
|
23533
24279
|
}
|
|
23534
24280
|
|
|
24281
|
+
/**
|
|
24282
|
+
* ModifyZoneStatus response structure.
|
|
24283
|
+
* @class
|
|
24284
|
+
*/
|
|
24285
|
+
class ModifyZoneStatusResponse extends AbstractModel {
|
|
24286
|
+
constructor(){
|
|
24287
|
+
super();
|
|
24288
|
+
|
|
24289
|
+
/**
|
|
24290
|
+
* 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.
|
|
24291
|
+
* @type {string || null}
|
|
24292
|
+
*/
|
|
24293
|
+
this.RequestId = null;
|
|
24294
|
+
|
|
24295
|
+
}
|
|
24296
|
+
|
|
24297
|
+
/**
|
|
24298
|
+
* @private
|
|
24299
|
+
*/
|
|
24300
|
+
deserialize(params) {
|
|
24301
|
+
if (!params) {
|
|
24302
|
+
return;
|
|
24303
|
+
}
|
|
24304
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
24305
|
+
|
|
24306
|
+
}
|
|
24307
|
+
}
|
|
24308
|
+
|
|
23535
24309
|
/**
|
|
23536
24310
|
* DeleteContentIdentifier request structure.
|
|
23537
24311
|
* @class
|
|
@@ -24444,32 +25218,29 @@ class DescribeRulesRequest extends AbstractModel {
|
|
|
24444
25218
|
}
|
|
24445
25219
|
|
|
24446
25220
|
/**
|
|
24447
|
-
*
|
|
25221
|
+
* Length limit detection condition configuration.
|
|
24448
25222
|
* @class
|
|
24449
25223
|
*/
|
|
24450
|
-
class
|
|
25224
|
+
class DetectLengthLimitCondition extends AbstractModel {
|
|
24451
25225
|
constructor(){
|
|
24452
25226
|
super();
|
|
24453
25227
|
|
|
24454
25228
|
/**
|
|
24455
|
-
*
|
|
24456
|
-
|
|
24457
|
-
* @type {
|
|
24458
|
-
*/
|
|
24459
|
-
this.PurgeQuota = null;
|
|
24460
|
-
|
|
24461
|
-
/**
|
|
24462
|
-
* Pre-warming quotas.
|
|
24463
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
24464
|
-
* @type {Array.<Quota> || null}
|
|
25229
|
+
* Parameter name of the matched condition. Values:.
|
|
25230
|
+
<li>`body_depth`: detection depth of the request body packet part.</li>
|
|
25231
|
+
* @type {string || null}
|
|
24465
25232
|
*/
|
|
24466
|
-
this.
|
|
25233
|
+
this.Name = null;
|
|
24467
25234
|
|
|
24468
25235
|
/**
|
|
24469
|
-
*
|
|
24470
|
-
|
|
25236
|
+
* Parameter value of the matched condition, used in pairs with the `Name` parameter.
|
|
25237
|
+
When the `Name` value is body_depth, `Values` only support passing in a single value. Values:
|
|
25238
|
+
<li>`8KB`;</li>
|
|
25239
|
+
<li>`64KB`;</li>
|
|
25240
|
+
<li>`128KB`.</li>
|
|
25241
|
+
* @type {Array.<string> || null}
|
|
24471
25242
|
*/
|
|
24472
|
-
this.
|
|
25243
|
+
this.Values = null;
|
|
24473
25244
|
|
|
24474
25245
|
}
|
|
24475
25246
|
|
|
@@ -24480,25 +25251,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
24480
25251
|
if (!params) {
|
|
24481
25252
|
return;
|
|
24482
25253
|
}
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
this.PurgeQuota = new Array();
|
|
24486
|
-
for (let z in params.PurgeQuota) {
|
|
24487
|
-
let obj = new Quota();
|
|
24488
|
-
obj.deserialize(params.PurgeQuota[z]);
|
|
24489
|
-
this.PurgeQuota.push(obj);
|
|
24490
|
-
}
|
|
24491
|
-
}
|
|
24492
|
-
|
|
24493
|
-
if (params.PrefetchQuota) {
|
|
24494
|
-
this.PrefetchQuota = new Array();
|
|
24495
|
-
for (let z in params.PrefetchQuota) {
|
|
24496
|
-
let obj = new Quota();
|
|
24497
|
-
obj.deserialize(params.PrefetchQuota[z]);
|
|
24498
|
-
this.PrefetchQuota.push(obj);
|
|
24499
|
-
}
|
|
24500
|
-
}
|
|
24501
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
25254
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
25255
|
+
this.Values = 'Values' in params ? params.Values : null;
|
|
24502
25256
|
|
|
24503
25257
|
}
|
|
24504
25258
|
}
|
|
@@ -27520,6 +28274,75 @@ class CacheConfigCustomTime extends AbstractModel {
|
|
|
27520
28274
|
}
|
|
27521
28275
|
}
|
|
27522
28276
|
|
|
28277
|
+
/**
|
|
28278
|
+
* Managed rules configuration.
|
|
28279
|
+
* @class
|
|
28280
|
+
*/
|
|
28281
|
+
class ManagedRules extends AbstractModel {
|
|
28282
|
+
constructor(){
|
|
28283
|
+
super();
|
|
28284
|
+
|
|
28285
|
+
/**
|
|
28286
|
+
* The managed rule status. Values: <li>`on`: enabled, all managed rules take effect as configured;</li> <li>`off`: disabled, all managed rules do not take effect.</li>.
|
|
28287
|
+
* @type {string || null}
|
|
28288
|
+
*/
|
|
28289
|
+
this.Enabled = null;
|
|
28290
|
+
|
|
28291
|
+
/**
|
|
28292
|
+
* Evaluation mode is enabled or not, it is valid only when the `Enabled` parameter is set to `on`. Values: <li>`on`: enabled, all managed rules take effect in `observe` mode.</li> <li>off: disabled, all managed rules take effect according to the specified configuration.</li>.
|
|
28293
|
+
* @type {string || null}
|
|
28294
|
+
*/
|
|
28295
|
+
this.DetectionOnly = null;
|
|
28296
|
+
|
|
28297
|
+
/**
|
|
28298
|
+
* Managed rule semantic analysis is enabled or not, it is valid only when the `Enabled` parameter is `on`. Values: <li>`on`: enabled, perform semantic analysis before processing requests;</li> <li>`off`: disabled, process requests directly without semantic analysis.</li> <br/>The default value is `off`.
|
|
28299
|
+
* @type {string || null}
|
|
28300
|
+
*/
|
|
28301
|
+
this.SemanticAnalysis = null;
|
|
28302
|
+
|
|
28303
|
+
/**
|
|
28304
|
+
* Managed rule automatic update option.
|
|
28305
|
+
* @type {ManagedRuleAutoUpdate || null}
|
|
28306
|
+
*/
|
|
28307
|
+
this.AutoUpdate = null;
|
|
28308
|
+
|
|
28309
|
+
/**
|
|
28310
|
+
* Configuration of the managed rule group. If this structure is passed as an empty array or the GroupId is not included in the array, it will be processed based by default.
|
|
28311
|
+
* @type {Array.<ManagedRuleGroup> || null}
|
|
28312
|
+
*/
|
|
28313
|
+
this.ManagedRuleGroups = null;
|
|
28314
|
+
|
|
28315
|
+
}
|
|
28316
|
+
|
|
28317
|
+
/**
|
|
28318
|
+
* @private
|
|
28319
|
+
*/
|
|
28320
|
+
deserialize(params) {
|
|
28321
|
+
if (!params) {
|
|
28322
|
+
return;
|
|
28323
|
+
}
|
|
28324
|
+
this.Enabled = 'Enabled' in params ? params.Enabled : null;
|
|
28325
|
+
this.DetectionOnly = 'DetectionOnly' in params ? params.DetectionOnly : null;
|
|
28326
|
+
this.SemanticAnalysis = 'SemanticAnalysis' in params ? params.SemanticAnalysis : null;
|
|
28327
|
+
|
|
28328
|
+
if (params.AutoUpdate) {
|
|
28329
|
+
let obj = new ManagedRuleAutoUpdate();
|
|
28330
|
+
obj.deserialize(params.AutoUpdate)
|
|
28331
|
+
this.AutoUpdate = obj;
|
|
28332
|
+
}
|
|
28333
|
+
|
|
28334
|
+
if (params.ManagedRuleGroups) {
|
|
28335
|
+
this.ManagedRuleGroups = new Array();
|
|
28336
|
+
for (let z in params.ManagedRuleGroups) {
|
|
28337
|
+
let obj = new ManagedRuleGroup();
|
|
28338
|
+
obj.deserialize(params.ManagedRuleGroups[z]);
|
|
28339
|
+
this.ManagedRuleGroups.push(obj);
|
|
28340
|
+
}
|
|
28341
|
+
}
|
|
28342
|
+
|
|
28343
|
+
}
|
|
28344
|
+
}
|
|
28345
|
+
|
|
27523
28346
|
/**
|
|
27524
28347
|
* Bindings of a security policy template
|
|
27525
28348
|
* @class
|
|
@@ -27676,6 +28499,47 @@ class CreateOriginGroupResponse extends AbstractModel {
|
|
|
27676
28499
|
}
|
|
27677
28500
|
}
|
|
27678
28501
|
|
|
28502
|
+
/**
|
|
28503
|
+
* DescribeSecurityPolicy response structure.
|
|
28504
|
+
* @class
|
|
28505
|
+
*/
|
|
28506
|
+
class DescribeSecurityPolicyResponse extends AbstractModel {
|
|
28507
|
+
constructor(){
|
|
28508
|
+
super();
|
|
28509
|
+
|
|
28510
|
+
/**
|
|
28511
|
+
* Security policy configuration.
|
|
28512
|
+
Note: This field may return null, which indicates a failure to obtain a valid value.
|
|
28513
|
+
* @type {SecurityPolicy || null}
|
|
28514
|
+
*/
|
|
28515
|
+
this.SecurityPolicy = null;
|
|
28516
|
+
|
|
28517
|
+
/**
|
|
28518
|
+
* 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.
|
|
28519
|
+
* @type {string || null}
|
|
28520
|
+
*/
|
|
28521
|
+
this.RequestId = null;
|
|
28522
|
+
|
|
28523
|
+
}
|
|
28524
|
+
|
|
28525
|
+
/**
|
|
28526
|
+
* @private
|
|
28527
|
+
*/
|
|
28528
|
+
deserialize(params) {
|
|
28529
|
+
if (!params) {
|
|
28530
|
+
return;
|
|
28531
|
+
}
|
|
28532
|
+
|
|
28533
|
+
if (params.SecurityPolicy) {
|
|
28534
|
+
let obj = new SecurityPolicy();
|
|
28535
|
+
obj.deserialize(params.SecurityPolicy)
|
|
28536
|
+
this.SecurityPolicy = obj;
|
|
28537
|
+
}
|
|
28538
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
28539
|
+
|
|
28540
|
+
}
|
|
28541
|
+
}
|
|
28542
|
+
|
|
27679
28543
|
/**
|
|
27680
28544
|
* CreateContentIdentifier response structure.
|
|
27681
28545
|
* @class
|
|
@@ -28075,13 +28939,27 @@ class CheckCnameStatusRequest extends AbstractModel {
|
|
|
28075
28939
|
}
|
|
28076
28940
|
|
|
28077
28941
|
/**
|
|
28078
|
-
*
|
|
28942
|
+
* DescribeContentQuota response structure.
|
|
28079
28943
|
* @class
|
|
28080
28944
|
*/
|
|
28081
|
-
class
|
|
28945
|
+
class DescribeContentQuotaResponse extends AbstractModel {
|
|
28082
28946
|
constructor(){
|
|
28083
28947
|
super();
|
|
28084
28948
|
|
|
28949
|
+
/**
|
|
28950
|
+
* Purging quotas.
|
|
28951
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
28952
|
+
* @type {Array.<Quota> || null}
|
|
28953
|
+
*/
|
|
28954
|
+
this.PurgeQuota = null;
|
|
28955
|
+
|
|
28956
|
+
/**
|
|
28957
|
+
* Pre-warming quotas.
|
|
28958
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
28959
|
+
* @type {Array.<Quota> || null}
|
|
28960
|
+
*/
|
|
28961
|
+
this.PrefetchQuota = null;
|
|
28962
|
+
|
|
28085
28963
|
/**
|
|
28086
28964
|
* 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.
|
|
28087
28965
|
* @type {string || null}
|
|
@@ -28097,6 +28975,24 @@ class ModifyZoneStatusResponse extends AbstractModel {
|
|
|
28097
28975
|
if (!params) {
|
|
28098
28976
|
return;
|
|
28099
28977
|
}
|
|
28978
|
+
|
|
28979
|
+
if (params.PurgeQuota) {
|
|
28980
|
+
this.PurgeQuota = new Array();
|
|
28981
|
+
for (let z in params.PurgeQuota) {
|
|
28982
|
+
let obj = new Quota();
|
|
28983
|
+
obj.deserialize(params.PurgeQuota[z]);
|
|
28984
|
+
this.PurgeQuota.push(obj);
|
|
28985
|
+
}
|
|
28986
|
+
}
|
|
28987
|
+
|
|
28988
|
+
if (params.PrefetchQuota) {
|
|
28989
|
+
this.PrefetchQuota = new Array();
|
|
28990
|
+
for (let z in params.PrefetchQuota) {
|
|
28991
|
+
let obj = new Quota();
|
|
28992
|
+
obj.deserialize(params.PrefetchQuota[z]);
|
|
28993
|
+
this.PrefetchQuota.push(obj);
|
|
28994
|
+
}
|
|
28995
|
+
}
|
|
28100
28996
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
28101
28997
|
|
|
28102
28998
|
}
|
|
@@ -28907,6 +29803,7 @@ module.exports = {
|
|
|
28907
29803
|
DescribeEnvironmentsRequest: DescribeEnvironmentsRequest,
|
|
28908
29804
|
DescribeAliasDomainsRequest: DescribeAliasDomainsRequest,
|
|
28909
29805
|
QUICParameters: QUICParameters,
|
|
29806
|
+
ManagedRuleGroupMeta: ManagedRuleGroupMeta,
|
|
28910
29807
|
RateLimitConfig: RateLimitConfig,
|
|
28911
29808
|
CreateRealtimeLogDeliveryTaskRequest: CreateRealtimeLogDeliveryTaskRequest,
|
|
28912
29809
|
ModifyAccelerationDomainStatusesResponse: ModifyAccelerationDomainStatusesResponse,
|
|
@@ -28966,7 +29863,9 @@ module.exports = {
|
|
|
28966
29863
|
Rule: Rule,
|
|
28967
29864
|
DownloadL4LogsRequest: DownloadL4LogsRequest,
|
|
28968
29865
|
StatusCodeCacheParam: StatusCodeCacheParam,
|
|
29866
|
+
SecurityAction: SecurityAction,
|
|
28969
29867
|
ModifyZoneSettingRequest: ModifyZoneSettingRequest,
|
|
29868
|
+
DetectLengthLimitRule: DetectLengthLimitRule,
|
|
28970
29869
|
OriginGroupHealthStatus: OriginGroupHealthStatus,
|
|
28971
29870
|
ModifyDnsRecordsResponse: ModifyDnsRecordsResponse,
|
|
28972
29871
|
BillingDataFilter: BillingDataFilter,
|
|
@@ -29025,6 +29924,7 @@ module.exports = {
|
|
|
29025
29924
|
SetContentIdentifierParameters: SetContentIdentifierParameters,
|
|
29026
29925
|
RenewPlanRequest: RenewPlanRequest,
|
|
29027
29926
|
DescribePrefetchTasksResponse: DescribePrefetchTasksResponse,
|
|
29927
|
+
ManagedRuleDetail: ManagedRuleDetail,
|
|
29028
29928
|
DescribeZoneSettingRequest: DescribeZoneSettingRequest,
|
|
29029
29929
|
ModifyL4ProxyStatusResponse: ModifyL4ProxyStatusResponse,
|
|
29030
29930
|
FileVerification: FileVerification,
|
|
@@ -29040,12 +29940,14 @@ module.exports = {
|
|
|
29040
29940
|
CustomizedHeader: CustomizedHeader,
|
|
29041
29941
|
DescribeFunctionsRequest: DescribeFunctionsRequest,
|
|
29042
29942
|
ModifyDnsRecordsStatusRequest: ModifyDnsRecordsStatusRequest,
|
|
29043
|
-
|
|
29943
|
+
ModifyZoneRequest: ModifyZoneRequest,
|
|
29944
|
+
CustomRule: CustomRule,
|
|
29044
29945
|
BotExtendAction: BotExtendAction,
|
|
29045
29946
|
CreatePurgeTaskResponse: CreatePurgeTaskResponse,
|
|
29046
29947
|
DeleteApplicationProxyRuleResponse: DeleteApplicationProxyRuleResponse,
|
|
29047
29948
|
DeleteAccelerationDomainsResponse: DeleteAccelerationDomainsResponse,
|
|
29048
29949
|
ExceptConfig: ExceptConfig,
|
|
29950
|
+
RedirectActionParameters: RedirectActionParameters,
|
|
29049
29951
|
DeleteOriginGroupRequest: DeleteOriginGroupRequest,
|
|
29050
29952
|
AclCondition: AclCondition,
|
|
29051
29953
|
L7OfflineLog: L7OfflineLog,
|
|
@@ -29070,15 +29972,19 @@ module.exports = {
|
|
|
29070
29972
|
Tag: Tag,
|
|
29071
29973
|
BindSharedCNAMEResponse: BindSharedCNAMEResponse,
|
|
29072
29974
|
DeleteSharedCNAMERequest: DeleteSharedCNAMERequest,
|
|
29975
|
+
CustomRules: CustomRules,
|
|
29073
29976
|
ModifyRealtimeLogDeliveryTaskRequest: ModifyRealtimeLogDeliveryTaskRequest,
|
|
29074
29977
|
DescribeHostsSettingRequest: DescribeHostsSettingRequest,
|
|
29075
29978
|
DestroyPlanRequest: DestroyPlanRequest,
|
|
29979
|
+
BlockIPActionParameters: BlockIPActionParameters,
|
|
29076
29980
|
CreatePlanRequest: CreatePlanRequest,
|
|
29981
|
+
DetectLengthLimitConfig: DetectLengthLimitConfig,
|
|
29077
29982
|
DescribeFunctionRuntimeEnvironmentRequest: DescribeFunctionRuntimeEnvironmentRequest,
|
|
29078
29983
|
IPGroup: IPGroup,
|
|
29079
29984
|
DescribeDnsRecordsRequest: DescribeDnsRecordsRequest,
|
|
29080
29985
|
CreatePrefetchTaskResponse: CreatePrefetchTaskResponse,
|
|
29081
29986
|
DescribeDefaultCertificatesRequest: DescribeDefaultCertificatesRequest,
|
|
29987
|
+
MaxAgeParameters: MaxAgeParameters,
|
|
29082
29988
|
ModifyApplicationProxyRuleResponse: ModifyApplicationProxyRuleResponse,
|
|
29083
29989
|
FailReason: FailReason,
|
|
29084
29990
|
ModifyRequestHeaderParameters: ModifyRequestHeaderParameters,
|
|
@@ -29096,7 +30002,7 @@ module.exports = {
|
|
|
29096
30002
|
DeleteRealtimeLogDeliveryTaskResponse: DeleteRealtimeLogDeliveryTaskResponse,
|
|
29097
30003
|
RuleCondition: RuleCondition,
|
|
29098
30004
|
DescribeOverviewL7DataResponse: DescribeOverviewL7DataResponse,
|
|
29099
|
-
|
|
30005
|
+
DescribeSecurityPolicyRequest: DescribeSecurityPolicyRequest,
|
|
29100
30006
|
DescribeEnvironmentsResponse: DescribeEnvironmentsResponse,
|
|
29101
30007
|
CacheParameters: CacheParameters,
|
|
29102
30008
|
TimingDataItem: TimingDataItem,
|
|
@@ -29111,6 +30017,7 @@ module.exports = {
|
|
|
29111
30017
|
DownloadL4LogsResponse: DownloadL4LogsResponse,
|
|
29112
30018
|
BindSharedCNAMERequest: BindSharedCNAMERequest,
|
|
29113
30019
|
IpTableConfig: IpTableConfig,
|
|
30020
|
+
ModifyApplicationProxyStatusRequest: ModifyApplicationProxyStatusRequest,
|
|
29114
30021
|
DeleteOriginGroupResponse: DeleteOriginGroupResponse,
|
|
29115
30022
|
ModifyOriginParameters: ModifyOriginParameters,
|
|
29116
30023
|
DescribeL4ProxyRequest: DescribeL4ProxyRequest,
|
|
@@ -29156,6 +30063,7 @@ module.exports = {
|
|
|
29156
30063
|
ModifyZoneStatusRequest: ModifyZoneStatusRequest,
|
|
29157
30064
|
UpstreamURLRewriteParameters: UpstreamURLRewriteParameters,
|
|
29158
30065
|
DescribeL4ProxyResponse: DescribeL4ProxyResponse,
|
|
30066
|
+
ModifyHostsCertificateRequest: ModifyHostsCertificateRequest,
|
|
29159
30067
|
ModifyOriginGroupResponse: ModifyOriginGroupResponse,
|
|
29160
30068
|
DeleteAccelerationDomainsRequest: DeleteAccelerationDomainsRequest,
|
|
29161
30069
|
RenewPlanResponse: RenewPlanResponse,
|
|
@@ -29166,6 +30074,7 @@ module.exports = {
|
|
|
29166
30074
|
DeleteZoneResponse: DeleteZoneResponse,
|
|
29167
30075
|
CreateRuleResponse: CreateRuleResponse,
|
|
29168
30076
|
ModifyL7AccSettingResponse: ModifyL7AccSettingResponse,
|
|
30077
|
+
ReturnCustomPageActionParameters: ReturnCustomPageActionParameters,
|
|
29169
30078
|
BindZoneToPlanResponse: BindZoneToPlanResponse,
|
|
29170
30079
|
UpstreamHTTP2Parameters: UpstreamHTTP2Parameters,
|
|
29171
30080
|
DescribeL7AccSettingResponse: DescribeL7AccSettingResponse,
|
|
@@ -29192,6 +30101,7 @@ module.exports = {
|
|
|
29192
30101
|
CreateAliasDomainResponse: CreateAliasDomainResponse,
|
|
29193
30102
|
ClientIpCountry: ClientIpCountry,
|
|
29194
30103
|
DeleteApplicationProxyRuleRequest: DeleteApplicationProxyRuleRequest,
|
|
30104
|
+
ManagedRuleAction: ManagedRuleAction,
|
|
29195
30105
|
ModifyL7AccRuleResponse: ModifyL7AccRuleResponse,
|
|
29196
30106
|
FileAscriptionInfo: FileAscriptionInfo,
|
|
29197
30107
|
CreateRealtimeLogDeliveryTaskResponse: CreateRealtimeLogDeliveryTaskResponse,
|
|
@@ -29205,8 +30115,9 @@ module.exports = {
|
|
|
29205
30115
|
DescribeTimingL7AnalysisDataRequest: DescribeTimingL7AnalysisDataRequest,
|
|
29206
30116
|
NoCache: NoCache,
|
|
29207
30117
|
ModifyFunctionRequest: ModifyFunctionRequest,
|
|
29208
|
-
|
|
30118
|
+
ManagedRuleGroup: ManagedRuleGroup,
|
|
29209
30119
|
CreateZoneRequest: CreateZoneRequest,
|
|
30120
|
+
SecurityPolicy: SecurityPolicy,
|
|
29210
30121
|
AscriptionInfo: AscriptionInfo,
|
|
29211
30122
|
OriginGroupHealthStatusDetail: OriginGroupHealthStatusDetail,
|
|
29212
30123
|
FirstPartConfig: FirstPartConfig,
|
|
@@ -29294,13 +30205,14 @@ module.exports = {
|
|
|
29294
30205
|
DescribeIdentificationsResponse: DescribeIdentificationsResponse,
|
|
29295
30206
|
DeleteL4ProxyResponse: DeleteL4ProxyResponse,
|
|
29296
30207
|
ModifyApplicationProxyRuleStatusResponse: ModifyApplicationProxyRuleStatusResponse,
|
|
29297
|
-
|
|
30208
|
+
ManagedRuleAutoUpdate: ManagedRuleAutoUpdate,
|
|
29298
30209
|
ClientIPCountryParameters: ClientIPCountryParameters,
|
|
29299
30210
|
IncreasePlanQuotaResponse: IncreasePlanQuotaResponse,
|
|
29300
30211
|
DescribeIPRegionResponse: DescribeIPRegionResponse,
|
|
29301
30212
|
DescribeAvailablePlansRequest: DescribeAvailablePlansRequest,
|
|
29302
30213
|
DnsVerification: DnsVerification,
|
|
29303
30214
|
AlgDetectSession: AlgDetectSession,
|
|
30215
|
+
ModifyZoneStatusResponse: ModifyZoneStatusResponse,
|
|
29304
30216
|
DeleteContentIdentifierRequest: DeleteContentIdentifierRequest,
|
|
29305
30217
|
CreateContentIdentifierRequest: CreateContentIdentifierRequest,
|
|
29306
30218
|
OriginProtectionInfo: OriginProtectionInfo,
|
|
@@ -29317,7 +30229,7 @@ module.exports = {
|
|
|
29317
30229
|
Quic: Quic,
|
|
29318
30230
|
CreateCLSIndexRequest: CreateCLSIndexRequest,
|
|
29319
30231
|
DescribeRulesRequest: DescribeRulesRequest,
|
|
29320
|
-
|
|
30232
|
+
DetectLengthLimitCondition: DetectLengthLimitCondition,
|
|
29321
30233
|
ModifyZoneSettingResponse: ModifyZoneSettingResponse,
|
|
29322
30234
|
DownloadL7LogsResponse: DownloadL7LogsResponse,
|
|
29323
30235
|
AccelerationDomain: AccelerationDomain,
|
|
@@ -29372,10 +30284,12 @@ module.exports = {
|
|
|
29372
30284
|
DescribeOriginGroupHealthStatusResponse: DescribeOriginGroupHealthStatusResponse,
|
|
29373
30285
|
DescribeContentIdentifiersResponse: DescribeContentIdentifiersResponse,
|
|
29374
30286
|
CacheConfigCustomTime: CacheConfigCustomTime,
|
|
30287
|
+
ManagedRules: ManagedRules,
|
|
29375
30288
|
SecurityTemplateBinding: SecurityTemplateBinding,
|
|
29376
30289
|
CacheTag: CacheTag,
|
|
29377
30290
|
DescribeDefaultCertificatesResponse: DescribeDefaultCertificatesResponse,
|
|
29378
30291
|
CreateOriginGroupResponse: CreateOriginGroupResponse,
|
|
30292
|
+
DescribeSecurityPolicyResponse: DescribeSecurityPolicyResponse,
|
|
29379
30293
|
CreateContentIdentifierResponse: CreateContentIdentifierResponse,
|
|
29380
30294
|
HostHeaderParameters: HostHeaderParameters,
|
|
29381
30295
|
DescribeConfigGroupVersionsRequest: DescribeConfigGroupVersionsRequest,
|
|
@@ -29384,7 +30298,7 @@ module.exports = {
|
|
|
29384
30298
|
Function: Function,
|
|
29385
30299
|
Quota: Quota,
|
|
29386
30300
|
CheckCnameStatusRequest: CheckCnameStatusRequest,
|
|
29387
|
-
|
|
30301
|
+
DescribeContentQuotaResponse: DescribeContentQuotaResponse,
|
|
29388
30302
|
DescribeSecurityIPGroupResponse: DescribeSecurityIPGroupResponse,
|
|
29389
30303
|
UpgradePlanRequest: UpgradePlanRequest,
|
|
29390
30304
|
CreatePurgeTaskRequest: CreatePurgeTaskRequest,
|