tencentcloud-sdk-waf 3.0.1107 → 3.0.1115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 931c225844c33cc7de39f23608b140e7de381363
4
- data.tar.gz: 9b027c143d26c25e998dd22dffee8f4ee3307aba
3
+ metadata.gz: b2365e252ffeb913c11b0fbe628e3cd816ff2e77
4
+ data.tar.gz: eea60f10087cde1e3c2c727e997be046cda59c84
5
5
  SHA512:
6
- metadata.gz: b5e376ebdbe16ef4877f3464b3e1785b555b1c02237901d6fd05626772062f53e3b4f1dc32479d1d4e42581ab94938000177b3f87ecb2804e13e27a9e29282a4
7
- data.tar.gz: f8210b52c113af36e5628084587147bc2aa5f77d31057ef4fe1da34ad16554e99668384db19eba258b9ef684817f5f04c2a47e74251a37087a81807940647045
6
+ metadata.gz: a7eebfb5b92a110eafdbe0d60053262e4f95e604c56bae943c83dc64fe3f07b33ab6b86f699c6c492b856171dd4a295bb13bc8e4d03dac4f61edae1caa9eb8b5
7
+ data.tar.gz: c4803260787cb3f6bdc514b2ebc2be4bf52ebebb476cbe89c47beb58eba3291106f9740cf5cf74917c2b27130f4e86fbfe69b5bc0210933176ce01c805bec1a9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1107
1
+ 3.0.1115
@@ -365,6 +365,30 @@ module TencentCloud
365
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
366
  end
367
367
 
368
+ # 添加规则引擎白名单
369
+
370
+ # @param request: Request instance for CreateOwaspWhiteRule.
371
+ # @type request: :class:`Tencentcloud::waf::V20180125::CreateOwaspWhiteRuleRequest`
372
+ # @rtype: :class:`Tencentcloud::waf::V20180125::CreateOwaspWhiteRuleResponse`
373
+ def CreateOwaspWhiteRule(request)
374
+ body = send_request('CreateOwaspWhiteRule', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = CreateOwaspWhiteRuleResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
368
392
  # 创建CKafka投递流任务
369
393
 
370
394
  # @param request: Request instance for CreatePostCKafkaFlow.
@@ -725,6 +749,30 @@ module TencentCloud
725
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
750
  end
727
751
 
752
+ # 删除用户规则引擎白名单
753
+
754
+ # @param request: Request instance for DeleteOwaspWhiteRule.
755
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteOwaspWhiteRuleRequest`
756
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteOwaspWhiteRuleResponse`
757
+ def DeleteOwaspWhiteRule(request)
758
+ body = send_request('DeleteOwaspWhiteRule', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DeleteOwaspWhiteRuleResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
728
776
  # 删除CC攻击的session设置
729
777
 
730
778
  # @param request: Request instance for DeleteSession.
@@ -1829,6 +1877,30 @@ module TencentCloud
1829
1877
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
1878
  end
1831
1879
 
1880
+ # 获取规则引擎白名单列表
1881
+
1882
+ # @param request: Request instance for DescribeOwaspWhiteRules.
1883
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspWhiteRulesRequest`
1884
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspWhiteRulesResponse`
1885
+ def DescribeOwaspWhiteRules(request)
1886
+ body = send_request('DescribeOwaspWhiteRules', request.serialize)
1887
+ response = JSON.parse(body)
1888
+ if response['Response'].key?('Error') == false
1889
+ model = DescribeOwaspWhiteRulesResponse.new
1890
+ model.deserialize(response['Response'])
1891
+ model
1892
+ else
1893
+ code = response['Response']['Error']['Code']
1894
+ message = response['Response']['Error']['Message']
1895
+ reqid = response['Response']['RequestId']
1896
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1897
+ end
1898
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1899
+ raise e
1900
+ rescue StandardError => e
1901
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1902
+ end
1903
+
1832
1904
  # 查询业务和攻击概要趋势
1833
1905
 
1834
1906
  # @param request: Request instance for DescribePeakPoints.
@@ -3464,6 +3536,30 @@ module TencentCloud
3464
3536
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3465
3537
  end
3466
3538
 
3539
+ # 编辑规则引擎白名单
3540
+
3541
+ # @param request: Request instance for ModifyOwaspWhiteRule.
3542
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspWhiteRuleRequest`
3543
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspWhiteRuleResponse`
3544
+ def ModifyOwaspWhiteRule(request)
3545
+ body = send_request('ModifyOwaspWhiteRule', request.serialize)
3546
+ response = JSON.parse(body)
3547
+ if response['Response'].key?('Error') == false
3548
+ model = ModifyOwaspWhiteRuleResponse.new
3549
+ model.deserialize(response['Response'])
3550
+ model
3551
+ else
3552
+ code = response['Response']['Error']['Code']
3553
+ message = response['Response']['Error']['Message']
3554
+ reqid = response['Response']['RequestId']
3555
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3556
+ end
3557
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3558
+ raise e
3559
+ rescue StandardError => e
3560
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3561
+ end
3562
+
3467
3563
  # 开启、关闭WAF开关
3468
3564
 
3469
3565
  # @param request: Request instance for ModifyProtectionStatus.
@@ -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,42 @@ module TencentCloud
3903
3981
  end
3904
3982
  end
3905
3983
 
3984
+ # DeleteOwaspWhiteRule请求参数结构体
3985
+ class DeleteOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
3986
+ # @param Ids: 规则白名单ID列表
3987
+ # @type Ids: Array
3988
+ # @param Domain: 域名
3989
+ # @type Domain: String
3990
+
3991
+ attr_accessor :Ids, :Domain
3992
+
3993
+ def initialize(ids=nil, domain=nil)
3994
+ @Ids = ids
3995
+ @Domain = domain
3996
+ end
3997
+
3998
+ def deserialize(params)
3999
+ @Ids = params['Ids']
4000
+ @Domain = params['Domain']
4001
+ end
4002
+ end
4003
+
4004
+ # DeleteOwaspWhiteRule返回参数结构体
4005
+ class DeleteOwaspWhiteRuleResponse < 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
+
3906
4020
  # DeleteSession请求参数结构体
3907
4021
  class DeleteSessionRequest < TencentCloud::Common::AbstractModel
3908
4022
  # @param Domain: 域名
@@ -4061,8 +4175,8 @@ module TencentCloud
4061
4175
 
4062
4176
  attr_accessor :From, :To, :Query, :FieldName, :TopicId, :Sort, :Count
4063
4177
  extend Gem::Deprecate
4064
- deprecate :TopicId, :none, 2025, 7
4065
- deprecate :TopicId=, :none, 2025, 7
4178
+ deprecate :TopicId, :none, 2025, 8
4179
+ deprecate :TopicId=, :none, 2025, 8
4066
4180
 
4067
4181
  def initialize(from=nil, to=nil, query=nil, fieldname=nil, topicid=nil, sort=nil, count=nil)
4068
4182
  @From = from
@@ -6759,10 +6873,10 @@ module TencentCloud
6759
6873
 
6760
6874
  attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId, :TimerType
6761
6875
  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
6876
+ deprecate :VtsMin, :none, 2025, 8
6877
+ deprecate :VtsMin=, :none, 2025, 8
6878
+ deprecate :VtsMax, :none, 2025, 8
6879
+ deprecate :VtsMax=, :none, 2025, 8
6766
6880
 
6767
6881
  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
6882
  @Domain = domain
@@ -6865,10 +6979,10 @@ module TencentCloud
6865
6979
 
6866
6980
  attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
6867
6981
  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
6982
+ deprecate :VtsMin, :none, 2025, 8
6983
+ deprecate :VtsMin=, :none, 2025, 8
6984
+ deprecate :VtsMax, :none, 2025, 8
6985
+ deprecate :VtsMax=, :none, 2025, 8
6872
6986
 
6873
6987
  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
6988
  @Domain = domain
@@ -7046,6 +7160,80 @@ module TencentCloud
7046
7160
  end
7047
7161
  end
7048
7162
 
7163
+ # DescribeOwaspWhiteRules请求参数结构体
7164
+ class DescribeOwaspWhiteRulesRequest < TencentCloud::Common::AbstractModel
7165
+ # @param Domain: 需要查询的域名
7166
+ # @type Domain: String
7167
+ # @param Offset: 分页分页,默认为0
7168
+ # @type Offset: Integer
7169
+ # @param Limit: 每页容量,默认为10
7170
+ # @type Limit: Integer
7171
+ # @param By: 排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
7172
+ # @type By: String
7173
+ # @param Order: 排序方式,支持asc、desc
7174
+ # @type Order: String
7175
+ # @param Filters: 筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
7176
+ # @type Filters: Array
7177
+
7178
+ attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
7179
+
7180
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
7181
+ @Domain = domain
7182
+ @Offset = offset
7183
+ @Limit = limit
7184
+ @By = by
7185
+ @Order = order
7186
+ @Filters = filters
7187
+ end
7188
+
7189
+ def deserialize(params)
7190
+ @Domain = params['Domain']
7191
+ @Offset = params['Offset']
7192
+ @Limit = params['Limit']
7193
+ @By = params['By']
7194
+ @Order = params['Order']
7195
+ unless params['Filters'].nil?
7196
+ @Filters = []
7197
+ params['Filters'].each do |i|
7198
+ filtersitemnew_tmp = FiltersItemNew.new
7199
+ filtersitemnew_tmp.deserialize(i)
7200
+ @Filters << filtersitemnew_tmp
7201
+ end
7202
+ end
7203
+ end
7204
+ end
7205
+
7206
+ # DescribeOwaspWhiteRules返回参数结构体
7207
+ class DescribeOwaspWhiteRulesResponse < TencentCloud::Common::AbstractModel
7208
+ # @param Total: 规则总数
7209
+ # @type Total: Integer
7210
+ # @param List: 规则白名单列表
7211
+ # @type List: Array
7212
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7213
+ # @type RequestId: String
7214
+
7215
+ attr_accessor :Total, :List, :RequestId
7216
+
7217
+ def initialize(total=nil, list=nil, requestid=nil)
7218
+ @Total = total
7219
+ @List = list
7220
+ @RequestId = requestid
7221
+ end
7222
+
7223
+ def deserialize(params)
7224
+ @Total = params['Total']
7225
+ unless params['List'].nil?
7226
+ @List = []
7227
+ params['List'].each do |i|
7228
+ owaspwhiterule_tmp = OwaspWhiteRule.new
7229
+ owaspwhiterule_tmp.deserialize(i)
7230
+ @List << owaspwhiterule_tmp
7231
+ end
7232
+ end
7233
+ @RequestId = params['RequestId']
7234
+ end
7235
+ end
7236
+
7049
7237
  # DescribePeakPoints请求参数结构体
7050
7238
  class DescribePeakPointsRequest < TencentCloud::Common::AbstractModel
7051
7239
  # @param FromTime: 查询起始时间
@@ -8967,8 +9155,8 @@ module TencentCloud
8967
9155
 
8968
9156
  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
9157
  extend Gem::Deprecate
8970
- deprecate :IsGray, :none, 2025, 7
8971
- deprecate :IsGray=, :none, 2025, 7
9158
+ deprecate :IsGray, :none, 2025, 8
9159
+ deprecate :IsGray=, :none, 2025, 8
8972
9160
 
8973
9161
  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
9162
  @Domain = domain
@@ -11998,8 +12186,8 @@ module TencentCloud
11998
12186
 
11999
12187
  attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp
12000
12188
  extend Gem::Deprecate
12001
- deprecate :Bypass, :none, 2025, 7
12002
- deprecate :Bypass=, :none, 2025, 7
12189
+ deprecate :Bypass, :none, 2025, 8
12190
+ deprecate :Bypass=, :none, 2025, 8
12003
12191
 
12004
12192
  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
12193
  @Domain = domain
@@ -12923,8 +13111,8 @@ module TencentCloud
12923
13111
 
12924
13112
  attr_accessor :Domain, :IpList, :ActionType, :RuleId, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
12925
13113
  extend Gem::Deprecate
12926
- deprecate :ValidTS, :none, 2025, 7
12927
- deprecate :ValidTS=, :none, 2025, 7
13114
+ deprecate :ValidTS, :none, 2025, 8
13115
+ deprecate :ValidTS=, :none, 2025, 8
12928
13116
 
12929
13117
  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
13118
  @Domain = domain
@@ -13086,6 +13274,84 @@ module TencentCloud
13086
13274
  end
13087
13275
  end
13088
13276
 
13277
+ # ModifyOwaspWhiteRule请求参数结构体
13278
+ class ModifyOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
13279
+ # @param RuleId: 规则ID
13280
+ # @type RuleId: Integer
13281
+ # @param Name: 规则名称
13282
+ # @type Name: String
13283
+ # @param Domain: 域名
13284
+ # @type Domain: String
13285
+ # @param Strategies: 规则匹配策略列表
13286
+ # @type Strategies: Array
13287
+ # @param Ids: 加白的规则ID列表
13288
+ # @type Ids: Array
13289
+ # @param Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
13290
+ # @type Type: Integer
13291
+ # @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
13292
+ # @type JobType: String
13293
+ # @param JobDateTime: 定时任务配置
13294
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
13295
+ # @param ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
13296
+ # @type ExpireTime: Integer
13297
+ # @param Status: 规则状态,0:关闭、1:开启,默认为开启
13298
+ # @type Status: Integer
13299
+
13300
+ attr_accessor :RuleId, :Name, :Domain, :Strategies, :Ids, :Type, :JobType, :JobDateTime, :ExpireTime, :Status
13301
+
13302
+ def initialize(ruleid=nil, name=nil, domain=nil, strategies=nil, ids=nil, type=nil, jobtype=nil, jobdatetime=nil, expiretime=nil, status=nil)
13303
+ @RuleId = ruleid
13304
+ @Name = name
13305
+ @Domain = domain
13306
+ @Strategies = strategies
13307
+ @Ids = ids
13308
+ @Type = type
13309
+ @JobType = jobtype
13310
+ @JobDateTime = jobdatetime
13311
+ @ExpireTime = expiretime
13312
+ @Status = status
13313
+ end
13314
+
13315
+ def deserialize(params)
13316
+ @RuleId = params['RuleId']
13317
+ @Name = params['Name']
13318
+ @Domain = params['Domain']
13319
+ unless params['Strategies'].nil?
13320
+ @Strategies = []
13321
+ params['Strategies'].each do |i|
13322
+ strategy_tmp = Strategy.new
13323
+ strategy_tmp.deserialize(i)
13324
+ @Strategies << strategy_tmp
13325
+ end
13326
+ end
13327
+ @Ids = params['Ids']
13328
+ @Type = params['Type']
13329
+ @JobType = params['JobType']
13330
+ unless params['JobDateTime'].nil?
13331
+ @JobDateTime = JobDateTime.new
13332
+ @JobDateTime.deserialize(params['JobDateTime'])
13333
+ end
13334
+ @ExpireTime = params['ExpireTime']
13335
+ @Status = params['Status']
13336
+ end
13337
+ end
13338
+
13339
+ # ModifyOwaspWhiteRule返回参数结构体
13340
+ class ModifyOwaspWhiteRuleResponse < TencentCloud::Common::AbstractModel
13341
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13342
+ # @type RequestId: String
13343
+
13344
+ attr_accessor :RequestId
13345
+
13346
+ def initialize(requestid=nil)
13347
+ @RequestId = requestid
13348
+ end
13349
+
13350
+ def deserialize(params)
13351
+ @RequestId = params['RequestId']
13352
+ end
13353
+ end
13354
+
13089
13355
  # ModifyProtectionStatus请求参数结构体
13090
13356
  class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
13091
13357
  # @param Domain: 域名
@@ -13281,10 +13547,10 @@ module TencentCloud
13281
13547
 
13282
13548
  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
13549
  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
13550
+ deprecate :IsGray, :none, 2025, 8
13551
+ deprecate :IsGray=, :none, 2025, 8
13552
+ deprecate :Anycast, :none, 2025, 8
13553
+ deprecate :Anycast=, :none, 2025, 8
13288
13554
 
13289
13555
  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
13556
  @Domain = domain
@@ -13770,6 +14036,76 @@ module TencentCloud
13770
14036
  end
13771
14037
  end
13772
14038
 
14039
+ # 规则引擎白名单
14040
+ class OwaspWhiteRule < TencentCloud::Common::AbstractModel
14041
+ # @param RuleId: 白名单的规则ID
14042
+ # @type RuleId: Integer
14043
+ # @param Name: 规则名
14044
+ # @type Name: String
14045
+ # @param Ids: 加白的规则ID列表
14046
+ # @type Ids: Array
14047
+ # @param Status: 白名单规则的状态,0:关闭、1:开启
14048
+ # @type Status: Integer
14049
+ # @param Type: 加白的类型,0:按照特定规则ID加白、1:按照规则类型加白
14050
+ # @type Type: Integer
14051
+ # @param Strategies: 规则匹配策略列表
14052
+ # @type Strategies: Array
14053
+ # @param CreateTime: 创建时间
14054
+ # @type CreateTime: String
14055
+ # @param UpdateTime: 修改时间
14056
+ # @type UpdateTime: String
14057
+ # @param JobType: 定时任务类型
14058
+ # @type JobType: String
14059
+ # @param JobDateTime: 定时任务配置
14060
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
14061
+ # @param CronType: 周期任务粒度
14062
+ # @type CronType: String
14063
+ # @param ValidStatus: 当前是否有效
14064
+ # @type ValidStatus: Boolean
14065
+
14066
+ attr_accessor :RuleId, :Name, :Ids, :Status, :Type, :Strategies, :CreateTime, :UpdateTime, :JobType, :JobDateTime, :CronType, :ValidStatus
14067
+
14068
+ 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)
14069
+ @RuleId = ruleid
14070
+ @Name = name
14071
+ @Ids = ids
14072
+ @Status = status
14073
+ @Type = type
14074
+ @Strategies = strategies
14075
+ @CreateTime = createtime
14076
+ @UpdateTime = updatetime
14077
+ @JobType = jobtype
14078
+ @JobDateTime = jobdatetime
14079
+ @CronType = crontype
14080
+ @ValidStatus = validstatus
14081
+ end
14082
+
14083
+ def deserialize(params)
14084
+ @RuleId = params['RuleId']
14085
+ @Name = params['Name']
14086
+ @Ids = params['Ids']
14087
+ @Status = params['Status']
14088
+ @Type = params['Type']
14089
+ unless params['Strategies'].nil?
14090
+ @Strategies = []
14091
+ params['Strategies'].each do |i|
14092
+ strategy_tmp = Strategy.new
14093
+ strategy_tmp.deserialize(i)
14094
+ @Strategies << strategy_tmp
14095
+ end
14096
+ end
14097
+ @CreateTime = params['CreateTime']
14098
+ @UpdateTime = params['UpdateTime']
14099
+ @JobType = params['JobType']
14100
+ unless params['JobDateTime'].nil?
14101
+ @JobDateTime = JobDateTime.new
14102
+ @JobDateTime.deserialize(params['JobDateTime'])
14103
+ end
14104
+ @CronType = params['CronType']
14105
+ @ValidStatus = params['ValidStatus']
14106
+ end
14107
+ end
14108
+
13773
14109
  # bot-自定义规则请求参数比对结构体
13774
14110
  class ParamCompareList < TencentCloud::Common::AbstractModel
13775
14111
  # @param Key: 请求参数比对的匹配参数
@@ -14547,10 +14883,10 @@ module TencentCloud
14547
14883
 
14548
14884
  attr_accessor :Context, :ListOver, :Analysis, :ColNames, :Results, :AnalysisResults, :RequestId
14549
14885
  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
14886
+ deprecate :ColNames, :none, 2025, 8
14887
+ deprecate :ColNames=, :none, 2025, 8
14888
+ deprecate :AnalysisResults, :none, 2025, 8
14889
+ deprecate :AnalysisResults=, :none, 2025, 8
14554
14890
 
14555
14891
  def initialize(context=nil, listover=nil, analysis=nil, colnames=nil, results=nil, analysisresults=nil, requestid=nil)
14556
14892
  @Context = context
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1107
4
+ version: 3.0.1115
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-23 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common