tencentcloud-sdk-teo 3.0.1075 → 3.0.1076
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 +524 -16
- 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: bd277738220b91cf470b23c5b2e4af223f470a06
|
4
|
+
data.tar.gz: d3f3ea6624ba44d59b463c64395818324e190b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83bfa9d9290f87fd3c109b6672876ca86106a498784323e97f98e677c2b94b8ed51a906436d9a8476f30b480759dddcf82f98bed446ecad31218e7e00543a85a
|
7
|
+
data.tar.gz: 3e6539a9dba995043d15411ab29acec591e59ed1bd789b49f17faa0f02e131d968b367268adf3da72e624edbe882c19556b3e6566ef360ec244b62b80bea3ef9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1076
|
data/lib/v20220901/models.rb
CHANGED
@@ -531,6 +531,33 @@ module TencentCloud
|
|
531
531
|
end
|
532
532
|
end
|
533
533
|
|
534
|
+
# 自适应频控
|
535
|
+
class AdaptiveFrequencyControl < TencentCloud::Common::AbstractModel
|
536
|
+
# @param Enabled: 自适应频控是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
537
|
+
# @type Enabled: String
|
538
|
+
# @param Sensitivity: 自适应频控的限制等级,当 Enabled 为 on 时,此字段必填。取值有:<li>Loose:宽松;</li><li>Moderate:适中;</li><li>Strict:严格。</li>
|
539
|
+
# @type Sensitivity: String
|
540
|
+
# @param Action: 自适应频控的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name仅支持JSChallenge。</li>
|
541
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
542
|
+
|
543
|
+
attr_accessor :Enabled, :Sensitivity, :Action
|
544
|
+
|
545
|
+
def initialize(enabled=nil, sensitivity=nil, action=nil)
|
546
|
+
@Enabled = enabled
|
547
|
+
@Sensitivity = sensitivity
|
548
|
+
@Action = action
|
549
|
+
end
|
550
|
+
|
551
|
+
def deserialize(params)
|
552
|
+
@Enabled = params['Enabled']
|
553
|
+
@Sensitivity = params['Sensitivity']
|
554
|
+
unless params['Action'].nil?
|
555
|
+
@Action = SecurityAction.new
|
556
|
+
@Action.deserialize(params['Action'])
|
557
|
+
end
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
534
561
|
# 描述键值对过滤器,用于条件过滤查询,支持模糊查询。例如过滤ID、名称、状态等。
|
535
562
|
# 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
536
563
|
# 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
|
@@ -1091,6 +1118,29 @@ module TencentCloud
|
|
1091
1118
|
end
|
1092
1119
|
end
|
1093
1120
|
|
1121
|
+
# 流量防盗刷(仅适用中国大陆地区)的具体配置。
|
1122
|
+
class BandwidthAbuseDefense < TencentCloud::Common::AbstractModel
|
1123
|
+
# @param Enabled: 流量防盗刷(仅适用中国大陆地区)是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
1124
|
+
# @type Enabled: String
|
1125
|
+
# @param Action: 流量防盗刷(仅适用中国大陆地区)的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name仅支持JSChallenge。</li>
|
1126
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
1127
|
+
|
1128
|
+
attr_accessor :Enabled, :Action
|
1129
|
+
|
1130
|
+
def initialize(enabled=nil, action=nil)
|
1131
|
+
@Enabled = enabled
|
1132
|
+
@Action = action
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
def deserialize(params)
|
1136
|
+
@Enabled = params['Enabled']
|
1137
|
+
unless params['Action'].nil?
|
1138
|
+
@Action = SecurityAction.new
|
1139
|
+
@Action.deserialize(params['Action'])
|
1140
|
+
end
|
1141
|
+
end
|
1142
|
+
end
|
1143
|
+
|
1094
1144
|
# 计费数据项
|
1095
1145
|
class BillingData < TencentCloud::Common::AbstractModel
|
1096
1146
|
# @param Time: 时间。
|
@@ -2154,6 +2204,30 @@ module TencentCloud
|
|
2154
2204
|
end
|
2155
2205
|
end
|
2156
2206
|
|
2207
|
+
# Web 安全 Challenge 挑战的附加参数
|
2208
|
+
class ChallengeActionParameters < TencentCloud::Common::AbstractModel
|
2209
|
+
# @param ChallengeOption: 安全执行的具体挑战动作。取值有:<li> InterstitialChallenge:插页式挑战;</li><li> InlineChallenge:内嵌式挑战;</li><li> JSChallenge:JavaScript 挑战;</li><li> ManagedChallenge:托管挑战。</li>
|
2210
|
+
# @type ChallengeOption: String
|
2211
|
+
# @param Interval: 重复挑战的时间间隔,当 Name 为 InterstitialChallenge/InlineChallenge 时,该字段必填。默认值为 300s。支持的单位有:<li>s:秒,取值范围1~60;</li><li>m:分,取值范围1~60;</li><li>h:小时,取值范围1~24。</li>
|
2212
|
+
# @type Interval: String
|
2213
|
+
# @param AttesterId: 客户端认证方式 ID 。当 Name 为 InterstitialChallenge/InlineChallenge 时,该字段必填。
|
2214
|
+
# @type AttesterId: String
|
2215
|
+
|
2216
|
+
attr_accessor :ChallengeOption, :Interval, :AttesterId
|
2217
|
+
|
2218
|
+
def initialize(challengeoption=nil, interval=nil, attesterid=nil)
|
2219
|
+
@ChallengeOption = challengeoption
|
2220
|
+
@Interval = interval
|
2221
|
+
@AttesterId = attesterid
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
def deserialize(params)
|
2225
|
+
@ChallengeOption = params['ChallengeOption']
|
2226
|
+
@Interval = params['Interval']
|
2227
|
+
@AttesterId = params['AttesterId']
|
2228
|
+
end
|
2229
|
+
end
|
2230
|
+
|
2157
2231
|
# CheckCnameStatus请求参数结构体
|
2158
2232
|
class CheckCnameStatusRequest < TencentCloud::Common::AbstractModel
|
2159
2233
|
# @param ZoneId: 站点 ID。
|
@@ -2235,6 +2309,29 @@ module TencentCloud
|
|
2235
2309
|
end
|
2236
2310
|
end
|
2237
2311
|
|
2312
|
+
# 智能客户端过滤
|
2313
|
+
class ClientFiltering < TencentCloud::Common::AbstractModel
|
2314
|
+
# @param Enabled: 智能客户端过滤是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
2315
|
+
# @type Enabled: String
|
2316
|
+
# @param Action: 智能客户端过滤的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name仅支持JSChallenge。</li>
|
2317
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
2318
|
+
|
2319
|
+
attr_accessor :Enabled, :Action
|
2320
|
+
|
2321
|
+
def initialize(enabled=nil, action=nil)
|
2322
|
+
@Enabled = enabled
|
2323
|
+
@Action = action
|
2324
|
+
end
|
2325
|
+
|
2326
|
+
def deserialize(params)
|
2327
|
+
@Enabled = params['Enabled']
|
2328
|
+
unless params['Action'].nil?
|
2329
|
+
@Action = SecurityAction.new
|
2330
|
+
@Action.deserialize(params['Action'])
|
2331
|
+
end
|
2332
|
+
end
|
2333
|
+
end
|
2334
|
+
|
2238
2335
|
# 回源时携带客户端 IP 所属地域信息,值的格式为 ISO-3166-1 两位字母代码。
|
2239
2336
|
class ClientIPCountryParameters < TencentCloud::Common::AbstractModel
|
2240
2337
|
# @param Switch: 配置开关,取值有:
|
@@ -5324,6 +5421,54 @@ module TencentCloud
|
|
5324
5421
|
end
|
5325
5422
|
end
|
5326
5423
|
|
5424
|
+
# 安全执行动作为封禁的附加参数。
|
5425
|
+
class DenyActionParameters < TencentCloud::Common::AbstractModel
|
5426
|
+
# @param BlockIp: 是否对来源 IP 延长封禁。取值有:
|
5427
|
+
# <li>on:开启;</li>
|
5428
|
+
# <li>off:关闭。</li>
|
5429
|
+
# 启用后,对触发规则的客户端 IP 持续拦截。当启用该选项时,必须同时指定 BlockIpDuration 参数。
|
5430
|
+
# 注意:该选项不可与 ReturnCustomPage 或 Stall 选项同时启用。
|
5431
|
+
# @type BlockIp: String
|
5432
|
+
# @param BlockIpDuration: 当 BlockIP 为 on 时IP 的封禁时长。
|
5433
|
+
# @type BlockIpDuration: String
|
5434
|
+
# @param ReturnCustomPage: 是否使用自定义页面。取值有:
|
5435
|
+
# <li>on:开启;</li>
|
5436
|
+
# <li>off:关闭。</li>
|
5437
|
+
# 启用后,使用自定义页面内容拦截(响应)请求,当启用该选项时,必须同时指定 ResponseCode 和 ErrorPageId 参数。
|
5438
|
+
# 注意:该选项不可与 BlockIp 或 Stall 选项同时启用。
|
5439
|
+
# @type ReturnCustomPage: String
|
5440
|
+
# @param ResponseCode: 自定义页面的状态码。
|
5441
|
+
# @type ResponseCode: String
|
5442
|
+
# @param ErrorPageId: 自定义页面的PageId。
|
5443
|
+
# @type ErrorPageId: String
|
5444
|
+
# @param Stall: 是否对请求来源挂起不予处理。取值有:
|
5445
|
+
# <li>on:开启;</li>
|
5446
|
+
# <li>off:关闭。</li>
|
5447
|
+
# 启用后,不再响应当前连接会话内请求,且不会主动断开连接。用于爬虫对抗时,消耗客户端连接资源。
|
5448
|
+
# 注意:该选项不可与 BlockIp 或 ReturnCustomPage 选项同时启用。
|
5449
|
+
# @type Stall: String
|
5450
|
+
|
5451
|
+
attr_accessor :BlockIp, :BlockIpDuration, :ReturnCustomPage, :ResponseCode, :ErrorPageId, :Stall
|
5452
|
+
|
5453
|
+
def initialize(blockip=nil, blockipduration=nil, returncustompage=nil, responsecode=nil, errorpageid=nil, stall=nil)
|
5454
|
+
@BlockIp = blockip
|
5455
|
+
@BlockIpDuration = blockipduration
|
5456
|
+
@ReturnCustomPage = returncustompage
|
5457
|
+
@ResponseCode = responsecode
|
5458
|
+
@ErrorPageId = errorpageid
|
5459
|
+
@Stall = stall
|
5460
|
+
end
|
5461
|
+
|
5462
|
+
def deserialize(params)
|
5463
|
+
@BlockIp = params['BlockIp']
|
5464
|
+
@BlockIpDuration = params['BlockIpDuration']
|
5465
|
+
@ReturnCustomPage = params['ReturnCustomPage']
|
5466
|
+
@ResponseCode = params['ResponseCode']
|
5467
|
+
@ErrorPageId = params['ErrorPageId']
|
5468
|
+
@Stall = params['Stall']
|
5469
|
+
end
|
5470
|
+
end
|
5471
|
+
|
5327
5472
|
# DeployConfigGroupVersion请求参数结构体
|
5328
5473
|
class DeployConfigGroupVersionRequest < TencentCloud::Common::AbstractModel
|
5329
5474
|
# @param ZoneId: 站点 ID。
|
@@ -9830,6 +9975,88 @@ module TencentCloud
|
|
9830
9975
|
end
|
9831
9976
|
end
|
9832
9977
|
|
9978
|
+
# Web安全的例外规则
|
9979
|
+
class ExceptionRule < TencentCloud::Common::AbstractModel
|
9980
|
+
# @param Id: 例外规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li> <b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li> <b>删除</b>已有规则:ExceptionRules 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
9981
|
+
# @type Id: String
|
9982
|
+
# @param Name: 例外规则的名称。
|
9983
|
+
# @type Name: String
|
9984
|
+
# @param Condition: 例外规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
9985
|
+
# @type Condition: String
|
9986
|
+
# @param SkipScope: 例外规则执行选项,取值有:<li>WebSecurityModules: 指定例外规则的安全防护模块。</li><li>ManagedRules:指定托管规则。</li>
|
9987
|
+
# @type SkipScope: String
|
9988
|
+
# @param SkipOption: 跳过请求的具体类型,取值有:<li>SkipOnAllRequestFields: 跳过所有请求;</li><li>SkipOnSpecifiedRequestFields: 跳过指定请求字段。</li>仅当 SkipScope 为 ManagedRules 时有效。
|
9989
|
+
# @type SkipOption: String
|
9990
|
+
# @param WebSecurityModulesForException: 指定例外规则的安全防护模块,仅当 SkipScope 为 WebSecurityModules 时有效。取值有:<li>websec-mod-managed-rules:托管规则;</li><li>websec-mod-rate-limiting:速率限制;</li><li>websec-mod-custom-rules:自定义规则;</li><li>websec-mod-adaptive-control:自适应频控、智能客户端过滤、慢速攻击防护、流量盗刷防护;</li><li>websec-mod-bot:Bot管理。</li>
|
9991
|
+
# @type WebSecurityModulesForException: Array
|
9992
|
+
# @param ManagedRulesForException: 指定例外规则的具体托管规则,仅当 SkipScope 为 ManagedRules 时有效,且此时不能指定 ManagedRuleGroupsForException 。
|
9993
|
+
# @type ManagedRulesForException: Array
|
9994
|
+
# @param ManagedRuleGroupsForException: 指定例外规则的托管规则组,仅当 SkipScope 为 ManagedRules 时有效,且此时不能指定 ManagedRulesForException 。
|
9995
|
+
# @type ManagedRuleGroupsForException: Array
|
9996
|
+
# @param RequestFieldsForException: 指定例外规则跳过指定请求字段的具体配置,仅当 SkipScope 为 ManagedRules 并且 SkipOption 为 SkipOnSpecifiedRequestFields 时有效。
|
9997
|
+
# @type RequestFieldsForException: Array
|
9998
|
+
# @param Enabled: 例外规则是否开启。取值有:<li>on:开启</li><li>off:关闭</li>
|
9999
|
+
# @type Enabled: String
|
10000
|
+
|
10001
|
+
attr_accessor :Id, :Name, :Condition, :SkipScope, :SkipOption, :WebSecurityModulesForException, :ManagedRulesForException, :ManagedRuleGroupsForException, :RequestFieldsForException, :Enabled
|
10002
|
+
|
10003
|
+
def initialize(id=nil, name=nil, condition=nil, skipscope=nil, skipoption=nil, websecuritymodulesforexception=nil, managedrulesforexception=nil, managedrulegroupsforexception=nil, requestfieldsforexception=nil, enabled=nil)
|
10004
|
+
@Id = id
|
10005
|
+
@Name = name
|
10006
|
+
@Condition = condition
|
10007
|
+
@SkipScope = skipscope
|
10008
|
+
@SkipOption = skipoption
|
10009
|
+
@WebSecurityModulesForException = websecuritymodulesforexception
|
10010
|
+
@ManagedRulesForException = managedrulesforexception
|
10011
|
+
@ManagedRuleGroupsForException = managedrulegroupsforexception
|
10012
|
+
@RequestFieldsForException = requestfieldsforexception
|
10013
|
+
@Enabled = enabled
|
10014
|
+
end
|
10015
|
+
|
10016
|
+
def deserialize(params)
|
10017
|
+
@Id = params['Id']
|
10018
|
+
@Name = params['Name']
|
10019
|
+
@Condition = params['Condition']
|
10020
|
+
@SkipScope = params['SkipScope']
|
10021
|
+
@SkipOption = params['SkipOption']
|
10022
|
+
@WebSecurityModulesForException = params['WebSecurityModulesForException']
|
10023
|
+
@ManagedRulesForException = params['ManagedRulesForException']
|
10024
|
+
@ManagedRuleGroupsForException = params['ManagedRuleGroupsForException']
|
10025
|
+
unless params['RequestFieldsForException'].nil?
|
10026
|
+
@RequestFieldsForException = []
|
10027
|
+
params['RequestFieldsForException'].each do |i|
|
10028
|
+
requestfieldsforexception_tmp = RequestFieldsForException.new
|
10029
|
+
requestfieldsforexception_tmp.deserialize(i)
|
10030
|
+
@RequestFieldsForException << requestfieldsforexception_tmp
|
10031
|
+
end
|
10032
|
+
end
|
10033
|
+
@Enabled = params['Enabled']
|
10034
|
+
end
|
10035
|
+
end
|
10036
|
+
|
10037
|
+
# Web安全的例外规则
|
10038
|
+
class ExceptionRules < TencentCloud::Common::AbstractModel
|
10039
|
+
# @param Rules: 例外规则的定义列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <li>若未指定 Rules 参数,或 Rules 参数长度为零:清空所有例外规则配置。</li><li>若 SecurityPolicy 参数中,未指定 ExceptionRules 参数值:保持已有例外规则配置,不做修改。</li>
|
10040
|
+
# @type Rules: Array
|
10041
|
+
|
10042
|
+
attr_accessor :Rules
|
10043
|
+
|
10044
|
+
def initialize(rules=nil)
|
10045
|
+
@Rules = rules
|
10046
|
+
end
|
10047
|
+
|
10048
|
+
def deserialize(params)
|
10049
|
+
unless params['Rules'].nil?
|
10050
|
+
@Rules = []
|
10051
|
+
params['Rules'].each do |i|
|
10052
|
+
exceptionrule_tmp = ExceptionRule.new
|
10053
|
+
exceptionrule_tmp.deserialize(i)
|
10054
|
+
@Rules << exceptionrule_tmp
|
10055
|
+
end
|
10056
|
+
end
|
10057
|
+
end
|
10058
|
+
end
|
10059
|
+
|
9833
10060
|
# ExportZoneConfig请求参数结构体
|
9834
10061
|
class ExportZoneConfigRequest < TencentCloud::Common::AbstractModel
|
9835
10062
|
# @param ZoneId: 站点 ID。
|
@@ -10585,6 +10812,46 @@ module TencentCloud
|
|
10585
10812
|
end
|
10586
10813
|
end
|
10587
10814
|
|
10815
|
+
# HTTP DDOS防护配置。
|
10816
|
+
class HttpDDoSProtection < TencentCloud::Common::AbstractModel
|
10817
|
+
# @param AdaptiveFrequencyControl: 自适应频控的具体配置。
|
10818
|
+
# @type AdaptiveFrequencyControl: :class:`Tencentcloud::Teo.v20220901.models.AdaptiveFrequencyControl`
|
10819
|
+
# @param ClientFiltering: 智能客户端过滤的具体配置。
|
10820
|
+
# @type ClientFiltering: :class:`Tencentcloud::Teo.v20220901.models.ClientFiltering`
|
10821
|
+
# @param BandwidthAbuseDefense: 流量防盗刷的具体配置。
|
10822
|
+
# @type BandwidthAbuseDefense: :class:`Tencentcloud::Teo.v20220901.models.BandwidthAbuseDefense`
|
10823
|
+
# @param SlowAttackDefense: 慢速攻击防护的具体配置。
|
10824
|
+
# @type SlowAttackDefense: :class:`Tencentcloud::Teo.v20220901.models.SlowAttackDefense`
|
10825
|
+
|
10826
|
+
attr_accessor :AdaptiveFrequencyControl, :ClientFiltering, :BandwidthAbuseDefense, :SlowAttackDefense
|
10827
|
+
|
10828
|
+
def initialize(adaptivefrequencycontrol=nil, clientfiltering=nil, bandwidthabusedefense=nil, slowattackdefense=nil)
|
10829
|
+
@AdaptiveFrequencyControl = adaptivefrequencycontrol
|
10830
|
+
@ClientFiltering = clientfiltering
|
10831
|
+
@BandwidthAbuseDefense = bandwidthabusedefense
|
10832
|
+
@SlowAttackDefense = slowattackdefense
|
10833
|
+
end
|
10834
|
+
|
10835
|
+
def deserialize(params)
|
10836
|
+
unless params['AdaptiveFrequencyControl'].nil?
|
10837
|
+
@AdaptiveFrequencyControl = AdaptiveFrequencyControl.new
|
10838
|
+
@AdaptiveFrequencyControl.deserialize(params['AdaptiveFrequencyControl'])
|
10839
|
+
end
|
10840
|
+
unless params['ClientFiltering'].nil?
|
10841
|
+
@ClientFiltering = ClientFiltering.new
|
10842
|
+
@ClientFiltering.deserialize(params['ClientFiltering'])
|
10843
|
+
end
|
10844
|
+
unless params['BandwidthAbuseDefense'].nil?
|
10845
|
+
@BandwidthAbuseDefense = BandwidthAbuseDefense.new
|
10846
|
+
@BandwidthAbuseDefense.deserialize(params['BandwidthAbuseDefense'])
|
10847
|
+
end
|
10848
|
+
unless params['SlowAttackDefense'].nil?
|
10849
|
+
@SlowAttackDefense = SlowAttackDefense.new
|
10850
|
+
@SlowAttackDefense.deserialize(params['SlowAttackDefense'])
|
10851
|
+
end
|
10852
|
+
end
|
10853
|
+
end
|
10854
|
+
|
10588
10855
|
# 域名 https 加速配置,默认为关闭状态
|
10589
10856
|
class Https < TencentCloud::Common::AbstractModel
|
10590
10857
|
# @param Http2: http2 配置开关,取值有:
|
@@ -11820,6 +12087,30 @@ module TencentCloud
|
|
11820
12087
|
end
|
11821
12088
|
end
|
11822
12089
|
|
12090
|
+
# 正文传输最小速率阈值的具体配置。
|
12091
|
+
class MinimalRequestBodyTransferRate < TencentCloud::Common::AbstractModel
|
12092
|
+
# @param MinimalAvgTransferRateThreshold: 正文传输最小速率阈值,单位仅支持bps。
|
12093
|
+
# @type MinimalAvgTransferRateThreshold: String
|
12094
|
+
# @param CountingPeriod: 正文传输最小速率统计时间范围,取值有:<li>10s:10秒;</li><li>30s:30秒;</li><li>60s:60秒;</li><li>120s:120秒。</li>
|
12095
|
+
# @type CountingPeriod: String
|
12096
|
+
# @param Enabled: 正文传输最小速率阈值是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
12097
|
+
# @type Enabled: String
|
12098
|
+
|
12099
|
+
attr_accessor :MinimalAvgTransferRateThreshold, :CountingPeriod, :Enabled
|
12100
|
+
|
12101
|
+
def initialize(minimalavgtransferratethreshold=nil, countingperiod=nil, enabled=nil)
|
12102
|
+
@MinimalAvgTransferRateThreshold = minimalavgtransferratethreshold
|
12103
|
+
@CountingPeriod = countingperiod
|
12104
|
+
@Enabled = enabled
|
12105
|
+
end
|
12106
|
+
|
12107
|
+
def deserialize(params)
|
12108
|
+
@MinimalAvgTransferRateThreshold = params['MinimalAvgTransferRateThreshold']
|
12109
|
+
@CountingPeriod = params['CountingPeriod']
|
12110
|
+
@Enabled = params['Enabled']
|
12111
|
+
end
|
12112
|
+
end
|
12113
|
+
|
11823
12114
|
# ModifyAccelerationDomain请求参数结构体
|
11824
12115
|
class ModifyAccelerationDomainRequest < TencentCloud::Common::AbstractModel
|
11825
12116
|
# @param ZoneId: 加速域名所属站点ID。
|
@@ -13444,9 +13735,9 @@ module TencentCloud
|
|
13444
13735
|
class ModifySecurityPolicyRequest < TencentCloud::Common::AbstractModel
|
13445
13736
|
# @param ZoneId: 站点 ID。
|
13446
13737
|
# @type ZoneId: String
|
13447
|
-
# @param SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的
|
13738
|
+
# @param SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的 ExceptionRules 被设置时,SecurityConfig 参数中的 ExceptConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 CustomRules 被设置时,SecurityConfig 参数中的 AclConfig、 IpTableConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 HttpDDoSProtection 和 RateLimitingRules 被设置时,SecurityConfig 参数中的 RateLimitConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略;</li><li>对于例外规则、自定义规则、速率限制以及托管规则策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
13448
13739
|
# @type SecurityConfig: :class:`Tencentcloud::Teo.v20220901.models.SecurityConfig`
|
13449
|
-
# @param SecurityPolicy: 安全策略配置。对 Web
|
13740
|
+
# @param SecurityPolicy: 安全策略配置。对 Web 例外规则、防护自定义策略、速率规则和托管规则配置建议使用,支持表达式语法对安全策略进行配置。
|
13450
13741
|
# @type SecurityPolicy: :class:`Tencentcloud::Teo.v20220901.models.SecurityPolicy`
|
13451
13742
|
# @param Entity: 安全策略类型,可使用以下参数值: <li>ZoneDefaultPolicy:用于指定站点级策略;</li><li>Template:用于指定策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
13452
13743
|
# @type Entity: String
|
@@ -15247,6 +15538,84 @@ module TencentCloud
|
|
15247
15538
|
end
|
15248
15539
|
end
|
15249
15540
|
|
15541
|
+
# 速率限制的具体配置。
|
15542
|
+
class RateLimitingRule < TencentCloud::Common::AbstractModel
|
15543
|
+
# @param Id: 精准速率限制的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li><b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li><b>删除</b>已有规则:RateLimitingRules 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
15544
|
+
# @type Id: String
|
15545
|
+
# @param Name: 精准速率限制的名称。
|
15546
|
+
# @type Name: String
|
15547
|
+
# @param Condition: 精准速率限制的具体内容,需符合表达式语法,详细规范参见产品文档。
|
15548
|
+
# @type Condition: String
|
15549
|
+
# @param CountBy: 速率阈值请求特征的匹配方式, 当 Enabled 为 on 时,此字段必填。<br /><br />当条件有多个时,将组合多个条件共同进行统计计算,条件最多不可超过5条。取值有:<br/><li><b>http.request.ip</b>:客户端 IP;</li><li><b>http.request.xff_header_ip</b>:客户端 IP(优先匹配 XFF 头部);</li><li><b>http.request.uri.path</b>:请求的访问路径;</li><li><b>http.request.cookies['session']</b>:名称为session的Cookie,其中session可替换为自己指定的参数;</li><li><b>http.request.headers['user-agent']</b>:名称为user-agent的HTTP头部,其中user-agent可替换为自己指定的参数;</li><li><b>http.request.ja3</b>:请求的JA3指纹;</li><li><b>http.request.uri.query['test']</b>:名称为test的URL查询参数,其中test可替换为自己指定的参数。</li>
|
15550
|
+
# @type CountBy: Array
|
15551
|
+
# @param MaxRequestThreshold: 精准速率限制在时间范围内的累计拦截次数,取值范围 1 ~ 100000。
|
15552
|
+
# @type MaxRequestThreshold: Integer
|
15553
|
+
# @param CountingPeriod: 统计的时间窗口,取值有:<li>1s:1秒;</li><li>5s:5秒;</li><li>10s:10秒;</li><li>20s:20秒;</li><li>30s:30秒;</li><li>40s:40秒;</li><li>50s:50秒;</li><li>1m:1分钟;</li><li>2m:2分钟;</li><li>5m:5分钟;</li><li>10m:10分钟;</li><li>1h:1小时。</li>
|
15554
|
+
# @type CountingPeriod: String
|
15555
|
+
# @param ActionDuration: Action 动作的持续时长,单位仅支持:<li>s:秒,取值 1 ~ 120;</li><li>m:分钟,取值 1 ~ 120;</li><li>h:小时,取值 1 ~ 48;</li><li>d:天,取值 1 ~ 30。</li>
|
15556
|
+
# @type ActionDuration: String
|
15557
|
+
# @param Action: 精准速率限制的处置方式。取值有:<li>Monitor:观察;</li><li>Deny:拦截,其中DenyActionParameters.Name支持Deny和ReturnCustomPage;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name支持JSChallenge和ManagedChallenge;</li><li>Redirect:重定向至URL;</li>
|
15558
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
15559
|
+
# @param Priority: 精准速率限制的优先级,范围是 0 ~ 100,默认为 0。
|
15560
|
+
# @type Priority: Integer
|
15561
|
+
# @param Enabled: 精准速率限制规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
15562
|
+
# @type Enabled: String
|
15563
|
+
|
15564
|
+
attr_accessor :Id, :Name, :Condition, :CountBy, :MaxRequestThreshold, :CountingPeriod, :ActionDuration, :Action, :Priority, :Enabled
|
15565
|
+
|
15566
|
+
def initialize(id=nil, name=nil, condition=nil, countby=nil, maxrequestthreshold=nil, countingperiod=nil, actionduration=nil, action=nil, priority=nil, enabled=nil)
|
15567
|
+
@Id = id
|
15568
|
+
@Name = name
|
15569
|
+
@Condition = condition
|
15570
|
+
@CountBy = countby
|
15571
|
+
@MaxRequestThreshold = maxrequestthreshold
|
15572
|
+
@CountingPeriod = countingperiod
|
15573
|
+
@ActionDuration = actionduration
|
15574
|
+
@Action = action
|
15575
|
+
@Priority = priority
|
15576
|
+
@Enabled = enabled
|
15577
|
+
end
|
15578
|
+
|
15579
|
+
def deserialize(params)
|
15580
|
+
@Id = params['Id']
|
15581
|
+
@Name = params['Name']
|
15582
|
+
@Condition = params['Condition']
|
15583
|
+
@CountBy = params['CountBy']
|
15584
|
+
@MaxRequestThreshold = params['MaxRequestThreshold']
|
15585
|
+
@CountingPeriod = params['CountingPeriod']
|
15586
|
+
@ActionDuration = params['ActionDuration']
|
15587
|
+
unless params['Action'].nil?
|
15588
|
+
@Action = SecurityAction.new
|
15589
|
+
@Action.deserialize(params['Action'])
|
15590
|
+
end
|
15591
|
+
@Priority = params['Priority']
|
15592
|
+
@Enabled = params['Enabled']
|
15593
|
+
end
|
15594
|
+
end
|
15595
|
+
|
15596
|
+
# 精准速率限制的配置
|
15597
|
+
class RateLimitingRules < TencentCloud::Common::AbstractModel
|
15598
|
+
# @param Rules: 精准速率限制的定义列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> <li> 若未指定 Rules 参数,或 Rules 参数长度为零:清空所有精准速率限制配置。</li> <li> 若 SecurityPolicy 参数中,未指定 RateLimitingRules 参数值:保持已有自定义规则配置,不做修改。</li>
|
15599
|
+
# @type Rules: Array
|
15600
|
+
|
15601
|
+
attr_accessor :Rules
|
15602
|
+
|
15603
|
+
def initialize(rules=nil)
|
15604
|
+
@Rules = rules
|
15605
|
+
end
|
15606
|
+
|
15607
|
+
def deserialize(params)
|
15608
|
+
unless params['Rules'].nil?
|
15609
|
+
@Rules = []
|
15610
|
+
params['Rules'].each do |i|
|
15611
|
+
ratelimitingrule_tmp = RateLimitingRule.new
|
15612
|
+
ratelimitingrule_tmp.deserialize(i)
|
15613
|
+
@Rules << ratelimitingrule_tmp
|
15614
|
+
end
|
15615
|
+
end
|
15616
|
+
end
|
15617
|
+
end
|
15618
|
+
|
15250
15619
|
# 实时日志投递任务。
|
15251
15620
|
class RealtimeLogDeliveryTask < TencentCloud::Common::AbstractModel
|
15252
15621
|
# @param TaskId: 实时日志投递任务 ID。
|
@@ -15437,6 +15806,64 @@ module TencentCloud
|
|
15437
15806
|
end
|
15438
15807
|
end
|
15439
15808
|
|
15809
|
+
# 正文传输超时时长的具体配置。
|
15810
|
+
class RequestBodyTransferTimeout < TencentCloud::Common::AbstractModel
|
15811
|
+
# @param IdleTimeout: 正文传输超时时长,取值 5 ~ 120,单位仅支持秒(s)。
|
15812
|
+
# @type IdleTimeout: String
|
15813
|
+
# @param Enabled: 正文传输超时时长是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
15814
|
+
# @type Enabled: String
|
15815
|
+
|
15816
|
+
attr_accessor :IdleTimeout, :Enabled
|
15817
|
+
|
15818
|
+
def initialize(idletimeout=nil, enabled=nil)
|
15819
|
+
@IdleTimeout = idletimeout
|
15820
|
+
@Enabled = enabled
|
15821
|
+
end
|
15822
|
+
|
15823
|
+
def deserialize(params)
|
15824
|
+
@IdleTimeout = params['IdleTimeout']
|
15825
|
+
@Enabled = params['Enabled']
|
15826
|
+
end
|
15827
|
+
end
|
15828
|
+
|
15829
|
+
# 例外规则中的跳过字段配置
|
15830
|
+
class RequestFieldsForException < TencentCloud::Common::AbstractModel
|
15831
|
+
# @param Scope: 跳过的具体字段。取值支持:<br/>
|
15832
|
+
# <li>body.json:JSON 请求内容;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "body.json", "Condition": "", "TargetField": "key" },表示 JSON 请求内容所有参数跳过 WAF 扫描;</li>
|
15833
|
+
# <li style="margin-top:5px">cookie:Cookie;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "cookie", "Condition": "${key} in ['account-id'] and ${value} like ['prefix-*']", "TargetField": "value" },表示 Cookie 参数名称等于account-id 并且参数值通配符匹配 prefix-* 跳过 WAF 扫描;</li>
|
15834
|
+
# <li style="margin-top:5px">header:HTTP 头部参数;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "header", "Condition": "${key} like ['x-auth-*']", "TargetField": "value" },表示 header 参数名称通配符匹配 x-auth-* 跳过 WAF 扫描;</li>
|
15835
|
+
# <li style="margin-top:5px">uri.query:URL 编码内容/查询参数;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "uri.query", "Condition": "${key} in ['action'] and ${value} in ['upload', 'delete']", "TargetField": "value" },表示 URL 编码内容/查询参数的参数名称等于 action 并且参数值等于 upload 或 delete 跳过 WAF 扫描;</li>
|
15836
|
+
# <li style="margin-top:5px">uri:请求路径URI;此时 Condition 必须为空, TargetField 支持 query、path、fullpath,例如 { "Scope": "uri", "Condition": "", "TargetField": "query" },表示请求路径 URI 仅查询参数跳过 WAF 扫描;</li>
|
15837
|
+
# <li style="margin-top:5px">body:请求正文内容。此时 Condition 必须为空, TargetField 支持 fullbody、multipart,例如 { "Scope": "body", "Condition": "", "TargetField": "fullbody" },表示请求正文内容为完整请求正文跳过 WAF 扫描;</li>
|
15838
|
+
# @type Scope: String
|
15839
|
+
# @param Condition: 跳过的具体字段的表达式,需要符合表达式语法。<br />
|
15840
|
+
# Condition 支持表达式配置语法:<li> 按规则的匹配条件表达式语法编写,支持引用 key、value。</li><li> 支持 in、like 操作符,以及 and 逻辑组合。</li>
|
15841
|
+
# 例如:<li>${key} in ['x-trace-id']:参数名称等于x-trace-id。</li><li>${key} in ['x-trace-id'] and ${value} like ['Bearer *']:参数名称等于x-trace-id并且参数值通配符匹配Bearer *。</li>
|
15842
|
+
# @type Condition: String
|
15843
|
+
# @param TargetField: Scope 参数使用不同取值时,TargetField 表达式中支持的值如下:
|
15844
|
+
# <li> body.json:支持 key、value</li>
|
15845
|
+
# <li> cookie:支持 key、value</li>
|
15846
|
+
# <li> header:支持 key、value</li>
|
15847
|
+
# <li> uri.query:支持 key、value</li>
|
15848
|
+
# <li> uri:支持 path、query、fullpath</li>
|
15849
|
+
# <li> body:支持 fullbody、multipart</li>
|
15850
|
+
# @type TargetField: String
|
15851
|
+
|
15852
|
+
attr_accessor :Scope, :Condition, :TargetField
|
15853
|
+
|
15854
|
+
def initialize(scope=nil, condition=nil, targetfield=nil)
|
15855
|
+
@Scope = scope
|
15856
|
+
@Condition = condition
|
15857
|
+
@TargetField = targetfield
|
15858
|
+
end
|
15859
|
+
|
15860
|
+
def deserialize(params)
|
15861
|
+
@Scope = params['Scope']
|
15862
|
+
@Condition = params['Condition']
|
15863
|
+
@TargetField = params['TargetField']
|
15864
|
+
end
|
15865
|
+
end
|
15866
|
+
|
15440
15867
|
# 计费资源
|
15441
15868
|
class Resource < TencentCloud::Common::AbstractModel
|
15442
15869
|
# @param Id: 资源 ID。
|
@@ -16599,26 +17026,53 @@ module TencentCloud
|
|
16599
17026
|
# 安全的执行动作
|
16600
17027
|
class SecurityAction < TencentCloud::Common::AbstractModel
|
16601
17028
|
# @param Name: 安全执行的具体动作。取值有:
|
16602
|
-
# <li>Deny
|
17029
|
+
# <li>Deny:拦截,阻止请求访问站点资源;</li>
|
17030
|
+
# <li>Monitor:观察,仅记录日志;</li>
|
17031
|
+
# <li>Redirect:重定向至 URL;</li>
|
17032
|
+
# <li>Disabled:未启用,不启用指定规则;</li>
|
17033
|
+
# <li>Allow:允许访问,但延迟处理请求;</li>
|
17034
|
+
# <li>Challenge:挑战,响应挑战内容;</li>
|
17035
|
+
# <li>BlockIP:待废弃,IP 封禁;</li>
|
17036
|
+
# <li>ReturnCustomPage:待废弃,使用指定页面拦截;</li>
|
17037
|
+
# <li>JSChallenge:待废弃,JavaScript 挑战;</li>
|
17038
|
+
# <li>ManagedChallenge:待废弃,托管挑战。</li>
|
16603
17039
|
# @type Name: String
|
16604
|
-
# @param
|
16605
|
-
# @type
|
16606
|
-
# @param ReturnCustomPageActionParameters: 当 Name 为 ReturnCustomPage 时的附加参数。
|
16607
|
-
# @type ReturnCustomPageActionParameters: :class:`Tencentcloud::Teo.v20220901.models.ReturnCustomPageActionParameters`
|
17040
|
+
# @param DenyActionParameters: 当 Name 为 Deny 时的附加参数。
|
17041
|
+
# @type DenyActionParameters: :class:`Tencentcloud::Teo.v20220901.models.DenyActionParameters`
|
16608
17042
|
# @param RedirectActionParameters: 当 Name 为 Redirect 时的附加参数。
|
16609
17043
|
# @type RedirectActionParameters: :class:`Tencentcloud::Teo.v20220901.models.RedirectActionParameters`
|
17044
|
+
# @param ChallengeActionParameters: 当 Name 为 Challenge 时的附加参数。
|
17045
|
+
# @type ChallengeActionParameters: :class:`Tencentcloud::Teo.v20220901.models.ChallengeActionParameters`
|
17046
|
+
# @param BlockIPActionParameters: 待废弃,当 Name 为 BlockIP 时的附加参数。
|
17047
|
+
# @type BlockIPActionParameters: :class:`Tencentcloud::Teo.v20220901.models.BlockIPActionParameters`
|
17048
|
+
# @param ReturnCustomPageActionParameters: 待废弃,当 Name 为 ReturnCustomPage 时的附加参数。
|
17049
|
+
# @type ReturnCustomPageActionParameters: :class:`Tencentcloud::Teo.v20220901.models.ReturnCustomPageActionParameters`
|
16610
17050
|
|
16611
|
-
attr_accessor :Name, :
|
17051
|
+
attr_accessor :Name, :DenyActionParameters, :RedirectActionParameters, :ChallengeActionParameters, :BlockIPActionParameters, :ReturnCustomPageActionParameters
|
16612
17052
|
|
16613
|
-
def initialize(name=nil,
|
17053
|
+
def initialize(name=nil, denyactionparameters=nil, redirectactionparameters=nil, challengeactionparameters=nil, blockipactionparameters=nil, returncustompageactionparameters=nil)
|
16614
17054
|
@Name = name
|
17055
|
+
@DenyActionParameters = denyactionparameters
|
17056
|
+
@RedirectActionParameters = redirectactionparameters
|
17057
|
+
@ChallengeActionParameters = challengeactionparameters
|
16615
17058
|
@BlockIPActionParameters = blockipactionparameters
|
16616
17059
|
@ReturnCustomPageActionParameters = returncustompageactionparameters
|
16617
|
-
@RedirectActionParameters = redirectactionparameters
|
16618
17060
|
end
|
16619
17061
|
|
16620
17062
|
def deserialize(params)
|
16621
17063
|
@Name = params['Name']
|
17064
|
+
unless params['DenyActionParameters'].nil?
|
17065
|
+
@DenyActionParameters = DenyActionParameters.new
|
17066
|
+
@DenyActionParameters.deserialize(params['DenyActionParameters'])
|
17067
|
+
end
|
17068
|
+
unless params['RedirectActionParameters'].nil?
|
17069
|
+
@RedirectActionParameters = RedirectActionParameters.new
|
17070
|
+
@RedirectActionParameters.deserialize(params['RedirectActionParameters'])
|
17071
|
+
end
|
17072
|
+
unless params['ChallengeActionParameters'].nil?
|
17073
|
+
@ChallengeActionParameters = ChallengeActionParameters.new
|
17074
|
+
@ChallengeActionParameters.deserialize(params['ChallengeActionParameters'])
|
17075
|
+
end
|
16622
17076
|
unless params['BlockIPActionParameters'].nil?
|
16623
17077
|
@BlockIPActionParameters = BlockIPActionParameters.new
|
16624
17078
|
@BlockIPActionParameters.deserialize(params['BlockIPActionParameters'])
|
@@ -16627,10 +17081,6 @@ module TencentCloud
|
|
16627
17081
|
@ReturnCustomPageActionParameters = ReturnCustomPageActionParameters.new
|
16628
17082
|
@ReturnCustomPageActionParameters.deserialize(params['ReturnCustomPageActionParameters'])
|
16629
17083
|
end
|
16630
|
-
unless params['RedirectActionParameters'].nil?
|
16631
|
-
@RedirectActionParameters = RedirectActionParameters.new
|
16632
|
-
@RedirectActionParameters.deserialize(params['RedirectActionParameters'])
|
16633
|
-
end
|
16634
17084
|
end
|
16635
17085
|
end
|
16636
17086
|
|
@@ -16729,12 +17179,21 @@ module TencentCloud
|
|
16729
17179
|
# @type CustomRules: :class:`Tencentcloud::Teo.v20220901.models.CustomRules`
|
16730
17180
|
# @param ManagedRules: 托管规则配置。
|
16731
17181
|
# @type ManagedRules: :class:`Tencentcloud::Teo.v20220901.models.ManagedRules`
|
17182
|
+
# @param HttpDDoSProtection: HTTP DDOS防护配置。
|
17183
|
+
# @type HttpDDoSProtection: :class:`Tencentcloud::Teo.v20220901.models.HttpDDoSProtection`
|
17184
|
+
# @param RateLimitingRules: 速率限制规则配置。
|
17185
|
+
# @type RateLimitingRules: :class:`Tencentcloud::Teo.v20220901.models.RateLimitingRules`
|
17186
|
+
# @param ExceptionRules: 例外规则配置。
|
17187
|
+
# @type ExceptionRules: :class:`Tencentcloud::Teo.v20220901.models.ExceptionRules`
|
16732
17188
|
|
16733
|
-
attr_accessor :CustomRules, :ManagedRules
|
17189
|
+
attr_accessor :CustomRules, :ManagedRules, :HttpDDoSProtection, :RateLimitingRules, :ExceptionRules
|
16734
17190
|
|
16735
|
-
def initialize(customrules=nil, managedrules=nil)
|
17191
|
+
def initialize(customrules=nil, managedrules=nil, httpddosprotection=nil, ratelimitingrules=nil, exceptionrules=nil)
|
16736
17192
|
@CustomRules = customrules
|
16737
17193
|
@ManagedRules = managedrules
|
17194
|
+
@HttpDDoSProtection = httpddosprotection
|
17195
|
+
@RateLimitingRules = ratelimitingrules
|
17196
|
+
@ExceptionRules = exceptionrules
|
16738
17197
|
end
|
16739
17198
|
|
16740
17199
|
def deserialize(params)
|
@@ -16746,6 +17205,18 @@ module TencentCloud
|
|
16746
17205
|
@ManagedRules = ManagedRules.new
|
16747
17206
|
@ManagedRules.deserialize(params['ManagedRules'])
|
16748
17207
|
end
|
17208
|
+
unless params['HttpDDoSProtection'].nil?
|
17209
|
+
@HttpDDoSProtection = HttpDDoSProtection.new
|
17210
|
+
@HttpDDoSProtection.deserialize(params['HttpDDoSProtection'])
|
17211
|
+
end
|
17212
|
+
unless params['RateLimitingRules'].nil?
|
17213
|
+
@RateLimitingRules = RateLimitingRules.new
|
17214
|
+
@RateLimitingRules.deserialize(params['RateLimitingRules'])
|
17215
|
+
end
|
17216
|
+
unless params['ExceptionRules'].nil?
|
17217
|
+
@ExceptionRules = ExceptionRules.new
|
17218
|
+
@ExceptionRules.deserialize(params['ExceptionRules'])
|
17219
|
+
end
|
16749
17220
|
end
|
16750
17221
|
end
|
16751
17222
|
|
@@ -16906,6 +17377,43 @@ module TencentCloud
|
|
16906
17377
|
end
|
16907
17378
|
end
|
16908
17379
|
|
17380
|
+
# 慢速攻击防护的具体配置。
|
17381
|
+
class SlowAttackDefense < TencentCloud::Common::AbstractModel
|
17382
|
+
# @param Enabled: 慢速攻击防护是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
17383
|
+
# @type Enabled: String
|
17384
|
+
# @param Action: 慢速攻击防护的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li>
|
17385
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
17386
|
+
# @param MinimalRequestBodyTransferRate: 正文传输最小速率阈值的具体配置,当 Enabled 为 on 时,此字段必填。
|
17387
|
+
# @type MinimalRequestBodyTransferRate: :class:`Tencentcloud::Teo.v20220901.models.MinimalRequestBodyTransferRate`
|
17388
|
+
# @param RequestBodyTransferTimeout: 正文传输超时时长的具体配置,当 Enabled 为 on 时,此字段必填。
|
17389
|
+
# @type RequestBodyTransferTimeout: :class:`Tencentcloud::Teo.v20220901.models.RequestBodyTransferTimeout`
|
17390
|
+
|
17391
|
+
attr_accessor :Enabled, :Action, :MinimalRequestBodyTransferRate, :RequestBodyTransferTimeout
|
17392
|
+
|
17393
|
+
def initialize(enabled=nil, action=nil, minimalrequestbodytransferrate=nil, requestbodytransfertimeout=nil)
|
17394
|
+
@Enabled = enabled
|
17395
|
+
@Action = action
|
17396
|
+
@MinimalRequestBodyTransferRate = minimalrequestbodytransferrate
|
17397
|
+
@RequestBodyTransferTimeout = requestbodytransfertimeout
|
17398
|
+
end
|
17399
|
+
|
17400
|
+
def deserialize(params)
|
17401
|
+
@Enabled = params['Enabled']
|
17402
|
+
unless params['Action'].nil?
|
17403
|
+
@Action = SecurityAction.new
|
17404
|
+
@Action.deserialize(params['Action'])
|
17405
|
+
end
|
17406
|
+
unless params['MinimalRequestBodyTransferRate'].nil?
|
17407
|
+
@MinimalRequestBodyTransferRate = MinimalRequestBodyTransferRate.new
|
17408
|
+
@MinimalRequestBodyTransferRate.deserialize(params['MinimalRequestBodyTransferRate'])
|
17409
|
+
end
|
17410
|
+
unless params['RequestBodyTransferTimeout'].nil?
|
17411
|
+
@RequestBodyTransferTimeout = RequestBodyTransferTimeout.new
|
17412
|
+
@RequestBodyTransferTimeout.deserialize(params['RequestBodyTransferTimeout'])
|
17413
|
+
end
|
17414
|
+
end
|
17415
|
+
end
|
17416
|
+
|
16909
17417
|
# 慢速攻击配置。
|
16910
17418
|
class SlowPostConfig < TencentCloud::Common::AbstractModel
|
16911
17419
|
# @param Switch: 开关,取值有:
|
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.1076
|
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-06-
|
11
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|