tencentcloud-sdk-waf 3.0.1107 → 3.0.1123

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.
@@ -77,8 +77,8 @@ module TencentCloud
77
77
 
78
78
  attr_accessor :BTime, :Count, :BeginTime
79
79
  extend Gem::Deprecate
80
- deprecate :BTime, :none, 2025, 7
81
- deprecate :BTime=, :none, 2025, 7
80
+ deprecate :BTime, :none, 2025, 8
81
+ deprecate :BTime=, :none, 2025, 8
82
82
 
83
83
  def initialize(btime=nil, count=nil, begintime=nil)
84
84
  @BTime = btime
@@ -595,8 +595,8 @@ module TencentCloud
595
595
 
596
596
  attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId, :LogicalOp
597
597
  extend Gem::Deprecate
598
- deprecate :Bypass, :none, 2025, 7
599
- deprecate :Bypass=, :none, 2025, 7
598
+ deprecate :Bypass, :none, 2025, 8
599
+ deprecate :Bypass=, :none, 2025, 8
600
600
 
601
601
  def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil)
602
602
  @Name = name
@@ -954,16 +954,16 @@ module TencentCloud
954
954
 
955
955
  attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Edition, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase
956
956
  extend Gem::Deprecate
957
- deprecate :ResourceId, :none, 2025, 7
958
- deprecate :ResourceId=, :none, 2025, 7
959
- deprecate :IsGray, :none, 2025, 7
960
- deprecate :IsGray=, :none, 2025, 7
961
- deprecate :GrayAreas, :none, 2025, 7
962
- deprecate :GrayAreas=, :none, 2025, 7
963
- deprecate :Edition, :none, 2025, 7
964
- deprecate :Edition=, :none, 2025, 7
965
- deprecate :Anycast, :none, 2025, 7
966
- deprecate :Anycast=, :none, 2025, 7
957
+ deprecate :ResourceId, :none, 2025, 8
958
+ deprecate :ResourceId=, :none, 2025, 8
959
+ deprecate :IsGray, :none, 2025, 8
960
+ deprecate :IsGray=, :none, 2025, 8
961
+ deprecate :GrayAreas, :none, 2025, 8
962
+ deprecate :GrayAreas=, :none, 2025, 8
963
+ deprecate :Edition, :none, 2025, 8
964
+ deprecate :Edition=, :none, 2025, 8
965
+ deprecate :Anycast, :none, 2025, 8
966
+ deprecate :Anycast=, :none, 2025, 8
967
967
 
968
968
  def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, edition=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil)
969
969
  @Domain = domain
@@ -1548,10 +1548,10 @@ module TencentCloud
1548
1548
 
1549
1549
  attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList, :CreateTime, :JobType, :CronType, :JobDateTime, :ValidStatus, :GroupIds
1550
1550
  extend Gem::Deprecate
1551
- deprecate :Id, :none, 2025, 7
1552
- deprecate :Id=, :none, 2025, 7
1553
- deprecate :Ip, :none, 2025, 7
1554
- deprecate :Ip=, :none, 2025, 7
1551
+ deprecate :Id, :none, 2025, 8
1552
+ deprecate :Id=, :none, 2025, 8
1553
+ deprecate :Ip, :none, 2025, 8
1554
+ deprecate :Ip=, :none, 2025, 8
1555
1555
 
1556
1556
  def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil, createtime=nil, jobtype=nil, crontype=nil, jobdatetime=nil, validstatus=nil, groupids=nil)
1557
1557
  @Id = id
@@ -3104,8 +3104,8 @@ module TencentCloud
3104
3104
 
3105
3105
  attr_accessor :Domain, :IpList, :ActionType, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
3106
3106
  extend Gem::Deprecate
3107
- deprecate :ValidTS, :none, 2025, 7
3108
- deprecate :ValidTS=, :none, 2025, 7
3107
+ deprecate :ValidTS, :none, 2025, 8
3108
+ deprecate :ValidTS=, :none, 2025, 8
3109
3109
 
3110
3110
  def initialize(domain=nil, iplist=nil, actiontype=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
3111
3111
  @Domain = domain
@@ -3157,6 +3157,84 @@ module TencentCloud
3157
3157
  end
3158
3158
  end
3159
3159
 
3160
+ # CreateOwaspWhiteRule请求参数结构体
3161
+ class CreateOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
3162
+ # @param Name: 规则名称
3163
+ # @type Name: String
3164
+ # @param Domain: 域名
3165
+ # @type Domain: String
3166
+ # @param Strategies: 规则匹配策略列表
3167
+ # @type Strategies: Array
3168
+ # @param Ids: 加白的规则ID列表
3169
+ # @type Ids: Array
3170
+ # @param Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
3171
+ # @type Type: Integer
3172
+ # @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
3173
+ # @type JobType: String
3174
+ # @param JobDateTime: 定时任务配置
3175
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
3176
+ # @param ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
3177
+ # @type ExpireTime: Integer
3178
+ # @param Status: 规则状态,0:关闭、1:开启,默认为开启
3179
+ # @type Status: Integer
3180
+
3181
+ attr_accessor :Name, :Domain, :Strategies, :Ids, :Type, :JobType, :JobDateTime, :ExpireTime, :Status
3182
+
3183
+ def initialize(name=nil, domain=nil, strategies=nil, ids=nil, type=nil, jobtype=nil, jobdatetime=nil, expiretime=nil, status=nil)
3184
+ @Name = name
3185
+ @Domain = domain
3186
+ @Strategies = strategies
3187
+ @Ids = ids
3188
+ @Type = type
3189
+ @JobType = jobtype
3190
+ @JobDateTime = jobdatetime
3191
+ @ExpireTime = expiretime
3192
+ @Status = status
3193
+ end
3194
+
3195
+ def deserialize(params)
3196
+ @Name = params['Name']
3197
+ @Domain = params['Domain']
3198
+ unless params['Strategies'].nil?
3199
+ @Strategies = []
3200
+ params['Strategies'].each do |i|
3201
+ strategy_tmp = Strategy.new
3202
+ strategy_tmp.deserialize(i)
3203
+ @Strategies << strategy_tmp
3204
+ end
3205
+ end
3206
+ @Ids = params['Ids']
3207
+ @Type = params['Type']
3208
+ @JobType = params['JobType']
3209
+ unless params['JobDateTime'].nil?
3210
+ @JobDateTime = JobDateTime.new
3211
+ @JobDateTime.deserialize(params['JobDateTime'])
3212
+ end
3213
+ @ExpireTime = params['ExpireTime']
3214
+ @Status = params['Status']
3215
+ end
3216
+ end
3217
+
3218
+ # CreateOwaspWhiteRule返回参数结构体
3219
+ class CreateOwaspWhiteRuleResponse < TencentCloud::Common::AbstractModel
3220
+ # @param RuleId: 规则ID
3221
+ # @type RuleId: Integer
3222
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3223
+ # @type RequestId: String
3224
+
3225
+ attr_accessor :RuleId, :RequestId
3226
+
3227
+ def initialize(ruleid=nil, requestid=nil)
3228
+ @RuleId = ruleid
3229
+ @RequestId = requestid
3230
+ end
3231
+
3232
+ def deserialize(params)
3233
+ @RuleId = params['RuleId']
3234
+ @RequestId = params['RequestId']
3235
+ end
3236
+ end
3237
+
3160
3238
  # CreatePostCKafkaFlow请求参数结构体
3161
3239
  class CreatePostCKafkaFlowRequest < TencentCloud::Common::AbstractModel
3162
3240
  # @param CKafkaRegion: 投递的CKafka所在区域
@@ -3903,6 +3981,78 @@ module TencentCloud
3903
3981
  end
3904
3982
  end
3905
3983
 
3984
+ # DeleteOwaspRuleStatus请求参数结构体
3985
+ class DeleteOwaspRuleStatusRequest < TencentCloud::Common::AbstractModel
3986
+ # @param Domain: 域名
3987
+ # @type Domain: String
3988
+ # @param RuleIDs: 规则ID列表
3989
+ # @type RuleIDs: Array
3990
+
3991
+ attr_accessor :Domain, :RuleIDs
3992
+
3993
+ def initialize(domain=nil, ruleids=nil)
3994
+ @Domain = domain
3995
+ @RuleIDs = ruleids
3996
+ end
3997
+
3998
+ def deserialize(params)
3999
+ @Domain = params['Domain']
4000
+ @RuleIDs = params['RuleIDs']
4001
+ end
4002
+ end
4003
+
4004
+ # DeleteOwaspRuleStatus返回参数结构体
4005
+ class DeleteOwaspRuleStatusResponse < TencentCloud::Common::AbstractModel
4006
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4007
+ # @type RequestId: String
4008
+
4009
+ attr_accessor :RequestId
4010
+
4011
+ def initialize(requestid=nil)
4012
+ @RequestId = requestid
4013
+ end
4014
+
4015
+ def deserialize(params)
4016
+ @RequestId = params['RequestId']
4017
+ end
4018
+ end
4019
+
4020
+ # DeleteOwaspWhiteRule请求参数结构体
4021
+ class DeleteOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
4022
+ # @param Ids: 规则白名单ID列表
4023
+ # @type Ids: Array
4024
+ # @param Domain: 域名
4025
+ # @type Domain: String
4026
+
4027
+ attr_accessor :Ids, :Domain
4028
+
4029
+ def initialize(ids=nil, domain=nil)
4030
+ @Ids = ids
4031
+ @Domain = domain
4032
+ end
4033
+
4034
+ def deserialize(params)
4035
+ @Ids = params['Ids']
4036
+ @Domain = params['Domain']
4037
+ end
4038
+ end
4039
+
4040
+ # DeleteOwaspWhiteRule返回参数结构体
4041
+ class DeleteOwaspWhiteRuleResponse < TencentCloud::Common::AbstractModel
4042
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4043
+ # @type RequestId: String
4044
+
4045
+ attr_accessor :RequestId
4046
+
4047
+ def initialize(requestid=nil)
4048
+ @RequestId = requestid
4049
+ end
4050
+
4051
+ def deserialize(params)
4052
+ @RequestId = params['RequestId']
4053
+ end
4054
+ end
4055
+
3906
4056
  # DeleteSession请求参数结构体
3907
4057
  class DeleteSessionRequest < TencentCloud::Common::AbstractModel
3908
4058
  # @param Domain: 域名
@@ -4061,8 +4211,8 @@ module TencentCloud
4061
4211
 
4062
4212
  attr_accessor :From, :To, :Query, :FieldName, :TopicId, :Sort, :Count
4063
4213
  extend Gem::Deprecate
4064
- deprecate :TopicId, :none, 2025, 7
4065
- deprecate :TopicId=, :none, 2025, 7
4214
+ deprecate :TopicId, :none, 2025, 8
4215
+ deprecate :TopicId=, :none, 2025, 8
4066
4216
 
4067
4217
  def initialize(from=nil, to=nil, query=nil, fieldname=nil, topicid=nil, sort=nil, count=nil)
4068
4218
  @From = from
@@ -6759,10 +6909,10 @@ module TencentCloud
6759
6909
 
6760
6910
  attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId, :TimerType
6761
6911
  extend Gem::Deprecate
6762
- deprecate :VtsMin, :none, 2025, 7
6763
- deprecate :VtsMin=, :none, 2025, 7
6764
- deprecate :VtsMax, :none, 2025, 7
6765
- deprecate :VtsMax=, :none, 2025, 7
6912
+ deprecate :VtsMin, :none, 2025, 8
6913
+ deprecate :VtsMin=, :none, 2025, 8
6914
+ deprecate :VtsMax, :none, 2025, 8
6915
+ deprecate :VtsMax=, :none, 2025, 8
6766
6916
 
6767
6917
  def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil, timertype=nil)
6768
6918
  @Domain = domain
@@ -6865,10 +7015,10 @@ module TencentCloud
6865
7015
 
6866
7016
  attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
6867
7017
  extend Gem::Deprecate
6868
- deprecate :VtsMin, :none, 2025, 7
6869
- deprecate :VtsMin=, :none, 2025, 7
6870
- deprecate :VtsMax, :none, 2025, 7
6871
- deprecate :VtsMax=, :none, 2025, 7
7018
+ deprecate :VtsMin, :none, 2025, 8
7019
+ deprecate :VtsMin=, :none, 2025, 8
7020
+ deprecate :VtsMax, :none, 2025, 8
7021
+ deprecate :VtsMax=, :none, 2025, 8
6872
7022
 
6873
7023
  def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
6874
7024
  @Domain = domain
@@ -7046,129 +7196,343 @@ module TencentCloud
7046
7196
  end
7047
7197
  end
7048
7198
 
7049
- # DescribePeakPoints请求参数结构体
7050
- class DescribePeakPointsRequest < TencentCloud::Common::AbstractModel
7051
- # @param FromTime: 查询起始时间
7052
- # @type FromTime: String
7053
- # @param ToTime: 查询终止时间
7054
- # @type ToTime: String
7055
- # @param Domain: 查询的域名,如果查询所有域名数据,该参数不填写
7199
+ # DescribeOwaspRuleTypes请求参数结构体
7200
+ class DescribeOwaspRuleTypesRequest < TencentCloud::Common::AbstractModel
7201
+ # @param Domain: 查询域名
7056
7202
  # @type Domain: String
7057
- # @param Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
7058
- # @type Edition: String
7059
- # @param InstanceID: WAF实例ID,不传则不过滤
7060
- # @type InstanceID: String
7061
- # @param MetricName: 十二个值可选:
7062
- # access-峰值qps趋势图
7063
- # botAccess- bot峰值qps趋势图
7064
- # down-下行峰值带宽趋势图
7065
- # up-上行峰值带宽趋势图
7066
- # attack-Web攻击总数趋势图
7067
- # cc-CC攻击总数趋势图
7068
- # bw-黑IP攻击总数趋势图
7069
- # tamper-防篡改攻击总数趋势图
7070
- # leak-防泄露攻击总数趋势图
7071
- # acl-访问控制攻击总数趋势图
7072
- # http_status-状态码各次数趋势图
7073
- # wx_access-微信小程序峰值qps趋势图
7074
- # @type MetricName: String
7203
+ # @param Offset: 分页页数,默认为0
7204
+ # @type Offset: Integer
7205
+ # @param Limit: 每页容量,默认为10
7206
+ # @type Limit: Integer
7207
+ # @param Filters: 筛选条件,支持 RuleId:规则ID、CveID:CVE编号、Desc:描述
7208
+ # @type Filters: Array
7075
7209
 
7076
- attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
7210
+ attr_accessor :Domain, :Offset, :Limit, :Filters
7077
7211
 
7078
- def initialize(fromtime=nil, totime=nil, domain=nil, edition=nil, instanceid=nil, metricname=nil)
7079
- @FromTime = fromtime
7080
- @ToTime = totime
7212
+ def initialize(domain=nil, offset=nil, limit=nil, filters=nil)
7081
7213
  @Domain = domain
7082
- @Edition = edition
7083
- @InstanceID = instanceid
7084
- @MetricName = metricname
7214
+ @Offset = offset
7215
+ @Limit = limit
7216
+ @Filters = filters
7085
7217
  end
7086
7218
 
7087
7219
  def deserialize(params)
7088
- @FromTime = params['FromTime']
7089
- @ToTime = params['ToTime']
7090
7220
  @Domain = params['Domain']
7091
- @Edition = params['Edition']
7092
- @InstanceID = params['InstanceID']
7093
- @MetricName = params['MetricName']
7221
+ @Offset = params['Offset']
7222
+ @Limit = params['Limit']
7223
+ unless params['Filters'].nil?
7224
+ @Filters = []
7225
+ params['Filters'].each do |i|
7226
+ filtersitemnew_tmp = FiltersItemNew.new
7227
+ filtersitemnew_tmp.deserialize(i)
7228
+ @Filters << filtersitemnew_tmp
7229
+ end
7230
+ end
7094
7231
  end
7095
7232
  end
7096
7233
 
7097
- # DescribePeakPoints返回参数结构体
7098
- class DescribePeakPointsResponse < TencentCloud::Common::AbstractModel
7099
- # @param Points: 数据点
7100
- # @type Points: Array
7234
+ # DescribeOwaspRuleTypes返回参数结构体
7235
+ class DescribeOwaspRuleTypesResponse < TencentCloud::Common::AbstractModel
7236
+ # @param Total: 规则类型数量
7237
+ # @type Total: Integer
7238
+ # @param List: 规则类型列表及信息
7239
+ # @type List: Array
7101
7240
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7102
7241
  # @type RequestId: String
7103
7242
 
7104
- attr_accessor :Points, :RequestId
7243
+ attr_accessor :Total, :List, :RequestId
7105
7244
 
7106
- def initialize(points=nil, requestid=nil)
7107
- @Points = points
7245
+ def initialize(total=nil, list=nil, requestid=nil)
7246
+ @Total = total
7247
+ @List = list
7108
7248
  @RequestId = requestid
7109
7249
  end
7110
7250
 
7111
7251
  def deserialize(params)
7112
- unless params['Points'].nil?
7113
- @Points = []
7114
- params['Points'].each do |i|
7115
- peakpointsitem_tmp = PeakPointsItem.new
7116
- peakpointsitem_tmp.deserialize(i)
7117
- @Points << peakpointsitem_tmp
7252
+ @Total = params['Total']
7253
+ unless params['List'].nil?
7254
+ @List = []
7255
+ params['List'].each do |i|
7256
+ owaspruletype_tmp = OwaspRuleType.new
7257
+ owaspruletype_tmp.deserialize(i)
7258
+ @List << owaspruletype_tmp
7118
7259
  end
7119
7260
  end
7120
7261
  @RequestId = params['RequestId']
7121
7262
  end
7122
7263
  end
7123
7264
 
7124
- # DescribePeakValue请求参数结构体
7125
- class DescribePeakValueRequest < TencentCloud::Common::AbstractModel
7126
- # @param FromTime: 查询起始时间
7127
- # @type FromTime: String
7128
- # @param ToTime: 查询结束时间
7129
- # @type ToTime: String
7130
- # @param Domain: 需要查询的域名,当前用户所有域名可以不传
7265
+ # DescribeOwaspRules请求参数结构体
7266
+ class DescribeOwaspRulesRequest < TencentCloud::Common::AbstractModel
7267
+ # @param Domain: 需要查询的域名
7131
7268
  # @type Domain: String
7132
- # @param Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
7133
- # @type Edition: String
7134
- # @param InstanceID: WAF实例ID,不传则不过滤
7135
- # @type InstanceID: String
7136
- # @param MetricName: 五个值可选:
7137
- # access-峰值qps
7138
- # down-下行峰值带宽
7139
- # up-上行峰值带宽
7140
- # attack-Web攻击总数
7141
- # cc-CC攻击总数趋势图
7142
- # @type MetricName: String
7269
+ # @param Offset: 分页页数,默认为0
7270
+ # @type Offset: Integer
7271
+ # @param Limit: 每页容量,默认为10
7272
+ # @type Limit: Integer
7273
+ # @param By: 排序字段,支持 RuleId, UpdateTime
7274
+ # @type By: String
7275
+ # @param Order: 排序方式,支持asc、desc
7276
+ # @type Order: String
7277
+ # @param Filters: 筛选条件,支持 RuleId:规则ID、TypeId:规则类型、Desc:规则描述 、CveID:CVE编号、Status:规则状态、VulLevel:威胁等级
7278
+ # @type Filters: Array
7143
7279
 
7144
- attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
7280
+ attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
7145
7281
 
7146
- def initialize(fromtime=nil, totime=nil, domain=nil, edition=nil, instanceid=nil, metricname=nil)
7147
- @FromTime = fromtime
7148
- @ToTime = totime
7282
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
7149
7283
  @Domain = domain
7150
- @Edition = edition
7151
- @InstanceID = instanceid
7152
- @MetricName = metricname
7284
+ @Offset = offset
7285
+ @Limit = limit
7286
+ @By = by
7287
+ @Order = order
7288
+ @Filters = filters
7153
7289
  end
7154
7290
 
7155
7291
  def deserialize(params)
7156
- @FromTime = params['FromTime']
7157
- @ToTime = params['ToTime']
7158
7292
  @Domain = params['Domain']
7159
- @Edition = params['Edition']
7160
- @InstanceID = params['InstanceID']
7161
- @MetricName = params['MetricName']
7162
- end
7163
- end
7164
-
7165
- # DescribePeakValue返回参数结构体
7166
- class DescribePeakValueResponse < TencentCloud::Common::AbstractModel
7167
- # @param Access: QPS峰值
7168
- # @type Access: Integer
7169
- # @param Up: 上行带宽峰值,单位B
7170
- # @type Up: Integer
7171
- # @param Down: 下行带宽峰值,单位B
7293
+ @Offset = params['Offset']
7294
+ @Limit = params['Limit']
7295
+ @By = params['By']
7296
+ @Order = params['Order']
7297
+ unless params['Filters'].nil?
7298
+ @Filters = []
7299
+ params['Filters'].each do |i|
7300
+ filtersitemnew_tmp = FiltersItemNew.new
7301
+ filtersitemnew_tmp.deserialize(i)
7302
+ @Filters << filtersitemnew_tmp
7303
+ end
7304
+ end
7305
+ end
7306
+ end
7307
+
7308
+ # DescribeOwaspRules返回参数结构体
7309
+ class DescribeOwaspRulesResponse < TencentCloud::Common::AbstractModel
7310
+ # @param Total: 规则总数
7311
+ # @type Total: Integer
7312
+ # @param List: 规则列表
7313
+ # @type List: Array
7314
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7315
+ # @type RequestId: String
7316
+
7317
+ attr_accessor :Total, :List, :RequestId
7318
+
7319
+ def initialize(total=nil, list=nil, requestid=nil)
7320
+ @Total = total
7321
+ @List = list
7322
+ @RequestId = requestid
7323
+ end
7324
+
7325
+ def deserialize(params)
7326
+ @Total = params['Total']
7327
+ unless params['List'].nil?
7328
+ @List = []
7329
+ params['List'].each do |i|
7330
+ owasprule_tmp = OwaspRule.new
7331
+ owasprule_tmp.deserialize(i)
7332
+ @List << owasprule_tmp
7333
+ end
7334
+ end
7335
+ @RequestId = params['RequestId']
7336
+ end
7337
+ end
7338
+
7339
+ # DescribeOwaspWhiteRules请求参数结构体
7340
+ class DescribeOwaspWhiteRulesRequest < TencentCloud::Common::AbstractModel
7341
+ # @param Domain: 需要查询的域名
7342
+ # @type Domain: String
7343
+ # @param Offset: 分页分页,默认为0
7344
+ # @type Offset: Integer
7345
+ # @param Limit: 每页容量,默认为10
7346
+ # @type Limit: Integer
7347
+ # @param By: 排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
7348
+ # @type By: String
7349
+ # @param Order: 排序方式,支持asc、desc
7350
+ # @type Order: String
7351
+ # @param Filters: 筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
7352
+ # @type Filters: Array
7353
+
7354
+ attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
7355
+
7356
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
7357
+ @Domain = domain
7358
+ @Offset = offset
7359
+ @Limit = limit
7360
+ @By = by
7361
+ @Order = order
7362
+ @Filters = filters
7363
+ end
7364
+
7365
+ def deserialize(params)
7366
+ @Domain = params['Domain']
7367
+ @Offset = params['Offset']
7368
+ @Limit = params['Limit']
7369
+ @By = params['By']
7370
+ @Order = params['Order']
7371
+ unless params['Filters'].nil?
7372
+ @Filters = []
7373
+ params['Filters'].each do |i|
7374
+ filtersitemnew_tmp = FiltersItemNew.new
7375
+ filtersitemnew_tmp.deserialize(i)
7376
+ @Filters << filtersitemnew_tmp
7377
+ end
7378
+ end
7379
+ end
7380
+ end
7381
+
7382
+ # DescribeOwaspWhiteRules返回参数结构体
7383
+ class DescribeOwaspWhiteRulesResponse < TencentCloud::Common::AbstractModel
7384
+ # @param Total: 规则总数
7385
+ # @type Total: Integer
7386
+ # @param List: 规则白名单列表
7387
+ # @type List: Array
7388
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7389
+ # @type RequestId: String
7390
+
7391
+ attr_accessor :Total, :List, :RequestId
7392
+
7393
+ def initialize(total=nil, list=nil, requestid=nil)
7394
+ @Total = total
7395
+ @List = list
7396
+ @RequestId = requestid
7397
+ end
7398
+
7399
+ def deserialize(params)
7400
+ @Total = params['Total']
7401
+ unless params['List'].nil?
7402
+ @List = []
7403
+ params['List'].each do |i|
7404
+ owaspwhiterule_tmp = OwaspWhiteRule.new
7405
+ owaspwhiterule_tmp.deserialize(i)
7406
+ @List << owaspwhiterule_tmp
7407
+ end
7408
+ end
7409
+ @RequestId = params['RequestId']
7410
+ end
7411
+ end
7412
+
7413
+ # DescribePeakPoints请求参数结构体
7414
+ class DescribePeakPointsRequest < TencentCloud::Common::AbstractModel
7415
+ # @param FromTime: 查询起始时间
7416
+ # @type FromTime: String
7417
+ # @param ToTime: 查询终止时间
7418
+ # @type ToTime: String
7419
+ # @param Domain: 查询的域名,如果查询所有域名数据,该参数不填写
7420
+ # @type Domain: String
7421
+ # @param Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
7422
+ # @type Edition: String
7423
+ # @param InstanceID: WAF实例ID,不传则不过滤
7424
+ # @type InstanceID: String
7425
+ # @param MetricName: 十二个值可选:
7426
+ # access-峰值qps趋势图
7427
+ # botAccess- bot峰值qps趋势图
7428
+ # down-下行峰值带宽趋势图
7429
+ # up-上行峰值带宽趋势图
7430
+ # attack-Web攻击总数趋势图
7431
+ # cc-CC攻击总数趋势图
7432
+ # bw-黑IP攻击总数趋势图
7433
+ # tamper-防篡改攻击总数趋势图
7434
+ # leak-防泄露攻击总数趋势图
7435
+ # acl-访问控制攻击总数趋势图
7436
+ # http_status-状态码各次数趋势图
7437
+ # wx_access-微信小程序峰值qps趋势图
7438
+ # @type MetricName: String
7439
+
7440
+ attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
7441
+
7442
+ def initialize(fromtime=nil, totime=nil, domain=nil, edition=nil, instanceid=nil, metricname=nil)
7443
+ @FromTime = fromtime
7444
+ @ToTime = totime
7445
+ @Domain = domain
7446
+ @Edition = edition
7447
+ @InstanceID = instanceid
7448
+ @MetricName = metricname
7449
+ end
7450
+
7451
+ def deserialize(params)
7452
+ @FromTime = params['FromTime']
7453
+ @ToTime = params['ToTime']
7454
+ @Domain = params['Domain']
7455
+ @Edition = params['Edition']
7456
+ @InstanceID = params['InstanceID']
7457
+ @MetricName = params['MetricName']
7458
+ end
7459
+ end
7460
+
7461
+ # DescribePeakPoints返回参数结构体
7462
+ class DescribePeakPointsResponse < TencentCloud::Common::AbstractModel
7463
+ # @param Points: 数据点
7464
+ # @type Points: Array
7465
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7466
+ # @type RequestId: String
7467
+
7468
+ attr_accessor :Points, :RequestId
7469
+
7470
+ def initialize(points=nil, requestid=nil)
7471
+ @Points = points
7472
+ @RequestId = requestid
7473
+ end
7474
+
7475
+ def deserialize(params)
7476
+ unless params['Points'].nil?
7477
+ @Points = []
7478
+ params['Points'].each do |i|
7479
+ peakpointsitem_tmp = PeakPointsItem.new
7480
+ peakpointsitem_tmp.deserialize(i)
7481
+ @Points << peakpointsitem_tmp
7482
+ end
7483
+ end
7484
+ @RequestId = params['RequestId']
7485
+ end
7486
+ end
7487
+
7488
+ # DescribePeakValue请求参数结构体
7489
+ class DescribePeakValueRequest < TencentCloud::Common::AbstractModel
7490
+ # @param FromTime: 查询起始时间
7491
+ # @type FromTime: String
7492
+ # @param ToTime: 查询结束时间
7493
+ # @type ToTime: String
7494
+ # @param Domain: 需要查询的域名,当前用户所有域名可以不传
7495
+ # @type Domain: String
7496
+ # @param Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
7497
+ # @type Edition: String
7498
+ # @param InstanceID: WAF实例ID,不传则不过滤
7499
+ # @type InstanceID: String
7500
+ # @param MetricName: 五个值可选:
7501
+ # access-峰值qps
7502
+ # down-下行峰值带宽
7503
+ # up-上行峰值带宽
7504
+ # attack-Web攻击总数
7505
+ # cc-CC攻击总数趋势图
7506
+ # @type MetricName: String
7507
+
7508
+ attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
7509
+
7510
+ def initialize(fromtime=nil, totime=nil, domain=nil, edition=nil, instanceid=nil, metricname=nil)
7511
+ @FromTime = fromtime
7512
+ @ToTime = totime
7513
+ @Domain = domain
7514
+ @Edition = edition
7515
+ @InstanceID = instanceid
7516
+ @MetricName = metricname
7517
+ end
7518
+
7519
+ def deserialize(params)
7520
+ @FromTime = params['FromTime']
7521
+ @ToTime = params['ToTime']
7522
+ @Domain = params['Domain']
7523
+ @Edition = params['Edition']
7524
+ @InstanceID = params['InstanceID']
7525
+ @MetricName = params['MetricName']
7526
+ end
7527
+ end
7528
+
7529
+ # DescribePeakValue返回参数结构体
7530
+ class DescribePeakValueResponse < TencentCloud::Common::AbstractModel
7531
+ # @param Access: QPS峰值
7532
+ # @type Access: Integer
7533
+ # @param Up: 上行带宽峰值,单位B
7534
+ # @type Up: Integer
7535
+ # @param Down: 下行带宽峰值,单位B
7172
7536
  # @type Down: Integer
7173
7537
  # @param Attack: Web攻击总数
7174
7538
  # @type Attack: Integer
@@ -8967,8 +9331,8 @@ module TencentCloud
8967
9331
 
8968
9332
  attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus, :UpstreamPolicy, :UpstreamRules, :UseCase
8969
9333
  extend Gem::Deprecate
8970
- deprecate :IsGray, :none, 2025, 7
8971
- deprecate :IsGray=, :none, 2025, 7
9334
+ deprecate :IsGray, :none, 2025, 8
9335
+ deprecate :IsGray=, :none, 2025, 8
8972
9336
 
8973
9337
  def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil)
8974
9338
  @Domain = domain
@@ -11998,8 +12362,8 @@ module TencentCloud
11998
12362
 
11999
12363
  attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp
12000
12364
  extend Gem::Deprecate
12001
- deprecate :Bypass, :none, 2025, 7
12002
- deprecate :Bypass=, :none, 2025, 7
12365
+ deprecate :Bypass, :none, 2025, 8
12366
+ deprecate :Bypass=, :none, 2025, 8
12003
12367
 
12004
12368
  def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil, logicalop=nil)
12005
12369
  @Domain = domain
@@ -12923,8 +13287,8 @@ module TencentCloud
12923
13287
 
12924
13288
  attr_accessor :Domain, :IpList, :ActionType, :RuleId, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
12925
13289
  extend Gem::Deprecate
12926
- deprecate :ValidTS, :none, 2025, 7
12927
- deprecate :ValidTS=, :none, 2025, 7
13290
+ deprecate :ValidTS, :none, 2025, 8
13291
+ deprecate :ValidTS=, :none, 2025, 8
12928
13292
 
12929
13293
  def initialize(domain=nil, iplist=nil, actiontype=nil, ruleid=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
12930
13294
  @Domain = domain
@@ -13086,32 +13450,44 @@ module TencentCloud
13086
13450
  end
13087
13451
  end
13088
13452
 
13089
- # ModifyProtectionStatus请求参数结构体
13090
- class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
13453
+ # ModifyOwaspRuleStatus请求参数结构体
13454
+ class ModifyOwaspRuleStatusRequest < TencentCloud::Common::AbstractModel
13091
13455
  # @param Domain: 域名
13092
13456
  # @type Domain: String
13093
- # @param Status: 1:开启WAF开关,0:关闭WAF开关
13094
- # @type Status: Integer
13095
- # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
13096
- # @type Edition: String
13457
+ # @param RuleStatus: 规则开关,0:关闭、1:开启、2:只观察
13458
+ # @type RuleStatus: Integer
13459
+ # @param SelectAll: 是否全选
13460
+ # @type SelectAll: Boolean
13461
+ # @param RuleIDs: 规则ID列表
13462
+ # @type RuleIDs: Array
13463
+ # @param TypeId: 如果反转需要传入类型
13464
+ # @type TypeId: Integer
13465
+ # @param Reason: 修改原因 0:无(兼容记录为空) 1:业务自身特性误报避免 2:规则误报上报 3:核心业务规则灰度 4:其它
13466
+ # @type Reason: Integer
13097
13467
 
13098
- attr_accessor :Domain, :Status, :Edition
13468
+ attr_accessor :Domain, :RuleStatus, :SelectAll, :RuleIDs, :TypeId, :Reason
13099
13469
 
13100
- def initialize(domain=nil, status=nil, edition=nil)
13470
+ def initialize(domain=nil, rulestatus=nil, selectall=nil, ruleids=nil, typeid=nil, reason=nil)
13101
13471
  @Domain = domain
13102
- @Status = status
13103
- @Edition = edition
13472
+ @RuleStatus = rulestatus
13473
+ @SelectAll = selectall
13474
+ @RuleIDs = ruleids
13475
+ @TypeId = typeid
13476
+ @Reason = reason
13104
13477
  end
13105
13478
 
13106
13479
  def deserialize(params)
13107
13480
  @Domain = params['Domain']
13108
- @Status = params['Status']
13109
- @Edition = params['Edition']
13481
+ @RuleStatus = params['RuleStatus']
13482
+ @SelectAll = params['SelectAll']
13483
+ @RuleIDs = params['RuleIDs']
13484
+ @TypeId = params['TypeId']
13485
+ @Reason = params['Reason']
13110
13486
  end
13111
13487
  end
13112
13488
 
13113
- # ModifyProtectionStatus返回参数结构体
13114
- class ModifyProtectionStatusResponse < TencentCloud::Common::AbstractModel
13489
+ # ModifyOwaspRuleStatus返回参数结构体
13490
+ class ModifyOwaspRuleStatusResponse < TencentCloud::Common::AbstractModel
13115
13491
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13116
13492
  # @type RequestId: String
13117
13493
 
@@ -13126,20 +13502,258 @@ module TencentCloud
13126
13502
  end
13127
13503
  end
13128
13504
 
13129
- # ModifySpartaProtectionMode请求参数结构体
13130
- class ModifySpartaProtectionModeRequest < TencentCloud::Common::AbstractModel
13505
+ # ModifyOwaspRuleTypeAction请求参数结构体
13506
+ class ModifyOwaspRuleTypeActionRequest < TencentCloud::Common::AbstractModel
13131
13507
  # @param Domain: 域名
13132
13508
  # @type Domain: String
13133
- # @param Mode: 防护状态:
13134
- # 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
13135
- # 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
13136
- # @type Mode: Integer
13137
- # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
13138
- # @type Edition: String
13139
- # @param Type: 0是修改规则引擎状态,1是修改AI的状态
13140
- # @type Type: Integer
13141
- # @param InstanceID: 实例id
13142
- # @type InstanceID: String
13509
+ # @param TypeIDs: 规则类型ID列表
13510
+ # @type TypeIDs: Array
13511
+ # @param RuleTypeAction: 规则类型的防护模式,0:观察、1:拦截
13512
+ # @type RuleTypeAction: Integer
13513
+
13514
+ attr_accessor :Domain, :TypeIDs, :RuleTypeAction
13515
+
13516
+ def initialize(domain=nil, typeids=nil, ruletypeaction=nil)
13517
+ @Domain = domain
13518
+ @TypeIDs = typeids
13519
+ @RuleTypeAction = ruletypeaction
13520
+ end
13521
+
13522
+ def deserialize(params)
13523
+ @Domain = params['Domain']
13524
+ @TypeIDs = params['TypeIDs']
13525
+ @RuleTypeAction = params['RuleTypeAction']
13526
+ end
13527
+ end
13528
+
13529
+ # ModifyOwaspRuleTypeAction返回参数结构体
13530
+ class ModifyOwaspRuleTypeActionResponse < TencentCloud::Common::AbstractModel
13531
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13532
+ # @type RequestId: String
13533
+
13534
+ attr_accessor :RequestId
13535
+
13536
+ def initialize(requestid=nil)
13537
+ @RequestId = requestid
13538
+ end
13539
+
13540
+ def deserialize(params)
13541
+ @RequestId = params['RequestId']
13542
+ end
13543
+ end
13544
+
13545
+ # ModifyOwaspRuleTypeLevel请求参数结构体
13546
+ class ModifyOwaspRuleTypeLevelRequest < TencentCloud::Common::AbstractModel
13547
+ # @param Domain: 域名
13548
+ # @type Domain: String
13549
+ # @param TypeIDs: 规则类型ID列表
13550
+ # @type TypeIDs: Array
13551
+ # @param RuleTypeLevel: 规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
13552
+ # @type RuleTypeLevel: Integer
13553
+
13554
+ attr_accessor :Domain, :TypeIDs, :RuleTypeLevel
13555
+
13556
+ def initialize(domain=nil, typeids=nil, ruletypelevel=nil)
13557
+ @Domain = domain
13558
+ @TypeIDs = typeids
13559
+ @RuleTypeLevel = ruletypelevel
13560
+ end
13561
+
13562
+ def deserialize(params)
13563
+ @Domain = params['Domain']
13564
+ @TypeIDs = params['TypeIDs']
13565
+ @RuleTypeLevel = params['RuleTypeLevel']
13566
+ end
13567
+ end
13568
+
13569
+ # ModifyOwaspRuleTypeLevel返回参数结构体
13570
+ class ModifyOwaspRuleTypeLevelResponse < TencentCloud::Common::AbstractModel
13571
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13572
+ # @type RequestId: String
13573
+
13574
+ attr_accessor :RequestId
13575
+
13576
+ def initialize(requestid=nil)
13577
+ @RequestId = requestid
13578
+ end
13579
+
13580
+ def deserialize(params)
13581
+ @RequestId = params['RequestId']
13582
+ end
13583
+ end
13584
+
13585
+ # ModifyOwaspRuleTypeStatus请求参数结构体
13586
+ class ModifyOwaspRuleTypeStatusRequest < TencentCloud::Common::AbstractModel
13587
+ # @param Domain: 域名
13588
+ # @type Domain: String
13589
+ # @param TypeIDs: 规则类型ID列表
13590
+ # @type TypeIDs: Array
13591
+ # @param RuleTypeStatus: 规则类型的开关状态,0:关闭、1:开启
13592
+ # @type RuleTypeStatus: Integer
13593
+
13594
+ attr_accessor :Domain, :TypeIDs, :RuleTypeStatus
13595
+
13596
+ def initialize(domain=nil, typeids=nil, ruletypestatus=nil)
13597
+ @Domain = domain
13598
+ @TypeIDs = typeids
13599
+ @RuleTypeStatus = ruletypestatus
13600
+ end
13601
+
13602
+ def deserialize(params)
13603
+ @Domain = params['Domain']
13604
+ @TypeIDs = params['TypeIDs']
13605
+ @RuleTypeStatus = params['RuleTypeStatus']
13606
+ end
13607
+ end
13608
+
13609
+ # ModifyOwaspRuleTypeStatus返回参数结构体
13610
+ class ModifyOwaspRuleTypeStatusResponse < TencentCloud::Common::AbstractModel
13611
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13612
+ # @type RequestId: String
13613
+
13614
+ attr_accessor :RequestId
13615
+
13616
+ def initialize(requestid=nil)
13617
+ @RequestId = requestid
13618
+ end
13619
+
13620
+ def deserialize(params)
13621
+ @RequestId = params['RequestId']
13622
+ end
13623
+ end
13624
+
13625
+ # ModifyOwaspWhiteRule请求参数结构体
13626
+ class ModifyOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
13627
+ # @param RuleId: 规则ID
13628
+ # @type RuleId: Integer
13629
+ # @param Name: 规则名称
13630
+ # @type Name: String
13631
+ # @param Domain: 域名
13632
+ # @type Domain: String
13633
+ # @param Strategies: 规则匹配策略列表
13634
+ # @type Strategies: Array
13635
+ # @param Ids: 加白的规则ID列表
13636
+ # @type Ids: Array
13637
+ # @param Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
13638
+ # @type Type: Integer
13639
+ # @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
13640
+ # @type JobType: String
13641
+ # @param JobDateTime: 定时任务配置
13642
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
13643
+ # @param ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
13644
+ # @type ExpireTime: Integer
13645
+ # @param Status: 规则状态,0:关闭、1:开启,默认为开启
13646
+ # @type Status: Integer
13647
+
13648
+ attr_accessor :RuleId, :Name, :Domain, :Strategies, :Ids, :Type, :JobType, :JobDateTime, :ExpireTime, :Status
13649
+
13650
+ def initialize(ruleid=nil, name=nil, domain=nil, strategies=nil, ids=nil, type=nil, jobtype=nil, jobdatetime=nil, expiretime=nil, status=nil)
13651
+ @RuleId = ruleid
13652
+ @Name = name
13653
+ @Domain = domain
13654
+ @Strategies = strategies
13655
+ @Ids = ids
13656
+ @Type = type
13657
+ @JobType = jobtype
13658
+ @JobDateTime = jobdatetime
13659
+ @ExpireTime = expiretime
13660
+ @Status = status
13661
+ end
13662
+
13663
+ def deserialize(params)
13664
+ @RuleId = params['RuleId']
13665
+ @Name = params['Name']
13666
+ @Domain = params['Domain']
13667
+ unless params['Strategies'].nil?
13668
+ @Strategies = []
13669
+ params['Strategies'].each do |i|
13670
+ strategy_tmp = Strategy.new
13671
+ strategy_tmp.deserialize(i)
13672
+ @Strategies << strategy_tmp
13673
+ end
13674
+ end
13675
+ @Ids = params['Ids']
13676
+ @Type = params['Type']
13677
+ @JobType = params['JobType']
13678
+ unless params['JobDateTime'].nil?
13679
+ @JobDateTime = JobDateTime.new
13680
+ @JobDateTime.deserialize(params['JobDateTime'])
13681
+ end
13682
+ @ExpireTime = params['ExpireTime']
13683
+ @Status = params['Status']
13684
+ end
13685
+ end
13686
+
13687
+ # ModifyOwaspWhiteRule返回参数结构体
13688
+ class ModifyOwaspWhiteRuleResponse < TencentCloud::Common::AbstractModel
13689
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13690
+ # @type RequestId: String
13691
+
13692
+ attr_accessor :RequestId
13693
+
13694
+ def initialize(requestid=nil)
13695
+ @RequestId = requestid
13696
+ end
13697
+
13698
+ def deserialize(params)
13699
+ @RequestId = params['RequestId']
13700
+ end
13701
+ end
13702
+
13703
+ # ModifyProtectionStatus请求参数结构体
13704
+ class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
13705
+ # @param Domain: 域名
13706
+ # @type Domain: String
13707
+ # @param Status: 1:开启WAF开关,0:关闭WAF开关
13708
+ # @type Status: Integer
13709
+ # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
13710
+ # @type Edition: String
13711
+
13712
+ attr_accessor :Domain, :Status, :Edition
13713
+
13714
+ def initialize(domain=nil, status=nil, edition=nil)
13715
+ @Domain = domain
13716
+ @Status = status
13717
+ @Edition = edition
13718
+ end
13719
+
13720
+ def deserialize(params)
13721
+ @Domain = params['Domain']
13722
+ @Status = params['Status']
13723
+ @Edition = params['Edition']
13724
+ end
13725
+ end
13726
+
13727
+ # ModifyProtectionStatus返回参数结构体
13728
+ class ModifyProtectionStatusResponse < TencentCloud::Common::AbstractModel
13729
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13730
+ # @type RequestId: String
13731
+
13732
+ attr_accessor :RequestId
13733
+
13734
+ def initialize(requestid=nil)
13735
+ @RequestId = requestid
13736
+ end
13737
+
13738
+ def deserialize(params)
13739
+ @RequestId = params['RequestId']
13740
+ end
13741
+ end
13742
+
13743
+ # ModifySpartaProtectionMode请求参数结构体
13744
+ class ModifySpartaProtectionModeRequest < TencentCloud::Common::AbstractModel
13745
+ # @param Domain: 域名
13746
+ # @type Domain: String
13747
+ # @param Mode: 防护状态:
13748
+ # 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
13749
+ # 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
13750
+ # @type Mode: Integer
13751
+ # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
13752
+ # @type Edition: String
13753
+ # @param Type: 0是修改规则引擎状态,1是修改AI的状态
13754
+ # @type Type: Integer
13755
+ # @param InstanceID: 实例id
13756
+ # @type InstanceID: String
13143
13757
 
13144
13758
  attr_accessor :Domain, :Mode, :Edition, :Type, :InstanceID
13145
13759
 
@@ -13281,10 +13895,10 @@ module TencentCloud
13281
13895
 
13282
13896
  attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase
13283
13897
  extend Gem::Deprecate
13284
- deprecate :IsGray, :none, 2025, 7
13285
- deprecate :IsGray=, :none, 2025, 7
13286
- deprecate :Anycast, :none, 2025, 7
13287
- deprecate :Anycast=, :none, 2025, 7
13898
+ deprecate :IsGray, :none, 2025, 8
13899
+ deprecate :IsGray=, :none, 2025, 8
13900
+ deprecate :Anycast, :none, 2025, 8
13901
+ deprecate :Anycast=, :none, 2025, 8
13288
13902
 
13289
13903
  def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil)
13290
13904
  @Domain = domain
@@ -13770,6 +14384,185 @@ module TencentCloud
13770
14384
  end
13771
14385
  end
13772
14386
 
14387
+ # Owasp规则
14388
+ class OwaspRule < TencentCloud::Common::AbstractModel
14389
+ # @param RuleId: 规则ID
14390
+ # @type RuleId: Integer
14391
+ # @param Description: 规则描述
14392
+ # @type Description: String
14393
+ # @param Status: 规则开关,0:关闭、1:开启、2:只观察
14394
+ # @type Status: Integer
14395
+ # @param Level: 规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
14396
+ # @type Level: Integer
14397
+ # @param VulLevel: 威胁等级,0:未知,100:低危,200:中危,300:高危,400:危急
14398
+ # @type VulLevel: Integer
14399
+ # @param CveID: CVE ID
14400
+ # @type CveID: String
14401
+ # @param TypeId: 规则所属的类型ID
14402
+ # @type TypeId: Integer
14403
+ # @param CreateTime: 创建时间
14404
+ # @type CreateTime: String
14405
+ # @param ModifyTime: 更新时间
14406
+ # @type ModifyTime: String
14407
+ # @param Locked: 是否被锁定
14408
+ # @type Locked: Integer
14409
+ # @param Reason: 修改原因
14410
+ # 0:无(兼容记录为空)
14411
+ # 1:业务自身特性误报避免
14412
+ # 2:规则误报上报
14413
+ # 3:核心业务规则灰度
14414
+ # 4:其它
14415
+ # @type Reason: Integer
14416
+
14417
+ attr_accessor :RuleId, :Description, :Status, :Level, :VulLevel, :CveID, :TypeId, :CreateTime, :ModifyTime, :Locked, :Reason
14418
+
14419
+ def initialize(ruleid=nil, description=nil, status=nil, level=nil, vullevel=nil, cveid=nil, typeid=nil, createtime=nil, modifytime=nil, locked=nil, reason=nil)
14420
+ @RuleId = ruleid
14421
+ @Description = description
14422
+ @Status = status
14423
+ @Level = level
14424
+ @VulLevel = vullevel
14425
+ @CveID = cveid
14426
+ @TypeId = typeid
14427
+ @CreateTime = createtime
14428
+ @ModifyTime = modifytime
14429
+ @Locked = locked
14430
+ @Reason = reason
14431
+ end
14432
+
14433
+ def deserialize(params)
14434
+ @RuleId = params['RuleId']
14435
+ @Description = params['Description']
14436
+ @Status = params['Status']
14437
+ @Level = params['Level']
14438
+ @VulLevel = params['VulLevel']
14439
+ @CveID = params['CveID']
14440
+ @TypeId = params['TypeId']
14441
+ @CreateTime = params['CreateTime']
14442
+ @ModifyTime = params['ModifyTime']
14443
+ @Locked = params['Locked']
14444
+ @Reason = params['Reason']
14445
+ end
14446
+ end
14447
+
14448
+ # Owasp规则类型
14449
+ class OwaspRuleType < TencentCloud::Common::AbstractModel
14450
+ # @param TypeId: 类型ID
14451
+ # @type TypeId: Integer
14452
+ # @param TypeName: 类型名称
14453
+ # @type TypeName: String
14454
+ # @param Description: 类型描述
14455
+ # @type Description: String
14456
+ # @param Classification: 类型分类
14457
+ # @type Classification: String
14458
+ # @param Action: 规则类型的防护模式,0:观察、1:拦截
14459
+ # @type Action: Integer
14460
+ # @param Level: 规则类型的防护等级,100:宽松、200:正常、300:严格、400:超严格
14461
+ # @type Level: Integer
14462
+ # @param Status: 规则类型的开关状态,0:关闭、1:开启
14463
+ # @type Status: Integer
14464
+ # @param TotalRule: 规则类型下的所有规则总是
14465
+ # @type TotalRule: Integer
14466
+ # @param ActiveRule: 规则类型下的启用的规则总数
14467
+ # @type ActiveRule: Integer
14468
+
14469
+ attr_accessor :TypeId, :TypeName, :Description, :Classification, :Action, :Level, :Status, :TotalRule, :ActiveRule
14470
+
14471
+ def initialize(typeid=nil, typename=nil, description=nil, classification=nil, action=nil, level=nil, status=nil, totalrule=nil, activerule=nil)
14472
+ @TypeId = typeid
14473
+ @TypeName = typename
14474
+ @Description = description
14475
+ @Classification = classification
14476
+ @Action = action
14477
+ @Level = level
14478
+ @Status = status
14479
+ @TotalRule = totalrule
14480
+ @ActiveRule = activerule
14481
+ end
14482
+
14483
+ def deserialize(params)
14484
+ @TypeId = params['TypeId']
14485
+ @TypeName = params['TypeName']
14486
+ @Description = params['Description']
14487
+ @Classification = params['Classification']
14488
+ @Action = params['Action']
14489
+ @Level = params['Level']
14490
+ @Status = params['Status']
14491
+ @TotalRule = params['TotalRule']
14492
+ @ActiveRule = params['ActiveRule']
14493
+ end
14494
+ end
14495
+
14496
+ # 规则引擎白名单
14497
+ class OwaspWhiteRule < TencentCloud::Common::AbstractModel
14498
+ # @param RuleId: 白名单的规则ID
14499
+ # @type RuleId: Integer
14500
+ # @param Name: 规则名
14501
+ # @type Name: String
14502
+ # @param Ids: 加白的规则ID列表
14503
+ # @type Ids: Array
14504
+ # @param Status: 白名单规则的状态,0:关闭、1:开启
14505
+ # @type Status: Integer
14506
+ # @param Type: 加白的类型,0:按照特定规则ID加白、1:按照规则类型加白
14507
+ # @type Type: Integer
14508
+ # @param Strategies: 规则匹配策略列表
14509
+ # @type Strategies: Array
14510
+ # @param CreateTime: 创建时间
14511
+ # @type CreateTime: String
14512
+ # @param UpdateTime: 修改时间
14513
+ # @type UpdateTime: String
14514
+ # @param JobType: 定时任务类型
14515
+ # @type JobType: String
14516
+ # @param JobDateTime: 定时任务配置
14517
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
14518
+ # @param CronType: 周期任务粒度
14519
+ # @type CronType: String
14520
+ # @param ValidStatus: 当前是否有效
14521
+ # @type ValidStatus: Boolean
14522
+
14523
+ attr_accessor :RuleId, :Name, :Ids, :Status, :Type, :Strategies, :CreateTime, :UpdateTime, :JobType, :JobDateTime, :CronType, :ValidStatus
14524
+
14525
+ def initialize(ruleid=nil, name=nil, ids=nil, status=nil, type=nil, strategies=nil, createtime=nil, updatetime=nil, jobtype=nil, jobdatetime=nil, crontype=nil, validstatus=nil)
14526
+ @RuleId = ruleid
14527
+ @Name = name
14528
+ @Ids = ids
14529
+ @Status = status
14530
+ @Type = type
14531
+ @Strategies = strategies
14532
+ @CreateTime = createtime
14533
+ @UpdateTime = updatetime
14534
+ @JobType = jobtype
14535
+ @JobDateTime = jobdatetime
14536
+ @CronType = crontype
14537
+ @ValidStatus = validstatus
14538
+ end
14539
+
14540
+ def deserialize(params)
14541
+ @RuleId = params['RuleId']
14542
+ @Name = params['Name']
14543
+ @Ids = params['Ids']
14544
+ @Status = params['Status']
14545
+ @Type = params['Type']
14546
+ unless params['Strategies'].nil?
14547
+ @Strategies = []
14548
+ params['Strategies'].each do |i|
14549
+ strategy_tmp = Strategy.new
14550
+ strategy_tmp.deserialize(i)
14551
+ @Strategies << strategy_tmp
14552
+ end
14553
+ end
14554
+ @CreateTime = params['CreateTime']
14555
+ @UpdateTime = params['UpdateTime']
14556
+ @JobType = params['JobType']
14557
+ unless params['JobDateTime'].nil?
14558
+ @JobDateTime = JobDateTime.new
14559
+ @JobDateTime.deserialize(params['JobDateTime'])
14560
+ end
14561
+ @CronType = params['CronType']
14562
+ @ValidStatus = params['ValidStatus']
14563
+ end
14564
+ end
14565
+
13773
14566
  # bot-自定义规则请求参数比对结构体
13774
14567
  class ParamCompareList < TencentCloud::Common::AbstractModel
13775
14568
  # @param Key: 请求参数比对的匹配参数
@@ -14547,10 +15340,10 @@ module TencentCloud
14547
15340
 
14548
15341
  attr_accessor :Context, :ListOver, :Analysis, :ColNames, :Results, :AnalysisResults, :RequestId
14549
15342
  extend Gem::Deprecate
14550
- deprecate :ColNames, :none, 2025, 7
14551
- deprecate :ColNames=, :none, 2025, 7
14552
- deprecate :AnalysisResults, :none, 2025, 7
14553
- deprecate :AnalysisResults=, :none, 2025, 7
15343
+ deprecate :ColNames, :none, 2025, 8
15344
+ deprecate :ColNames=, :none, 2025, 8
15345
+ deprecate :AnalysisResults, :none, 2025, 8
15346
+ deprecate :AnalysisResults=, :none, 2025, 8
14554
15347
 
14555
15348
  def initialize(context=nil, listover=nil, analysis=nil, colnames=nil, results=nil, analysisresults=nil, requestid=nil)
14556
15349
  @Context = context