tencentcloud-sdk-waf 3.0.1189 → 3.0.1196
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/v20180125/client.rb +48 -0
- data/lib/v20180125/models.rb +314 -44
- 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: aaf306501bc5a6ebe67a95221d0aef1ed428de58
|
|
4
|
+
data.tar.gz: b7c8cb7ed201f962fe7a0f6ce07625c610f61299
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a271b4a537c2400b452593442b49751ed2eed13c84177e9b18706e7693435ddcdfae5471852f41183854f6283d3f397a419d10b0367f52e1d1bd305f44162c54
|
|
7
|
+
data.tar.gz: cd8b860c39fc1cf362694cc4c496bf1063646836fb0e421aeda141d0bd7c6e38cde0479d4b4820496c283388370a39f8027131ce1f925a3720ae13bf5aeb9973
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1196
|
data/lib/v20180125/client.rb
CHANGED
|
@@ -1397,6 +1397,30 @@ module TencentCloud
|
|
|
1397
1397
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1398
1398
|
end
|
|
1399
1399
|
|
|
1400
|
+
# 获取BotId规则列表1
|
|
1401
|
+
|
|
1402
|
+
# @param request: Request instance for DescribeBotIdRule.
|
|
1403
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotIdRuleRequest`
|
|
1404
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotIdRuleResponse`
|
|
1405
|
+
def DescribeBotIdRule(request)
|
|
1406
|
+
body = send_request('DescribeBotIdRule', request.serialize)
|
|
1407
|
+
response = JSON.parse(body)
|
|
1408
|
+
if response['Response'].key?('Error') == false
|
|
1409
|
+
model = DescribeBotIdRuleResponse.new
|
|
1410
|
+
model.deserialize(response['Response'])
|
|
1411
|
+
model
|
|
1412
|
+
else
|
|
1413
|
+
code = response['Response']['Error']['Code']
|
|
1414
|
+
message = response['Response']['Error']['Message']
|
|
1415
|
+
reqid = response['Response']['RequestId']
|
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1417
|
+
end
|
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1419
|
+
raise e
|
|
1420
|
+
rescue StandardError => e
|
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1400
1424
|
# 获取BOT场景列表与概览
|
|
1401
1425
|
|
|
1402
1426
|
# @param request: Request instance for DescribeBotSceneList.
|
|
@@ -3968,6 +3992,30 @@ module TencentCloud
|
|
|
3968
3992
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3969
3993
|
end
|
|
3970
3994
|
|
|
3995
|
+
# 批量修改防护对象
|
|
3996
|
+
|
|
3997
|
+
# @param request: Request instance for ModifyObjects.
|
|
3998
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyObjectsRequest`
|
|
3999
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyObjectsResponse`
|
|
4000
|
+
def ModifyObjects(request)
|
|
4001
|
+
body = send_request('ModifyObjects', request.serialize)
|
|
4002
|
+
response = JSON.parse(body)
|
|
4003
|
+
if response['Response'].key?('Error') == false
|
|
4004
|
+
model = ModifyObjectsResponse.new
|
|
4005
|
+
model.deserialize(response['Response'])
|
|
4006
|
+
model
|
|
4007
|
+
else
|
|
4008
|
+
code = response['Response']['Error']['Code']
|
|
4009
|
+
message = response['Response']['Error']['Message']
|
|
4010
|
+
reqid = response['Response']['RequestId']
|
|
4011
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4012
|
+
end
|
|
4013
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4014
|
+
raise e
|
|
4015
|
+
rescue StandardError => e
|
|
4016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4017
|
+
end
|
|
4018
|
+
|
|
3971
4019
|
# 更新规则的开关
|
|
3972
4020
|
|
|
3973
4021
|
# @param request: Request instance for ModifyOwaspRuleStatus.
|
data/lib/v20180125/models.rb
CHANGED
|
@@ -77,8 +77,8 @@ module TencentCloud
|
|
|
77
77
|
|
|
78
78
|
attr_accessor :BTime, :Count, :BeginTime
|
|
79
79
|
extend Gem::Deprecate
|
|
80
|
-
deprecate :BTime, :none,
|
|
81
|
-
deprecate :BTime=, :none,
|
|
80
|
+
deprecate :BTime, :none, 2026, 1
|
|
81
|
+
deprecate :BTime=, :none, 2026, 1
|
|
82
82
|
|
|
83
83
|
def initialize(btime=nil, count=nil, begintime=nil)
|
|
84
84
|
@BTime = btime
|
|
@@ -624,8 +624,8 @@ module TencentCloud
|
|
|
624
624
|
|
|
625
625
|
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId, :LogicalOp, :ActionRatio
|
|
626
626
|
extend Gem::Deprecate
|
|
627
|
-
deprecate :Bypass, :none,
|
|
628
|
-
deprecate :Bypass=, :none,
|
|
627
|
+
deprecate :Bypass, :none, 2026, 1
|
|
628
|
+
deprecate :Bypass=, :none, 2026, 1
|
|
629
629
|
|
|
630
630
|
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil, actionratio=nil)
|
|
631
631
|
@Name = name
|
|
@@ -979,16 +979,16 @@ module TencentCloud
|
|
|
979
979
|
|
|
980
980
|
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :HttpsRewrite, :IsHttp2, :ActiveCheck, :CipherTemplate, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :Edition, :Anycast, :Weights, :TLSVersion, :Ciphers, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip
|
|
981
981
|
extend Gem::Deprecate
|
|
982
|
-
deprecate :ResourceId, :none,
|
|
983
|
-
deprecate :ResourceId=, :none,
|
|
984
|
-
deprecate :IsGray, :none,
|
|
985
|
-
deprecate :IsGray=, :none,
|
|
986
|
-
deprecate :GrayAreas, :none,
|
|
987
|
-
deprecate :GrayAreas=, :none,
|
|
988
|
-
deprecate :Edition, :none,
|
|
989
|
-
deprecate :Edition=, :none,
|
|
990
|
-
deprecate :Anycast, :none,
|
|
991
|
-
deprecate :Anycast=, :none,
|
|
982
|
+
deprecate :ResourceId, :none, 2026, 1
|
|
983
|
+
deprecate :ResourceId=, :none, 2026, 1
|
|
984
|
+
deprecate :IsGray, :none, 2026, 1
|
|
985
|
+
deprecate :IsGray=, :none, 2026, 1
|
|
986
|
+
deprecate :GrayAreas, :none, 2026, 1
|
|
987
|
+
deprecate :GrayAreas=, :none, 2026, 1
|
|
988
|
+
deprecate :Edition, :none, 2026, 1
|
|
989
|
+
deprecate :Edition=, :none, 2026, 1
|
|
990
|
+
deprecate :Anycast, :none, 2026, 1
|
|
991
|
+
deprecate :Anycast=, :none, 2026, 1
|
|
992
992
|
|
|
993
993
|
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, httpsrewrite=nil, ishttp2=nil, activecheck=nil, ciphertemplate=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, edition=nil, anycast=nil, weights=nil, tlsversion=nil, ciphers=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil)
|
|
994
994
|
@Domain = domain
|
|
@@ -1955,10 +1955,10 @@ module TencentCloud
|
|
|
1955
1955
|
|
|
1956
1956
|
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList, :CreateTime, :JobType, :CronType, :JobDateTime, :ValidStatus, :GroupIds
|
|
1957
1957
|
extend Gem::Deprecate
|
|
1958
|
-
deprecate :Id, :none,
|
|
1959
|
-
deprecate :Id=, :none,
|
|
1960
|
-
deprecate :Ip, :none,
|
|
1961
|
-
deprecate :Ip=, :none,
|
|
1958
|
+
deprecate :Id, :none, 2026, 1
|
|
1959
|
+
deprecate :Id=, :none, 2026, 1
|
|
1960
|
+
deprecate :Ip, :none, 2026, 1
|
|
1961
|
+
deprecate :Ip=, :none, 2026, 1
|
|
1962
1962
|
|
|
1963
1963
|
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil, createtime=nil, jobtype=nil, crontype=nil, jobdatetime=nil, validstatus=nil, groupids=nil)
|
|
1964
1964
|
@Id = id
|
|
@@ -2132,6 +2132,114 @@ module TencentCloud
|
|
|
2132
2132
|
end
|
|
2133
2133
|
end
|
|
2134
2134
|
|
|
2135
|
+
# BOT-ID规则配置详情
|
|
2136
|
+
class BotIdDetail < TencentCloud::Common::AbstractModel
|
|
2137
|
+
# @param RuleId: 规则ID
|
|
2138
|
+
# @type RuleId: String
|
|
2139
|
+
# @param BotId: 规则名称
|
|
2140
|
+
# @type BotId: String
|
|
2141
|
+
# @param Status: 规则开关
|
|
2142
|
+
# @type Status: Boolean
|
|
2143
|
+
# @param Action: 规则动作
|
|
2144
|
+
# @type Action: String
|
|
2145
|
+
# @param Level: 风险等级
|
|
2146
|
+
# @type Level: Integer
|
|
2147
|
+
# @param BotIdType: 规则类型
|
|
2148
|
+
# @type BotIdType: String
|
|
2149
|
+
# @param ModifyTime: 修改时间
|
|
2150
|
+
# @type ModifyTime: Integer
|
|
2151
|
+
# @param InsertTime: 插入时间
|
|
2152
|
+
# @type InsertTime: Integer
|
|
2153
|
+
# @param Description: 规则描述
|
|
2154
|
+
# @type Description: String
|
|
2155
|
+
# @param Influence: 影响
|
|
2156
|
+
# @type Influence: String
|
|
2157
|
+
# @param Redirect: 重定向路径
|
|
2158
|
+
# @type Redirect: String
|
|
2159
|
+
# @param HasEvent: 是否关联事件
|
|
2160
|
+
# @type HasEvent: Boolean
|
|
2161
|
+
|
|
2162
|
+
attr_accessor :RuleId, :BotId, :Status, :Action, :Level, :BotIdType, :ModifyTime, :InsertTime, :Description, :Influence, :Redirect, :HasEvent
|
|
2163
|
+
|
|
2164
|
+
def initialize(ruleid=nil, botid=nil, status=nil, action=nil, level=nil, botidtype=nil, modifytime=nil, inserttime=nil, description=nil, influence=nil, redirect=nil, hasevent=nil)
|
|
2165
|
+
@RuleId = ruleid
|
|
2166
|
+
@BotId = botid
|
|
2167
|
+
@Status = status
|
|
2168
|
+
@Action = action
|
|
2169
|
+
@Level = level
|
|
2170
|
+
@BotIdType = botidtype
|
|
2171
|
+
@ModifyTime = modifytime
|
|
2172
|
+
@InsertTime = inserttime
|
|
2173
|
+
@Description = description
|
|
2174
|
+
@Influence = influence
|
|
2175
|
+
@Redirect = redirect
|
|
2176
|
+
@HasEvent = hasevent
|
|
2177
|
+
end
|
|
2178
|
+
|
|
2179
|
+
def deserialize(params)
|
|
2180
|
+
@RuleId = params['RuleId']
|
|
2181
|
+
@BotId = params['BotId']
|
|
2182
|
+
@Status = params['Status']
|
|
2183
|
+
@Action = params['Action']
|
|
2184
|
+
@Level = params['Level']
|
|
2185
|
+
@BotIdType = params['BotIdType']
|
|
2186
|
+
@ModifyTime = params['ModifyTime']
|
|
2187
|
+
@InsertTime = params['InsertTime']
|
|
2188
|
+
@Description = params['Description']
|
|
2189
|
+
@Influence = params['Influence']
|
|
2190
|
+
@Redirect = params['Redirect']
|
|
2191
|
+
@HasEvent = params['HasEvent']
|
|
2192
|
+
end
|
|
2193
|
+
end
|
|
2194
|
+
|
|
2195
|
+
# Bot-Id规则统计信息
|
|
2196
|
+
class BotIdStat < TencentCloud::Common::AbstractModel
|
|
2197
|
+
# @param Pattern: 模式:观察/拦截/自定义
|
|
2198
|
+
# @type Pattern: String
|
|
2199
|
+
# @param TotalCount: 规则总数
|
|
2200
|
+
# @type TotalCount: Integer
|
|
2201
|
+
# @param MonitorCount: 配置观察的规则数
|
|
2202
|
+
# @type MonitorCount: Integer
|
|
2203
|
+
# @param InterceptCount: 配置拦截的规则数
|
|
2204
|
+
# @type InterceptCount: Integer
|
|
2205
|
+
# @param RedirectCount: 配置重定向的规则数
|
|
2206
|
+
# @type RedirectCount: Integer
|
|
2207
|
+
# @param CaptchaCount: 配置人机识别的规则数
|
|
2208
|
+
# @type CaptchaCount: Integer
|
|
2209
|
+
# @param ProtectLevel: 全局防护等级
|
|
2210
|
+
# @type ProtectLevel: String
|
|
2211
|
+
# @param GlobalRedirect: 全局重定向路径
|
|
2212
|
+
# @type GlobalRedirect: String
|
|
2213
|
+
# @param JsChallengeCount: JS挑战的数目
|
|
2214
|
+
# @type JsChallengeCount: Integer
|
|
2215
|
+
|
|
2216
|
+
attr_accessor :Pattern, :TotalCount, :MonitorCount, :InterceptCount, :RedirectCount, :CaptchaCount, :ProtectLevel, :GlobalRedirect, :JsChallengeCount
|
|
2217
|
+
|
|
2218
|
+
def initialize(pattern=nil, totalcount=nil, monitorcount=nil, interceptcount=nil, redirectcount=nil, captchacount=nil, protectlevel=nil, globalredirect=nil, jschallengecount=nil)
|
|
2219
|
+
@Pattern = pattern
|
|
2220
|
+
@TotalCount = totalcount
|
|
2221
|
+
@MonitorCount = monitorcount
|
|
2222
|
+
@InterceptCount = interceptcount
|
|
2223
|
+
@RedirectCount = redirectcount
|
|
2224
|
+
@CaptchaCount = captchacount
|
|
2225
|
+
@ProtectLevel = protectlevel
|
|
2226
|
+
@GlobalRedirect = globalredirect
|
|
2227
|
+
@JsChallengeCount = jschallengecount
|
|
2228
|
+
end
|
|
2229
|
+
|
|
2230
|
+
def deserialize(params)
|
|
2231
|
+
@Pattern = params['Pattern']
|
|
2232
|
+
@TotalCount = params['TotalCount']
|
|
2233
|
+
@MonitorCount = params['MonitorCount']
|
|
2234
|
+
@InterceptCount = params['InterceptCount']
|
|
2235
|
+
@RedirectCount = params['RedirectCount']
|
|
2236
|
+
@CaptchaCount = params['CaptchaCount']
|
|
2237
|
+
@ProtectLevel = params['ProtectLevel']
|
|
2238
|
+
@GlobalRedirect = params['GlobalRedirect']
|
|
2239
|
+
@JsChallengeCount = params['JsChallengeCount']
|
|
2240
|
+
end
|
|
2241
|
+
end
|
|
2242
|
+
|
|
2135
2243
|
# BOT安全监测资源信息
|
|
2136
2244
|
class BotMonitorPkg < TencentCloud::Common::AbstractModel
|
|
2137
2245
|
# @param ResourceIds: 资源id
|
|
@@ -3896,8 +4004,8 @@ module TencentCloud
|
|
|
3896
4004
|
|
|
3897
4005
|
attr_accessor :Domain, :IpList, :ActionType, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
|
|
3898
4006
|
extend Gem::Deprecate
|
|
3899
|
-
deprecate :ValidTS, :none,
|
|
3900
|
-
deprecate :ValidTS=, :none,
|
|
4007
|
+
deprecate :ValidTS, :none, 2026, 1
|
|
4008
|
+
deprecate :ValidTS=, :none, 2026, 1
|
|
3901
4009
|
|
|
3902
4010
|
def initialize(domain=nil, iplist=nil, actiontype=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
|
|
3903
4011
|
@Domain = domain
|
|
@@ -5281,8 +5389,8 @@ module TencentCloud
|
|
|
5281
5389
|
|
|
5282
5390
|
attr_accessor :From, :To, :Query, :FieldName, :TopicId, :Sort, :Count
|
|
5283
5391
|
extend Gem::Deprecate
|
|
5284
|
-
deprecate :TopicId, :none,
|
|
5285
|
-
deprecate :TopicId=, :none,
|
|
5392
|
+
deprecate :TopicId, :none, 2026, 1
|
|
5393
|
+
deprecate :TopicId=, :none, 2026, 1
|
|
5286
5394
|
|
|
5287
5395
|
def initialize(from=nil, to=nil, query=nil, fieldname=nil, topicid=nil, sort=nil, count=nil)
|
|
5288
5396
|
@From = from
|
|
@@ -6384,6 +6492,89 @@ module TencentCloud
|
|
|
6384
6492
|
end
|
|
6385
6493
|
end
|
|
6386
6494
|
|
|
6495
|
+
# DescribeBotIdRule请求参数结构体
|
|
6496
|
+
class DescribeBotIdRuleRequest < TencentCloud::Common::AbstractModel
|
|
6497
|
+
# @param Domain: 域名
|
|
6498
|
+
# @type Domain: String
|
|
6499
|
+
# @param SceneId: 场景ID
|
|
6500
|
+
# @type SceneId: String
|
|
6501
|
+
# @param RuleId: 规则ID
|
|
6502
|
+
# @type RuleId: String
|
|
6503
|
+
# @param BotId: 规则名称
|
|
6504
|
+
# @type BotId: String
|
|
6505
|
+
# @param Level: 风险等级筛选
|
|
6506
|
+
# @type Level: Array
|
|
6507
|
+
# @param BotIdType: 规则类型筛选
|
|
6508
|
+
# @type BotIdType: Array
|
|
6509
|
+
# @param Status: 规则开关-用于筛选: 0-全部 1-关闭 2-开启
|
|
6510
|
+
# @type Status: Integer
|
|
6511
|
+
# @param RuleAction: 动作类型-用于筛选
|
|
6512
|
+
# @type RuleAction: Array
|
|
6513
|
+
|
|
6514
|
+
attr_accessor :Domain, :SceneId, :RuleId, :BotId, :Level, :BotIdType, :Status, :RuleAction
|
|
6515
|
+
|
|
6516
|
+
def initialize(domain=nil, sceneid=nil, ruleid=nil, botid=nil, level=nil, botidtype=nil, status=nil, ruleaction=nil)
|
|
6517
|
+
@Domain = domain
|
|
6518
|
+
@SceneId = sceneid
|
|
6519
|
+
@RuleId = ruleid
|
|
6520
|
+
@BotId = botid
|
|
6521
|
+
@Level = level
|
|
6522
|
+
@BotIdType = botidtype
|
|
6523
|
+
@Status = status
|
|
6524
|
+
@RuleAction = ruleaction
|
|
6525
|
+
end
|
|
6526
|
+
|
|
6527
|
+
def deserialize(params)
|
|
6528
|
+
@Domain = params['Domain']
|
|
6529
|
+
@SceneId = params['SceneId']
|
|
6530
|
+
@RuleId = params['RuleId']
|
|
6531
|
+
@BotId = params['BotId']
|
|
6532
|
+
@Level = params['Level']
|
|
6533
|
+
@BotIdType = params['BotIdType']
|
|
6534
|
+
@Status = params['Status']
|
|
6535
|
+
@RuleAction = params['RuleAction']
|
|
6536
|
+
end
|
|
6537
|
+
end
|
|
6538
|
+
|
|
6539
|
+
# DescribeBotIdRule返回参数结构体
|
|
6540
|
+
class DescribeBotIdRuleResponse < TencentCloud::Common::AbstractModel
|
|
6541
|
+
# @param Data: 规则列表
|
|
6542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6543
|
+
# @type Data: Array
|
|
6544
|
+
# @param TotalCount: 符合条件的规则数量
|
|
6545
|
+
# @type TotalCount: Integer
|
|
6546
|
+
# @param StatInfo: Bot规则数量统计信息
|
|
6547
|
+
# @type StatInfo: :class:`Tencentcloud::Waf.v20180125.models.BotIdStat`
|
|
6548
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6549
|
+
# @type RequestId: String
|
|
6550
|
+
|
|
6551
|
+
attr_accessor :Data, :TotalCount, :StatInfo, :RequestId
|
|
6552
|
+
|
|
6553
|
+
def initialize(data=nil, totalcount=nil, statinfo=nil, requestid=nil)
|
|
6554
|
+
@Data = data
|
|
6555
|
+
@TotalCount = totalcount
|
|
6556
|
+
@StatInfo = statinfo
|
|
6557
|
+
@RequestId = requestid
|
|
6558
|
+
end
|
|
6559
|
+
|
|
6560
|
+
def deserialize(params)
|
|
6561
|
+
unless params['Data'].nil?
|
|
6562
|
+
@Data = []
|
|
6563
|
+
params['Data'].each do |i|
|
|
6564
|
+
botiddetail_tmp = BotIdDetail.new
|
|
6565
|
+
botiddetail_tmp.deserialize(i)
|
|
6566
|
+
@Data << botiddetail_tmp
|
|
6567
|
+
end
|
|
6568
|
+
end
|
|
6569
|
+
@TotalCount = params['TotalCount']
|
|
6570
|
+
unless params['StatInfo'].nil?
|
|
6571
|
+
@StatInfo = BotIdStat.new
|
|
6572
|
+
@StatInfo.deserialize(params['StatInfo'])
|
|
6573
|
+
end
|
|
6574
|
+
@RequestId = params['RequestId']
|
|
6575
|
+
end
|
|
6576
|
+
end
|
|
6577
|
+
|
|
6387
6578
|
# DescribeBotSceneList请求参数结构体
|
|
6388
6579
|
class DescribeBotSceneListRequest < TencentCloud::Common::AbstractModel
|
|
6389
6580
|
# @param Domain: 域名
|
|
@@ -8042,10 +8233,10 @@ module TencentCloud
|
|
|
8042
8233
|
|
|
8043
8234
|
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId, :TimerType
|
|
8044
8235
|
extend Gem::Deprecate
|
|
8045
|
-
deprecate :VtsMin, :none,
|
|
8046
|
-
deprecate :VtsMin=, :none,
|
|
8047
|
-
deprecate :VtsMax, :none,
|
|
8048
|
-
deprecate :VtsMax=, :none,
|
|
8236
|
+
deprecate :VtsMin, :none, 2026, 1
|
|
8237
|
+
deprecate :VtsMin=, :none, 2026, 1
|
|
8238
|
+
deprecate :VtsMax, :none, 2026, 1
|
|
8239
|
+
deprecate :VtsMax=, :none, 2026, 1
|
|
8049
8240
|
|
|
8050
8241
|
def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil, timertype=nil)
|
|
8051
8242
|
@Domain = domain
|
|
@@ -8148,10 +8339,10 @@ module TencentCloud
|
|
|
8148
8339
|
|
|
8149
8340
|
attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
|
|
8150
8341
|
extend Gem::Deprecate
|
|
8151
|
-
deprecate :VtsMin, :none,
|
|
8152
|
-
deprecate :VtsMin=, :none,
|
|
8153
|
-
deprecate :VtsMax, :none,
|
|
8154
|
-
deprecate :VtsMax=, :none,
|
|
8342
|
+
deprecate :VtsMin, :none, 2026, 1
|
|
8343
|
+
deprecate :VtsMin=, :none, 2026, 1
|
|
8344
|
+
deprecate :VtsMax, :none, 2026, 1
|
|
8345
|
+
deprecate :VtsMax=, :none, 2026, 1
|
|
8155
8346
|
|
|
8156
8347
|
def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
|
|
8157
8348
|
@Domain = domain
|
|
@@ -10767,8 +10958,8 @@ module TencentCloud
|
|
|
10767
10958
|
|
|
10768
10959
|
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip, :State
|
|
10769
10960
|
extend Gem::Deprecate
|
|
10770
|
-
deprecate :IsGray, :none,
|
|
10771
|
-
deprecate :IsGray=, :none,
|
|
10961
|
+
deprecate :IsGray, :none, 2026, 1
|
|
10962
|
+
deprecate :IsGray=, :none, 2026, 1
|
|
10772
10963
|
|
|
10773
10964
|
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil, state=nil)
|
|
10774
10965
|
@Domain = domain
|
|
@@ -14828,8 +15019,8 @@ module TencentCloud
|
|
|
14828
15019
|
|
|
14829
15020
|
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp, :ActionRatio
|
|
14830
15021
|
extend Gem::Deprecate
|
|
14831
|
-
deprecate :Bypass, :none,
|
|
14832
|
-
deprecate :Bypass=, :none,
|
|
15022
|
+
deprecate :Bypass, :none, 2026, 1
|
|
15023
|
+
deprecate :Bypass=, :none, 2026, 1
|
|
14833
15024
|
|
|
14834
15025
|
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil, logicalop=nil, actionratio=nil)
|
|
14835
15026
|
@Domain = domain
|
|
@@ -15755,8 +15946,8 @@ module TencentCloud
|
|
|
15755
15946
|
|
|
15756
15947
|
attr_accessor :Domain, :IpList, :ActionType, :RuleId, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
|
|
15757
15948
|
extend Gem::Deprecate
|
|
15758
|
-
deprecate :ValidTS, :none,
|
|
15759
|
-
deprecate :ValidTS=, :none,
|
|
15949
|
+
deprecate :ValidTS, :none, 2026, 1
|
|
15950
|
+
deprecate :ValidTS=, :none, 2026, 1
|
|
15760
15951
|
|
|
15761
15952
|
def initialize(domain=nil, iplist=nil, actiontype=nil, ruleid=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
|
|
15762
15953
|
@Domain = domain
|
|
@@ -15930,6 +16121,57 @@ module TencentCloud
|
|
|
15930
16121
|
end
|
|
15931
16122
|
end
|
|
15932
16123
|
|
|
16124
|
+
# ModifyObjects请求参数结构体
|
|
16125
|
+
class ModifyObjectsRequest < TencentCloud::Common::AbstractModel
|
|
16126
|
+
# @param ObjectId: 修改对象标识
|
|
16127
|
+
# @type ObjectId: Array
|
|
16128
|
+
# @param OpType: 改动作类型:InstanceId绑定实例;UnbindInstance解绑实例。
|
|
16129
|
+
# @type OpType: String
|
|
16130
|
+
# @param InstanceId: 新的实例ID,如果和已绑定的实例相同认为修改成功
|
|
16131
|
+
# @type InstanceId: String
|
|
16132
|
+
# @param Objects: 对象列表,仅跨账号接入使用
|
|
16133
|
+
# @type Objects: Array
|
|
16134
|
+
|
|
16135
|
+
attr_accessor :ObjectId, :OpType, :InstanceId, :Objects
|
|
16136
|
+
|
|
16137
|
+
def initialize(objectid=nil, optype=nil, instanceid=nil, objects=nil)
|
|
16138
|
+
@ObjectId = objectid
|
|
16139
|
+
@OpType = optype
|
|
16140
|
+
@InstanceId = instanceid
|
|
16141
|
+
@Objects = objects
|
|
16142
|
+
end
|
|
16143
|
+
|
|
16144
|
+
def deserialize(params)
|
|
16145
|
+
@ObjectId = params['ObjectId']
|
|
16146
|
+
@OpType = params['OpType']
|
|
16147
|
+
@InstanceId = params['InstanceId']
|
|
16148
|
+
unless params['Objects'].nil?
|
|
16149
|
+
@Objects = []
|
|
16150
|
+
params['Objects'].each do |i|
|
|
16151
|
+
object_tmp = Object.new
|
|
16152
|
+
object_tmp.deserialize(i)
|
|
16153
|
+
@Objects << object_tmp
|
|
16154
|
+
end
|
|
16155
|
+
end
|
|
16156
|
+
end
|
|
16157
|
+
end
|
|
16158
|
+
|
|
16159
|
+
# ModifyObjects返回参数结构体
|
|
16160
|
+
class ModifyObjectsResponse < TencentCloud::Common::AbstractModel
|
|
16161
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16162
|
+
# @type RequestId: String
|
|
16163
|
+
|
|
16164
|
+
attr_accessor :RequestId
|
|
16165
|
+
|
|
16166
|
+
def initialize(requestid=nil)
|
|
16167
|
+
@RequestId = requestid
|
|
16168
|
+
end
|
|
16169
|
+
|
|
16170
|
+
def deserialize(params)
|
|
16171
|
+
@RequestId = params['RequestId']
|
|
16172
|
+
end
|
|
16173
|
+
end
|
|
16174
|
+
|
|
15933
16175
|
# ModifyOwaspRuleStatus请求参数结构体
|
|
15934
16176
|
class ModifyOwaspRuleStatusRequest < TencentCloud::Common::AbstractModel
|
|
15935
16177
|
# @param Domain: 域名
|
|
@@ -16419,10 +16661,10 @@ module TencentCloud
|
|
|
16419
16661
|
|
|
16420
16662
|
attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip
|
|
16421
16663
|
extend Gem::Deprecate
|
|
16422
|
-
deprecate :IsGray, :none,
|
|
16423
|
-
deprecate :IsGray=, :none,
|
|
16424
|
-
deprecate :Anycast, :none,
|
|
16425
|
-
deprecate :Anycast=, :none,
|
|
16664
|
+
deprecate :IsGray, :none, 2026, 1
|
|
16665
|
+
deprecate :IsGray=, :none, 2026, 1
|
|
16666
|
+
deprecate :Anycast, :none, 2026, 1
|
|
16667
|
+
deprecate :Anycast=, :none, 2026, 1
|
|
16426
16668
|
|
|
16427
16669
|
def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil)
|
|
16428
16670
|
@Domain = domain
|
|
@@ -16912,6 +17154,34 @@ module TencentCloud
|
|
|
16912
17154
|
end
|
|
16913
17155
|
end
|
|
16914
17156
|
|
|
17157
|
+
# 对象
|
|
17158
|
+
class Object < TencentCloud::Common::AbstractModel
|
|
17159
|
+
# @param ObjectId: 对象id
|
|
17160
|
+
# @type ObjectId: String
|
|
17161
|
+
# @param MemberAppId: 成员appid
|
|
17162
|
+
# @type MemberAppId: Integer
|
|
17163
|
+
# @param MemberUin: 成员uin
|
|
17164
|
+
# @type MemberUin: String
|
|
17165
|
+
# @param MemberNickName: 成员昵称
|
|
17166
|
+
# @type MemberNickName: String
|
|
17167
|
+
|
|
17168
|
+
attr_accessor :ObjectId, :MemberAppId, :MemberUin, :MemberNickName
|
|
17169
|
+
|
|
17170
|
+
def initialize(objectid=nil, memberappid=nil, memberuin=nil, membernickname=nil)
|
|
17171
|
+
@ObjectId = objectid
|
|
17172
|
+
@MemberAppId = memberappid
|
|
17173
|
+
@MemberUin = memberuin
|
|
17174
|
+
@MemberNickName = membernickname
|
|
17175
|
+
end
|
|
17176
|
+
|
|
17177
|
+
def deserialize(params)
|
|
17178
|
+
@ObjectId = params['ObjectId']
|
|
17179
|
+
@MemberAppId = params['MemberAppId']
|
|
17180
|
+
@MemberUin = params['MemberUin']
|
|
17181
|
+
@MemberNickName = params['MemberNickName']
|
|
17182
|
+
end
|
|
17183
|
+
end
|
|
17184
|
+
|
|
16915
17185
|
# Owasp规则
|
|
16916
17186
|
class OwaspRule < TencentCloud::Common::AbstractModel
|
|
16917
17187
|
# @param RuleId: 规则ID
|
|
@@ -18045,10 +18315,10 @@ module TencentCloud
|
|
|
18045
18315
|
|
|
18046
18316
|
attr_accessor :Context, :ListOver, :Analysis, :ColNames, :Results, :AnalysisResults, :RequestId
|
|
18047
18317
|
extend Gem::Deprecate
|
|
18048
|
-
deprecate :ColNames, :none,
|
|
18049
|
-
deprecate :ColNames=, :none,
|
|
18050
|
-
deprecate :AnalysisResults, :none,
|
|
18051
|
-
deprecate :AnalysisResults=, :none,
|
|
18318
|
+
deprecate :ColNames, :none, 2026, 1
|
|
18319
|
+
deprecate :ColNames=, :none, 2026, 1
|
|
18320
|
+
deprecate :AnalysisResults, :none, 2026, 1
|
|
18321
|
+
deprecate :AnalysisResults=, :none, 2026, 1
|
|
18052
18322
|
|
|
18053
18323
|
def initialize(context=nil, listover=nil, analysis=nil, colnames=nil, results=nil, analysisresults=nil, requestid=nil)
|
|
18054
18324
|
@Context = context
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-waf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1196
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|