tencentcloud-sdk-teo 3.0.1020 → 3.0.1022
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +8 -4
- data/lib/v20220901/models.rb +492 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e969341c19c2df28591be535deba70d95aaa7d
|
4
|
+
data.tar.gz: bdb30fa2cd09c46e5b55a5e8d7ee2debc91bc9a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b258be85a14af18493c940b4b3cfcabb6db8370fc541072bdd0a21a3f1d5c559cef6d15b66a50779545f2a9b743ca812e8069032908d4fadd1baf7ff829db9
|
7
|
+
data.tar.gz: 05333f8a19924216d617068044a5583663901b33dd4a0c9a308caffbaa8d748ded95e001a3f22b9c20e435fee9d5eb1f502d420ea371e81c242d0d934704c579
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1022
|
data/lib/v20220901/client.rb
CHANGED
@@ -636,7 +636,8 @@ module TencentCloud
|
|
636
636
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
637
637
|
end
|
638
638
|
|
639
|
-
#
|
639
|
+
# 本接口为旧版本创建规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本创建七层加速规则接口详情请参考 [CreateL7AccRules](https://cloud.tencent.com/document/product/1552/115822)。
|
640
|
+
# <p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
640
641
|
|
641
642
|
# @param request: Request instance for CreateRule.
|
642
643
|
# @type request: :class:`Tencentcloud::teo::V20220901::CreateRuleRequest`
|
@@ -1095,7 +1096,8 @@ module TencentCloud
|
|
1095
1096
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1096
1097
|
end
|
1097
1098
|
|
1098
|
-
#
|
1099
|
+
# 本接口为旧版本删除规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本删除七层加速规则接口详情请参考 [DeleteL7AccRules](https://cloud.tencent.com/document/product/1552/115821)。
|
1100
|
+
# <p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
1099
1101
|
|
1100
1102
|
# @param request: Request instance for DeleteRules.
|
1101
1103
|
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteRulesRequest`
|
@@ -2055,7 +2057,8 @@ module TencentCloud
|
|
2055
2057
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2056
2058
|
end
|
2057
2059
|
|
2058
|
-
#
|
2060
|
+
# 本接口为旧版本查询规则引擎规则接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本查询七层加速规则接口详情请参考 [DescribeL7AccRules](https://cloud.tencent.com/document/product/1552/115820)。
|
2061
|
+
# <p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
2059
2062
|
|
2060
2063
|
# @param request: Request instance for DescribeRules.
|
2061
2064
|
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeRulesRequest`
|
@@ -3200,7 +3203,8 @@ module TencentCloud
|
|
3200
3203
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3201
3204
|
end
|
3202
3205
|
|
3203
|
-
#
|
3206
|
+
# 本接口为旧版本修改规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本修改七层加速规则接口详情请参考 [ModifyL7AccRule](https://cloud.tencent.com/document/product/1552/115818)。
|
3207
|
+
# <p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
3204
3208
|
|
3205
3209
|
# @param request: Request instance for ModifyRule.
|
3206
3210
|
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyRuleRequest`
|
data/lib/v20220901/models.rb
CHANGED
@@ -1295,6 +1295,22 @@ module TencentCloud
|
|
1295
1295
|
end
|
1296
1296
|
end
|
1297
1297
|
|
1298
|
+
# Web安全IP封禁的附加参数
|
1299
|
+
class BlockIPActionParameters < TencentCloud::Common::AbstractModel
|
1300
|
+
# @param Duration: 封禁 IP 的惩罚时长。支持的单位有:<li>s:秒,取值范围1~120;</li><li>m:分,取值范围1~120;</li><li>h:小时,取值范围1~48。</li>
|
1301
|
+
# @type Duration: String
|
1302
|
+
|
1303
|
+
attr_accessor :Duration
|
1304
|
+
|
1305
|
+
def initialize(duration=nil)
|
1306
|
+
@Duration = duration
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
def deserialize(params)
|
1310
|
+
@Duration = params['Duration']
|
1311
|
+
end
|
1312
|
+
end
|
1313
|
+
|
1298
1314
|
# 安全Bot配置
|
1299
1315
|
class BotConfig < TencentCloud::Common::AbstractModel
|
1300
1316
|
# @param Switch: bot开关,取值有:
|
@@ -4286,6 +4302,72 @@ module TencentCloud
|
|
4286
4302
|
end
|
4287
4303
|
end
|
4288
4304
|
|
4305
|
+
# Web安全的自定义规则
|
4306
|
+
class CustomRule < TencentCloud::Common::AbstractModel
|
4307
|
+
# @param Name: 自定义规则的名称。
|
4308
|
+
# @type Name: String
|
4309
|
+
# @param Condition: 自定义规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
4310
|
+
# @type Condition: String
|
4311
|
+
# @param Action: 自定义规则的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Allow:放行。</li>
|
4312
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
4313
|
+
# @param Enabled: 自定义规则是否开启。取值有:<li>on:开启</li><li>off:关闭</li>
|
4314
|
+
# @type Enabled: String
|
4315
|
+
# @param Id: 自定义规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> - 增加新规则:ID 为空或不指定 ID 参数;<br> - 修改已有规则:指定需要更新/修改的规则 ID;<br> - 删除已有规则:CustomRules 参数中,Rules 列表中未包含的已有规则将被删除。
|
4316
|
+
# @type Id: String
|
4317
|
+
# @param RuleType: 自定义规则的类型。取值有:<li>BasicAccessRule:基础访问管控;</li><li>PreciseMatchRule:精准匹配规则,默认;</li><li>ManagedAccessRule:专家定制规则,仅出参。</li><br/>默认为PreciseMatchRule。
|
4318
|
+
# @type RuleType: String
|
4319
|
+
# @param Priority: 自定义规则的优先级,范围是 0 ~ 100,默认为 0,仅支持精准匹配规则(PreciseMatchRule)。
|
4320
|
+
# @type Priority: Integer
|
4321
|
+
|
4322
|
+
attr_accessor :Name, :Condition, :Action, :Enabled, :Id, :RuleType, :Priority
|
4323
|
+
|
4324
|
+
def initialize(name=nil, condition=nil, action=nil, enabled=nil, id=nil, ruletype=nil, priority=nil)
|
4325
|
+
@Name = name
|
4326
|
+
@Condition = condition
|
4327
|
+
@Action = action
|
4328
|
+
@Enabled = enabled
|
4329
|
+
@Id = id
|
4330
|
+
@RuleType = ruletype
|
4331
|
+
@Priority = priority
|
4332
|
+
end
|
4333
|
+
|
4334
|
+
def deserialize(params)
|
4335
|
+
@Name = params['Name']
|
4336
|
+
@Condition = params['Condition']
|
4337
|
+
unless params['Action'].nil?
|
4338
|
+
@Action = SecurityAction.new
|
4339
|
+
@Action.deserialize(params['Action'])
|
4340
|
+
end
|
4341
|
+
@Enabled = params['Enabled']
|
4342
|
+
@Id = params['Id']
|
4343
|
+
@RuleType = params['RuleType']
|
4344
|
+
@Priority = params['Priority']
|
4345
|
+
end
|
4346
|
+
end
|
4347
|
+
|
4348
|
+
# Web安全的自定义规则结构
|
4349
|
+
class CustomRules < TencentCloud::Common::AbstractModel
|
4350
|
+
# @param Rules: 自定义规则的定义列表。<br>使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> - 若未指定 Rules 参数,或 Rules 参数长度为零:清空所有自定义规则配置。<br> - 若 SecurityPolicy 参数中,未指定 CustomRules 参数值:保持已有自定义规则配置,不做修改。
|
4351
|
+
# @type Rules: Array
|
4352
|
+
|
4353
|
+
attr_accessor :Rules
|
4354
|
+
|
4355
|
+
def initialize(rules=nil)
|
4356
|
+
@Rules = rules
|
4357
|
+
end
|
4358
|
+
|
4359
|
+
def deserialize(params)
|
4360
|
+
unless params['Rules'].nil?
|
4361
|
+
@Rules = []
|
4362
|
+
params['Rules'].each do |i|
|
4363
|
+
customrule_tmp = CustomRule.new
|
4364
|
+
customrule_tmp.deserialize(i)
|
4365
|
+
@Rules << customrule_tmp
|
4366
|
+
end
|
4367
|
+
end
|
4368
|
+
end
|
4369
|
+
end
|
4370
|
+
|
4289
4371
|
# 节点缓存 TTL 自定义缓存时间参数配置。
|
4290
4372
|
class CustomTime < TencentCloud::Common::AbstractModel
|
4291
4373
|
# @param Switch: 自定义缓存时间开关,取值有:
|
@@ -8900,6 +8982,95 @@ module TencentCloud
|
|
8900
8982
|
end
|
8901
8983
|
end
|
8902
8984
|
|
8985
|
+
# 检测长度限制配置条件。
|
8986
|
+
class DetectLengthLimitCondition < TencentCloud::Common::AbstractModel
|
8987
|
+
# @param Name: 匹配条件的参数名称,取值有:
|
8988
|
+
# <li>body_depth:请求正文包部分的检测深度。</li>
|
8989
|
+
# @type Name: String
|
8990
|
+
# @param Values: 匹配条件的参数值,取值与 Name 成对使用。
|
8991
|
+
# 当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
8992
|
+
# <li>8KB;</li>
|
8993
|
+
# <li>64KB;</li>
|
8994
|
+
# <li>128KB。</li>
|
8995
|
+
# @type Values: Array
|
8996
|
+
|
8997
|
+
attr_accessor :Name, :Values
|
8998
|
+
|
8999
|
+
def initialize(name=nil, values=nil)
|
9000
|
+
@Name = name
|
9001
|
+
@Values = values
|
9002
|
+
end
|
9003
|
+
|
9004
|
+
def deserialize(params)
|
9005
|
+
@Name = params['Name']
|
9006
|
+
@Values = params['Values']
|
9007
|
+
end
|
9008
|
+
end
|
9009
|
+
|
9010
|
+
# 检测长度限制
|
9011
|
+
class DetectLengthLimitConfig < TencentCloud::Common::AbstractModel
|
9012
|
+
# @param DetectLengthLimitRules: 检测长度限制的规则列表。
|
9013
|
+
# @type DetectLengthLimitRules: Array
|
9014
|
+
|
9015
|
+
attr_accessor :DetectLengthLimitRules
|
9016
|
+
|
9017
|
+
def initialize(detectlengthlimitrules=nil)
|
9018
|
+
@DetectLengthLimitRules = detectlengthlimitrules
|
9019
|
+
end
|
9020
|
+
|
9021
|
+
def deserialize(params)
|
9022
|
+
unless params['DetectLengthLimitRules'].nil?
|
9023
|
+
@DetectLengthLimitRules = []
|
9024
|
+
params['DetectLengthLimitRules'].each do |i|
|
9025
|
+
detectlengthlimitrule_tmp = DetectLengthLimitRule.new
|
9026
|
+
detectlengthlimitrule_tmp.deserialize(i)
|
9027
|
+
@DetectLengthLimitRules << detectlengthlimitrule_tmp
|
9028
|
+
end
|
9029
|
+
end
|
9030
|
+
end
|
9031
|
+
end
|
9032
|
+
|
9033
|
+
# 检测长度限制规则详情
|
9034
|
+
class DetectLengthLimitRule < TencentCloud::Common::AbstractModel
|
9035
|
+
# @param RuleId: 规则Id。仅出参使用。
|
9036
|
+
# @type RuleId: Integer
|
9037
|
+
# @param RuleName: 规则名称。仅出参使用。
|
9038
|
+
# @type RuleName: String
|
9039
|
+
# @param Description: 规则描述,仅出参使用。
|
9040
|
+
# @type Description: String
|
9041
|
+
# @param Conditions: 规则配置条件。仅出参使用。
|
9042
|
+
# @type Conditions: Array
|
9043
|
+
# @param Action: 处置方式,取值有:
|
9044
|
+
# <li>skip:当请求正文数据超过 Conditions 出参中 body_depth 设置的检测深度时,跳过所有请求正文内容的检测;</li>
|
9045
|
+
# <li>scan:仅检测 Conditions 出参中 body_depth 设置的检测深度,对超出部分的请求正文内容直接截断处理,超出部分的请求正文不会经过安全检测。</li>仅出参使用。
|
9046
|
+
# @type Action: String
|
9047
|
+
|
9048
|
+
attr_accessor :RuleId, :RuleName, :Description, :Conditions, :Action
|
9049
|
+
|
9050
|
+
def initialize(ruleid=nil, rulename=nil, description=nil, conditions=nil, action=nil)
|
9051
|
+
@RuleId = ruleid
|
9052
|
+
@RuleName = rulename
|
9053
|
+
@Description = description
|
9054
|
+
@Conditions = conditions
|
9055
|
+
@Action = action
|
9056
|
+
end
|
9057
|
+
|
9058
|
+
def deserialize(params)
|
9059
|
+
@RuleId = params['RuleId']
|
9060
|
+
@RuleName = params['RuleName']
|
9061
|
+
@Description = params['Description']
|
9062
|
+
unless params['Conditions'].nil?
|
9063
|
+
@Conditions = []
|
9064
|
+
params['Conditions'].each do |i|
|
9065
|
+
detectlengthlimitcondition_tmp = DetectLengthLimitCondition.new
|
9066
|
+
detectlengthlimitcondition_tmp.deserialize(i)
|
9067
|
+
@Conditions << detectlengthlimitcondition_tmp
|
9068
|
+
end
|
9069
|
+
end
|
9070
|
+
@Action = params['Action']
|
9071
|
+
end
|
9072
|
+
end
|
9073
|
+
|
8903
9074
|
# 最新IP白名单列表相比于当前IP白名单列表的区别
|
8904
9075
|
class DiffIPWhitelist < TencentCloud::Common::AbstractModel
|
8905
9076
|
# @param LatestIPWhitelist: 最新IP白名单列表。
|
@@ -11305,6 +11476,199 @@ module TencentCloud
|
|
11305
11476
|
end
|
11306
11477
|
end
|
11307
11478
|
|
11479
|
+
# 托管规则的项配置
|
11480
|
+
class ManagedRuleAction < TencentCloud::Common::AbstractModel
|
11481
|
+
# @param RuleId: 托管规则组下的具体项,用于改写此单条规则项配置的内容,具体参考产品文档。
|
11482
|
+
# @type RuleId: String
|
11483
|
+
# @param Action: RuleId 中指定托管规则项的处置动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
11484
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
11485
|
+
|
11486
|
+
attr_accessor :RuleId, :Action
|
11487
|
+
|
11488
|
+
def initialize(ruleid=nil, action=nil)
|
11489
|
+
@RuleId = ruleid
|
11490
|
+
@Action = action
|
11491
|
+
end
|
11492
|
+
|
11493
|
+
def deserialize(params)
|
11494
|
+
@RuleId = params['RuleId']
|
11495
|
+
unless params['Action'].nil?
|
11496
|
+
@Action = SecurityAction.new
|
11497
|
+
@Action.deserialize(params['Action'])
|
11498
|
+
end
|
11499
|
+
end
|
11500
|
+
end
|
11501
|
+
|
11502
|
+
# 托管规则自动更新选项
|
11503
|
+
class ManagedRuleAutoUpdate < TencentCloud::Common::AbstractModel
|
11504
|
+
# @param AutoUpdateToLatestVersion: 是否开启自动更新至最新版本。取值有:<li>on:开启</li><li>off:关闭</li>
|
11505
|
+
# @type AutoUpdateToLatestVersion: String
|
11506
|
+
# @param RulesetVersion: 当前使用的版本,格式符合ISO 8601标准,如2023-12-21T12:00:32Z,默认为空,仅出参。
|
11507
|
+
# @type RulesetVersion: String
|
11508
|
+
|
11509
|
+
attr_accessor :AutoUpdateToLatestVersion, :RulesetVersion
|
11510
|
+
|
11511
|
+
def initialize(autoupdatetolatestversion=nil, rulesetversion=nil)
|
11512
|
+
@AutoUpdateToLatestVersion = autoupdatetolatestversion
|
11513
|
+
@RulesetVersion = rulesetversion
|
11514
|
+
end
|
11515
|
+
|
11516
|
+
def deserialize(params)
|
11517
|
+
@AutoUpdateToLatestVersion = params['AutoUpdateToLatestVersion']
|
11518
|
+
@RulesetVersion = params['RulesetVersion']
|
11519
|
+
end
|
11520
|
+
end
|
11521
|
+
|
11522
|
+
# 托管规则详情
|
11523
|
+
class ManagedRuleDetail < TencentCloud::Common::AbstractModel
|
11524
|
+
# @param RuleId: 托管规则Id。
|
11525
|
+
# @type RuleId: String
|
11526
|
+
# @param RiskLevel: 托管规则的防护级别。取值有:<li>low:低风险,此规则风险较低,适用于非常严格控制环境下的访问场景,该等级规则可能造成较多的误报;</li><li>medium:中风险,表示此条规则风险正常,适用较为严格的防护场景;</li><li>high:高风险,表示此条规则风险较高,大多数场景不会产生误报;</li><li>extreme:超高风险,表示此条规则风险极高,基本不会产生误报;</li>
|
11527
|
+
# @type RiskLevel: String
|
11528
|
+
# @param Description: 规则描述。
|
11529
|
+
# @type Description: String
|
11530
|
+
# @param Tags: 规则标签。部分类型的规则不存在标签。
|
11531
|
+
# @type Tags: Array
|
11532
|
+
# @param RuleVersion: 规则所属版本。
|
11533
|
+
# @type RuleVersion: String
|
11534
|
+
|
11535
|
+
attr_accessor :RuleId, :RiskLevel, :Description, :Tags, :RuleVersion
|
11536
|
+
|
11537
|
+
def initialize(ruleid=nil, risklevel=nil, description=nil, tags=nil, ruleversion=nil)
|
11538
|
+
@RuleId = ruleid
|
11539
|
+
@RiskLevel = risklevel
|
11540
|
+
@Description = description
|
11541
|
+
@Tags = tags
|
11542
|
+
@RuleVersion = ruleversion
|
11543
|
+
end
|
11544
|
+
|
11545
|
+
def deserialize(params)
|
11546
|
+
@RuleId = params['RuleId']
|
11547
|
+
@RiskLevel = params['RiskLevel']
|
11548
|
+
@Description = params['Description']
|
11549
|
+
@Tags = params['Tags']
|
11550
|
+
@RuleVersion = params['RuleVersion']
|
11551
|
+
end
|
11552
|
+
end
|
11553
|
+
|
11554
|
+
# 托管规则组配置。
|
11555
|
+
class ManagedRuleGroup < TencentCloud::Common::AbstractModel
|
11556
|
+
# @param GroupId: 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。
|
11557
|
+
# @type GroupId: String
|
11558
|
+
# @param SensitivityLevel: 托管规则组的防护级别。取值有:<li>loose:宽松,只包含超高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>normal:正常,包含超高风险和高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>strict:严格,包含超高风险、高风险和中风险规则,此时需配置Action,且RuleActions配置无效;</li><li>extreme:超严格,包含超高风险、高风险、中风险和低风险规则,此时需配置Action,且RuleActions配置无效;</li><li>custom:自定义,精细化策略,按单条规则配置处置方式,此时Action字段无效,使用RuleActions配置单条规则的精细化策略。</li>
|
11559
|
+
# @type SensitivityLevel: String
|
11560
|
+
# @param Action: 托管规则组的处置动作。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
11561
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
11562
|
+
# @param RuleActions: 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。
|
11563
|
+
# @type RuleActions: Array
|
11564
|
+
# @param MetaData: 托管规则组信息,仅出参。
|
11565
|
+
# @type MetaData: :class:`Tencentcloud::Teo.v20220901.models.ManagedRuleGroupMeta`
|
11566
|
+
|
11567
|
+
attr_accessor :GroupId, :SensitivityLevel, :Action, :RuleActions, :MetaData
|
11568
|
+
|
11569
|
+
def initialize(groupid=nil, sensitivitylevel=nil, action=nil, ruleactions=nil, metadata=nil)
|
11570
|
+
@GroupId = groupid
|
11571
|
+
@SensitivityLevel = sensitivitylevel
|
11572
|
+
@Action = action
|
11573
|
+
@RuleActions = ruleactions
|
11574
|
+
@MetaData = metadata
|
11575
|
+
end
|
11576
|
+
|
11577
|
+
def deserialize(params)
|
11578
|
+
@GroupId = params['GroupId']
|
11579
|
+
@SensitivityLevel = params['SensitivityLevel']
|
11580
|
+
unless params['Action'].nil?
|
11581
|
+
@Action = SecurityAction.new
|
11582
|
+
@Action.deserialize(params['Action'])
|
11583
|
+
end
|
11584
|
+
unless params['RuleActions'].nil?
|
11585
|
+
@RuleActions = []
|
11586
|
+
params['RuleActions'].each do |i|
|
11587
|
+
managedruleaction_tmp = ManagedRuleAction.new
|
11588
|
+
managedruleaction_tmp.deserialize(i)
|
11589
|
+
@RuleActions << managedruleaction_tmp
|
11590
|
+
end
|
11591
|
+
end
|
11592
|
+
unless params['MetaData'].nil?
|
11593
|
+
@MetaData = ManagedRuleGroupMeta.new
|
11594
|
+
@MetaData.deserialize(params['MetaData'])
|
11595
|
+
end
|
11596
|
+
end
|
11597
|
+
end
|
11598
|
+
|
11599
|
+
# 托管规则组信息
|
11600
|
+
class ManagedRuleGroupMeta < TencentCloud::Common::AbstractModel
|
11601
|
+
# @param GroupDetail: 托管规则组描述,仅出参。
|
11602
|
+
# @type GroupDetail: String
|
11603
|
+
# @param GroupName: 托管规则组名称,仅出参。
|
11604
|
+
# @type GroupName: String
|
11605
|
+
# @param RuleDetails: 当前托管规则组下的所有子规则信息,仅出参。
|
11606
|
+
# @type RuleDetails: Array
|
11607
|
+
|
11608
|
+
attr_accessor :GroupDetail, :GroupName, :RuleDetails
|
11609
|
+
|
11610
|
+
def initialize(groupdetail=nil, groupname=nil, ruledetails=nil)
|
11611
|
+
@GroupDetail = groupdetail
|
11612
|
+
@GroupName = groupname
|
11613
|
+
@RuleDetails = ruledetails
|
11614
|
+
end
|
11615
|
+
|
11616
|
+
def deserialize(params)
|
11617
|
+
@GroupDetail = params['GroupDetail']
|
11618
|
+
@GroupName = params['GroupName']
|
11619
|
+
unless params['RuleDetails'].nil?
|
11620
|
+
@RuleDetails = []
|
11621
|
+
params['RuleDetails'].each do |i|
|
11622
|
+
managedruledetail_tmp = ManagedRuleDetail.new
|
11623
|
+
managedruledetail_tmp.deserialize(i)
|
11624
|
+
@RuleDetails << managedruledetail_tmp
|
11625
|
+
end
|
11626
|
+
end
|
11627
|
+
end
|
11628
|
+
end
|
11629
|
+
|
11630
|
+
# Web安全的托管规则
|
11631
|
+
class ManagedRules < TencentCloud::Common::AbstractModel
|
11632
|
+
# @param Enabled: 托管规则是否开启。取值有:<li>on:开启,所有托管规则按配置生效;</li><li>off:关闭,所有托管规则不生效。</li>
|
11633
|
+
# @type Enabled: String
|
11634
|
+
# @param DetectionOnly: 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,表示所有托管规则以观察模式生效;</li><li>off:关闭,表示所有托管规则以实际配置生效。</li>
|
11635
|
+
# @type DetectionOnly: String
|
11636
|
+
# @param SemanticAnalysis: 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,对请求进行语义分析后进行处理;</li><li>off:关闭,对请求不进行语义分析,直接进行处理。</li> <br/>默认为 off。
|
11637
|
+
# @type SemanticAnalysis: String
|
11638
|
+
# @param AutoUpdate: 托管规则自动更新选项。
|
11639
|
+
# @type AutoUpdate: :class:`Tencentcloud::Teo.v20220901.models.ManagedRuleAutoUpdate`
|
11640
|
+
# @param ManagedRuleGroups: 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
11641
|
+
# @type ManagedRuleGroups: Array
|
11642
|
+
|
11643
|
+
attr_accessor :Enabled, :DetectionOnly, :SemanticAnalysis, :AutoUpdate, :ManagedRuleGroups
|
11644
|
+
|
11645
|
+
def initialize(enabled=nil, detectiononly=nil, semanticanalysis=nil, autoupdate=nil, managedrulegroups=nil)
|
11646
|
+
@Enabled = enabled
|
11647
|
+
@DetectionOnly = detectiononly
|
11648
|
+
@SemanticAnalysis = semanticanalysis
|
11649
|
+
@AutoUpdate = autoupdate
|
11650
|
+
@ManagedRuleGroups = managedrulegroups
|
11651
|
+
end
|
11652
|
+
|
11653
|
+
def deserialize(params)
|
11654
|
+
@Enabled = params['Enabled']
|
11655
|
+
@DetectionOnly = params['DetectionOnly']
|
11656
|
+
@SemanticAnalysis = params['SemanticAnalysis']
|
11657
|
+
unless params['AutoUpdate'].nil?
|
11658
|
+
@AutoUpdate = ManagedRuleAutoUpdate.new
|
11659
|
+
@AutoUpdate.deserialize(params['AutoUpdate'])
|
11660
|
+
end
|
11661
|
+
unless params['ManagedRuleGroups'].nil?
|
11662
|
+
@ManagedRuleGroups = []
|
11663
|
+
params['ManagedRuleGroups'].each do |i|
|
11664
|
+
managedrulegroup_tmp = ManagedRuleGroup.new
|
11665
|
+
managedrulegroup_tmp.deserialize(i)
|
11666
|
+
@ManagedRuleGroups << managedrulegroup_tmp
|
11667
|
+
end
|
11668
|
+
end
|
11669
|
+
end
|
11670
|
+
end
|
11671
|
+
|
11308
11672
|
# 浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
|
11309
11673
|
class MaxAge < TencentCloud::Common::AbstractModel
|
11310
11674
|
# @param FollowOrigin: 是否遵循源站,取值有:
|
@@ -12939,27 +13303,27 @@ module TencentCloud
|
|
12939
13303
|
|
12940
13304
|
# ModifySecurityPolicy请求参数结构体
|
12941
13305
|
class ModifySecurityPolicyRequest < TencentCloud::Common::AbstractModel
|
12942
|
-
# @param ZoneId: 站点
|
13306
|
+
# @param ZoneId: 站点 ID。
|
12943
13307
|
# @type ZoneId: String
|
12944
|
-
# @param SecurityConfig:
|
13308
|
+
# @param SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的 CustomRule 被设置时,SecurityConfig 参数中的 AclConfg、 IpTableConfg 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略。</li><li>对于自定义规则以及托管规则策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
12945
13309
|
# @type SecurityConfig: :class:`Tencentcloud::Teo.v20220901.models.SecurityConfig`
|
12946
|
-
# @param
|
12947
|
-
|
12948
|
-
#
|
13310
|
+
# @param SecurityPolicy: 安全策略配置。对 Web 防护自定义策略和托管规则配置建议使用,支持表达式语法对安全策略进行配置。
|
13311
|
+
# @type SecurityPolicy: :class:`Tencentcloud::Teo.v20220901.models.SecurityPolicy`
|
13312
|
+
# @param Entity: 安全策略类型,可使用以下参数值: <li>ZoneDefaultPolicy:用于指定站点级策略;</li><li>Template:用于指定策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
12949
13313
|
# @type Entity: String
|
12950
|
-
# @param
|
12951
|
-
#
|
12952
|
-
#
|
12953
|
-
|
12954
|
-
# 注意:当使用本参数时,Entity 参数不生效。请勿同时使用本参数和 Entity 参数。
|
13314
|
+
# @param Host: 指定域名。当 Entity 参数值为 Host 时,使用本参数指定的域名级策略,例如:使用 www.example.com ,配置该域名的域名级策略。
|
13315
|
+
# @type Host: String
|
13316
|
+
# @param TemplateId: 指定策略模板 ID。当 Entity 参数值为 Template 时,使用本参数指定策略模板的 ID。
|
12955
13317
|
# @type TemplateId: String
|
12956
13318
|
|
12957
|
-
attr_accessor :ZoneId, :SecurityConfig, :Entity, :TemplateId
|
13319
|
+
attr_accessor :ZoneId, :SecurityConfig, :SecurityPolicy, :Entity, :Host, :TemplateId
|
12958
13320
|
|
12959
|
-
def initialize(zoneid=nil, securityconfig=nil, entity=nil, templateid=nil)
|
13321
|
+
def initialize(zoneid=nil, securityconfig=nil, securitypolicy=nil, entity=nil, host=nil, templateid=nil)
|
12960
13322
|
@ZoneId = zoneid
|
12961
13323
|
@SecurityConfig = securityconfig
|
13324
|
+
@SecurityPolicy = securitypolicy
|
12962
13325
|
@Entity = entity
|
13326
|
+
@Host = host
|
12963
13327
|
@TemplateId = templateid
|
12964
13328
|
end
|
12965
13329
|
|
@@ -12969,7 +13333,12 @@ module TencentCloud
|
|
12969
13333
|
@SecurityConfig = SecurityConfig.new
|
12970
13334
|
@SecurityConfig.deserialize(params['SecurityConfig'])
|
12971
13335
|
end
|
13336
|
+
unless params['SecurityPolicy'].nil?
|
13337
|
+
@SecurityPolicy = SecurityPolicy.new
|
13338
|
+
@SecurityPolicy.deserialize(params['SecurityPolicy'])
|
13339
|
+
end
|
12972
13340
|
@Entity = params['Entity']
|
13341
|
+
@Host = params['Host']
|
12973
13342
|
@TemplateId = params['TemplateId']
|
12974
13343
|
end
|
12975
13344
|
end
|
@@ -14741,6 +15110,22 @@ module TencentCloud
|
|
14741
15110
|
end
|
14742
15111
|
end
|
14743
15112
|
|
15113
|
+
# Web安全重定向的附加参数
|
15114
|
+
class RedirectActionParameters < TencentCloud::Common::AbstractModel
|
15115
|
+
# @param URL: 重定向的URL。
|
15116
|
+
# @type URL: String
|
15117
|
+
|
15118
|
+
attr_accessor :URL
|
15119
|
+
|
15120
|
+
def initialize(url=nil)
|
15121
|
+
@URL = url
|
15122
|
+
end
|
15123
|
+
|
15124
|
+
def deserialize(params)
|
15125
|
+
@URL = params['URL']
|
15126
|
+
end
|
15127
|
+
end
|
15128
|
+
|
14744
15129
|
# 预付费套餐自动续费配置项。
|
14745
15130
|
class RenewFlag < TencentCloud::Common::AbstractModel
|
14746
15131
|
# @param Switch: 预付费套餐的自动续费标志,取值有:
|
@@ -14921,6 +15306,26 @@ module TencentCloud
|
|
14921
15306
|
end
|
14922
15307
|
end
|
14923
15308
|
|
15309
|
+
# Web安全自定义页面的附加参数
|
15310
|
+
class ReturnCustomPageActionParameters < TencentCloud::Common::AbstractModel
|
15311
|
+
# @param ResponseCode: 响应状态码。
|
15312
|
+
# @type ResponseCode: String
|
15313
|
+
# @param ErrorPageId: 响应的自定义页面ID。
|
15314
|
+
# @type ErrorPageId: String
|
15315
|
+
|
15316
|
+
attr_accessor :ResponseCode, :ErrorPageId
|
15317
|
+
|
15318
|
+
def initialize(responsecode=nil, errorpageid=nil)
|
15319
|
+
@ResponseCode = responsecode
|
15320
|
+
@ErrorPageId = errorpageid
|
15321
|
+
end
|
15322
|
+
|
15323
|
+
def deserialize(params)
|
15324
|
+
@ResponseCode = params['ResponseCode']
|
15325
|
+
@ErrorPageId = params['ErrorPageId']
|
15326
|
+
end
|
15327
|
+
end
|
15328
|
+
|
14924
15329
|
# 规则引擎HTTP请求头/响应头类型的动作
|
14925
15330
|
class RewriteAction < TencentCloud::Common::AbstractModel
|
14926
15331
|
# @param Action: 功能名称,功能名称填写规范可调用接口 [查询规则引擎的设置参数](https://cloud.tencent.com/document/product/1552/80618) 查看。
|
@@ -15935,7 +16340,45 @@ module TencentCloud
|
|
15935
16340
|
end
|
15936
16341
|
end
|
15937
16342
|
|
15938
|
-
#
|
16343
|
+
# 安全的执行动作
|
16344
|
+
class SecurityAction < TencentCloud::Common::AbstractModel
|
16345
|
+
# @param Name: 安全执行的具体动作。取值有:
|
16346
|
+
# <li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Disabled:未启用;</li><li>Allow:放行。</li>
|
16347
|
+
# @type Name: String
|
16348
|
+
# @param BlockIPActionParameters: 当 Name 为 BlockIP 时的附加参数。
|
16349
|
+
# @type BlockIPActionParameters: :class:`Tencentcloud::Teo.v20220901.models.BlockIPActionParameters`
|
16350
|
+
# @param ReturnCustomPageActionParameters: 当 Name 为 ReturnCustomPage 时的附加参数。
|
16351
|
+
# @type ReturnCustomPageActionParameters: :class:`Tencentcloud::Teo.v20220901.models.ReturnCustomPageActionParameters`
|
16352
|
+
# @param RedirectActionParameters: 当 Name 为 Redirect 时的附加参数。
|
16353
|
+
# @type RedirectActionParameters: :class:`Tencentcloud::Teo.v20220901.models.RedirectActionParameters`
|
16354
|
+
|
16355
|
+
attr_accessor :Name, :BlockIPActionParameters, :ReturnCustomPageActionParameters, :RedirectActionParameters
|
16356
|
+
|
16357
|
+
def initialize(name=nil, blockipactionparameters=nil, returncustompageactionparameters=nil, redirectactionparameters=nil)
|
16358
|
+
@Name = name
|
16359
|
+
@BlockIPActionParameters = blockipactionparameters
|
16360
|
+
@ReturnCustomPageActionParameters = returncustompageactionparameters
|
16361
|
+
@RedirectActionParameters = redirectactionparameters
|
16362
|
+
end
|
16363
|
+
|
16364
|
+
def deserialize(params)
|
16365
|
+
@Name = params['Name']
|
16366
|
+
unless params['BlockIPActionParameters'].nil?
|
16367
|
+
@BlockIPActionParameters = BlockIPActionParameters.new
|
16368
|
+
@BlockIPActionParameters.deserialize(params['BlockIPActionParameters'])
|
16369
|
+
end
|
16370
|
+
unless params['ReturnCustomPageActionParameters'].nil?
|
16371
|
+
@ReturnCustomPageActionParameters = ReturnCustomPageActionParameters.new
|
16372
|
+
@ReturnCustomPageActionParameters.deserialize(params['ReturnCustomPageActionParameters'])
|
16373
|
+
end
|
16374
|
+
unless params['RedirectActionParameters'].nil?
|
16375
|
+
@RedirectActionParameters = RedirectActionParameters.new
|
16376
|
+
@RedirectActionParameters.deserialize(params['RedirectActionParameters'])
|
16377
|
+
end
|
16378
|
+
end
|
16379
|
+
end
|
16380
|
+
|
16381
|
+
# Web安全配置
|
15939
16382
|
class SecurityConfig < TencentCloud::Common::AbstractModel
|
15940
16383
|
# @param WafConfig: 托管规则。如果入参为空或不填,默认使用历史配置。
|
15941
16384
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -15967,10 +16410,13 @@ module TencentCloud
|
|
15967
16410
|
# @param SlowPostConfig: 慢速攻击配置。如果入参为空或不填,默认使用历史配置。
|
15968
16411
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
15969
16412
|
# @type SlowPostConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowPostConfig`
|
16413
|
+
# @param DetectLengthLimitConfig: 检测长度限制配置。仅出参使用。
|
16414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
16415
|
+
# @type DetectLengthLimitConfig: :class:`Tencentcloud::Teo.v20220901.models.DetectLengthLimitConfig`
|
15970
16416
|
|
15971
|
-
attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig, :SlowPostConfig
|
16417
|
+
attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig, :SlowPostConfig, :DetectLengthLimitConfig
|
15972
16418
|
|
15973
|
-
def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil, slowpostconfig=nil)
|
16419
|
+
def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil, slowpostconfig=nil, detectlengthlimitconfig=nil)
|
15974
16420
|
@WafConfig = wafconfig
|
15975
16421
|
@RateLimitConfig = ratelimitconfig
|
15976
16422
|
@AclConfig = aclconfig
|
@@ -15981,6 +16427,7 @@ module TencentCloud
|
|
15981
16427
|
@DropPageConfig = droppageconfig
|
15982
16428
|
@TemplateConfig = templateconfig
|
15983
16429
|
@SlowPostConfig = slowpostconfig
|
16430
|
+
@DetectLengthLimitConfig = detectlengthlimitconfig
|
15984
16431
|
end
|
15985
16432
|
|
15986
16433
|
def deserialize(params)
|
@@ -16024,6 +16471,36 @@ module TencentCloud
|
|
16024
16471
|
@SlowPostConfig = SlowPostConfig.new
|
16025
16472
|
@SlowPostConfig.deserialize(params['SlowPostConfig'])
|
16026
16473
|
end
|
16474
|
+
unless params['DetectLengthLimitConfig'].nil?
|
16475
|
+
@DetectLengthLimitConfig = DetectLengthLimitConfig.new
|
16476
|
+
@DetectLengthLimitConfig.deserialize(params['DetectLengthLimitConfig'])
|
16477
|
+
end
|
16478
|
+
end
|
16479
|
+
end
|
16480
|
+
|
16481
|
+
# 安全策略配置
|
16482
|
+
class SecurityPolicy < TencentCloud::Common::AbstractModel
|
16483
|
+
# @param CustomRules: 自定义规则配置。
|
16484
|
+
# @type CustomRules: :class:`Tencentcloud::Teo.v20220901.models.CustomRules`
|
16485
|
+
# @param ManagedRules: 托管规则配置。
|
16486
|
+
# @type ManagedRules: :class:`Tencentcloud::Teo.v20220901.models.ManagedRules`
|
16487
|
+
|
16488
|
+
attr_accessor :CustomRules, :ManagedRules
|
16489
|
+
|
16490
|
+
def initialize(customrules=nil, managedrules=nil)
|
16491
|
+
@CustomRules = customrules
|
16492
|
+
@ManagedRules = managedrules
|
16493
|
+
end
|
16494
|
+
|
16495
|
+
def deserialize(params)
|
16496
|
+
unless params['CustomRules'].nil?
|
16497
|
+
@CustomRules = CustomRules.new
|
16498
|
+
@CustomRules.deserialize(params['CustomRules'])
|
16499
|
+
end
|
16500
|
+
unless params['ManagedRules'].nil?
|
16501
|
+
@ManagedRules = ManagedRules.new
|
16502
|
+
@ManagedRules.deserialize(params['ManagedRules'])
|
16503
|
+
end
|
16027
16504
|
end
|
16028
16505
|
end
|
16029
16506
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-teo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1022
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|