tencentcloud-sdk-waf 3.0.671 → 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 +168 -0
- data/lib/v20180125/models.rb +495 -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
|
@@ -850,6 +850,30 @@ module TencentCloud
|
|
|
850
850
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
851
851
|
end
|
|
852
852
|
|
|
853
|
+
# 获取证书的检查结果
|
|
854
|
+
|
|
855
|
+
# @param request: Request instance for DescribeCertificateVerifyResult.
|
|
856
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeCertificateVerifyResultRequest`
|
|
857
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCertificateVerifyResultResponse`
|
|
858
|
+
def DescribeCertificateVerifyResult(request)
|
|
859
|
+
body = send_request('DescribeCertificateVerifyResult', request.serialize)
|
|
860
|
+
response = JSON.parse(body)
|
|
861
|
+
if response['Response'].key?('Error') == false
|
|
862
|
+
model = DescribeCertificateVerifyResultResponse.new
|
|
863
|
+
model.deserialize(response['Response'])
|
|
864
|
+
model
|
|
865
|
+
else
|
|
866
|
+
code = response['Response']['Error']['Code']
|
|
867
|
+
message = response['Response']['Error']['Message']
|
|
868
|
+
reqid = response['Response']['RequestId']
|
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
870
|
+
end
|
|
871
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
872
|
+
raise e
|
|
873
|
+
rescue StandardError => e
|
|
874
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
875
|
+
end
|
|
876
|
+
|
|
853
877
|
# Saas型WAF接入查询加密套件信息
|
|
854
878
|
|
|
855
879
|
# @param request: Request instance for DescribeCiphersDetail.
|
|
@@ -994,6 +1018,30 @@ module TencentCloud
|
|
|
994
1018
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
995
1019
|
end
|
|
996
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
|
+
|
|
997
1045
|
# 获取添加域名操作的结果
|
|
998
1046
|
|
|
999
1047
|
# @param request: Request instance for DescribeDomainVerifyResult.
|
|
@@ -1498,6 +1546,30 @@ module TencentCloud
|
|
|
1498
1546
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1499
1547
|
end
|
|
1500
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
|
+
|
|
1501
1573
|
# 根据过滤条件查询VIP信息
|
|
1502
1574
|
|
|
1503
1575
|
# @param request: Request instance for DescribeVipInfo.
|
|
@@ -2317,6 +2389,30 @@ module TencentCloud
|
|
|
2317
2389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2318
2390
|
end
|
|
2319
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
|
+
|
|
2320
2416
|
# waf斯巴达-waf开关
|
|
2321
2417
|
|
|
2322
2418
|
# @param request: Request instance for ModifyProtectionStatus.
|
|
@@ -2389,6 +2485,54 @@ module TencentCloud
|
|
|
2389
2485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2390
2486
|
end
|
|
2391
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
|
+
|
|
2392
2536
|
# 修改ip惩罚规则
|
|
2393
2537
|
|
|
2394
2538
|
# @param request: Request instance for ModifyWafAutoDenyRules.
|
|
@@ -2461,6 +2605,30 @@ module TencentCloud
|
|
|
2461
2605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2462
2606
|
end
|
|
2463
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
|
+
|
|
2464
2632
|
# 创建搜索下载攻击日志任务,使用CLS新版本的搜索下载getlog接口
|
|
2465
2633
|
|
|
2466
2634
|
# @param request: Request instance for PostAttackDownloadTask.
|
data/lib/v20180125/models.rb
CHANGED
|
@@ -3017,6 +3017,71 @@ module TencentCloud
|
|
|
3017
3017
|
end
|
|
3018
3018
|
end
|
|
3019
3019
|
|
|
3020
|
+
# DescribeCertificateVerifyResult请求参数结构体
|
|
3021
|
+
class DescribeCertificateVerifyResultRequest < TencentCloud::Common::AbstractModel
|
|
3022
|
+
# @param Domain: 域名
|
|
3023
|
+
# @type Domain: String
|
|
3024
|
+
# @param CertType: 证书类型
|
|
3025
|
+
# @type CertType: Integer
|
|
3026
|
+
# @param Certificate: 证书公钥
|
|
3027
|
+
# @type Certificate: String
|
|
3028
|
+
# @param CertID: 证书ID
|
|
3029
|
+
# @type CertID: String
|
|
3030
|
+
# @param PrivateKey: 私钥信息
|
|
3031
|
+
# @type PrivateKey: String
|
|
3032
|
+
|
|
3033
|
+
attr_accessor :Domain, :CertType, :Certificate, :CertID, :PrivateKey
|
|
3034
|
+
|
|
3035
|
+
def initialize(domain=nil, certtype=nil, certificate=nil, certid=nil, privatekey=nil)
|
|
3036
|
+
@Domain = domain
|
|
3037
|
+
@CertType = certtype
|
|
3038
|
+
@Certificate = certificate
|
|
3039
|
+
@CertID = certid
|
|
3040
|
+
@PrivateKey = privatekey
|
|
3041
|
+
end
|
|
3042
|
+
|
|
3043
|
+
def deserialize(params)
|
|
3044
|
+
@Domain = params['Domain']
|
|
3045
|
+
@CertType = params['CertType']
|
|
3046
|
+
@Certificate = params['Certificate']
|
|
3047
|
+
@CertID = params['CertID']
|
|
3048
|
+
@PrivateKey = params['PrivateKey']
|
|
3049
|
+
end
|
|
3050
|
+
end
|
|
3051
|
+
|
|
3052
|
+
# DescribeCertificateVerifyResult返回参数结构体
|
|
3053
|
+
class DescribeCertificateVerifyResultResponse < TencentCloud::Common::AbstractModel
|
|
3054
|
+
# @param Status: 状态码
|
|
3055
|
+
# @type Status: Integer
|
|
3056
|
+
# @param Detail: 错误详情
|
|
3057
|
+
# @type Detail: Array
|
|
3058
|
+
# @param NotAfter: 过期时间
|
|
3059
|
+
# @type NotAfter: String
|
|
3060
|
+
# @param Changed: 证书是否改变:1有改变,0没有改变
|
|
3061
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3062
|
+
# @type Changed: Integer
|
|
3063
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3064
|
+
# @type RequestId: String
|
|
3065
|
+
|
|
3066
|
+
attr_accessor :Status, :Detail, :NotAfter, :Changed, :RequestId
|
|
3067
|
+
|
|
3068
|
+
def initialize(status=nil, detail=nil, notafter=nil, changed=nil, requestid=nil)
|
|
3069
|
+
@Status = status
|
|
3070
|
+
@Detail = detail
|
|
3071
|
+
@NotAfter = notafter
|
|
3072
|
+
@Changed = changed
|
|
3073
|
+
@RequestId = requestid
|
|
3074
|
+
end
|
|
3075
|
+
|
|
3076
|
+
def deserialize(params)
|
|
3077
|
+
@Status = params['Status']
|
|
3078
|
+
@Detail = params['Detail']
|
|
3079
|
+
@NotAfter = params['NotAfter']
|
|
3080
|
+
@Changed = params['Changed']
|
|
3081
|
+
@RequestId = params['RequestId']
|
|
3082
|
+
end
|
|
3083
|
+
end
|
|
3084
|
+
|
|
3020
3085
|
# DescribeCiphersDetail请求参数结构体
|
|
3021
3086
|
class DescribeCiphersDetailRequest < TencentCloud::Common::AbstractModel
|
|
3022
3087
|
|
|
@@ -3409,6 +3474,49 @@ module TencentCloud
|
|
|
3409
3474
|
end
|
|
3410
3475
|
end
|
|
3411
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
|
+
|
|
3412
3520
|
# DescribeDomainVerifyResult请求参数结构体
|
|
3413
3521
|
class DescribeDomainVerifyResultRequest < TencentCloud::Common::AbstractModel
|
|
3414
3522
|
# @param Domain: 域名
|
|
@@ -4570,6 +4678,81 @@ module TencentCloud
|
|
|
4570
4678
|
end
|
|
4571
4679
|
end
|
|
4572
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
|
+
|
|
4573
4756
|
# DescribeVipInfo请求参数结构体
|
|
4574
4757
|
class DescribeVipInfoRequest < TencentCloud::Common::AbstractModel
|
|
4575
4758
|
# @param InstanceIds: waf实例id列表
|
|
@@ -7737,6 +7920,33 @@ module TencentCloud
|
|
|
7737
7920
|
end
|
|
7738
7921
|
end
|
|
7739
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
|
+
|
|
7740
7950
|
# ModifyProtectionStatus请求参数结构体
|
|
7741
7951
|
class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
|
|
7742
7952
|
# @param Domain: 域名
|
|
@@ -7990,6 +8200,93 @@ module TencentCloud
|
|
|
7990
8200
|
end
|
|
7991
8201
|
end
|
|
7992
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
|
+
|
|
7993
8290
|
# ModifyWafAutoDenyRules请求参数结构体
|
|
7994
8291
|
class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
|
|
7995
8292
|
# @param Domain: 域名
|
|
@@ -8129,6 +8426,48 @@ module TencentCloud
|
|
|
8129
8426
|
end
|
|
8130
8427
|
end
|
|
8131
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
|
+
|
|
8132
8471
|
# 公共翻页参数
|
|
8133
8472
|
class PageInfo < TencentCloud::Common::AbstractModel
|
|
8134
8473
|
# @param PageNumber: 页码
|
|
@@ -8479,6 +8818,38 @@ module TencentCloud
|
|
|
8479
8818
|
end
|
|
8480
8819
|
end
|
|
8481
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
|
+
|
|
8482
8853
|
# 响应体的返回码
|
|
8483
8854
|
class ResponseCode < TencentCloud::Common::AbstractModel
|
|
8484
8855
|
# @param Code: 如果成功则返回Success,失败则返回云api定义的错误码
|
|
@@ -8499,6 +8870,54 @@ module TencentCloud
|
|
|
8499
8870
|
end
|
|
8500
8871
|
end
|
|
8501
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
|
+
|
|
8502
8921
|
# 规则白名单
|
|
8503
8922
|
class RuleList < TencentCloud::Common::AbstractModel
|
|
8504
8923
|
# @param Id: 规则Id
|
|
@@ -9388,6 +9807,62 @@ module TencentCloud
|
|
|
9388
9807
|
end
|
|
9389
9808
|
end
|
|
9390
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
|
+
|
|
9391
9866
|
# Vip信息
|
|
9392
9867
|
class VipInfo < TencentCloud::Common::AbstractModel
|
|
9393
9868
|
# @param Vip: Virtual IP
|
|
@@ -9499,6 +9974,26 @@ module TencentCloud
|
|
|
9499
9974
|
end
|
|
9500
9975
|
end
|
|
9501
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
|
+
|
|
9502
9997
|
end
|
|
9503
9998
|
end
|
|
9504
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
|