tencentcloud-sdk-teo 3.0.1021 → 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/models.rb +392 -12
- 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/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: 自定义缓存时间开关,取值有:
|
@@ -11394,6 +11476,199 @@ module TencentCloud
|
|
11394
11476
|
end
|
11395
11477
|
end
|
11396
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
|
+
|
11397
11672
|
# 浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
|
11398
11673
|
class MaxAge < TencentCloud::Common::AbstractModel
|
11399
11674
|
# @param FollowOrigin: 是否遵循源站,取值有:
|
@@ -13028,27 +13303,27 @@ module TencentCloud
|
|
13028
13303
|
|
13029
13304
|
# ModifySecurityPolicy请求参数结构体
|
13030
13305
|
class ModifySecurityPolicyRequest < TencentCloud::Common::AbstractModel
|
13031
|
-
# @param ZoneId: 站点
|
13306
|
+
# @param ZoneId: 站点 ID。
|
13032
13307
|
# @type ZoneId: String
|
13033
|
-
# @param SecurityConfig:
|
13308
|
+
# @param SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的 CustomRule 被设置时,SecurityConfig 参数中的 AclConfg、 IpTableConfg 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略。</li><li>对于自定义规则以及托管规则策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
13034
13309
|
# @type SecurityConfig: :class:`Tencentcloud::Teo.v20220901.models.SecurityConfig`
|
13035
|
-
# @param
|
13036
|
-
|
13037
|
-
#
|
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>
|
13038
13313
|
# @type Entity: String
|
13039
|
-
# @param
|
13040
|
-
#
|
13041
|
-
#
|
13042
|
-
|
13043
|
-
# 注意:当使用本参数时,Entity 参数不生效。请勿同时使用本参数和 Entity 参数。
|
13314
|
+
# @param Host: 指定域名。当 Entity 参数值为 Host 时,使用本参数指定的域名级策略,例如:使用 www.example.com ,配置该域名的域名级策略。
|
13315
|
+
# @type Host: String
|
13316
|
+
# @param TemplateId: 指定策略模板 ID。当 Entity 参数值为 Template 时,使用本参数指定策略模板的 ID。
|
13044
13317
|
# @type TemplateId: String
|
13045
13318
|
|
13046
|
-
attr_accessor :ZoneId, :SecurityConfig, :Entity, :TemplateId
|
13319
|
+
attr_accessor :ZoneId, :SecurityConfig, :SecurityPolicy, :Entity, :Host, :TemplateId
|
13047
13320
|
|
13048
|
-
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)
|
13049
13322
|
@ZoneId = zoneid
|
13050
13323
|
@SecurityConfig = securityconfig
|
13324
|
+
@SecurityPolicy = securitypolicy
|
13051
13325
|
@Entity = entity
|
13326
|
+
@Host = host
|
13052
13327
|
@TemplateId = templateid
|
13053
13328
|
end
|
13054
13329
|
|
@@ -13058,7 +13333,12 @@ module TencentCloud
|
|
13058
13333
|
@SecurityConfig = SecurityConfig.new
|
13059
13334
|
@SecurityConfig.deserialize(params['SecurityConfig'])
|
13060
13335
|
end
|
13336
|
+
unless params['SecurityPolicy'].nil?
|
13337
|
+
@SecurityPolicy = SecurityPolicy.new
|
13338
|
+
@SecurityPolicy.deserialize(params['SecurityPolicy'])
|
13339
|
+
end
|
13061
13340
|
@Entity = params['Entity']
|
13341
|
+
@Host = params['Host']
|
13062
13342
|
@TemplateId = params['TemplateId']
|
13063
13343
|
end
|
13064
13344
|
end
|
@@ -14830,6 +15110,22 @@ module TencentCloud
|
|
14830
15110
|
end
|
14831
15111
|
end
|
14832
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
|
+
|
14833
15129
|
# 预付费套餐自动续费配置项。
|
14834
15130
|
class RenewFlag < TencentCloud::Common::AbstractModel
|
14835
15131
|
# @param Switch: 预付费套餐的自动续费标志,取值有:
|
@@ -15010,6 +15306,26 @@ module TencentCloud
|
|
15010
15306
|
end
|
15011
15307
|
end
|
15012
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
|
+
|
15013
15329
|
# 规则引擎HTTP请求头/响应头类型的动作
|
15014
15330
|
class RewriteAction < TencentCloud::Common::AbstractModel
|
15015
15331
|
# @param Action: 功能名称,功能名称填写规范可调用接口 [查询规则引擎的设置参数](https://cloud.tencent.com/document/product/1552/80618) 查看。
|
@@ -16024,6 +16340,44 @@ module TencentCloud
|
|
16024
16340
|
end
|
16025
16341
|
end
|
16026
16342
|
|
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
|
+
|
16027
16381
|
# Web安全配置
|
16028
16382
|
class SecurityConfig < TencentCloud::Common::AbstractModel
|
16029
16383
|
# @param WafConfig: 托管规则。如果入参为空或不填,默认使用历史配置。
|
@@ -16124,6 +16478,32 @@ module TencentCloud
|
|
16124
16478
|
end
|
16125
16479
|
end
|
16126
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
|
16504
|
+
end
|
16505
|
+
end
|
16506
|
+
|
16127
16507
|
# 安全策略模板的绑定关系。
|
16128
16508
|
class SecurityTemplateBinding < TencentCloud::Common::AbstractModel
|
16129
16509
|
# @param TemplateId: 模板ID
|
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
|