tencentcloud-sdk-waf 3.0.1115 → 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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +168 -0
- data/lib/v20180125/models.rb +457 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af9b215e7b83be210988f406b2eacb3050ab1e9
|
4
|
+
data.tar.gz: 3b3c111eb20ab15f9167c1536ddd4d7087ee5f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f70788bc56fc48bcd4c79582cde60a2a21e8c7d8e6b2c1dc26d9b30a26b0b83e1944d1dde8e2aa3819c3699cdf8d73cda06f909db0002c7ca300ed887592ba2
|
7
|
+
data.tar.gz: eb9f98d9b3ff8e287299cb60bc55ea838265bc2f790a40c2f7764331aa6cf4e4f4fa572ffef53885aafdea71dd17cec110f9acac2304769c1cdfd0658c1bf596
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1123
|
data/lib/v20180125/client.rb
CHANGED
@@ -749,6 +749,30 @@ module TencentCloud
|
|
749
749
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
750
|
end
|
751
751
|
|
752
|
+
# 解除门神规则的状态锁
|
753
|
+
|
754
|
+
# @param request: Request instance for DeleteOwaspRuleStatus.
|
755
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteOwaspRuleStatusRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteOwaspRuleStatusResponse`
|
757
|
+
def DeleteOwaspRuleStatus(request)
|
758
|
+
body = send_request('DeleteOwaspRuleStatus', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DeleteOwaspRuleStatusResponse.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
|
+
|
752
776
|
# 删除用户规则引擎白名单
|
753
777
|
|
754
778
|
# @param request: Request instance for DeleteOwaspWhiteRule.
|
@@ -1877,6 +1901,54 @@ module TencentCloud
|
|
1877
1901
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1878
1902
|
end
|
1879
1903
|
|
1904
|
+
# 查询规则引擎的规则类型列表
|
1905
|
+
|
1906
|
+
# @param request: Request instance for DescribeOwaspRuleTypes.
|
1907
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRuleTypesRequest`
|
1908
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRuleTypesResponse`
|
1909
|
+
def DescribeOwaspRuleTypes(request)
|
1910
|
+
body = send_request('DescribeOwaspRuleTypes', request.serialize)
|
1911
|
+
response = JSON.parse(body)
|
1912
|
+
if response['Response'].key?('Error') == false
|
1913
|
+
model = DescribeOwaspRuleTypesResponse.new
|
1914
|
+
model.deserialize(response['Response'])
|
1915
|
+
model
|
1916
|
+
else
|
1917
|
+
code = response['Response']['Error']['Code']
|
1918
|
+
message = response['Response']['Error']['Message']
|
1919
|
+
reqid = response['Response']['RequestId']
|
1920
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1921
|
+
end
|
1922
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1923
|
+
raise e
|
1924
|
+
rescue StandardError => e
|
1925
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
# 查询规则引擎的规则列表
|
1929
|
+
|
1930
|
+
# @param request: Request instance for DescribeOwaspRules.
|
1931
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRulesRequest`
|
1932
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRulesResponse`
|
1933
|
+
def DescribeOwaspRules(request)
|
1934
|
+
body = send_request('DescribeOwaspRules', request.serialize)
|
1935
|
+
response = JSON.parse(body)
|
1936
|
+
if response['Response'].key?('Error') == false
|
1937
|
+
model = DescribeOwaspRulesResponse.new
|
1938
|
+
model.deserialize(response['Response'])
|
1939
|
+
model
|
1940
|
+
else
|
1941
|
+
code = response['Response']['Error']['Code']
|
1942
|
+
message = response['Response']['Error']['Message']
|
1943
|
+
reqid = response['Response']['RequestId']
|
1944
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1945
|
+
end
|
1946
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1947
|
+
raise e
|
1948
|
+
rescue StandardError => e
|
1949
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1950
|
+
end
|
1951
|
+
|
1880
1952
|
# 获取规则引擎白名单列表
|
1881
1953
|
|
1882
1954
|
# @param request: Request instance for DescribeOwaspWhiteRules.
|
@@ -3536,6 +3608,102 @@ module TencentCloud
|
|
3536
3608
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3537
3609
|
end
|
3538
3610
|
|
3611
|
+
# 更新规则的开关
|
3612
|
+
|
3613
|
+
# @param request: Request instance for ModifyOwaspRuleStatus.
|
3614
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleStatusRequest`
|
3615
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleStatusResponse`
|
3616
|
+
def ModifyOwaspRuleStatus(request)
|
3617
|
+
body = send_request('ModifyOwaspRuleStatus', request.serialize)
|
3618
|
+
response = JSON.parse(body)
|
3619
|
+
if response['Response'].key?('Error') == false
|
3620
|
+
model = ModifyOwaspRuleStatusResponse.new
|
3621
|
+
model.deserialize(response['Response'])
|
3622
|
+
model
|
3623
|
+
else
|
3624
|
+
code = response['Response']['Error']['Code']
|
3625
|
+
message = response['Response']['Error']['Message']
|
3626
|
+
reqid = response['Response']['RequestId']
|
3627
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3628
|
+
end
|
3629
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3630
|
+
raise e
|
3631
|
+
rescue StandardError => e
|
3632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3633
|
+
end
|
3634
|
+
|
3635
|
+
# 更新规则类型的防护模式
|
3636
|
+
|
3637
|
+
# @param request: Request instance for ModifyOwaspRuleTypeAction.
|
3638
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeActionRequest`
|
3639
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeActionResponse`
|
3640
|
+
def ModifyOwaspRuleTypeAction(request)
|
3641
|
+
body = send_request('ModifyOwaspRuleTypeAction', request.serialize)
|
3642
|
+
response = JSON.parse(body)
|
3643
|
+
if response['Response'].key?('Error') == false
|
3644
|
+
model = ModifyOwaspRuleTypeActionResponse.new
|
3645
|
+
model.deserialize(response['Response'])
|
3646
|
+
model
|
3647
|
+
else
|
3648
|
+
code = response['Response']['Error']['Code']
|
3649
|
+
message = response['Response']['Error']['Message']
|
3650
|
+
reqid = response['Response']['RequestId']
|
3651
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3652
|
+
end
|
3653
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3654
|
+
raise e
|
3655
|
+
rescue StandardError => e
|
3656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3657
|
+
end
|
3658
|
+
|
3659
|
+
# 更新规则类型的防护等级
|
3660
|
+
|
3661
|
+
# @param request: Request instance for ModifyOwaspRuleTypeLevel.
|
3662
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeLevelRequest`
|
3663
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeLevelResponse`
|
3664
|
+
def ModifyOwaspRuleTypeLevel(request)
|
3665
|
+
body = send_request('ModifyOwaspRuleTypeLevel', request.serialize)
|
3666
|
+
response = JSON.parse(body)
|
3667
|
+
if response['Response'].key?('Error') == false
|
3668
|
+
model = ModifyOwaspRuleTypeLevelResponse.new
|
3669
|
+
model.deserialize(response['Response'])
|
3670
|
+
model
|
3671
|
+
else
|
3672
|
+
code = response['Response']['Error']['Code']
|
3673
|
+
message = response['Response']['Error']['Message']
|
3674
|
+
reqid = response['Response']['RequestId']
|
3675
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3676
|
+
end
|
3677
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3678
|
+
raise e
|
3679
|
+
rescue StandardError => e
|
3680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3681
|
+
end
|
3682
|
+
|
3683
|
+
# 更新规则类型的开关
|
3684
|
+
|
3685
|
+
# @param request: Request instance for ModifyOwaspRuleTypeStatus.
|
3686
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeStatusRequest`
|
3687
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeStatusResponse`
|
3688
|
+
def ModifyOwaspRuleTypeStatus(request)
|
3689
|
+
body = send_request('ModifyOwaspRuleTypeStatus', request.serialize)
|
3690
|
+
response = JSON.parse(body)
|
3691
|
+
if response['Response'].key?('Error') == false
|
3692
|
+
model = ModifyOwaspRuleTypeStatusResponse.new
|
3693
|
+
model.deserialize(response['Response'])
|
3694
|
+
model
|
3695
|
+
else
|
3696
|
+
code = response['Response']['Error']['Code']
|
3697
|
+
message = response['Response']['Error']['Message']
|
3698
|
+
reqid = response['Response']['RequestId']
|
3699
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3700
|
+
end
|
3701
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3702
|
+
raise e
|
3703
|
+
rescue StandardError => e
|
3704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3705
|
+
end
|
3706
|
+
|
3539
3707
|
# 编辑规则引擎白名单
|
3540
3708
|
|
3541
3709
|
# @param request: Request instance for ModifyOwaspWhiteRule.
|
data/lib/v20180125/models.rb
CHANGED
@@ -3981,6 +3981,42 @@ module TencentCloud
|
|
3981
3981
|
end
|
3982
3982
|
end
|
3983
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
|
+
|
3984
4020
|
# DeleteOwaspWhiteRule请求参数结构体
|
3985
4021
|
class DeleteOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
3986
4022
|
# @param Ids: 规则白名单ID列表
|
@@ -7160,6 +7196,146 @@ module TencentCloud
|
|
7160
7196
|
end
|
7161
7197
|
end
|
7162
7198
|
|
7199
|
+
# DescribeOwaspRuleTypes请求参数结构体
|
7200
|
+
class DescribeOwaspRuleTypesRequest < TencentCloud::Common::AbstractModel
|
7201
|
+
# @param Domain: 查询域名
|
7202
|
+
# @type Domain: 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
|
7209
|
+
|
7210
|
+
attr_accessor :Domain, :Offset, :Limit, :Filters
|
7211
|
+
|
7212
|
+
def initialize(domain=nil, offset=nil, limit=nil, filters=nil)
|
7213
|
+
@Domain = domain
|
7214
|
+
@Offset = offset
|
7215
|
+
@Limit = limit
|
7216
|
+
@Filters = filters
|
7217
|
+
end
|
7218
|
+
|
7219
|
+
def deserialize(params)
|
7220
|
+
@Domain = params['Domain']
|
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
|
7231
|
+
end
|
7232
|
+
end
|
7233
|
+
|
7234
|
+
# DescribeOwaspRuleTypes返回参数结构体
|
7235
|
+
class DescribeOwaspRuleTypesResponse < TencentCloud::Common::AbstractModel
|
7236
|
+
# @param Total: 规则类型数量
|
7237
|
+
# @type Total: Integer
|
7238
|
+
# @param List: 规则类型列表及信息
|
7239
|
+
# @type List: Array
|
7240
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7241
|
+
# @type RequestId: String
|
7242
|
+
|
7243
|
+
attr_accessor :Total, :List, :RequestId
|
7244
|
+
|
7245
|
+
def initialize(total=nil, list=nil, requestid=nil)
|
7246
|
+
@Total = total
|
7247
|
+
@List = list
|
7248
|
+
@RequestId = requestid
|
7249
|
+
end
|
7250
|
+
|
7251
|
+
def deserialize(params)
|
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
|
7259
|
+
end
|
7260
|
+
end
|
7261
|
+
@RequestId = params['RequestId']
|
7262
|
+
end
|
7263
|
+
end
|
7264
|
+
|
7265
|
+
# DescribeOwaspRules请求参数结构体
|
7266
|
+
class DescribeOwaspRulesRequest < TencentCloud::Common::AbstractModel
|
7267
|
+
# @param Domain: 需要查询的域名
|
7268
|
+
# @type Domain: 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
|
7279
|
+
|
7280
|
+
attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
|
7281
|
+
|
7282
|
+
def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
|
7283
|
+
@Domain = domain
|
7284
|
+
@Offset = offset
|
7285
|
+
@Limit = limit
|
7286
|
+
@By = by
|
7287
|
+
@Order = order
|
7288
|
+
@Filters = filters
|
7289
|
+
end
|
7290
|
+
|
7291
|
+
def deserialize(params)
|
7292
|
+
@Domain = params['Domain']
|
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
|
+
|
7163
7339
|
# DescribeOwaspWhiteRules请求参数结构体
|
7164
7340
|
class DescribeOwaspWhiteRulesRequest < TencentCloud::Common::AbstractModel
|
7165
7341
|
# @param Domain: 需要查询的域名
|
@@ -13274,6 +13450,178 @@ module TencentCloud
|
|
13274
13450
|
end
|
13275
13451
|
end
|
13276
13452
|
|
13453
|
+
# ModifyOwaspRuleStatus请求参数结构体
|
13454
|
+
class ModifyOwaspRuleStatusRequest < TencentCloud::Common::AbstractModel
|
13455
|
+
# @param Domain: 域名
|
13456
|
+
# @type Domain: 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
|
13467
|
+
|
13468
|
+
attr_accessor :Domain, :RuleStatus, :SelectAll, :RuleIDs, :TypeId, :Reason
|
13469
|
+
|
13470
|
+
def initialize(domain=nil, rulestatus=nil, selectall=nil, ruleids=nil, typeid=nil, reason=nil)
|
13471
|
+
@Domain = domain
|
13472
|
+
@RuleStatus = rulestatus
|
13473
|
+
@SelectAll = selectall
|
13474
|
+
@RuleIDs = ruleids
|
13475
|
+
@TypeId = typeid
|
13476
|
+
@Reason = reason
|
13477
|
+
end
|
13478
|
+
|
13479
|
+
def deserialize(params)
|
13480
|
+
@Domain = params['Domain']
|
13481
|
+
@RuleStatus = params['RuleStatus']
|
13482
|
+
@SelectAll = params['SelectAll']
|
13483
|
+
@RuleIDs = params['RuleIDs']
|
13484
|
+
@TypeId = params['TypeId']
|
13485
|
+
@Reason = params['Reason']
|
13486
|
+
end
|
13487
|
+
end
|
13488
|
+
|
13489
|
+
# ModifyOwaspRuleStatus返回参数结构体
|
13490
|
+
class ModifyOwaspRuleStatusResponse < TencentCloud::Common::AbstractModel
|
13491
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13492
|
+
# @type RequestId: String
|
13493
|
+
|
13494
|
+
attr_accessor :RequestId
|
13495
|
+
|
13496
|
+
def initialize(requestid=nil)
|
13497
|
+
@RequestId = requestid
|
13498
|
+
end
|
13499
|
+
|
13500
|
+
def deserialize(params)
|
13501
|
+
@RequestId = params['RequestId']
|
13502
|
+
end
|
13503
|
+
end
|
13504
|
+
|
13505
|
+
# ModifyOwaspRuleTypeAction请求参数结构体
|
13506
|
+
class ModifyOwaspRuleTypeActionRequest < TencentCloud::Common::AbstractModel
|
13507
|
+
# @param Domain: 域名
|
13508
|
+
# @type Domain: 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
|
+
|
13277
13625
|
# ModifyOwaspWhiteRule请求参数结构体
|
13278
13626
|
class ModifyOwaspWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
13279
13627
|
# @param RuleId: 规则ID
|
@@ -14036,6 +14384,115 @@ module TencentCloud
|
|
14036
14384
|
end
|
14037
14385
|
end
|
14038
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
|
+
|
14039
14496
|
# 规则引擎白名单
|
14040
14497
|
class OwaspWhiteRule < TencentCloud::Common::AbstractModel
|
14041
14498
|
# @param RuleId: 白名单的规则ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1123
|
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-08-
|
11
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|