tencentcloud-sdk-waf 3.0.1042 → 3.0.1043

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efab770f08892fc08ed636972f08f2437e7f9213
4
- data.tar.gz: b23fdb11b489bb721e9e6807d1e49c58c360bea0
3
+ metadata.gz: b09e7402879219786292aa930b0cb3506cf20fe8
4
+ data.tar.gz: 1e1befdfc3546929ec96bd890e7ce5bec21f48c1
5
5
  SHA512:
6
- metadata.gz: 25ce44908dc193b2f985853b8acf77b828899bab6de058aaee7fd7d7c71e3bbe6c126dc3a1d53f60d3560e752a328626f796bfa551af676a7c4a5b8c0271d39d
7
- data.tar.gz: 18c4640cee3638c345a737cdf9fedf62a5ab2b80d341eb560336e85bab68bb88d69c89ac59f9bfde48cdf4104e0b72a264c071c9341694513a8ba6930b78cf72
6
+ metadata.gz: bd3b82fc9907eb970d6e070454cb89b8964c5c84deb6d9d818ad322917bcb567a6bfef0e4c402bbdbc96ef2f46d50ff7511e16a66d9809e2c503694be015def3
7
+ data.tar.gz: 579bad8c66269a6922505b880f8b65da9976291d5fb9fd60576499ccf4b48e000c002ff4521795461229185d3b72ec0acf637c3cfc6ba256807f81b5eeef95fb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1042
1
+ 3.0.1043
@@ -533,6 +533,30 @@ module TencentCloud
533
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
534
  end
535
535
 
536
+ # 场景化后删除Bot的UCB自定义规则
537
+
538
+ # @param request: Request instance for DeleteBotSceneUCBRule.
539
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteBotSceneUCBRuleRequest`
540
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteBotSceneUCBRuleResponse`
541
+ def DeleteBotSceneUCBRule(request)
542
+ body = send_request('DeleteBotSceneUCBRule', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DeleteBotSceneUCBRuleResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
536
560
  # Waf CC V2 Delete接口
537
561
 
538
562
  # @param request: Request instance for DeleteCCRule.
@@ -1133,6 +1157,78 @@ module TencentCloud
1133
1157
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
1158
  end
1135
1159
 
1160
+ # 获取BOT场景列表与概览
1161
+
1162
+ # @param request: Request instance for DescribeBotSceneList.
1163
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneListRequest`
1164
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneListResponse`
1165
+ def DescribeBotSceneList(request)
1166
+ body = send_request('DescribeBotSceneList', request.serialize)
1167
+ response = JSON.parse(body)
1168
+ if response['Response'].key?('Error') == false
1169
+ model = DescribeBotSceneListResponse.new
1170
+ model.deserialize(response['Response'])
1171
+ model
1172
+ else
1173
+ code = response['Response']['Error']['Code']
1174
+ message = response['Response']['Error']['Message']
1175
+ reqid = response['Response']['RequestId']
1176
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1177
+ end
1178
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1179
+ raise e
1180
+ rescue StandardError => e
1181
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
+ end
1183
+
1184
+ # 获取Bot场景全局概览
1185
+
1186
+ # @param request: Request instance for DescribeBotSceneOverview.
1187
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneOverviewRequest`
1188
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneOverviewResponse`
1189
+ def DescribeBotSceneOverview(request)
1190
+ body = send_request('DescribeBotSceneOverview', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = DescribeBotSceneOverviewResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1208
+ # 场景化后Bot获取UCB自定义规则策略
1209
+
1210
+ # @param request: Request instance for DescribeBotSceneUCBRule.
1211
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneUCBRuleRequest`
1212
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneUCBRuleResponse`
1213
+ def DescribeBotSceneUCBRule(request)
1214
+ body = send_request('DescribeBotSceneUCBRule', request.serialize)
1215
+ response = JSON.parse(body)
1216
+ if response['Response'].key?('Error') == false
1217
+ model = DescribeBotSceneUCBRuleResponse.new
1218
+ model.deserialize(response['Response'])
1219
+ model
1220
+ else
1221
+ code = response['Response']['Error']['Code']
1222
+ message = response['Response']['Error']['Message']
1223
+ reqid = response['Response']['RequestId']
1224
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1225
+ end
1226
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1227
+ raise e
1228
+ rescue StandardError => e
1229
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
+ end
1231
+
1136
1232
  # 获取SAAS型接入的紧急CC防护状态
1137
1233
 
1138
1234
  # @param request: Request instance for DescribeCCAutoStatus.
@@ -2791,6 +2887,54 @@ module TencentCloud
2791
2887
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2792
2888
  end
2793
2889
 
2890
+ # bot子场景开关
2891
+
2892
+ # @param request: Request instance for ModifyBotSceneStatus.
2893
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneStatusRequest`
2894
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneStatusResponse`
2895
+ def ModifyBotSceneStatus(request)
2896
+ body = send_request('ModifyBotSceneStatus', request.serialize)
2897
+ response = JSON.parse(body)
2898
+ if response['Response'].key?('Error') == false
2899
+ model = ModifyBotSceneStatusResponse.new
2900
+ model.deserialize(response['Response'])
2901
+ model
2902
+ else
2903
+ code = response['Response']['Error']['Code']
2904
+ message = response['Response']['Error']['Message']
2905
+ reqid = response['Response']['RequestId']
2906
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2907
+ end
2908
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2909
+ raise e
2910
+ rescue StandardError => e
2911
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2912
+ end
2913
+
2914
+ # 【接口复用】场景化后更新Bot的UCB自定义规则,两个调用位置:1.BOT全局白名单 2.BOT场景配置
2915
+
2916
+ # @param request: Request instance for ModifyBotSceneUCBRule.
2917
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneUCBRuleRequest`
2918
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneUCBRuleResponse`
2919
+ def ModifyBotSceneUCBRule(request)
2920
+ body = send_request('ModifyBotSceneUCBRule', request.serialize)
2921
+ response = JSON.parse(body)
2922
+ if response['Response'].key?('Error') == false
2923
+ model = ModifyBotSceneUCBRuleResponse.new
2924
+ model.deserialize(response['Response'])
2925
+ model
2926
+ else
2927
+ code = response['Response']['Error']['Code']
2928
+ message = response['Response']['Error']['Message']
2929
+ reqid = response['Response']['RequestId']
2930
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2931
+ end
2932
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2933
+ raise e
2934
+ rescue StandardError => e
2935
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2936
+ end
2937
+
2794
2938
  # Bot_V2 bot总开关更新
2795
2939
 
2796
2940
  # @param request: Request instance for ModifyBotStatus.
@@ -1642,6 +1642,38 @@ module TencentCloud
1642
1642
  end
1643
1643
  end
1644
1644
 
1645
+ # 动作策略的匹配规则实体
1646
+ class BotActionScopeRuleEntry < TencentCloud::Common::AbstractModel
1647
+ # @param Key: 参数
1648
+ # @type Key: String
1649
+ # @param Op: 匹配符
1650
+ # @type Op: String
1651
+ # @param Value: 参数值
1652
+ # @type Value: String
1653
+ # @param Name: 对于头部字段匹配value的时候指定的头部名
1654
+ # @type Name: String
1655
+ # @param ValueArray: 470后使用此字段存储多值
1656
+ # @type ValueArray: Array
1657
+
1658
+ attr_accessor :Key, :Op, :Value, :Name, :ValueArray
1659
+
1660
+ def initialize(key=nil, op=nil, value=nil, name=nil, valuearray=nil)
1661
+ @Key = key
1662
+ @Op = op
1663
+ @Value = value
1664
+ @Name = name
1665
+ @ValueArray = valuearray
1666
+ end
1667
+
1668
+ def deserialize(params)
1669
+ @Key = params['Key']
1670
+ @Op = params['Op']
1671
+ @Value = params['Value']
1672
+ @Name = params['Name']
1673
+ @ValueArray = params['ValueArray']
1674
+ end
1675
+ end
1676
+
1645
1677
  # Bot资源信息
1646
1678
  class BotPkg < TencentCloud::Common::AbstractModel
1647
1679
  # @param ResourceIds: 资源id
@@ -1738,6 +1770,301 @@ module TencentCloud
1738
1770
  end
1739
1771
  end
1740
1772
 
1773
+ # 获取场景动作策略列表时的动作策略实体
1774
+ class BotSceneActionRule < TencentCloud::Common::AbstractModel
1775
+ # @param RuleId: 动作策略ID
1776
+ # @type RuleId: String
1777
+ # @param RuleName: 动作策略名称
1778
+ # @type RuleName: String
1779
+ # @param Priority: 策略优先级
1780
+ # @type Priority: Integer
1781
+ # @param Status: 策略生效状态
1782
+ # @type Status: Boolean
1783
+ # @param Score: 分数范围
1784
+ # @type Score: Array
1785
+ # @param Level: 100-宽松、200-中等、300-严格、0-自定义
1786
+ # @type Level: String
1787
+ # @param Scope: 生效范围,为空表示全部范围
1788
+ # @type Scope: Array
1789
+ # @param Type: default:默认创建 custom:自定义创建
1790
+ # @type Type: String
1791
+ # @param ScopeType: 匹配范围类型:全局匹配 or 自定义匹配范围
1792
+ # @type ScopeType: String
1793
+ # @param ActionMatchType: 匹配条件间的与或关系
1794
+ # @type ActionMatchType: String
1795
+
1796
+ attr_accessor :RuleId, :RuleName, :Priority, :Status, :Score, :Level, :Scope, :Type, :ScopeType, :ActionMatchType
1797
+
1798
+ def initialize(ruleid=nil, rulename=nil, priority=nil, status=nil, score=nil, level=nil, scope=nil, type=nil, scopetype=nil, actionmatchtype=nil)
1799
+ @RuleId = ruleid
1800
+ @RuleName = rulename
1801
+ @Priority = priority
1802
+ @Status = status
1803
+ @Score = score
1804
+ @Level = level
1805
+ @Scope = scope
1806
+ @Type = type
1807
+ @ScopeType = scopetype
1808
+ @ActionMatchType = actionmatchtype
1809
+ end
1810
+
1811
+ def deserialize(params)
1812
+ @RuleId = params['RuleId']
1813
+ @RuleName = params['RuleName']
1814
+ @Priority = params['Priority']
1815
+ @Status = params['Status']
1816
+ unless params['Score'].nil?
1817
+ @Score = []
1818
+ params['Score'].each do |i|
1819
+ botscoreruleentry_tmp = BotScoreRuleEntry.new
1820
+ botscoreruleentry_tmp.deserialize(i)
1821
+ @Score << botscoreruleentry_tmp
1822
+ end
1823
+ end
1824
+ @Level = params['Level']
1825
+ unless params['Scope'].nil?
1826
+ @Scope = []
1827
+ params['Scope'].each do |i|
1828
+ botactionscoperuleentry_tmp = BotActionScopeRuleEntry.new
1829
+ botactionscoperuleentry_tmp.deserialize(i)
1830
+ @Scope << botactionscoperuleentry_tmp
1831
+ end
1832
+ end
1833
+ @Type = params['Type']
1834
+ @ScopeType = params['ScopeType']
1835
+ @ActionMatchType = params['ActionMatchType']
1836
+ end
1837
+ end
1838
+
1839
+ # 场景的详细配置信息
1840
+ class BotSceneInfo < TencentCloud::Common::AbstractModel
1841
+ # @param SceneId: 场景ID
1842
+ # @type SceneId: String
1843
+ # @param Type: 场景类型,default:默认场景,custom:非默认场景
1844
+ # @type Type: String
1845
+ # @param SceneName: 场景名
1846
+ # @type SceneName: String
1847
+ # @param UpdateTime: 更新时间
1848
+ # @type UpdateTime: Integer
1849
+ # @param BusinessType: 场景模板类型,登录: login 秒杀:seckill 爬内容:crawl 自定义: custom
1850
+ # @type BusinessType: Array
1851
+ # @param ClientType: 客户端类型,浏览器/H5 : browser 小程序: miniApp App:
1852
+ # @type ClientType: Array
1853
+ # @param Priority: 优先级
1854
+ # @type Priority: Integer
1855
+ # @param MatchCondition: 匹配范围
1856
+ # @type MatchCondition: Array
1857
+ # @param SceneStatus: 场景开关
1858
+ # @type SceneStatus: Boolean
1859
+ # @param JsInjectStatus: 前端对抗开关
1860
+ # @type JsInjectStatus: Boolean
1861
+ # @param AIStatus: AI开关
1862
+ # @type AIStatus: Boolean
1863
+ # @param TIStatus: TI开关
1864
+ # @type TIStatus: Boolean
1865
+ # @param StatisticStatus: 智能统计开关
1866
+ # @type StatisticStatus: Boolean
1867
+ # @param ActionRuleCount: 动作策略数量
1868
+ # @type ActionRuleCount: Integer
1869
+ # @param UCBCount: 自定义规则数量
1870
+ # @type UCBCount: Integer
1871
+ # @param MatchType: 场景的匹配范围,global-全部匹配 custom-自定义匹配范围
1872
+ # @type MatchType: String
1873
+ # @param ActionMatchType: 匹配条件间的与或关系
1874
+ # @type ActionMatchType: String
1875
+ # @param UAStatus: UA模块开关
1876
+ # @type UAStatus: Boolean
1877
+ # @param JsInjectRuleId: 简易模式场景:前端对抗对应mysql的记录id
1878
+ # @type JsInjectRuleId: Integer
1879
+ # @param JsInjectAction: 简易模式场景:前端对抗配置动作
1880
+ # @type JsInjectAction: Integer
1881
+ # @param JsInjectRedirect: 简易模式场景:前端对抗重定向路径
1882
+ # @type JsInjectRedirect: String
1883
+ # @param ActionRuleList: 简易模式场景:动作策略信息 PS:简易模式只有一个动作策略
1884
+ # @type ActionRuleList: Array
1885
+ # @param BotIdPattern: 简易模式场景:monitor-观察 intercept-拦截 custom-自定义
1886
+ # @type BotIdPattern: String
1887
+ # @param BotIdCount: 简易模式场景:bot_id规则总数
1888
+ # @type BotIdCount: Integer
1889
+ # @param BotIdMonitorCount: 简易模式场景:观察动作的规则总数
1890
+ # @type BotIdMonitorCount: Integer
1891
+ # @param BotIdInterceptCount: 简易模式场景:拦截动作的规则总数
1892
+ # @type BotIdInterceptCount: Integer
1893
+ # @param RuleSetSelection: 创建场景时选择的规则集
1894
+ # @type RuleSetSelection: Array
1895
+ # @param TokenList: 改场景的bot token列表
1896
+ # @type TokenList: Array
1897
+ # @param BotIdRedirectCount: 简易模式场景:重定向动作的规则总数
1898
+ # @type BotIdRedirectCount: Integer
1899
+ # @param BotIdCaptchaCount: 简易模式场景:人机识别动作的规则总数
1900
+ # @type BotIdCaptchaCount: Integer
1901
+ # @param BotIdProtectLevel: 简易模式场景:防护等级
1902
+ # @type BotIdProtectLevel: String
1903
+ # @param BotIdGlobalRedirect: 简易模式场景:全局重定向路径
1904
+ # @type BotIdGlobalRedirect: String
1905
+ # @param BotIdJsChallengeCount: 简易模式场景:JS校验动作的规则总数
1906
+ # @type BotIdJsChallengeCount: Integer
1907
+
1908
+ attr_accessor :SceneId, :Type, :SceneName, :UpdateTime, :BusinessType, :ClientType, :Priority, :MatchCondition, :SceneStatus, :JsInjectStatus, :AIStatus, :TIStatus, :StatisticStatus, :ActionRuleCount, :UCBCount, :MatchType, :ActionMatchType, :UAStatus, :JsInjectRuleId, :JsInjectAction, :JsInjectRedirect, :ActionRuleList, :BotIdPattern, :BotIdCount, :BotIdMonitorCount, :BotIdInterceptCount, :RuleSetSelection, :TokenList, :BotIdRedirectCount, :BotIdCaptchaCount, :BotIdProtectLevel, :BotIdGlobalRedirect, :BotIdJsChallengeCount
1909
+
1910
+ def initialize(sceneid=nil, type=nil, scenename=nil, updatetime=nil, businesstype=nil, clienttype=nil, priority=nil, matchcondition=nil, scenestatus=nil, jsinjectstatus=nil, aistatus=nil, tistatus=nil, statisticstatus=nil, actionrulecount=nil, ucbcount=nil, matchtype=nil, actionmatchtype=nil, uastatus=nil, jsinjectruleid=nil, jsinjectaction=nil, jsinjectredirect=nil, actionrulelist=nil, botidpattern=nil, botidcount=nil, botidmonitorcount=nil, botidinterceptcount=nil, rulesetselection=nil, tokenlist=nil, botidredirectcount=nil, botidcaptchacount=nil, botidprotectlevel=nil, botidglobalredirect=nil, botidjschallengecount=nil)
1911
+ @SceneId = sceneid
1912
+ @Type = type
1913
+ @SceneName = scenename
1914
+ @UpdateTime = updatetime
1915
+ @BusinessType = businesstype
1916
+ @ClientType = clienttype
1917
+ @Priority = priority
1918
+ @MatchCondition = matchcondition
1919
+ @SceneStatus = scenestatus
1920
+ @JsInjectStatus = jsinjectstatus
1921
+ @AIStatus = aistatus
1922
+ @TIStatus = tistatus
1923
+ @StatisticStatus = statisticstatus
1924
+ @ActionRuleCount = actionrulecount
1925
+ @UCBCount = ucbcount
1926
+ @MatchType = matchtype
1927
+ @ActionMatchType = actionmatchtype
1928
+ @UAStatus = uastatus
1929
+ @JsInjectRuleId = jsinjectruleid
1930
+ @JsInjectAction = jsinjectaction
1931
+ @JsInjectRedirect = jsinjectredirect
1932
+ @ActionRuleList = actionrulelist
1933
+ @BotIdPattern = botidpattern
1934
+ @BotIdCount = botidcount
1935
+ @BotIdMonitorCount = botidmonitorcount
1936
+ @BotIdInterceptCount = botidinterceptcount
1937
+ @RuleSetSelection = rulesetselection
1938
+ @TokenList = tokenlist
1939
+ @BotIdRedirectCount = botidredirectcount
1940
+ @BotIdCaptchaCount = botidcaptchacount
1941
+ @BotIdProtectLevel = botidprotectlevel
1942
+ @BotIdGlobalRedirect = botidglobalredirect
1943
+ @BotIdJsChallengeCount = botidjschallengecount
1944
+ end
1945
+
1946
+ def deserialize(params)
1947
+ @SceneId = params['SceneId']
1948
+ @Type = params['Type']
1949
+ @SceneName = params['SceneName']
1950
+ @UpdateTime = params['UpdateTime']
1951
+ @BusinessType = params['BusinessType']
1952
+ @ClientType = params['ClientType']
1953
+ @Priority = params['Priority']
1954
+ unless params['MatchCondition'].nil?
1955
+ @MatchCondition = []
1956
+ params['MatchCondition'].each do |i|
1957
+ botscenematchcondition_tmp = BotSceneMatchCondition.new
1958
+ botscenematchcondition_tmp.deserialize(i)
1959
+ @MatchCondition << botscenematchcondition_tmp
1960
+ end
1961
+ end
1962
+ @SceneStatus = params['SceneStatus']
1963
+ @JsInjectStatus = params['JsInjectStatus']
1964
+ @AIStatus = params['AIStatus']
1965
+ @TIStatus = params['TIStatus']
1966
+ @StatisticStatus = params['StatisticStatus']
1967
+ @ActionRuleCount = params['ActionRuleCount']
1968
+ @UCBCount = params['UCBCount']
1969
+ @MatchType = params['MatchType']
1970
+ @ActionMatchType = params['ActionMatchType']
1971
+ @UAStatus = params['UAStatus']
1972
+ @JsInjectRuleId = params['JsInjectRuleId']
1973
+ @JsInjectAction = params['JsInjectAction']
1974
+ @JsInjectRedirect = params['JsInjectRedirect']
1975
+ unless params['ActionRuleList'].nil?
1976
+ @ActionRuleList = []
1977
+ params['ActionRuleList'].each do |i|
1978
+ botsceneactionrule_tmp = BotSceneActionRule.new
1979
+ botsceneactionrule_tmp.deserialize(i)
1980
+ @ActionRuleList << botsceneactionrule_tmp
1981
+ end
1982
+ end
1983
+ @BotIdPattern = params['BotIdPattern']
1984
+ @BotIdCount = params['BotIdCount']
1985
+ @BotIdMonitorCount = params['BotIdMonitorCount']
1986
+ @BotIdInterceptCount = params['BotIdInterceptCount']
1987
+ @RuleSetSelection = params['RuleSetSelection']
1988
+ unless params['TokenList'].nil?
1989
+ @TokenList = []
1990
+ params['TokenList'].each do |i|
1991
+ bottoken_tmp = BotToken.new
1992
+ bottoken_tmp.deserialize(i)
1993
+ @TokenList << bottoken_tmp
1994
+ end
1995
+ end
1996
+ @BotIdRedirectCount = params['BotIdRedirectCount']
1997
+ @BotIdCaptchaCount = params['BotIdCaptchaCount']
1998
+ @BotIdProtectLevel = params['BotIdProtectLevel']
1999
+ @BotIdGlobalRedirect = params['BotIdGlobalRedirect']
2000
+ @BotIdJsChallengeCount = params['BotIdJsChallengeCount']
2001
+ end
2002
+ end
2003
+
2004
+ # 场景匹配条件
2005
+ class BotSceneMatchCondition < TencentCloud::Common::AbstractModel
2006
+ # @param Key: 匹配参数
2007
+ # @type Key: String
2008
+ # @param Op: 匹配符
2009
+ # @type Op: String
2010
+ # @param Value: 匹配值
2011
+ # @type Value: String
2012
+ # @param Name: 对于头部字段匹配value的时候指定的头部名
2013
+ # @type Name: String
2014
+ # @param ValueArray: 470后使用此入参存在多值
2015
+ # @type ValueArray: Array
2016
+
2017
+ attr_accessor :Key, :Op, :Value, :Name, :ValueArray
2018
+
2019
+ def initialize(key=nil, op=nil, value=nil, name=nil, valuearray=nil)
2020
+ @Key = key
2021
+ @Op = op
2022
+ @Value = value
2023
+ @Name = name
2024
+ @ValueArray = valuearray
2025
+ end
2026
+
2027
+ def deserialize(params)
2028
+ @Key = params['Key']
2029
+ @Op = params['Op']
2030
+ @Value = params['Value']
2031
+ @Name = params['Name']
2032
+ @ValueArray = params['ValueArray']
2033
+ end
2034
+ end
2035
+
2036
+ # 动作策略的一条分数段实体
2037
+ class BotScoreRuleEntry < TencentCloud::Common::AbstractModel
2038
+ # @param Upper: 分数区间上限
2039
+ # @type Upper: String
2040
+ # @param Lower: 分数区间下限
2041
+ # @type Lower: String
2042
+ # @param Action: 处置动作
2043
+ # @type Action: String
2044
+ # @param Label: 流量标签
2045
+ # @type Label: String
2046
+ # @param Redirect: 重定向
2047
+ # @type Redirect: String
2048
+
2049
+ attr_accessor :Upper, :Lower, :Action, :Label, :Redirect
2050
+
2051
+ def initialize(upper=nil, lower=nil, action=nil, label=nil, redirect=nil)
2052
+ @Upper = upper
2053
+ @Lower = lower
2054
+ @Action = action
2055
+ @Label = label
2056
+ @Redirect = redirect
2057
+ end
2058
+
2059
+ def deserialize(params)
2060
+ @Upper = params['Upper']
2061
+ @Lower = params['Lower']
2062
+ @Action = params['Action']
2063
+ @Label = params['Label']
2064
+ @Redirect = params['Redirect']
2065
+ end
2066
+ end
2067
+
1741
2068
  # bot的趋势图对象
1742
2069
  class BotStatPointItem < TencentCloud::Common::AbstractModel
1743
2070
  # @param TimeStamp: 横坐标
@@ -1766,6 +2093,58 @@ module TencentCloud
1766
2093
  end
1767
2094
  end
1768
2095
 
2096
+ # bot-token配置
2097
+ class BotToken < TencentCloud::Common::AbstractModel
2098
+ # @param Name: 会话名称
2099
+ # @type Name: String
2100
+ # @param Description: 会话描述
2101
+ # @type Description: String
2102
+ # @param Id: 会话id
2103
+ # @type Id: String
2104
+ # @param Status: 策略的开关状态
2105
+ # @type Status: Boolean
2106
+ # @param Location: 会话位置
2107
+ # @type Location: String
2108
+ # @param Key: 会话key
2109
+ # @type Key: String
2110
+ # @param Operator: 会话匹配方式,前缀匹配、后缀匹配等
2111
+ # @type Operator: String
2112
+ # @param Timestamp: 会话更新的时间戳
2113
+ # @type Timestamp: Integer
2114
+ # @param Scene: 场景列表,内容为空表示全部场景应用
2115
+ # @type Scene: Array
2116
+ # @param Priority: 优先级
2117
+ # @type Priority: Integer
2118
+
2119
+ attr_accessor :Name, :Description, :Id, :Status, :Location, :Key, :Operator, :Timestamp, :Scene, :Priority
2120
+
2121
+ def initialize(name=nil, description=nil, id=nil, status=nil, location=nil, key=nil, operator=nil, timestamp=nil, scene=nil, priority=nil)
2122
+ @Name = name
2123
+ @Description = description
2124
+ @Id = id
2125
+ @Status = status
2126
+ @Location = location
2127
+ @Key = key
2128
+ @Operator = operator
2129
+ @Timestamp = timestamp
2130
+ @Scene = scene
2131
+ @Priority = priority
2132
+ end
2133
+
2134
+ def deserialize(params)
2135
+ @Name = params['Name']
2136
+ @Description = params['Description']
2137
+ @Id = params['Id']
2138
+ @Status = params['Status']
2139
+ @Location = params['Location']
2140
+ @Key = params['Key']
2141
+ @Operator = params['Operator']
2142
+ @Timestamp = params['Timestamp']
2143
+ @Scene = params['Scene']
2144
+ @Priority = params['Priority']
2145
+ end
2146
+ end
2147
+
1769
2148
  # 数据封装
1770
2149
  class CCRuleData < TencentCloud::Common::AbstractModel
1771
2150
  # @param Res: cc规则
@@ -3067,6 +3446,51 @@ module TencentCloud
3067
3446
  end
3068
3447
  end
3069
3448
 
3449
+ # DeleteBotSceneUCBRule请求参数结构体
3450
+ class DeleteBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
3451
+ # @param Domain: 域名
3452
+ # @type Domain: String
3453
+ # @param RuleId: 自定义规则ID
3454
+ # @type RuleId: String
3455
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置时,传具体的场景ID
3456
+ # @type SceneId: String
3457
+
3458
+ attr_accessor :Domain, :RuleId, :SceneId
3459
+
3460
+ def initialize(domain=nil, ruleid=nil, sceneid=nil)
3461
+ @Domain = domain
3462
+ @RuleId = ruleid
3463
+ @SceneId = sceneid
3464
+ end
3465
+
3466
+ def deserialize(params)
3467
+ @Domain = params['Domain']
3468
+ @RuleId = params['RuleId']
3469
+ @SceneId = params['SceneId']
3470
+ end
3471
+ end
3472
+
3473
+ # DeleteBotSceneUCBRule返回参数结构体
3474
+ class DeleteBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
3475
+ # @param Data: 正常情况下为null
3476
+ # 注意:此字段可能返回 null,表示取不到有效值。
3477
+ # @type Data: String
3478
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3479
+ # @type RequestId: String
3480
+
3481
+ attr_accessor :Data, :RequestId
3482
+
3483
+ def initialize(data=nil, requestid=nil)
3484
+ @Data = data
3485
+ @RequestId = requestid
3486
+ end
3487
+
3488
+ def deserialize(params)
3489
+ @Data = params['Data']
3490
+ @RequestId = params['RequestId']
3491
+ end
3492
+ end
3493
+
3070
3494
  # DeleteCCRule请求参数结构体
3071
3495
  class DeleteCCRuleRequest < TencentCloud::Common::AbstractModel
3072
3496
  # @param Domain: 域名
@@ -4679,6 +5103,240 @@ module TencentCloud
4679
5103
  end
4680
5104
  end
4681
5105
 
5106
+ # DescribeBotSceneList请求参数结构体
5107
+ class DescribeBotSceneListRequest < TencentCloud::Common::AbstractModel
5108
+ # @param Domain: 域名
5109
+ # @type Domain: String
5110
+ # @param Limit: 每页数量
5111
+ # @type Limit: Integer
5112
+ # @param Offset: 页码
5113
+ # @type Offset: Integer
5114
+ # @param BusinessType: 场景模板类型,通过此下拉字段进行场景筛选。全部: all 登录: login 秒杀:seckill 爬内容:crawl 自定义: custom
5115
+ # @type BusinessType: Array
5116
+ # @param SceneName: 通过场景名称模糊搜索
5117
+ # @type SceneName: String
5118
+ # @param IsDefault: 是否只显示默认场景
5119
+ # @type IsDefault: Boolean
5120
+ # @param IsValid: 是否仅显示生效场景
5121
+ # @type IsValid: Boolean
5122
+
5123
+ attr_accessor :Domain, :Limit, :Offset, :BusinessType, :SceneName, :IsDefault, :IsValid
5124
+
5125
+ def initialize(domain=nil, limit=nil, offset=nil, businesstype=nil, scenename=nil, isdefault=nil, isvalid=nil)
5126
+ @Domain = domain
5127
+ @Limit = limit
5128
+ @Offset = offset
5129
+ @BusinessType = businesstype
5130
+ @SceneName = scenename
5131
+ @IsDefault = isdefault
5132
+ @IsValid = isvalid
5133
+ end
5134
+
5135
+ def deserialize(params)
5136
+ @Domain = params['Domain']
5137
+ @Limit = params['Limit']
5138
+ @Offset = params['Offset']
5139
+ @BusinessType = params['BusinessType']
5140
+ @SceneName = params['SceneName']
5141
+ @IsDefault = params['IsDefault']
5142
+ @IsValid = params['IsValid']
5143
+ end
5144
+ end
5145
+
5146
+ # DescribeBotSceneList返回参数结构体
5147
+ class DescribeBotSceneListResponse < TencentCloud::Common::AbstractModel
5148
+ # @param TotalCount: 符合筛选条件的场景数目
5149
+ # @type TotalCount: Integer
5150
+ # @param BotSceneList: 当TotalCount为0时,返回空
5151
+ # @type BotSceneList: Array
5152
+ # @param SimpleFlag: true-简易模式
5153
+ # @type SimpleFlag: Boolean
5154
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5155
+ # @type RequestId: String
5156
+
5157
+ attr_accessor :TotalCount, :BotSceneList, :SimpleFlag, :RequestId
5158
+
5159
+ def initialize(totalcount=nil, botscenelist=nil, simpleflag=nil, requestid=nil)
5160
+ @TotalCount = totalcount
5161
+ @BotSceneList = botscenelist
5162
+ @SimpleFlag = simpleflag
5163
+ @RequestId = requestid
5164
+ end
5165
+
5166
+ def deserialize(params)
5167
+ @TotalCount = params['TotalCount']
5168
+ unless params['BotSceneList'].nil?
5169
+ @BotSceneList = []
5170
+ params['BotSceneList'].each do |i|
5171
+ botsceneinfo_tmp = BotSceneInfo.new
5172
+ botsceneinfo_tmp.deserialize(i)
5173
+ @BotSceneList << botsceneinfo_tmp
5174
+ end
5175
+ end
5176
+ @SimpleFlag = params['SimpleFlag']
5177
+ @RequestId = params['RequestId']
5178
+ end
5179
+ end
5180
+
5181
+ # DescribeBotSceneOverview请求参数结构体
5182
+ class DescribeBotSceneOverviewRequest < TencentCloud::Common::AbstractModel
5183
+ # @param Domain: 域名
5184
+ # @type Domain: String
5185
+
5186
+ attr_accessor :Domain
5187
+
5188
+ def initialize(domain=nil)
5189
+ @Domain = domain
5190
+ end
5191
+
5192
+ def deserialize(params)
5193
+ @Domain = params['Domain']
5194
+ end
5195
+ end
5196
+
5197
+ # DescribeBotSceneOverview返回参数结构体
5198
+ class DescribeBotSceneOverviewResponse < TencentCloud::Common::AbstractModel
5199
+ # @param Status: BOT总开关
5200
+ # @type Status: Boolean
5201
+ # @param SceneCount: 场景总数
5202
+ # @type SceneCount: Integer
5203
+ # @param ValidSceneCount: 生效场景数
5204
+ # @type ValidSceneCount: Integer
5205
+ # @param CurrentGlobalScene: 当前开启的、匹配范围为全局、优先级最高的场景
5206
+ # 注意:此字段可能返回 null,表示取不到有效值。
5207
+ # @type CurrentGlobalScene: :class:`Tencentcloud::Waf.v20180125.models.GlobalSceneInfo`
5208
+ # @param CustomRuleNums: 自定义规则总数,不包括BOT白名单
5209
+ # @type CustomRuleNums: Integer
5210
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5211
+ # @type RequestId: String
5212
+
5213
+ attr_accessor :Status, :SceneCount, :ValidSceneCount, :CurrentGlobalScene, :CustomRuleNums, :RequestId
5214
+
5215
+ def initialize(status=nil, scenecount=nil, validscenecount=nil, currentglobalscene=nil, customrulenums=nil, requestid=nil)
5216
+ @Status = status
5217
+ @SceneCount = scenecount
5218
+ @ValidSceneCount = validscenecount
5219
+ @CurrentGlobalScene = currentglobalscene
5220
+ @CustomRuleNums = customrulenums
5221
+ @RequestId = requestid
5222
+ end
5223
+
5224
+ def deserialize(params)
5225
+ @Status = params['Status']
5226
+ @SceneCount = params['SceneCount']
5227
+ @ValidSceneCount = params['ValidSceneCount']
5228
+ unless params['CurrentGlobalScene'].nil?
5229
+ @CurrentGlobalScene = GlobalSceneInfo.new
5230
+ @CurrentGlobalScene.deserialize(params['CurrentGlobalScene'])
5231
+ end
5232
+ @CustomRuleNums = params['CustomRuleNums']
5233
+ @RequestId = params['RequestId']
5234
+ end
5235
+ end
5236
+
5237
+ # DescribeBotSceneUCBRule请求参数结构体
5238
+ class DescribeBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
5239
+ # @param Domain: 域名
5240
+ # @type Domain: String
5241
+ # @param Skip: 翻页组件的起始页
5242
+ # @type Skip: Integer
5243
+ # @param Limit: 翻页组件的页数据条数
5244
+ # @type Limit: Integer
5245
+ # @param Sort: 排序参数
5246
+ # @type Sort: String
5247
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置处调用时,传具体的场景ID
5248
+ # @type SceneId: String
5249
+ # @param Operate: 需要过滤的动作
5250
+ # @type Operate: String
5251
+ # @param Name: 需要过滤的规则名称
5252
+ # @type Name: String
5253
+ # @param VersionFlag: 兼容老数据和新旧版前端
5254
+ # @type VersionFlag: String
5255
+ # @param TimerType: 生效方式:0-全部 1-永久生效 2-定时生效 3-周粒度生效 4-月粒度生效
5256
+ # @type TimerType: Integer
5257
+ # @param ValidStatus: 0-全部 1-生效中 2-已过期
5258
+ # @type ValidStatus: Integer
5259
+
5260
+ attr_accessor :Domain, :Skip, :Limit, :Sort, :SceneId, :Operate, :Name, :VersionFlag, :TimerType, :ValidStatus
5261
+
5262
+ def initialize(domain=nil, skip=nil, limit=nil, sort=nil, sceneid=nil, operate=nil, name=nil, versionflag=nil, timertype=nil, validstatus=nil)
5263
+ @Domain = domain
5264
+ @Skip = skip
5265
+ @Limit = limit
5266
+ @Sort = sort
5267
+ @SceneId = sceneid
5268
+ @Operate = operate
5269
+ @Name = name
5270
+ @VersionFlag = versionflag
5271
+ @TimerType = timertype
5272
+ @ValidStatus = validstatus
5273
+ end
5274
+
5275
+ def deserialize(params)
5276
+ @Domain = params['Domain']
5277
+ @Skip = params['Skip']
5278
+ @Limit = params['Limit']
5279
+ @Sort = params['Sort']
5280
+ @SceneId = params['SceneId']
5281
+ @Operate = params['Operate']
5282
+ @Name = params['Name']
5283
+ @VersionFlag = params['VersionFlag']
5284
+ @TimerType = params['TimerType']
5285
+ @ValidStatus = params['ValidStatus']
5286
+ end
5287
+ end
5288
+
5289
+ # DescribeBotSceneUCBRule返回参数结构体
5290
+ class DescribeBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
5291
+ # @param Data: 返回数据包
5292
+ # 注意:此字段可能返回 null,表示取不到有效值。
5293
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.DescribeBotUCBRuleRsp`
5294
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5295
+ # @type RequestId: String
5296
+
5297
+ attr_accessor :Data, :RequestId
5298
+
5299
+ def initialize(data=nil, requestid=nil)
5300
+ @Data = data
5301
+ @RequestId = requestid
5302
+ end
5303
+
5304
+ def deserialize(params)
5305
+ unless params['Data'].nil?
5306
+ @Data = DescribeBotUCBRuleRsp.new
5307
+ @Data.deserialize(params['Data'])
5308
+ end
5309
+ @RequestId = params['RequestId']
5310
+ end
5311
+ end
5312
+
5313
+ # 获取自定义规则列表时的出参
5314
+ class DescribeBotUCBRuleRsp < TencentCloud::Common::AbstractModel
5315
+ # @param Res: 规则列表
5316
+ # @type Res: Array
5317
+ # @param TotalCount: 规则总数
5318
+ # @type TotalCount: Integer
5319
+
5320
+ attr_accessor :Res, :TotalCount
5321
+
5322
+ def initialize(res=nil, totalcount=nil)
5323
+ @Res = res
5324
+ @TotalCount = totalcount
5325
+ end
5326
+
5327
+ def deserialize(params)
5328
+ unless params['Res'].nil?
5329
+ @Res = []
5330
+ params['Res'].each do |i|
5331
+ inoutputbotucbrule_tmp = InOutputBotUCBRule.new
5332
+ inoutputbotucbrule_tmp.deserialize(i)
5333
+ @Res << inoutputbotucbrule_tmp
5334
+ end
5335
+ end
5336
+ @TotalCount = params['TotalCount']
5337
+ end
5338
+ end
5339
+
4682
5340
  # DescribeCCAutoStatus请求参数结构体
4683
5341
  class DescribeCCAutoStatusRequest < TencentCloud::Common::AbstractModel
4684
5342
  # @param Domain: 域名
@@ -8878,6 +9536,34 @@ module TencentCloud
8878
9536
  end
8879
9537
  end
8880
9538
 
9539
+ # 当前开启的、匹配范围为全局、优先级最高的场景信息
9540
+ class GlobalSceneInfo < TencentCloud::Common::AbstractModel
9541
+ # @param SceneId: 场景ID
9542
+ # @type SceneId: String
9543
+ # @param SceneName: 场景名称
9544
+ # @type SceneName: String
9545
+ # @param Priority: 场景优先级
9546
+ # @type Priority: Integer
9547
+ # @param UpdateTime: 场景更新时间
9548
+ # @type UpdateTime: Integer
9549
+
9550
+ attr_accessor :SceneId, :SceneName, :Priority, :UpdateTime
9551
+
9552
+ def initialize(sceneid=nil, scenename=nil, priority=nil, updatetime=nil)
9553
+ @SceneId = sceneid
9554
+ @SceneName = scenename
9555
+ @Priority = priority
9556
+ @UpdateTime = updatetime
9557
+ end
9558
+
9559
+ def deserialize(params)
9560
+ @SceneId = params['SceneId']
9561
+ @SceneName = params['SceneName']
9562
+ @Priority = params['Priority']
9563
+ @UpdateTime = params['UpdateTime']
9564
+ end
9565
+ end
9566
+
8881
9567
  # 计费下单接口出入参Goods
8882
9568
  class GoodNews < TencentCloud::Common::AbstractModel
8883
9569
  # @param GoodsNum: 商品数量
@@ -9428,6 +10114,185 @@ module TencentCloud
9428
10114
  end
9429
10115
  end
9430
10116
 
10117
+ # 修改/新增自定义规则的入参,查询自定义规则列表时的出参
10118
+ class InOutputBotUCBRule < TencentCloud::Common::AbstractModel
10119
+ # @param Domain: 域名
10120
+ # @type Domain: String
10121
+ # @param Name: 规则名称
10122
+ # @type Name: String
10123
+ # @param Rule: UCB的具体规则项
10124
+ # @type Rule: Array
10125
+ # @param Action: 处置动作
10126
+ # @type Action: String
10127
+ # @param OnOff: 规则开关
10128
+ # @type OnOff: String
10129
+ # @param RuleType: 规则类型
10130
+ # @type RuleType: Integer
10131
+ # @param Prior: 规则优先级
10132
+ # @type Prior: Integer
10133
+ # @param Timestamp: 修改时间戳
10134
+ # @type Timestamp: Integer
10135
+ # @param Label: 标签
10136
+ # @type Label: String
10137
+ # @param Id: 入参ID
10138
+ # @type Id: String
10139
+ # @param SceneId: 场景ID
10140
+ # @type SceneId: String
10141
+ # @param ValidTime: 生效时间
10142
+ # @type ValidTime: Integer
10143
+ # @param Appid: 传入的appid
10144
+ # @type Appid: Integer
10145
+ # @param AdditionArg: 额外参数
10146
+ # @type AdditionArg: String
10147
+ # @param Desc: 规则描述
10148
+ # @type Desc: String
10149
+ # @param RuleId: 规则ID
10150
+ # @type RuleId: String
10151
+ # @param PreDefine: true-系统预设规则 false-自定义规则
10152
+ # @type PreDefine: Boolean
10153
+ # @param JobType: 定时任务类型
10154
+ # @type JobType: String
10155
+ # @param JobDateTime: 定时任务配置
10156
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
10157
+ # @param ExpireTime: 生效截止时间
10158
+ # @type ExpireTime: Integer
10159
+ # @param ValidStatus: 生效-1,失效-0
10160
+ # @type ValidStatus: Integer
10161
+ # @param BlockPageId: 自定义拦截页面ID
10162
+ # @type BlockPageId: Integer
10163
+ # @param ActionList: 当Action=intercept时,此字段必填
10164
+ # @type ActionList: Array
10165
+
10166
+ attr_accessor :Domain, :Name, :Rule, :Action, :OnOff, :RuleType, :Prior, :Timestamp, :Label, :Id, :SceneId, :ValidTime, :Appid, :AdditionArg, :Desc, :RuleId, :PreDefine, :JobType, :JobDateTime, :ExpireTime, :ValidStatus, :BlockPageId, :ActionList
10167
+
10168
+ def initialize(domain=nil, name=nil, rule=nil, action=nil, onoff=nil, ruletype=nil, prior=nil, timestamp=nil, label=nil, id=nil, sceneid=nil, validtime=nil, appid=nil, additionarg=nil, desc=nil, ruleid=nil, predefine=nil, jobtype=nil, jobdatetime=nil, expiretime=nil, validstatus=nil, blockpageid=nil, actionlist=nil)
10169
+ @Domain = domain
10170
+ @Name = name
10171
+ @Rule = rule
10172
+ @Action = action
10173
+ @OnOff = onoff
10174
+ @RuleType = ruletype
10175
+ @Prior = prior
10176
+ @Timestamp = timestamp
10177
+ @Label = label
10178
+ @Id = id
10179
+ @SceneId = sceneid
10180
+ @ValidTime = validtime
10181
+ @Appid = appid
10182
+ @AdditionArg = additionarg
10183
+ @Desc = desc
10184
+ @RuleId = ruleid
10185
+ @PreDefine = predefine
10186
+ @JobType = jobtype
10187
+ @JobDateTime = jobdatetime
10188
+ @ExpireTime = expiretime
10189
+ @ValidStatus = validstatus
10190
+ @BlockPageId = blockpageid
10191
+ @ActionList = actionlist
10192
+ end
10193
+
10194
+ def deserialize(params)
10195
+ @Domain = params['Domain']
10196
+ @Name = params['Name']
10197
+ unless params['Rule'].nil?
10198
+ @Rule = []
10199
+ params['Rule'].each do |i|
10200
+ inoutputucbruleentry_tmp = InOutputUCBRuleEntry.new
10201
+ inoutputucbruleentry_tmp.deserialize(i)
10202
+ @Rule << inoutputucbruleentry_tmp
10203
+ end
10204
+ end
10205
+ @Action = params['Action']
10206
+ @OnOff = params['OnOff']
10207
+ @RuleType = params['RuleType']
10208
+ @Prior = params['Prior']
10209
+ @Timestamp = params['Timestamp']
10210
+ @Label = params['Label']
10211
+ @Id = params['Id']
10212
+ @SceneId = params['SceneId']
10213
+ @ValidTime = params['ValidTime']
10214
+ @Appid = params['Appid']
10215
+ @AdditionArg = params['AdditionArg']
10216
+ @Desc = params['Desc']
10217
+ @RuleId = params['RuleId']
10218
+ @PreDefine = params['PreDefine']
10219
+ @JobType = params['JobType']
10220
+ unless params['JobDateTime'].nil?
10221
+ @JobDateTime = JobDateTime.new
10222
+ @JobDateTime.deserialize(params['JobDateTime'])
10223
+ end
10224
+ @ExpireTime = params['ExpireTime']
10225
+ @ValidStatus = params['ValidStatus']
10226
+ @BlockPageId = params['BlockPageId']
10227
+ unless params['ActionList'].nil?
10228
+ @ActionList = []
10229
+ params['ActionList'].each do |i|
10230
+ ucbactionproportion_tmp = UCBActionProportion.new
10231
+ ucbactionproportion_tmp.deserialize(i)
10232
+ @ActionList << ucbactionproportion_tmp
10233
+ end
10234
+ end
10235
+ end
10236
+ end
10237
+
10238
+ # 自定义规则UCB的Rule生效条件
10239
+ class InOutputUCBRuleEntry < TencentCloud::Common::AbstractModel
10240
+ # @param Key: 键
10241
+ # @type Key: String
10242
+ # @param Op: 操作符
10243
+ # @type Op: String
10244
+ # @param Value: 值
10245
+ # @type Value: :class:`Tencentcloud::Waf.v20180125.models.UCBEntryValue`
10246
+ # @param OpOp: 可选的补充操作符
10247
+ # @type OpOp: String
10248
+ # @param OpArg: 可选的补充参数
10249
+ # @type OpArg: Array
10250
+ # @param OpValue: 可选的补充值
10251
+ # @type OpValue: Float
10252
+ # @param Name: Header参数值时使用
10253
+ # @type Name: String
10254
+ # @param Areas: 区域选择
10255
+ # @type Areas: Array
10256
+ # @param Lang: 语言环境
10257
+ # @type Lang: String
10258
+
10259
+ attr_accessor :Key, :Op, :Value, :OpOp, :OpArg, :OpValue, :Name, :Areas, :Lang
10260
+
10261
+ def initialize(key=nil, op=nil, value=nil, opop=nil, oparg=nil, opvalue=nil, name=nil, areas=nil, lang=nil)
10262
+ @Key = key
10263
+ @Op = op
10264
+ @Value = value
10265
+ @OpOp = opop
10266
+ @OpArg = oparg
10267
+ @OpValue = opvalue
10268
+ @Name = name
10269
+ @Areas = areas
10270
+ @Lang = lang
10271
+ end
10272
+
10273
+ def deserialize(params)
10274
+ @Key = params['Key']
10275
+ @Op = params['Op']
10276
+ unless params['Value'].nil?
10277
+ @Value = UCBEntryValue.new
10278
+ @Value.deserialize(params['Value'])
10279
+ end
10280
+ @OpOp = params['OpOp']
10281
+ @OpArg = params['OpArg']
10282
+ @OpValue = params['OpValue']
10283
+ @Name = params['Name']
10284
+ unless params['Areas'].nil?
10285
+ @Areas = []
10286
+ params['Areas'].each do |i|
10287
+ area_tmp = Area.new
10288
+ area_tmp.deserialize(i)
10289
+ @Areas << area_tmp
10290
+ end
10291
+ end
10292
+ @Lang = params['Lang']
10293
+ end
10294
+ end
10295
+
9431
10296
  # 一个实例的详细信息
9432
10297
  class InstanceInfo < TencentCloud::Common::AbstractModel
9433
10298
  # @param InstanceId: 实例唯一ID
@@ -10732,6 +11597,104 @@ module TencentCloud
10732
11597
  end
10733
11598
  end
10734
11599
 
11600
+ # ModifyBotSceneStatus请求参数结构体
11601
+ class ModifyBotSceneStatusRequest < TencentCloud::Common::AbstractModel
11602
+ # @param Domain: 域名
11603
+ # @type Domain: String
11604
+ # @param SceneId: 场景ID
11605
+ # @type SceneId: String
11606
+ # @param Status: true-开启 false-关闭
11607
+ # @type Status: Boolean
11608
+
11609
+ attr_accessor :Domain, :SceneId, :Status
11610
+
11611
+ def initialize(domain=nil, sceneid=nil, status=nil)
11612
+ @Domain = domain
11613
+ @SceneId = sceneid
11614
+ @Status = status
11615
+ end
11616
+
11617
+ def deserialize(params)
11618
+ @Domain = params['Domain']
11619
+ @SceneId = params['SceneId']
11620
+ @Status = params['Status']
11621
+ end
11622
+ end
11623
+
11624
+ # ModifyBotSceneStatus返回参数结构体
11625
+ class ModifyBotSceneStatusResponse < TencentCloud::Common::AbstractModel
11626
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11627
+ # @type RequestId: String
11628
+
11629
+ attr_accessor :RequestId
11630
+
11631
+ def initialize(requestid=nil)
11632
+ @RequestId = requestid
11633
+ end
11634
+
11635
+ def deserialize(params)
11636
+ @RequestId = params['RequestId']
11637
+ end
11638
+ end
11639
+
11640
+ # ModifyBotSceneUCBRule请求参数结构体
11641
+ class ModifyBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
11642
+ # @param Domain: 域名
11643
+ # @type Domain: String
11644
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置时,传具体的场景ID
11645
+ # @type SceneId: String
11646
+ # @param Rule: 规则内容, 增加编码SceneId信息,1.BOT全局白名单处调用时,SceneId为"global", RuleType传10, Action为"permit";2.BOT场景配置时,SceneId为场景ID
11647
+ # @type Rule: :class:`Tencentcloud::Waf.v20180125.models.InOutputBotUCBRule`
11648
+ # @param BatchRules: 530改批量操作
11649
+ # @type BatchRules: Array
11650
+
11651
+ attr_accessor :Domain, :SceneId, :Rule, :BatchRules
11652
+
11653
+ def initialize(domain=nil, sceneid=nil, rule=nil, batchrules=nil)
11654
+ @Domain = domain
11655
+ @SceneId = sceneid
11656
+ @Rule = rule
11657
+ @BatchRules = batchrules
11658
+ end
11659
+
11660
+ def deserialize(params)
11661
+ @Domain = params['Domain']
11662
+ @SceneId = params['SceneId']
11663
+ unless params['Rule'].nil?
11664
+ @Rule = InOutputBotUCBRule.new
11665
+ @Rule.deserialize(params['Rule'])
11666
+ end
11667
+ unless params['BatchRules'].nil?
11668
+ @BatchRules = []
11669
+ params['BatchRules'].each do |i|
11670
+ inoutputbotucbrule_tmp = InOutputBotUCBRule.new
11671
+ inoutputbotucbrule_tmp.deserialize(i)
11672
+ @BatchRules << inoutputbotucbrule_tmp
11673
+ end
11674
+ end
11675
+ end
11676
+ end
11677
+
11678
+ # ModifyBotSceneUCBRule返回参数结构体
11679
+ class ModifyBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
11680
+ # @param Data: 正常情况下为null
11681
+ # @type Data: String
11682
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11683
+ # @type RequestId: String
11684
+
11685
+ attr_accessor :Data, :RequestId
11686
+
11687
+ def initialize(data=nil, requestid=nil)
11688
+ @Data = data
11689
+ @RequestId = requestid
11690
+ end
11691
+
11692
+ def deserialize(params)
11693
+ @Data = params['Data']
11694
+ @RequestId = params['RequestId']
11695
+ end
11696
+ end
11697
+
10735
11698
  # ModifyBotStatus请求参数结构体
10736
11699
  class ModifyBotStatusRequest < TencentCloud::Common::AbstractModel
10737
11700
  # @param Category: 类别
@@ -12801,10 +13764,14 @@ module TencentCloud
12801
13764
  # @type Version: String
12802
13765
  # @param Topic: 主题名称
12803
13766
  # @type Topic: String
13767
+ # @param Compression: 压缩算法,支持gzip 和 lz4
13768
+ # @type Compression: String
13769
+ # @param Content: 描述信息
13770
+ # @type Content: String
12804
13771
 
12805
- attr_accessor :FlowId, :LogType, :Status, :CKafkaRegion, :CKafkaID, :Brokers, :Version, :Topic
13772
+ attr_accessor :FlowId, :LogType, :Status, :CKafkaRegion, :CKafkaID, :Brokers, :Version, :Topic, :Compression, :Content
12806
13773
 
12807
- def initialize(flowid=nil, logtype=nil, status=nil, ckafkaregion=nil, ckafkaid=nil, brokers=nil, version=nil, topic=nil)
13774
+ def initialize(flowid=nil, logtype=nil, status=nil, ckafkaregion=nil, ckafkaid=nil, brokers=nil, version=nil, topic=nil, compression=nil, content=nil)
12808
13775
  @FlowId = flowid
12809
13776
  @LogType = logtype
12810
13777
  @Status = status
@@ -12813,6 +13780,8 @@ module TencentCloud
12813
13780
  @Brokers = brokers
12814
13781
  @Version = version
12815
13782
  @Topic = topic
13783
+ @Compression = compression
13784
+ @Content = content
12816
13785
  end
12817
13786
 
12818
13787
  def deserialize(params)
@@ -12824,6 +13793,8 @@ module TencentCloud
12824
13793
  @Brokers = params['Brokers']
12825
13794
  @Version = params['Version']
12826
13795
  @Topic = params['Topic']
13796
+ @Compression = params['Compression']
13797
+ @Content = params['Content']
12827
13798
  end
12828
13799
  end
12829
13800
 
@@ -13817,6 +14788,58 @@ module TencentCloud
13817
14788
  end
13818
14789
  end
13819
14790
 
14791
+ # bot自定义规则动作灰度
14792
+ class UCBActionProportion < TencentCloud::Common::AbstractModel
14793
+ # @param Action: 动作
14794
+ # @type Action: String
14795
+ # @param Proportion: 比例
14796
+ # @type Proportion: Float
14797
+
14798
+ attr_accessor :Action, :Proportion
14799
+
14800
+ def initialize(action=nil, proportion=nil)
14801
+ @Action = action
14802
+ @Proportion = proportion
14803
+ end
14804
+
14805
+ def deserialize(params)
14806
+ @Action = params['Action']
14807
+ @Proportion = params['Proportion']
14808
+ end
14809
+ end
14810
+
14811
+ # 云图API改版后, 不支持将复杂json类型编码成string,因此通过此复杂类型识别传入的不同类型参数值
14812
+ class UCBEntryValue < TencentCloud::Common::AbstractModel
14813
+ # @param BasicValue: string类型值
14814
+ # @type BasicValue: String
14815
+ # @param LogicValue: 布尔类型值
14816
+ # @type LogicValue: Boolean
14817
+ # @param BelongValue: string数组类型值
14818
+ # @type BelongValue: Array
14819
+ # @param ValidKey: 指示有效的字段
14820
+ # @type ValidKey: String
14821
+ # @param MultiValue: string数组类型值
14822
+ # @type MultiValue: Array
14823
+
14824
+ attr_accessor :BasicValue, :LogicValue, :BelongValue, :ValidKey, :MultiValue
14825
+
14826
+ def initialize(basicvalue=nil, logicvalue=nil, belongvalue=nil, validkey=nil, multivalue=nil)
14827
+ @BasicValue = basicvalue
14828
+ @LogicValue = logicvalue
14829
+ @BelongValue = belongvalue
14830
+ @ValidKey = validkey
14831
+ @MultiValue = multivalue
14832
+ end
14833
+
14834
+ def deserialize(params)
14835
+ @BasicValue = params['BasicValue']
14836
+ @LogicValue = params['LogicValue']
14837
+ @BelongValue = params['BelongValue']
14838
+ @ValidKey = params['ValidKey']
14839
+ @MultiValue = params['MultiValue']
14840
+ end
14841
+ end
14842
+
13820
14843
  # UpdateProtectionModes请求参数结构体
13821
14844
  class UpdateProtectionModesRequest < TencentCloud::Common::AbstractModel
13822
14845
  # @param Domain: 域名
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.1042
4
+ version: 3.0.1043
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-04-17 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common