tencentcloud-sdk-waf 3.0.1042 → 3.0.1044

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.
@@ -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规则
@@ -2753,10 +3132,18 @@ module TencentCloud
2753
3132
  # @type Topic: String
2754
3133
  # @param KafkaVersion: kafka集群的版本号
2755
3134
  # @type KafkaVersion: String
2756
-
2757
- attr_accessor :CKafkaRegion, :CKafkaID, :Brokers, :Compression, :VipType, :LogType, :Topic, :KafkaVersion
2758
-
2759
- def initialize(ckafkaregion=nil, ckafkaid=nil, brokers=nil, compression=nil, viptype=nil, logtype=nil, topic=nil, kafkaversion=nil)
3135
+ # @param SASLEnable: 是否开启SASL校验,默认不开启,0-关闭,1-开启
3136
+ # @type SASLEnable: Integer
3137
+ # @param SASLUser: SASL用户名
3138
+ # @type SASLUser: String
3139
+ # @param SASLPassword: SASL密码
3140
+ # @type SASLPassword: String
3141
+ # @param WriteConfig: 开启访问日志某些字段是否投递
3142
+ # @type WriteConfig: :class:`Tencentcloud::Waf.v20180125.models.FieldWriteConfig`
3143
+
3144
+ attr_accessor :CKafkaRegion, :CKafkaID, :Brokers, :Compression, :VipType, :LogType, :Topic, :KafkaVersion, :SASLEnable, :SASLUser, :SASLPassword, :WriteConfig
3145
+
3146
+ def initialize(ckafkaregion=nil, ckafkaid=nil, brokers=nil, compression=nil, viptype=nil, logtype=nil, topic=nil, kafkaversion=nil, saslenable=nil, sasluser=nil, saslpassword=nil, writeconfig=nil)
2760
3147
  @CKafkaRegion = ckafkaregion
2761
3148
  @CKafkaID = ckafkaid
2762
3149
  @Brokers = brokers
@@ -2765,6 +3152,10 @@ module TencentCloud
2765
3152
  @LogType = logtype
2766
3153
  @Topic = topic
2767
3154
  @KafkaVersion = kafkaversion
3155
+ @SASLEnable = saslenable
3156
+ @SASLUser = sasluser
3157
+ @SASLPassword = saslpassword
3158
+ @WriteConfig = writeconfig
2768
3159
  end
2769
3160
 
2770
3161
  def deserialize(params)
@@ -2776,6 +3167,13 @@ module TencentCloud
2776
3167
  @LogType = params['LogType']
2777
3168
  @Topic = params['Topic']
2778
3169
  @KafkaVersion = params['KafkaVersion']
3170
+ @SASLEnable = params['SASLEnable']
3171
+ @SASLUser = params['SASLUser']
3172
+ @SASLPassword = params['SASLPassword']
3173
+ unless params['WriteConfig'].nil?
3174
+ @WriteConfig = FieldWriteConfig.new
3175
+ @WriteConfig.deserialize(params['WriteConfig'])
3176
+ end
2779
3177
  end
2780
3178
  end
2781
3179
 
@@ -3067,6 +3465,51 @@ module TencentCloud
3067
3465
  end
3068
3466
  end
3069
3467
 
3468
+ # DeleteBotSceneUCBRule请求参数结构体
3469
+ class DeleteBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
3470
+ # @param Domain: 域名
3471
+ # @type Domain: String
3472
+ # @param RuleId: 自定义规则ID
3473
+ # @type RuleId: String
3474
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置时,传具体的场景ID
3475
+ # @type SceneId: String
3476
+
3477
+ attr_accessor :Domain, :RuleId, :SceneId
3478
+
3479
+ def initialize(domain=nil, ruleid=nil, sceneid=nil)
3480
+ @Domain = domain
3481
+ @RuleId = ruleid
3482
+ @SceneId = sceneid
3483
+ end
3484
+
3485
+ def deserialize(params)
3486
+ @Domain = params['Domain']
3487
+ @RuleId = params['RuleId']
3488
+ @SceneId = params['SceneId']
3489
+ end
3490
+ end
3491
+
3492
+ # DeleteBotSceneUCBRule返回参数结构体
3493
+ class DeleteBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
3494
+ # @param Data: 正常情况下为null
3495
+ # 注意:此字段可能返回 null,表示取不到有效值。
3496
+ # @type Data: String
3497
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3498
+ # @type RequestId: String
3499
+
3500
+ attr_accessor :Data, :RequestId
3501
+
3502
+ def initialize(data=nil, requestid=nil)
3503
+ @Data = data
3504
+ @RequestId = requestid
3505
+ end
3506
+
3507
+ def deserialize(params)
3508
+ @Data = params['Data']
3509
+ @RequestId = params['RequestId']
3510
+ end
3511
+ end
3512
+
3070
3513
  # DeleteCCRule请求参数结构体
3071
3514
  class DeleteCCRuleRequest < TencentCloud::Common::AbstractModel
3072
3515
  # @param Domain: 域名
@@ -4642,24 +5085,231 @@ module TencentCloud
4642
5085
  end
4643
5086
 
4644
5087
  def deserialize(params)
4645
- unless params['Filters'].nil?
4646
- @Filters = []
4647
- params['Filters'].each do |i|
4648
- filtersitemnew_tmp = FiltersItemNew.new
4649
- filtersitemnew_tmp.deserialize(i)
4650
- @Filters << filtersitemnew_tmp
4651
- end
4652
- end
4653
- @OffSet = params['OffSet']
5088
+ unless params['Filters'].nil?
5089
+ @Filters = []
5090
+ params['Filters'].each do |i|
5091
+ filtersitemnew_tmp = FiltersItemNew.new
5092
+ filtersitemnew_tmp.deserialize(i)
5093
+ @Filters << filtersitemnew_tmp
5094
+ end
5095
+ end
5096
+ @OffSet = params['OffSet']
5097
+ @Limit = params['Limit']
5098
+ @Sort = params['Sort']
5099
+ end
5100
+ end
5101
+
5102
+ # DescribeBatchIpAccessControl返回参数结构体
5103
+ class DescribeBatchIpAccessControlResponse < TencentCloud::Common::AbstractModel
5104
+ # @param Data: 输出
5105
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.BatchIpAccessControlData`
5106
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5107
+ # @type RequestId: String
5108
+
5109
+ attr_accessor :Data, :RequestId
5110
+
5111
+ def initialize(data=nil, requestid=nil)
5112
+ @Data = data
5113
+ @RequestId = requestid
5114
+ end
5115
+
5116
+ def deserialize(params)
5117
+ unless params['Data'].nil?
5118
+ @Data = BatchIpAccessControlData.new
5119
+ @Data.deserialize(params['Data'])
5120
+ end
5121
+ @RequestId = params['RequestId']
5122
+ end
5123
+ end
5124
+
5125
+ # DescribeBotSceneList请求参数结构体
5126
+ class DescribeBotSceneListRequest < TencentCloud::Common::AbstractModel
5127
+ # @param Domain: 域名
5128
+ # @type Domain: String
5129
+ # @param Limit: 每页数量
5130
+ # @type Limit: Integer
5131
+ # @param Offset: 页码
5132
+ # @type Offset: Integer
5133
+ # @param BusinessType: 场景模板类型,通过此下拉字段进行场景筛选。全部: all 登录: login 秒杀:seckill 爬内容:crawl 自定义: custom
5134
+ # @type BusinessType: Array
5135
+ # @param SceneName: 通过场景名称模糊搜索
5136
+ # @type SceneName: String
5137
+ # @param IsDefault: 是否只显示默认场景
5138
+ # @type IsDefault: Boolean
5139
+ # @param IsValid: 是否仅显示生效场景
5140
+ # @type IsValid: Boolean
5141
+
5142
+ attr_accessor :Domain, :Limit, :Offset, :BusinessType, :SceneName, :IsDefault, :IsValid
5143
+
5144
+ def initialize(domain=nil, limit=nil, offset=nil, businesstype=nil, scenename=nil, isdefault=nil, isvalid=nil)
5145
+ @Domain = domain
5146
+ @Limit = limit
5147
+ @Offset = offset
5148
+ @BusinessType = businesstype
5149
+ @SceneName = scenename
5150
+ @IsDefault = isdefault
5151
+ @IsValid = isvalid
5152
+ end
5153
+
5154
+ def deserialize(params)
5155
+ @Domain = params['Domain']
5156
+ @Limit = params['Limit']
5157
+ @Offset = params['Offset']
5158
+ @BusinessType = params['BusinessType']
5159
+ @SceneName = params['SceneName']
5160
+ @IsDefault = params['IsDefault']
5161
+ @IsValid = params['IsValid']
5162
+ end
5163
+ end
5164
+
5165
+ # DescribeBotSceneList返回参数结构体
5166
+ class DescribeBotSceneListResponse < TencentCloud::Common::AbstractModel
5167
+ # @param TotalCount: 符合筛选条件的场景数目
5168
+ # @type TotalCount: Integer
5169
+ # @param BotSceneList: 当TotalCount为0时,返回空
5170
+ # @type BotSceneList: Array
5171
+ # @param SimpleFlag: true-简易模式
5172
+ # @type SimpleFlag: Boolean
5173
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5174
+ # @type RequestId: String
5175
+
5176
+ attr_accessor :TotalCount, :BotSceneList, :SimpleFlag, :RequestId
5177
+
5178
+ def initialize(totalcount=nil, botscenelist=nil, simpleflag=nil, requestid=nil)
5179
+ @TotalCount = totalcount
5180
+ @BotSceneList = botscenelist
5181
+ @SimpleFlag = simpleflag
5182
+ @RequestId = requestid
5183
+ end
5184
+
5185
+ def deserialize(params)
5186
+ @TotalCount = params['TotalCount']
5187
+ unless params['BotSceneList'].nil?
5188
+ @BotSceneList = []
5189
+ params['BotSceneList'].each do |i|
5190
+ botsceneinfo_tmp = BotSceneInfo.new
5191
+ botsceneinfo_tmp.deserialize(i)
5192
+ @BotSceneList << botsceneinfo_tmp
5193
+ end
5194
+ end
5195
+ @SimpleFlag = params['SimpleFlag']
5196
+ @RequestId = params['RequestId']
5197
+ end
5198
+ end
5199
+
5200
+ # DescribeBotSceneOverview请求参数结构体
5201
+ class DescribeBotSceneOverviewRequest < TencentCloud::Common::AbstractModel
5202
+ # @param Domain: 域名
5203
+ # @type Domain: String
5204
+
5205
+ attr_accessor :Domain
5206
+
5207
+ def initialize(domain=nil)
5208
+ @Domain = domain
5209
+ end
5210
+
5211
+ def deserialize(params)
5212
+ @Domain = params['Domain']
5213
+ end
5214
+ end
5215
+
5216
+ # DescribeBotSceneOverview返回参数结构体
5217
+ class DescribeBotSceneOverviewResponse < TencentCloud::Common::AbstractModel
5218
+ # @param Status: BOT总开关
5219
+ # @type Status: Boolean
5220
+ # @param SceneCount: 场景总数
5221
+ # @type SceneCount: Integer
5222
+ # @param ValidSceneCount: 生效场景数
5223
+ # @type ValidSceneCount: Integer
5224
+ # @param CurrentGlobalScene: 当前开启的、匹配范围为全局、优先级最高的场景
5225
+ # 注意:此字段可能返回 null,表示取不到有效值。
5226
+ # @type CurrentGlobalScene: :class:`Tencentcloud::Waf.v20180125.models.GlobalSceneInfo`
5227
+ # @param CustomRuleNums: 自定义规则总数,不包括BOT白名单
5228
+ # @type CustomRuleNums: Integer
5229
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5230
+ # @type RequestId: String
5231
+
5232
+ attr_accessor :Status, :SceneCount, :ValidSceneCount, :CurrentGlobalScene, :CustomRuleNums, :RequestId
5233
+
5234
+ def initialize(status=nil, scenecount=nil, validscenecount=nil, currentglobalscene=nil, customrulenums=nil, requestid=nil)
5235
+ @Status = status
5236
+ @SceneCount = scenecount
5237
+ @ValidSceneCount = validscenecount
5238
+ @CurrentGlobalScene = currentglobalscene
5239
+ @CustomRuleNums = customrulenums
5240
+ @RequestId = requestid
5241
+ end
5242
+
5243
+ def deserialize(params)
5244
+ @Status = params['Status']
5245
+ @SceneCount = params['SceneCount']
5246
+ @ValidSceneCount = params['ValidSceneCount']
5247
+ unless params['CurrentGlobalScene'].nil?
5248
+ @CurrentGlobalScene = GlobalSceneInfo.new
5249
+ @CurrentGlobalScene.deserialize(params['CurrentGlobalScene'])
5250
+ end
5251
+ @CustomRuleNums = params['CustomRuleNums']
5252
+ @RequestId = params['RequestId']
5253
+ end
5254
+ end
5255
+
5256
+ # DescribeBotSceneUCBRule请求参数结构体
5257
+ class DescribeBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
5258
+ # @param Domain: 域名
5259
+ # @type Domain: String
5260
+ # @param Skip: 翻页组件的起始页
5261
+ # @type Skip: Integer
5262
+ # @param Limit: 翻页组件的页数据条数
5263
+ # @type Limit: Integer
5264
+ # @param Sort: 排序参数
5265
+ # @type Sort: String
5266
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置处调用时,传具体的场景ID
5267
+ # @type SceneId: String
5268
+ # @param Operate: 需要过滤的动作
5269
+ # @type Operate: String
5270
+ # @param Name: 需要过滤的规则名称
5271
+ # @type Name: String
5272
+ # @param VersionFlag: 兼容老数据和新旧版前端
5273
+ # @type VersionFlag: String
5274
+ # @param TimerType: 生效方式:0-全部 1-永久生效 2-定时生效 3-周粒度生效 4-月粒度生效
5275
+ # @type TimerType: Integer
5276
+ # @param ValidStatus: 0-全部 1-生效中 2-已过期
5277
+ # @type ValidStatus: Integer
5278
+
5279
+ attr_accessor :Domain, :Skip, :Limit, :Sort, :SceneId, :Operate, :Name, :VersionFlag, :TimerType, :ValidStatus
5280
+
5281
+ def initialize(domain=nil, skip=nil, limit=nil, sort=nil, sceneid=nil, operate=nil, name=nil, versionflag=nil, timertype=nil, validstatus=nil)
5282
+ @Domain = domain
5283
+ @Skip = skip
5284
+ @Limit = limit
5285
+ @Sort = sort
5286
+ @SceneId = sceneid
5287
+ @Operate = operate
5288
+ @Name = name
5289
+ @VersionFlag = versionflag
5290
+ @TimerType = timertype
5291
+ @ValidStatus = validstatus
5292
+ end
5293
+
5294
+ def deserialize(params)
5295
+ @Domain = params['Domain']
5296
+ @Skip = params['Skip']
4654
5297
  @Limit = params['Limit']
4655
5298
  @Sort = params['Sort']
5299
+ @SceneId = params['SceneId']
5300
+ @Operate = params['Operate']
5301
+ @Name = params['Name']
5302
+ @VersionFlag = params['VersionFlag']
5303
+ @TimerType = params['TimerType']
5304
+ @ValidStatus = params['ValidStatus']
4656
5305
  end
4657
5306
  end
4658
5307
 
4659
- # DescribeBatchIpAccessControl返回参数结构体
4660
- class DescribeBatchIpAccessControlResponse < TencentCloud::Common::AbstractModel
4661
- # @param Data: 输出
4662
- # @type Data: :class:`Tencentcloud::Waf.v20180125.models.BatchIpAccessControlData`
5308
+ # DescribeBotSceneUCBRule返回参数结构体
5309
+ class DescribeBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
5310
+ # @param Data: 返回数据包
5311
+ # 注意:此字段可能返回 null,表示取不到有效值。
5312
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.DescribeBotUCBRuleRsp`
4663
5313
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4664
5314
  # @type RequestId: String
4665
5315
 
@@ -4672,13 +5322,40 @@ module TencentCloud
4672
5322
 
4673
5323
  def deserialize(params)
4674
5324
  unless params['Data'].nil?
4675
- @Data = BatchIpAccessControlData.new
5325
+ @Data = DescribeBotUCBRuleRsp.new
4676
5326
  @Data.deserialize(params['Data'])
4677
5327
  end
4678
5328
  @RequestId = params['RequestId']
4679
5329
  end
4680
5330
  end
4681
5331
 
5332
+ # 获取自定义规则列表时的出参
5333
+ class DescribeBotUCBRuleRsp < TencentCloud::Common::AbstractModel
5334
+ # @param Res: 规则列表
5335
+ # @type Res: Array
5336
+ # @param TotalCount: 规则总数
5337
+ # @type TotalCount: Integer
5338
+
5339
+ attr_accessor :Res, :TotalCount
5340
+
5341
+ def initialize(res=nil, totalcount=nil)
5342
+ @Res = res
5343
+ @TotalCount = totalcount
5344
+ end
5345
+
5346
+ def deserialize(params)
5347
+ unless params['Res'].nil?
5348
+ @Res = []
5349
+ params['Res'].each do |i|
5350
+ inoutputbotucbrule_tmp = InOutputBotUCBRule.new
5351
+ inoutputbotucbrule_tmp.deserialize(i)
5352
+ @Res << inoutputbotucbrule_tmp
5353
+ end
5354
+ end
5355
+ @TotalCount = params['TotalCount']
5356
+ end
5357
+ end
5358
+
4682
5359
  # DescribeCCAutoStatus请求参数结构体
4683
5360
  class DescribeCCAutoStatusRequest < TencentCloud::Common::AbstractModel
4684
5361
  # @param Domain: 域名
@@ -8475,6 +9152,30 @@ module TencentCloud
8475
9152
  end
8476
9153
  end
8477
9154
 
9155
+ # 设置哪些字段是否存储或转发
9156
+ class FieldWriteConfig < TencentCloud::Common::AbstractModel
9157
+ # @param EnableHeaders: 1:开启 0:不开启
9158
+ # @type EnableHeaders: Integer
9159
+ # @param EnableBody: 1:开启 0:不开启
9160
+ # @type EnableBody: Integer
9161
+ # @param EnableBot: 1:开启 0:不开启
9162
+ # @type EnableBot: Integer
9163
+
9164
+ attr_accessor :EnableHeaders, :EnableBody, :EnableBot
9165
+
9166
+ def initialize(enableheaders=nil, enablebody=nil, enablebot=nil)
9167
+ @EnableHeaders = enableheaders
9168
+ @EnableBody = enablebody
9169
+ @EnableBot = enablebot
9170
+ end
9171
+
9172
+ def deserialize(params)
9173
+ @EnableHeaders = params['EnableHeaders']
9174
+ @EnableBody = params['EnableBody']
9175
+ @EnableBot = params['EnableBot']
9176
+ end
9177
+ end
9178
+
8478
9179
  # 过滤数组
8479
9180
  class FiltersItemNew < TencentCloud::Common::AbstractModel
8480
9181
  # @param Name: 字段名; 过滤
@@ -8878,6 +9579,34 @@ module TencentCloud
8878
9579
  end
8879
9580
  end
8880
9581
 
9582
+ # 当前开启的、匹配范围为全局、优先级最高的场景信息
9583
+ class GlobalSceneInfo < TencentCloud::Common::AbstractModel
9584
+ # @param SceneId: 场景ID
9585
+ # @type SceneId: String
9586
+ # @param SceneName: 场景名称
9587
+ # @type SceneName: String
9588
+ # @param Priority: 场景优先级
9589
+ # @type Priority: Integer
9590
+ # @param UpdateTime: 场景更新时间
9591
+ # @type UpdateTime: Integer
9592
+
9593
+ attr_accessor :SceneId, :SceneName, :Priority, :UpdateTime
9594
+
9595
+ def initialize(sceneid=nil, scenename=nil, priority=nil, updatetime=nil)
9596
+ @SceneId = sceneid
9597
+ @SceneName = scenename
9598
+ @Priority = priority
9599
+ @UpdateTime = updatetime
9600
+ end
9601
+
9602
+ def deserialize(params)
9603
+ @SceneId = params['SceneId']
9604
+ @SceneName = params['SceneName']
9605
+ @Priority = params['Priority']
9606
+ @UpdateTime = params['UpdateTime']
9607
+ end
9608
+ end
9609
+
8881
9610
  # 计费下单接口出入参Goods
8882
9611
  class GoodNews < TencentCloud::Common::AbstractModel
8883
9612
  # @param GoodsNum: 商品数量
@@ -9428,6 +10157,185 @@ module TencentCloud
9428
10157
  end
9429
10158
  end
9430
10159
 
10160
+ # 修改/新增自定义规则的入参,查询自定义规则列表时的出参
10161
+ class InOutputBotUCBRule < TencentCloud::Common::AbstractModel
10162
+ # @param Domain: 域名
10163
+ # @type Domain: String
10164
+ # @param Name: 规则名称
10165
+ # @type Name: String
10166
+ # @param Rule: UCB的具体规则项
10167
+ # @type Rule: Array
10168
+ # @param Action: 处置动作
10169
+ # @type Action: String
10170
+ # @param OnOff: 规则开关
10171
+ # @type OnOff: String
10172
+ # @param RuleType: 规则类型
10173
+ # @type RuleType: Integer
10174
+ # @param Prior: 规则优先级
10175
+ # @type Prior: Integer
10176
+ # @param Timestamp: 修改时间戳
10177
+ # @type Timestamp: Integer
10178
+ # @param Label: 标签
10179
+ # @type Label: String
10180
+ # @param Id: 入参ID
10181
+ # @type Id: String
10182
+ # @param SceneId: 场景ID
10183
+ # @type SceneId: String
10184
+ # @param ValidTime: 生效时间
10185
+ # @type ValidTime: Integer
10186
+ # @param Appid: 传入的appid
10187
+ # @type Appid: Integer
10188
+ # @param AdditionArg: 额外参数
10189
+ # @type AdditionArg: String
10190
+ # @param Desc: 规则描述
10191
+ # @type Desc: String
10192
+ # @param RuleId: 规则ID
10193
+ # @type RuleId: String
10194
+ # @param PreDefine: true-系统预设规则 false-自定义规则
10195
+ # @type PreDefine: Boolean
10196
+ # @param JobType: 定时任务类型
10197
+ # @type JobType: String
10198
+ # @param JobDateTime: 定时任务配置
10199
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
10200
+ # @param ExpireTime: 生效截止时间
10201
+ # @type ExpireTime: Integer
10202
+ # @param ValidStatus: 生效-1,失效-0
10203
+ # @type ValidStatus: Integer
10204
+ # @param BlockPageId: 自定义拦截页面ID
10205
+ # @type BlockPageId: Integer
10206
+ # @param ActionList: 当Action=intercept时,此字段必填
10207
+ # @type ActionList: Array
10208
+
10209
+ 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
10210
+
10211
+ 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)
10212
+ @Domain = domain
10213
+ @Name = name
10214
+ @Rule = rule
10215
+ @Action = action
10216
+ @OnOff = onoff
10217
+ @RuleType = ruletype
10218
+ @Prior = prior
10219
+ @Timestamp = timestamp
10220
+ @Label = label
10221
+ @Id = id
10222
+ @SceneId = sceneid
10223
+ @ValidTime = validtime
10224
+ @Appid = appid
10225
+ @AdditionArg = additionarg
10226
+ @Desc = desc
10227
+ @RuleId = ruleid
10228
+ @PreDefine = predefine
10229
+ @JobType = jobtype
10230
+ @JobDateTime = jobdatetime
10231
+ @ExpireTime = expiretime
10232
+ @ValidStatus = validstatus
10233
+ @BlockPageId = blockpageid
10234
+ @ActionList = actionlist
10235
+ end
10236
+
10237
+ def deserialize(params)
10238
+ @Domain = params['Domain']
10239
+ @Name = params['Name']
10240
+ unless params['Rule'].nil?
10241
+ @Rule = []
10242
+ params['Rule'].each do |i|
10243
+ inoutputucbruleentry_tmp = InOutputUCBRuleEntry.new
10244
+ inoutputucbruleentry_tmp.deserialize(i)
10245
+ @Rule << inoutputucbruleentry_tmp
10246
+ end
10247
+ end
10248
+ @Action = params['Action']
10249
+ @OnOff = params['OnOff']
10250
+ @RuleType = params['RuleType']
10251
+ @Prior = params['Prior']
10252
+ @Timestamp = params['Timestamp']
10253
+ @Label = params['Label']
10254
+ @Id = params['Id']
10255
+ @SceneId = params['SceneId']
10256
+ @ValidTime = params['ValidTime']
10257
+ @Appid = params['Appid']
10258
+ @AdditionArg = params['AdditionArg']
10259
+ @Desc = params['Desc']
10260
+ @RuleId = params['RuleId']
10261
+ @PreDefine = params['PreDefine']
10262
+ @JobType = params['JobType']
10263
+ unless params['JobDateTime'].nil?
10264
+ @JobDateTime = JobDateTime.new
10265
+ @JobDateTime.deserialize(params['JobDateTime'])
10266
+ end
10267
+ @ExpireTime = params['ExpireTime']
10268
+ @ValidStatus = params['ValidStatus']
10269
+ @BlockPageId = params['BlockPageId']
10270
+ unless params['ActionList'].nil?
10271
+ @ActionList = []
10272
+ params['ActionList'].each do |i|
10273
+ ucbactionproportion_tmp = UCBActionProportion.new
10274
+ ucbactionproportion_tmp.deserialize(i)
10275
+ @ActionList << ucbactionproportion_tmp
10276
+ end
10277
+ end
10278
+ end
10279
+ end
10280
+
10281
+ # 自定义规则UCB的Rule生效条件
10282
+ class InOutputUCBRuleEntry < TencentCloud::Common::AbstractModel
10283
+ # @param Key: 键
10284
+ # @type Key: String
10285
+ # @param Op: 操作符
10286
+ # @type Op: String
10287
+ # @param Value: 值
10288
+ # @type Value: :class:`Tencentcloud::Waf.v20180125.models.UCBEntryValue`
10289
+ # @param OpOp: 可选的补充操作符
10290
+ # @type OpOp: String
10291
+ # @param OpArg: 可选的补充参数
10292
+ # @type OpArg: Array
10293
+ # @param OpValue: 可选的补充值
10294
+ # @type OpValue: Float
10295
+ # @param Name: Header参数值时使用
10296
+ # @type Name: String
10297
+ # @param Areas: 区域选择
10298
+ # @type Areas: Array
10299
+ # @param Lang: 语言环境
10300
+ # @type Lang: String
10301
+
10302
+ attr_accessor :Key, :Op, :Value, :OpOp, :OpArg, :OpValue, :Name, :Areas, :Lang
10303
+
10304
+ def initialize(key=nil, op=nil, value=nil, opop=nil, oparg=nil, opvalue=nil, name=nil, areas=nil, lang=nil)
10305
+ @Key = key
10306
+ @Op = op
10307
+ @Value = value
10308
+ @OpOp = opop
10309
+ @OpArg = oparg
10310
+ @OpValue = opvalue
10311
+ @Name = name
10312
+ @Areas = areas
10313
+ @Lang = lang
10314
+ end
10315
+
10316
+ def deserialize(params)
10317
+ @Key = params['Key']
10318
+ @Op = params['Op']
10319
+ unless params['Value'].nil?
10320
+ @Value = UCBEntryValue.new
10321
+ @Value.deserialize(params['Value'])
10322
+ end
10323
+ @OpOp = params['OpOp']
10324
+ @OpArg = params['OpArg']
10325
+ @OpValue = params['OpValue']
10326
+ @Name = params['Name']
10327
+ unless params['Areas'].nil?
10328
+ @Areas = []
10329
+ params['Areas'].each do |i|
10330
+ area_tmp = Area.new
10331
+ area_tmp.deserialize(i)
10332
+ @Areas << area_tmp
10333
+ end
10334
+ end
10335
+ @Lang = params['Lang']
10336
+ end
10337
+ end
10338
+
9431
10339
  # 一个实例的详细信息
9432
10340
  class InstanceInfo < TencentCloud::Common::AbstractModel
9433
10341
  # @param InstanceId: 实例唯一ID
@@ -10732,6 +11640,104 @@ module TencentCloud
10732
11640
  end
10733
11641
  end
10734
11642
 
11643
+ # ModifyBotSceneStatus请求参数结构体
11644
+ class ModifyBotSceneStatusRequest < TencentCloud::Common::AbstractModel
11645
+ # @param Domain: 域名
11646
+ # @type Domain: String
11647
+ # @param SceneId: 场景ID
11648
+ # @type SceneId: String
11649
+ # @param Status: true-开启 false-关闭
11650
+ # @type Status: Boolean
11651
+
11652
+ attr_accessor :Domain, :SceneId, :Status
11653
+
11654
+ def initialize(domain=nil, sceneid=nil, status=nil)
11655
+ @Domain = domain
11656
+ @SceneId = sceneid
11657
+ @Status = status
11658
+ end
11659
+
11660
+ def deserialize(params)
11661
+ @Domain = params['Domain']
11662
+ @SceneId = params['SceneId']
11663
+ @Status = params['Status']
11664
+ end
11665
+ end
11666
+
11667
+ # ModifyBotSceneStatus返回参数结构体
11668
+ class ModifyBotSceneStatusResponse < TencentCloud::Common::AbstractModel
11669
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11670
+ # @type RequestId: String
11671
+
11672
+ attr_accessor :RequestId
11673
+
11674
+ def initialize(requestid=nil)
11675
+ @RequestId = requestid
11676
+ end
11677
+
11678
+ def deserialize(params)
11679
+ @RequestId = params['RequestId']
11680
+ end
11681
+ end
11682
+
11683
+ # ModifyBotSceneUCBRule请求参数结构体
11684
+ class ModifyBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
11685
+ # @param Domain: 域名
11686
+ # @type Domain: String
11687
+ # @param SceneId: 1.BOT全局白名单处调用时,传"global";2.BOT场景配置时,传具体的场景ID
11688
+ # @type SceneId: String
11689
+ # @param Rule: 规则内容, 增加编码SceneId信息,1.BOT全局白名单处调用时,SceneId为"global", RuleType传10, Action为"permit";2.BOT场景配置时,SceneId为场景ID
11690
+ # @type Rule: :class:`Tencentcloud::Waf.v20180125.models.InOutputBotUCBRule`
11691
+ # @param BatchRules: 530改批量操作
11692
+ # @type BatchRules: Array
11693
+
11694
+ attr_accessor :Domain, :SceneId, :Rule, :BatchRules
11695
+
11696
+ def initialize(domain=nil, sceneid=nil, rule=nil, batchrules=nil)
11697
+ @Domain = domain
11698
+ @SceneId = sceneid
11699
+ @Rule = rule
11700
+ @BatchRules = batchrules
11701
+ end
11702
+
11703
+ def deserialize(params)
11704
+ @Domain = params['Domain']
11705
+ @SceneId = params['SceneId']
11706
+ unless params['Rule'].nil?
11707
+ @Rule = InOutputBotUCBRule.new
11708
+ @Rule.deserialize(params['Rule'])
11709
+ end
11710
+ unless params['BatchRules'].nil?
11711
+ @BatchRules = []
11712
+ params['BatchRules'].each do |i|
11713
+ inoutputbotucbrule_tmp = InOutputBotUCBRule.new
11714
+ inoutputbotucbrule_tmp.deserialize(i)
11715
+ @BatchRules << inoutputbotucbrule_tmp
11716
+ end
11717
+ end
11718
+ end
11719
+ end
11720
+
11721
+ # ModifyBotSceneUCBRule返回参数结构体
11722
+ class ModifyBotSceneUCBRuleResponse < TencentCloud::Common::AbstractModel
11723
+ # @param Data: 正常情况下为null
11724
+ # @type Data: String
11725
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11726
+ # @type RequestId: String
11727
+
11728
+ attr_accessor :Data, :RequestId
11729
+
11730
+ def initialize(data=nil, requestid=nil)
11731
+ @Data = data
11732
+ @RequestId = requestid
11733
+ end
11734
+
11735
+ def deserialize(params)
11736
+ @Data = params['Data']
11737
+ @RequestId = params['RequestId']
11738
+ end
11739
+ end
11740
+
10735
11741
  # ModifyBotStatus请求参数结构体
10736
11742
  class ModifyBotStatusRequest < TencentCloud::Common::AbstractModel
10737
11743
  # @param Category: 类别
@@ -12801,10 +13807,24 @@ module TencentCloud
12801
13807
  # @type Version: String
12802
13808
  # @param Topic: 主题名称
12803
13809
  # @type Topic: String
13810
+ # @param Compression: 压缩算法,支持gzip 和 lz4
13811
+ # @type Compression: String
13812
+ # @param SASLEnable: 是否支持SASL,0-关闭,1-开启
13813
+ # @type SASLEnable: Integer
13814
+ # @param SASLUser: SASL用户名
13815
+ # @type SASLUser: String
13816
+ # @param SASLPassword: SALS密码
13817
+ # @type SASLPassword: String
13818
+ # @param Content: 描述信息
13819
+ # @type Content: String
13820
+ # @param VipType: 1-外网TGW,2-支撑环境,默认为支撑环境
13821
+ # @type VipType: Integer
13822
+ # @param WriteConfig: 配置状态
13823
+ # @type WriteConfig: :class:`Tencentcloud::Waf.v20180125.models.FieldWriteConfig`
12804
13824
 
12805
- attr_accessor :FlowId, :LogType, :Status, :CKafkaRegion, :CKafkaID, :Brokers, :Version, :Topic
13825
+ attr_accessor :FlowId, :LogType, :Status, :CKafkaRegion, :CKafkaID, :Brokers, :Version, :Topic, :Compression, :SASLEnable, :SASLUser, :SASLPassword, :Content, :VipType, :WriteConfig
12806
13826
 
12807
- def initialize(flowid=nil, logtype=nil, status=nil, ckafkaregion=nil, ckafkaid=nil, brokers=nil, version=nil, topic=nil)
13827
+ def initialize(flowid=nil, logtype=nil, status=nil, ckafkaregion=nil, ckafkaid=nil, brokers=nil, version=nil, topic=nil, compression=nil, saslenable=nil, sasluser=nil, saslpassword=nil, content=nil, viptype=nil, writeconfig=nil)
12808
13828
  @FlowId = flowid
12809
13829
  @LogType = logtype
12810
13830
  @Status = status
@@ -12813,6 +13833,13 @@ module TencentCloud
12813
13833
  @Brokers = brokers
12814
13834
  @Version = version
12815
13835
  @Topic = topic
13836
+ @Compression = compression
13837
+ @SASLEnable = saslenable
13838
+ @SASLUser = sasluser
13839
+ @SASLPassword = saslpassword
13840
+ @Content = content
13841
+ @VipType = viptype
13842
+ @WriteConfig = writeconfig
12816
13843
  end
12817
13844
 
12818
13845
  def deserialize(params)
@@ -12824,6 +13851,16 @@ module TencentCloud
12824
13851
  @Brokers = params['Brokers']
12825
13852
  @Version = params['Version']
12826
13853
  @Topic = params['Topic']
13854
+ @Compression = params['Compression']
13855
+ @SASLEnable = params['SASLEnable']
13856
+ @SASLUser = params['SASLUser']
13857
+ @SASLPassword = params['SASLPassword']
13858
+ @Content = params['Content']
13859
+ @VipType = params['VipType']
13860
+ unless params['WriteConfig'].nil?
13861
+ @WriteConfig = FieldWriteConfig.new
13862
+ @WriteConfig.deserialize(params['WriteConfig'])
13863
+ end
12827
13864
  end
12828
13865
  end
12829
13866
 
@@ -13817,6 +14854,58 @@ module TencentCloud
13817
14854
  end
13818
14855
  end
13819
14856
 
14857
+ # bot自定义规则动作灰度
14858
+ class UCBActionProportion < TencentCloud::Common::AbstractModel
14859
+ # @param Action: 动作
14860
+ # @type Action: String
14861
+ # @param Proportion: 比例
14862
+ # @type Proportion: Float
14863
+
14864
+ attr_accessor :Action, :Proportion
14865
+
14866
+ def initialize(action=nil, proportion=nil)
14867
+ @Action = action
14868
+ @Proportion = proportion
14869
+ end
14870
+
14871
+ def deserialize(params)
14872
+ @Action = params['Action']
14873
+ @Proportion = params['Proportion']
14874
+ end
14875
+ end
14876
+
14877
+ # 云图API改版后, 不支持将复杂json类型编码成string,因此通过此复杂类型识别传入的不同类型参数值
14878
+ class UCBEntryValue < TencentCloud::Common::AbstractModel
14879
+ # @param BasicValue: string类型值
14880
+ # @type BasicValue: String
14881
+ # @param LogicValue: 布尔类型值
14882
+ # @type LogicValue: Boolean
14883
+ # @param BelongValue: string数组类型值
14884
+ # @type BelongValue: Array
14885
+ # @param ValidKey: 指示有效的字段
14886
+ # @type ValidKey: String
14887
+ # @param MultiValue: string数组类型值
14888
+ # @type MultiValue: Array
14889
+
14890
+ attr_accessor :BasicValue, :LogicValue, :BelongValue, :ValidKey, :MultiValue
14891
+
14892
+ def initialize(basicvalue=nil, logicvalue=nil, belongvalue=nil, validkey=nil, multivalue=nil)
14893
+ @BasicValue = basicvalue
14894
+ @LogicValue = logicvalue
14895
+ @BelongValue = belongvalue
14896
+ @ValidKey = validkey
14897
+ @MultiValue = multivalue
14898
+ end
14899
+
14900
+ def deserialize(params)
14901
+ @BasicValue = params['BasicValue']
14902
+ @LogicValue = params['LogicValue']
14903
+ @BelongValue = params['BelongValue']
14904
+ @ValidKey = params['ValidKey']
14905
+ @MultiValue = params['MultiValue']
14906
+ end
14907
+ end
14908
+
13820
14909
  # UpdateProtectionModes请求参数结构体
13821
14910
  class UpdateProtectionModesRequest < TencentCloud::Common::AbstractModel
13822
14911
  # @param Domain: 域名