tencentcloud-sdk-waf 3.0.672 → 3.0.673
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 +144 -0
- data/lib/v20180125/models.rb +430 -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: b63a681df31f569d53787acdfd5b7f7ba09232ae
|
4
|
+
data.tar.gz: 29d88647ba1c362bbee4d9363cce68c077da6712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 062327fdf31cd16923d8e3027e226aa2d775140fac4cfe852f9159fbbb36815a6ef3e33bd71f427002312b47b1a4245ccfb1e06f36ca504e633ee28b21b7d392
|
7
|
+
data.tar.gz: 7157339164faef1c1cfbe125b5ba3f45bcd023e39971be56f6822f479ca8cced95ed8b3d49bcec02bf6acd6e41435469ed7af9a3f3657074c3007fa20a58e3e8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.673
|
data/lib/v20180125/client.rb
CHANGED
@@ -1018,6 +1018,30 @@ module TencentCloud
|
|
1018
1018
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1019
1019
|
end
|
1020
1020
|
|
1021
|
+
# 拉取域名的防护规则列表
|
1022
|
+
|
1023
|
+
# @param request: Request instance for DescribeDomainRules.
|
1024
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainRulesRequest`
|
1025
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeDomainRulesResponse`
|
1026
|
+
def DescribeDomainRules(request)
|
1027
|
+
body = send_request('DescribeDomainRules', request.serialize)
|
1028
|
+
response = JSON.parse(body)
|
1029
|
+
if response['Response'].key?('Error') == false
|
1030
|
+
model = DescribeDomainRulesResponse.new
|
1031
|
+
model.deserialize(response['Response'])
|
1032
|
+
model
|
1033
|
+
else
|
1034
|
+
code = response['Response']['Error']['Code']
|
1035
|
+
message = response['Response']['Error']['Message']
|
1036
|
+
reqid = response['Response']['RequestId']
|
1037
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1038
|
+
end
|
1039
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1040
|
+
raise e
|
1041
|
+
rescue StandardError => e
|
1042
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1043
|
+
end
|
1044
|
+
|
1021
1045
|
# 获取添加域名操作的结果
|
1022
1046
|
|
1023
1047
|
# @param request: Request instance for DescribeDomainVerifyResult.
|
@@ -1522,6 +1546,30 @@ module TencentCloud
|
|
1522
1546
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1523
1547
|
end
|
1524
1548
|
|
1549
|
+
# 获取用户特征规则列表
|
1550
|
+
|
1551
|
+
# @param request: Request instance for DescribeUserSignatureRule.
|
1552
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureRuleRequest`
|
1553
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureRuleResponse`
|
1554
|
+
def DescribeUserSignatureRule(request)
|
1555
|
+
body = send_request('DescribeUserSignatureRule', request.serialize)
|
1556
|
+
response = JSON.parse(body)
|
1557
|
+
if response['Response'].key?('Error') == false
|
1558
|
+
model = DescribeUserSignatureRuleResponse.new
|
1559
|
+
model.deserialize(response['Response'])
|
1560
|
+
model
|
1561
|
+
else
|
1562
|
+
code = response['Response']['Error']['Code']
|
1563
|
+
message = response['Response']['Error']['Message']
|
1564
|
+
reqid = response['Response']['RequestId']
|
1565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1566
|
+
end
|
1567
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1568
|
+
raise e
|
1569
|
+
rescue StandardError => e
|
1570
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1571
|
+
end
|
1572
|
+
|
1525
1573
|
# 根据过滤条件查询VIP信息
|
1526
1574
|
|
1527
1575
|
# @param request: Request instance for DescribeVipInfo.
|
@@ -2341,6 +2389,30 @@ module TencentCloud
|
|
2341
2389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2342
2390
|
end
|
2343
2391
|
|
2392
|
+
# 设置某个domain下基础安全模块的开关
|
2393
|
+
|
2394
|
+
# @param request: Request instance for ModifyModuleStatus.
|
2395
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyModuleStatusRequest`
|
2396
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyModuleStatusResponse`
|
2397
|
+
def ModifyModuleStatus(request)
|
2398
|
+
body = send_request('ModifyModuleStatus', request.serialize)
|
2399
|
+
response = JSON.parse(body)
|
2400
|
+
if response['Response'].key?('Error') == false
|
2401
|
+
model = ModifyModuleStatusResponse.new
|
2402
|
+
model.deserialize(response['Response'])
|
2403
|
+
model
|
2404
|
+
else
|
2405
|
+
code = response['Response']['Error']['Code']
|
2406
|
+
message = response['Response']['Error']['Message']
|
2407
|
+
reqid = response['Response']['RequestId']
|
2408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2409
|
+
end
|
2410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2411
|
+
raise e
|
2412
|
+
rescue StandardError => e
|
2413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2414
|
+
end
|
2415
|
+
|
2344
2416
|
# waf斯巴达-waf开关
|
2345
2417
|
|
2346
2418
|
# @param request: Request instance for ModifyProtectionStatus.
|
@@ -2413,6 +2485,54 @@ module TencentCloud
|
|
2413
2485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2414
2486
|
end
|
2415
2487
|
|
2488
|
+
# 修改用户防护规则等级
|
2489
|
+
|
2490
|
+
# @param request: Request instance for ModifyUserLevel.
|
2491
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyUserLevelRequest`
|
2492
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyUserLevelResponse`
|
2493
|
+
def ModifyUserLevel(request)
|
2494
|
+
body = send_request('ModifyUserLevel', request.serialize)
|
2495
|
+
response = JSON.parse(body)
|
2496
|
+
if response['Response'].key?('Error') == false
|
2497
|
+
model = ModifyUserLevelResponse.new
|
2498
|
+
model.deserialize(response['Response'])
|
2499
|
+
model
|
2500
|
+
else
|
2501
|
+
code = response['Response']['Error']['Code']
|
2502
|
+
message = response['Response']['Error']['Message']
|
2503
|
+
reqid = response['Response']['RequestId']
|
2504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2505
|
+
end
|
2506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2507
|
+
raise e
|
2508
|
+
rescue StandardError => e
|
2509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2510
|
+
end
|
2511
|
+
|
2512
|
+
# 修改用户防护规则,开启关闭具体的某条规则
|
2513
|
+
|
2514
|
+
# @param request: Request instance for ModifyUserSignatureRule.
|
2515
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureRuleRequest`
|
2516
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureRuleResponse`
|
2517
|
+
def ModifyUserSignatureRule(request)
|
2518
|
+
body = send_request('ModifyUserSignatureRule', request.serialize)
|
2519
|
+
response = JSON.parse(body)
|
2520
|
+
if response['Response'].key?('Error') == false
|
2521
|
+
model = ModifyUserSignatureRuleResponse.new
|
2522
|
+
model.deserialize(response['Response'])
|
2523
|
+
model
|
2524
|
+
else
|
2525
|
+
code = response['Response']['Error']['Code']
|
2526
|
+
message = response['Response']['Error']['Message']
|
2527
|
+
reqid = response['Response']['RequestId']
|
2528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2529
|
+
end
|
2530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2531
|
+
raise e
|
2532
|
+
rescue StandardError => e
|
2533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2534
|
+
end
|
2535
|
+
|
2416
2536
|
# 修改ip惩罚规则
|
2417
2537
|
|
2418
2538
|
# @param request: Request instance for ModifyWafAutoDenyRules.
|
@@ -2485,6 +2605,30 @@ module TencentCloud
|
|
2485
2605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2486
2606
|
end
|
2487
2607
|
|
2608
|
+
# 设置域名的webshell状态。
|
2609
|
+
|
2610
|
+
# @param request: Request instance for ModifyWebshellStatus.
|
2611
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyWebshellStatusRequest`
|
2612
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyWebshellStatusResponse`
|
2613
|
+
def ModifyWebshellStatus(request)
|
2614
|
+
body = send_request('ModifyWebshellStatus', request.serialize)
|
2615
|
+
response = JSON.parse(body)
|
2616
|
+
if response['Response'].key?('Error') == false
|
2617
|
+
model = ModifyWebshellStatusResponse.new
|
2618
|
+
model.deserialize(response['Response'])
|
2619
|
+
model
|
2620
|
+
else
|
2621
|
+
code = response['Response']['Error']['Code']
|
2622
|
+
message = response['Response']['Error']['Message']
|
2623
|
+
reqid = response['Response']['RequestId']
|
2624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2625
|
+
end
|
2626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2627
|
+
raise e
|
2628
|
+
rescue StandardError => e
|
2629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2630
|
+
end
|
2631
|
+
|
2488
2632
|
# 创建搜索下载攻击日志任务,使用CLS新版本的搜索下载getlog接口
|
2489
2633
|
|
2490
2634
|
# @param request: Request instance for PostAttackDownloadTask.
|
data/lib/v20180125/models.rb
CHANGED
@@ -3474,6 +3474,49 @@ module TencentCloud
|
|
3474
3474
|
end
|
3475
3475
|
end
|
3476
3476
|
|
3477
|
+
# DescribeDomainRules请求参数结构体
|
3478
|
+
class DescribeDomainRulesRequest < TencentCloud::Common::AbstractModel
|
3479
|
+
# @param Domain: 需要查询的域名
|
3480
|
+
# @type Domain: String
|
3481
|
+
|
3482
|
+
attr_accessor :Domain
|
3483
|
+
|
3484
|
+
def initialize(domain=nil)
|
3485
|
+
@Domain = domain
|
3486
|
+
end
|
3487
|
+
|
3488
|
+
def deserialize(params)
|
3489
|
+
@Domain = params['Domain']
|
3490
|
+
end
|
3491
|
+
end
|
3492
|
+
|
3493
|
+
# DescribeDomainRules返回参数结构体
|
3494
|
+
class DescribeDomainRulesResponse < TencentCloud::Common::AbstractModel
|
3495
|
+
# @param Rules: 规则列表详情
|
3496
|
+
# @type Rules: Array
|
3497
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3498
|
+
# @type RequestId: String
|
3499
|
+
|
3500
|
+
attr_accessor :Rules, :RequestId
|
3501
|
+
|
3502
|
+
def initialize(rules=nil, requestid=nil)
|
3503
|
+
@Rules = rules
|
3504
|
+
@RequestId = requestid
|
3505
|
+
end
|
3506
|
+
|
3507
|
+
def deserialize(params)
|
3508
|
+
unless params['Rules'].nil?
|
3509
|
+
@Rules = []
|
3510
|
+
params['Rules'].each do |i|
|
3511
|
+
rule_tmp = Rule.new
|
3512
|
+
rule_tmp.deserialize(i)
|
3513
|
+
@Rules << rule_tmp
|
3514
|
+
end
|
3515
|
+
end
|
3516
|
+
@RequestId = params['RequestId']
|
3517
|
+
end
|
3518
|
+
end
|
3519
|
+
|
3477
3520
|
# DescribeDomainVerifyResult请求参数结构体
|
3478
3521
|
class DescribeDomainVerifyResultRequest < TencentCloud::Common::AbstractModel
|
3479
3522
|
# @param Domain: 域名
|
@@ -4635,6 +4678,81 @@ module TencentCloud
|
|
4635
4678
|
end
|
4636
4679
|
end
|
4637
4680
|
|
4681
|
+
# DescribeUserSignatureRule请求参数结构体
|
4682
|
+
class DescribeUserSignatureRuleRequest < TencentCloud::Common::AbstractModel
|
4683
|
+
# @param Domain: 需要查询的域名
|
4684
|
+
# @type Domain: String
|
4685
|
+
# @param Offset: 分页
|
4686
|
+
# @type Offset: Integer
|
4687
|
+
# @param Limit: 每页容量
|
4688
|
+
# @type Limit: Integer
|
4689
|
+
# @param By: 排序字段,支持 signature_id, modify_time
|
4690
|
+
# @type By: String
|
4691
|
+
# @param Order: 排序方式
|
4692
|
+
# @type Order: String
|
4693
|
+
# @param Filters: 筛选条件,支持 MainClassName,SubClassID ,CveID, Status, ID; ID为规则id
|
4694
|
+
# @type Filters: Array
|
4695
|
+
|
4696
|
+
attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
|
4697
|
+
|
4698
|
+
def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
|
4699
|
+
@Domain = domain
|
4700
|
+
@Offset = offset
|
4701
|
+
@Limit = limit
|
4702
|
+
@By = by
|
4703
|
+
@Order = order
|
4704
|
+
@Filters = filters
|
4705
|
+
end
|
4706
|
+
|
4707
|
+
def deserialize(params)
|
4708
|
+
@Domain = params['Domain']
|
4709
|
+
@Offset = params['Offset']
|
4710
|
+
@Limit = params['Limit']
|
4711
|
+
@By = params['By']
|
4712
|
+
@Order = params['Order']
|
4713
|
+
unless params['Filters'].nil?
|
4714
|
+
@Filters = []
|
4715
|
+
params['Filters'].each do |i|
|
4716
|
+
filtersitemnew_tmp = FiltersItemNew.new
|
4717
|
+
filtersitemnew_tmp.deserialize(i)
|
4718
|
+
@Filters << filtersitemnew_tmp
|
4719
|
+
end
|
4720
|
+
end
|
4721
|
+
end
|
4722
|
+
end
|
4723
|
+
|
4724
|
+
# DescribeUserSignatureRule返回参数结构体
|
4725
|
+
class DescribeUserSignatureRuleResponse < TencentCloud::Common::AbstractModel
|
4726
|
+
# @param Total: 规则总数
|
4727
|
+
# @type Total: Integer
|
4728
|
+
# @param Rules: 规则列表
|
4729
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4730
|
+
# @type Rules: Array
|
4731
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4732
|
+
# @type RequestId: String
|
4733
|
+
|
4734
|
+
attr_accessor :Total, :Rules, :RequestId
|
4735
|
+
|
4736
|
+
def initialize(total=nil, rules=nil, requestid=nil)
|
4737
|
+
@Total = total
|
4738
|
+
@Rules = rules
|
4739
|
+
@RequestId = requestid
|
4740
|
+
end
|
4741
|
+
|
4742
|
+
def deserialize(params)
|
4743
|
+
@Total = params['Total']
|
4744
|
+
unless params['Rules'].nil?
|
4745
|
+
@Rules = []
|
4746
|
+
params['Rules'].each do |i|
|
4747
|
+
usersignaturerule_tmp = UserSignatureRule.new
|
4748
|
+
usersignaturerule_tmp.deserialize(i)
|
4749
|
+
@Rules << usersignaturerule_tmp
|
4750
|
+
end
|
4751
|
+
end
|
4752
|
+
@RequestId = params['RequestId']
|
4753
|
+
end
|
4754
|
+
end
|
4755
|
+
|
4638
4756
|
# DescribeVipInfo请求参数结构体
|
4639
4757
|
class DescribeVipInfoRequest < TencentCloud::Common::AbstractModel
|
4640
4758
|
# @param InstanceIds: waf实例id列表
|
@@ -7802,6 +7920,33 @@ module TencentCloud
|
|
7802
7920
|
end
|
7803
7921
|
end
|
7804
7922
|
|
7923
|
+
# ModifyModuleStatus请求参数结构体
|
7924
|
+
class ModifyModuleStatusRequest < TencentCloud::Common::AbstractModel
|
7925
|
+
|
7926
|
+
|
7927
|
+
def initialize()
|
7928
|
+
end
|
7929
|
+
|
7930
|
+
def deserialize(params)
|
7931
|
+
end
|
7932
|
+
end
|
7933
|
+
|
7934
|
+
# ModifyModuleStatus返回参数结构体
|
7935
|
+
class ModifyModuleStatusResponse < TencentCloud::Common::AbstractModel
|
7936
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7937
|
+
# @type RequestId: String
|
7938
|
+
|
7939
|
+
attr_accessor :RequestId
|
7940
|
+
|
7941
|
+
def initialize(requestid=nil)
|
7942
|
+
@RequestId = requestid
|
7943
|
+
end
|
7944
|
+
|
7945
|
+
def deserialize(params)
|
7946
|
+
@RequestId = params['RequestId']
|
7947
|
+
end
|
7948
|
+
end
|
7949
|
+
|
7805
7950
|
# ModifyProtectionStatus请求参数结构体
|
7806
7951
|
class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
|
7807
7952
|
# @param Domain: 域名
|
@@ -8055,6 +8200,93 @@ module TencentCloud
|
|
8055
8200
|
end
|
8056
8201
|
end
|
8057
8202
|
|
8203
|
+
# ModifyUserLevel请求参数结构体
|
8204
|
+
class ModifyUserLevelRequest < TencentCloud::Common::AbstractModel
|
8205
|
+
# @param Domain: 域名
|
8206
|
+
# @type Domain: String
|
8207
|
+
# @param Level: 防护规则等级 300=standard,400=extended
|
8208
|
+
# @type Level: Integer
|
8209
|
+
|
8210
|
+
attr_accessor :Domain, :Level
|
8211
|
+
|
8212
|
+
def initialize(domain=nil, level=nil)
|
8213
|
+
@Domain = domain
|
8214
|
+
@Level = level
|
8215
|
+
end
|
8216
|
+
|
8217
|
+
def deserialize(params)
|
8218
|
+
@Domain = params['Domain']
|
8219
|
+
@Level = params['Level']
|
8220
|
+
end
|
8221
|
+
end
|
8222
|
+
|
8223
|
+
# ModifyUserLevel返回参数结构体
|
8224
|
+
class ModifyUserLevelResponse < TencentCloud::Common::AbstractModel
|
8225
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8226
|
+
# @type RequestId: String
|
8227
|
+
|
8228
|
+
attr_accessor :RequestId
|
8229
|
+
|
8230
|
+
def initialize(requestid=nil)
|
8231
|
+
@RequestId = requestid
|
8232
|
+
end
|
8233
|
+
|
8234
|
+
def deserialize(params)
|
8235
|
+
@RequestId = params['RequestId']
|
8236
|
+
end
|
8237
|
+
end
|
8238
|
+
|
8239
|
+
# ModifyUserSignatureRule请求参数结构体
|
8240
|
+
class ModifyUserSignatureRuleRequest < TencentCloud::Common::AbstractModel
|
8241
|
+
# @param Domain: 域名
|
8242
|
+
# @type Domain: String
|
8243
|
+
# @param MainClassID: 主类id
|
8244
|
+
# @type MainClassID: String
|
8245
|
+
# @param Status: 主类开关0=关闭,1=开启,2=只告警
|
8246
|
+
# @type Status: Integer
|
8247
|
+
# @param RuleID: 下发修改的规则列表
|
8248
|
+
# @type RuleID: Array
|
8249
|
+
|
8250
|
+
attr_accessor :Domain, :MainClassID, :Status, :RuleID
|
8251
|
+
|
8252
|
+
def initialize(domain=nil, mainclassid=nil, status=nil, ruleid=nil)
|
8253
|
+
@Domain = domain
|
8254
|
+
@MainClassID = mainclassid
|
8255
|
+
@Status = status
|
8256
|
+
@RuleID = ruleid
|
8257
|
+
end
|
8258
|
+
|
8259
|
+
def deserialize(params)
|
8260
|
+
@Domain = params['Domain']
|
8261
|
+
@MainClassID = params['MainClassID']
|
8262
|
+
@Status = params['Status']
|
8263
|
+
unless params['RuleID'].nil?
|
8264
|
+
@RuleID = []
|
8265
|
+
params['RuleID'].each do |i|
|
8266
|
+
requserrule_tmp = ReqUserRule.new
|
8267
|
+
requserrule_tmp.deserialize(i)
|
8268
|
+
@RuleID << requserrule_tmp
|
8269
|
+
end
|
8270
|
+
end
|
8271
|
+
end
|
8272
|
+
end
|
8273
|
+
|
8274
|
+
# ModifyUserSignatureRule返回参数结构体
|
8275
|
+
class ModifyUserSignatureRuleResponse < TencentCloud::Common::AbstractModel
|
8276
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8277
|
+
# @type RequestId: String
|
8278
|
+
|
8279
|
+
attr_accessor :RequestId
|
8280
|
+
|
8281
|
+
def initialize(requestid=nil)
|
8282
|
+
@RequestId = requestid
|
8283
|
+
end
|
8284
|
+
|
8285
|
+
def deserialize(params)
|
8286
|
+
@RequestId = params['RequestId']
|
8287
|
+
end
|
8288
|
+
end
|
8289
|
+
|
8058
8290
|
# ModifyWafAutoDenyRules请求参数结构体
|
8059
8291
|
class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
|
8060
8292
|
# @param Domain: 域名
|
@@ -8194,6 +8426,48 @@ module TencentCloud
|
|
8194
8426
|
end
|
8195
8427
|
end
|
8196
8428
|
|
8429
|
+
# ModifyWebshellStatus请求参数结构体
|
8430
|
+
class ModifyWebshellStatusRequest < TencentCloud::Common::AbstractModel
|
8431
|
+
# @param Webshell: 域名webshell状态
|
8432
|
+
# @type Webshell: :class:`Tencentcloud::Waf.v20180125.models.WebshellStatus`
|
8433
|
+
|
8434
|
+
attr_accessor :Webshell
|
8435
|
+
|
8436
|
+
def initialize(webshell=nil)
|
8437
|
+
@Webshell = webshell
|
8438
|
+
end
|
8439
|
+
|
8440
|
+
def deserialize(params)
|
8441
|
+
unless params['Webshell'].nil?
|
8442
|
+
@Webshell = WebshellStatus.new
|
8443
|
+
@Webshell.deserialize(params['Webshell'])
|
8444
|
+
end
|
8445
|
+
end
|
8446
|
+
end
|
8447
|
+
|
8448
|
+
# ModifyWebshellStatus返回参数结构体
|
8449
|
+
class ModifyWebshellStatusResponse < TencentCloud::Common::AbstractModel
|
8450
|
+
# @param Success: 成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
|
8451
|
+
# @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
|
8452
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8453
|
+
# @type RequestId: String
|
8454
|
+
|
8455
|
+
attr_accessor :Success, :RequestId
|
8456
|
+
|
8457
|
+
def initialize(success=nil, requestid=nil)
|
8458
|
+
@Success = success
|
8459
|
+
@RequestId = requestid
|
8460
|
+
end
|
8461
|
+
|
8462
|
+
def deserialize(params)
|
8463
|
+
unless params['Success'].nil?
|
8464
|
+
@Success = ResponseCode.new
|
8465
|
+
@Success.deserialize(params['Success'])
|
8466
|
+
end
|
8467
|
+
@RequestId = params['RequestId']
|
8468
|
+
end
|
8469
|
+
end
|
8470
|
+
|
8197
8471
|
# 公共翻页参数
|
8198
8472
|
class PageInfo < TencentCloud::Common::AbstractModel
|
8199
8473
|
# @param PageNumber: 页码
|
@@ -8544,6 +8818,38 @@ module TencentCloud
|
|
8544
8818
|
end
|
8545
8819
|
end
|
8546
8820
|
|
8821
|
+
# 用户规则更新输出规则子项
|
8822
|
+
class ReqUserRule < TencentCloud::Common::AbstractModel
|
8823
|
+
# @param Id: 特征序号
|
8824
|
+
# @type Id: String
|
8825
|
+
# @param Status: 规则开关
|
8826
|
+
# 0:关
|
8827
|
+
# 1:开
|
8828
|
+
# 2:只告警
|
8829
|
+
# @type Status: Integer
|
8830
|
+
# @param Reason: 修改原因
|
8831
|
+
# 0:无(兼容记录为空)
|
8832
|
+
# 1:业务自身特性误报避免
|
8833
|
+
# 2:规则误报上报
|
8834
|
+
# 3:核心业务规则灰度
|
8835
|
+
# 4:其它
|
8836
|
+
# @type Reason: Integer
|
8837
|
+
|
8838
|
+
attr_accessor :Id, :Status, :Reason
|
8839
|
+
|
8840
|
+
def initialize(id=nil, status=nil, reason=nil)
|
8841
|
+
@Id = id
|
8842
|
+
@Status = status
|
8843
|
+
@Reason = reason
|
8844
|
+
end
|
8845
|
+
|
8846
|
+
def deserialize(params)
|
8847
|
+
@Id = params['Id']
|
8848
|
+
@Status = params['Status']
|
8849
|
+
@Reason = params['Reason']
|
8850
|
+
end
|
8851
|
+
end
|
8852
|
+
|
8547
8853
|
# 响应体的返回码
|
8548
8854
|
class ResponseCode < TencentCloud::Common::AbstractModel
|
8549
8855
|
# @param Code: 如果成功则返回Success,失败则返回云api定义的错误码
|
@@ -8564,6 +8870,54 @@ module TencentCloud
|
|
8564
8870
|
end
|
8565
8871
|
end
|
8566
8872
|
|
8873
|
+
# 规则列表详情
|
8874
|
+
class Rule < TencentCloud::Common::AbstractModel
|
8875
|
+
# @param Id: 规则id
|
8876
|
+
# @type Id: Integer
|
8877
|
+
# @param Type: 规则类型
|
8878
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8879
|
+
# @type Type: String
|
8880
|
+
# @param Level: 规则等级
|
8881
|
+
# @type Level: String
|
8882
|
+
# @param Description: 规则描述
|
8883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8884
|
+
# @type Description: String
|
8885
|
+
# @param CVE: 规则防护的CVE编号
|
8886
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8887
|
+
# @type CVE: String
|
8888
|
+
# @param Status: 规则的状态
|
8889
|
+
# @type Status: Integer
|
8890
|
+
# @param ModifyTime: 规则修改的时间
|
8891
|
+
# @type ModifyTime: String
|
8892
|
+
# @param AddTime: 门神规则新增/更新时间
|
8893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8894
|
+
# @type AddTime: String
|
8895
|
+
|
8896
|
+
attr_accessor :Id, :Type, :Level, :Description, :CVE, :Status, :ModifyTime, :AddTime
|
8897
|
+
|
8898
|
+
def initialize(id=nil, type=nil, level=nil, description=nil, cve=nil, status=nil, modifytime=nil, addtime=nil)
|
8899
|
+
@Id = id
|
8900
|
+
@Type = type
|
8901
|
+
@Level = level
|
8902
|
+
@Description = description
|
8903
|
+
@CVE = cve
|
8904
|
+
@Status = status
|
8905
|
+
@ModifyTime = modifytime
|
8906
|
+
@AddTime = addtime
|
8907
|
+
end
|
8908
|
+
|
8909
|
+
def deserialize(params)
|
8910
|
+
@Id = params['Id']
|
8911
|
+
@Type = params['Type']
|
8912
|
+
@Level = params['Level']
|
8913
|
+
@Description = params['Description']
|
8914
|
+
@CVE = params['CVE']
|
8915
|
+
@Status = params['Status']
|
8916
|
+
@ModifyTime = params['ModifyTime']
|
8917
|
+
@AddTime = params['AddTime']
|
8918
|
+
end
|
8919
|
+
end
|
8920
|
+
|
8567
8921
|
# 规则白名单
|
8568
8922
|
class RuleList < TencentCloud::Common::AbstractModel
|
8569
8923
|
# @param Id: 规则Id
|
@@ -9453,6 +9807,62 @@ module TencentCloud
|
|
9453
9807
|
end
|
9454
9808
|
end
|
9455
9809
|
|
9810
|
+
# 用户特征规则描述
|
9811
|
+
class UserSignatureRule < TencentCloud::Common::AbstractModel
|
9812
|
+
# @param ID: 特征ID
|
9813
|
+
# @type ID: String
|
9814
|
+
# @param Status: 规则开关
|
9815
|
+
# @type Status: Integer
|
9816
|
+
# @param MainClassID: 主类ID
|
9817
|
+
# @type MainClassID: String
|
9818
|
+
# @param SubClassID: 子类ID
|
9819
|
+
# @type SubClassID: String
|
9820
|
+
# @param CveID: CVE ID
|
9821
|
+
# @type CveID: String
|
9822
|
+
# @param CreateTime: 创建时间
|
9823
|
+
# @type CreateTime: String
|
9824
|
+
# @param ModifyTime: 更新时间
|
9825
|
+
# @type ModifyTime: String
|
9826
|
+
# @param MainClassName: 主类名字,根据Language字段输出中文/英文
|
9827
|
+
# @type MainClassName: String
|
9828
|
+
# @param SubClassName: 子类名字,根据Language字段输出中文/英文,若子类id为00000000,此字段为空
|
9829
|
+
# @type SubClassName: String
|
9830
|
+
# @param Description: 规则描述
|
9831
|
+
# @type Description: String
|
9832
|
+
# @param Reason: 0/1
|
9833
|
+
# @type Reason: Integer
|
9834
|
+
|
9835
|
+
attr_accessor :ID, :Status, :MainClassID, :SubClassID, :CveID, :CreateTime, :ModifyTime, :MainClassName, :SubClassName, :Description, :Reason
|
9836
|
+
|
9837
|
+
def initialize(id=nil, status=nil, mainclassid=nil, subclassid=nil, cveid=nil, createtime=nil, modifytime=nil, mainclassname=nil, subclassname=nil, description=nil, reason=nil)
|
9838
|
+
@ID = id
|
9839
|
+
@Status = status
|
9840
|
+
@MainClassID = mainclassid
|
9841
|
+
@SubClassID = subclassid
|
9842
|
+
@CveID = cveid
|
9843
|
+
@CreateTime = createtime
|
9844
|
+
@ModifyTime = modifytime
|
9845
|
+
@MainClassName = mainclassname
|
9846
|
+
@SubClassName = subclassname
|
9847
|
+
@Description = description
|
9848
|
+
@Reason = reason
|
9849
|
+
end
|
9850
|
+
|
9851
|
+
def deserialize(params)
|
9852
|
+
@ID = params['ID']
|
9853
|
+
@Status = params['Status']
|
9854
|
+
@MainClassID = params['MainClassID']
|
9855
|
+
@SubClassID = params['SubClassID']
|
9856
|
+
@CveID = params['CveID']
|
9857
|
+
@CreateTime = params['CreateTime']
|
9858
|
+
@ModifyTime = params['ModifyTime']
|
9859
|
+
@MainClassName = params['MainClassName']
|
9860
|
+
@SubClassName = params['SubClassName']
|
9861
|
+
@Description = params['Description']
|
9862
|
+
@Reason = params['Reason']
|
9863
|
+
end
|
9864
|
+
end
|
9865
|
+
|
9456
9866
|
# Vip信息
|
9457
9867
|
class VipInfo < TencentCloud::Common::AbstractModel
|
9458
9868
|
# @param Vip: Virtual IP
|
@@ -9564,6 +9974,26 @@ module TencentCloud
|
|
9564
9974
|
end
|
9565
9975
|
end
|
9566
9976
|
|
9977
|
+
# 域名的webshell开启状态
|
9978
|
+
class WebshellStatus < TencentCloud::Common::AbstractModel
|
9979
|
+
# @param Domain: 域名
|
9980
|
+
# @type Domain: String
|
9981
|
+
# @param Status: webshell开关,1:开。0:关。2:观察
|
9982
|
+
# @type Status: Integer
|
9983
|
+
|
9984
|
+
attr_accessor :Domain, :Status
|
9985
|
+
|
9986
|
+
def initialize(domain=nil, status=nil)
|
9987
|
+
@Domain = domain
|
9988
|
+
@Status = status
|
9989
|
+
end
|
9990
|
+
|
9991
|
+
def deserialize(params)
|
9992
|
+
@Domain = params['Domain']
|
9993
|
+
@Status = params['Status']
|
9994
|
+
end
|
9995
|
+
end
|
9996
|
+
|
9567
9997
|
end
|
9568
9998
|
end
|
9569
9999
|
end
|
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.673
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|