tencentcloud-sdk-teo 3.0.1117 → 3.0.1122
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 +56 -10
- 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: a11f00d919aa9b156c90932d901d3119a5d209d6
|
4
|
+
data.tar.gz: 061d5338ee40da35c6cd47344c039dfbf1d92b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88e0bf6e601f5b571e14b7ecc231e9442a1e513ecd4f6743e3729c9843ffd4a691516d8dc5d61ff715005196311d74e1a6e006035ac7ee82a70d7e431c01162b
|
7
|
+
data.tar.gz: ccbcb8453d3a0a9be4a04b66edae9b23f8c082e3929541b07755d21ebf86df07c46958b0def3bc30514f883668d21d76156f6255032ecce69239bc45a1f094bc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1122
|
data/lib/v20220901/models.rb
CHANGED
@@ -4119,31 +4119,29 @@ module TencentCloud
|
|
4119
4119
|
class CreateOriginGroupRequest < TencentCloud::Common::AbstractModel
|
4120
4120
|
# @param ZoneId: 站点 ID
|
4121
4121
|
# @type ZoneId: String
|
4122
|
+
# @param Records: 源站记录信息,此参数必填。
|
4123
|
+
# @type Records: Array
|
4122
4124
|
# @param Name: 源站组名称,可输入1 - 200个字符,允许的字符为 a - z, A - Z, 0 - 9, _, - 。
|
4123
4125
|
# @type Name: String
|
4124
4126
|
# @param Type: 源站组类型,此参数必填,取值有:
|
4125
4127
|
# <li>GENERAL:通用型源站组,仅支持添加 IP/域名 源站,可以被域名服务、规则引擎、四层代理、通用型负载均衡、HTTP 专用型负载均衡引用;</li>
|
4126
4128
|
# <li>HTTP: HTTP 专用型源站组,支持添加 IP/域名、对象存储源站作为源站,无法被四层代理引用,仅支持被添加加速域名、规则引擎-修改源站、HTTP 专用型负载均衡引用。</li>
|
4127
4129
|
# @type Type: String
|
4128
|
-
# @param Records: 源站记录信息,此参数必填。
|
4129
|
-
# @type Records: Array
|
4130
4130
|
# @param HostHeader: 回源 Host Header,仅 Type = HTTP 时传入生效,规则引擎修改 Host Header 配置优先级高于源站组的 Host Header。
|
4131
4131
|
# @type HostHeader: String
|
4132
4132
|
|
4133
|
-
attr_accessor :ZoneId, :
|
4133
|
+
attr_accessor :ZoneId, :Records, :Name, :Type, :HostHeader
|
4134
4134
|
|
4135
|
-
def initialize(zoneid=nil,
|
4135
|
+
def initialize(zoneid=nil, records=nil, name=nil, type=nil, hostheader=nil)
|
4136
4136
|
@ZoneId = zoneid
|
4137
|
+
@Records = records
|
4137
4138
|
@Name = name
|
4138
4139
|
@Type = type
|
4139
|
-
@Records = records
|
4140
4140
|
@HostHeader = hostheader
|
4141
4141
|
end
|
4142
4142
|
|
4143
4143
|
def deserialize(params)
|
4144
4144
|
@ZoneId = params['ZoneId']
|
4145
|
-
@Name = params['Name']
|
4146
|
-
@Type = params['Type']
|
4147
4145
|
unless params['Records'].nil?
|
4148
4146
|
@Records = []
|
4149
4147
|
params['Records'].each do |i|
|
@@ -4152,6 +4150,8 @@ module TencentCloud
|
|
4152
4150
|
@Records << originrecord_tmp
|
4153
4151
|
end
|
4154
4152
|
end
|
4153
|
+
@Name = params['Name']
|
4154
|
+
@Type = params['Type']
|
4155
4155
|
@HostHeader = params['HostHeader']
|
4156
4156
|
end
|
4157
4157
|
end
|
@@ -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
|
|
@@ -17570,7 +17616,7 @@ module TencentCloud
|
|
17570
17616
|
# @type Type: String
|
17571
17617
|
# @param RecordId: 源站记录ID。
|
17572
17618
|
# @type RecordId: String
|
17573
|
-
# @param Weight:
|
17619
|
+
# @param Weight: 【源站权重】:用于控制流量分配优先级的参数,取值范围:0-100(整数):<li>空值:不设置权重,系统按默认策略调度;</li><li>0 值:明确设置权重为0,流量将不会分配到该源站,注意事项:必须确保至少有一个源站的权重值大于0;</li><li>正常值:数值越大分配流量越多 ;</li>
|
17574
17620
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
17575
17621
|
# @type Weight: Integer
|
17576
17622
|
# @param Private: 是否私有鉴权,当源站类型 RecordType=COS/AWS_S3 时生效,取值有:
|
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.1122
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|