tencentcloud-sdk-teo 3.0.1117 → 3.0.1119
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 +48 -2
- 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: 808095214a0935070c56df2dfab4d4a5ee52b6f9
|
4
|
+
data.tar.gz: 51323d3891116928fe5b50edbc41f8df74581d2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b390a32eb4f875931c1a8a00fcc16beb88feefbf372a6cef60cf6b799463315837c713e2dd47d8c552c102279014d85c3e30c3498db609d232932e9eb7458b13
|
7
|
+
data.tar.gz: 6cdc72f6d1ecd1e585bb0fe3c203f7b628775355c7fa00a46c0afcb70583365e509405876617fbbfeb7444e800d5af02f4d7267d8ea1d79cfed4210f257337af
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1119
|
data/lib/v20220901/models.rb
CHANGED
@@ -12307,6 +12307,45 @@ module TencentCloud
|
|
12307
12307
|
end
|
12308
12308
|
end
|
12309
12309
|
|
12310
|
+
# 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
12311
|
+
class FrequentScanningProtection < TencentCloud::Common::AbstractModel
|
12312
|
+
# @param Enabled: 高频扫描防护规则是否开启。取值有:<li>on:开启,高频扫描防护规则生效;</li><li>off:关闭,高频扫描防护规则不生效。</li>
|
12313
|
+
# @type Enabled: String
|
12314
|
+
# @param Action: 高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>JSChallenge:JavaScript 挑战,响应 JavaScript 挑战页面。</li>
|
12315
|
+
# @type Action: :class:`Tencentcloud::Teo.v20220901.models.SecurityAction`
|
12316
|
+
# @param CountBy: 请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:<li>http.request.xff_header_ip:客户端 IP(优先匹配 XFF 头部);</li><li>http.request.ip:客户端 IP。</li>
|
12317
|
+
# @type CountBy: String
|
12318
|
+
# @param BlockThreshold: 此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。
|
12319
|
+
# @type BlockThreshold: Integer
|
12320
|
+
# @param CountingPeriod: 此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。
|
12321
|
+
# @type CountingPeriod: String
|
12322
|
+
# @param ActionDuration: 此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。
|
12323
|
+
# @type ActionDuration: String
|
12324
|
+
|
12325
|
+
attr_accessor :Enabled, :Action, :CountBy, :BlockThreshold, :CountingPeriod, :ActionDuration
|
12326
|
+
|
12327
|
+
def initialize(enabled=nil, action=nil, countby=nil, blockthreshold=nil, countingperiod=nil, actionduration=nil)
|
12328
|
+
@Enabled = enabled
|
12329
|
+
@Action = action
|
12330
|
+
@CountBy = countby
|
12331
|
+
@BlockThreshold = blockthreshold
|
12332
|
+
@CountingPeriod = countingperiod
|
12333
|
+
@ActionDuration = actionduration
|
12334
|
+
end
|
12335
|
+
|
12336
|
+
def deserialize(params)
|
12337
|
+
@Enabled = params['Enabled']
|
12338
|
+
unless params['Action'].nil?
|
12339
|
+
@Action = SecurityAction.new
|
12340
|
+
@Action.deserialize(params['Action'])
|
12341
|
+
end
|
12342
|
+
@CountBy = params['CountBy']
|
12343
|
+
@BlockThreshold = params['BlockThreshold']
|
12344
|
+
@CountingPeriod = params['CountingPeriod']
|
12345
|
+
@ActionDuration = params['ActionDuration']
|
12346
|
+
end
|
12347
|
+
end
|
12348
|
+
|
12310
12349
|
# 边缘函数详情
|
12311
12350
|
class Function < TencentCloud::Common::AbstractModel
|
12312
12351
|
# @param FunctionId: 函数 ID。
|
@@ -14155,15 +14194,18 @@ module TencentCloud
|
|
14155
14194
|
# @type AutoUpdate: :class:`Tencentcloud::Teo.v20220901.models.ManagedRuleAutoUpdate`
|
14156
14195
|
# @param ManagedRuleGroups: 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
14157
14196
|
# @type ManagedRuleGroups: Array
|
14197
|
+
# @param FrequentScanningProtection: 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
14198
|
+
# @type FrequentScanningProtection: :class:`Tencentcloud::Teo.v20220901.models.FrequentScanningProtection`
|
14158
14199
|
|
14159
|
-
attr_accessor :Enabled, :DetectionOnly, :SemanticAnalysis, :AutoUpdate, :ManagedRuleGroups
|
14200
|
+
attr_accessor :Enabled, :DetectionOnly, :SemanticAnalysis, :AutoUpdate, :ManagedRuleGroups, :FrequentScanningProtection
|
14160
14201
|
|
14161
|
-
def initialize(enabled=nil, detectiononly=nil, semanticanalysis=nil, autoupdate=nil, managedrulegroups=nil)
|
14202
|
+
def initialize(enabled=nil, detectiononly=nil, semanticanalysis=nil, autoupdate=nil, managedrulegroups=nil, frequentscanningprotection=nil)
|
14162
14203
|
@Enabled = enabled
|
14163
14204
|
@DetectionOnly = detectiononly
|
14164
14205
|
@SemanticAnalysis = semanticanalysis
|
14165
14206
|
@AutoUpdate = autoupdate
|
14166
14207
|
@ManagedRuleGroups = managedrulegroups
|
14208
|
+
@FrequentScanningProtection = frequentscanningprotection
|
14167
14209
|
end
|
14168
14210
|
|
14169
14211
|
def deserialize(params)
|
@@ -14182,6 +14224,10 @@ module TencentCloud
|
|
14182
14224
|
@ManagedRuleGroups << managedrulegroup_tmp
|
14183
14225
|
end
|
14184
14226
|
end
|
14227
|
+
unless params['FrequentScanningProtection'].nil?
|
14228
|
+
@FrequentScanningProtection = FrequentScanningProtection.new
|
14229
|
+
@FrequentScanningProtection.deserialize(params['FrequentScanningProtection'])
|
14230
|
+
end
|
14185
14231
|
end
|
14186
14232
|
end
|
14187
14233
|
|
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.1119
|
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-08-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|