tencentcloud-sdk-waf 3.0.501 → 3.0.502
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 +72 -0
- data/lib/v20180125/models.rb +191 -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: 79a94ec29cd558e80dbf1907ef36a1a3db1d6d4b
|
4
|
+
data.tar.gz: fb41d6c4d20a2464e510891a2e0d86c1e9c91f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 303a7973b2fe68e2396521a17995754a3f25be27c65fa462e50445f7ef53047abf5db7ce1c8014499c81b805fc28cbbe7f69d004906f5464547e9df7979cd43d
|
7
|
+
data.tar.gz: 95f7d6688d3528071aaddd5df6638bc749289a058df07beb967c5cefece56766c6f7c8ad7e4e888e1e43a527f18a5144d4781224b8a9ebc5d4e6f7334749d681
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.502
|
data/lib/v20180125/client.rb
CHANGED
@@ -702,6 +702,30 @@ module TencentCloud
|
|
702
702
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
703
703
|
end
|
704
704
|
|
705
|
+
# 修改防护域名的地域封禁状态
|
706
|
+
|
707
|
+
# @param request: Request instance for ModifyAreaBanStatus.
|
708
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanStatusRequest`
|
709
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanStatusResponse`
|
710
|
+
def ModifyAreaBanStatus(request)
|
711
|
+
body = send_request('ModifyAreaBanStatus', request.serialize)
|
712
|
+
response = JSON.parse(body)
|
713
|
+
if response['Response'].key?('Error') == false
|
714
|
+
model = ModifyAreaBanStatusResponse.new
|
715
|
+
model.deserialize(response['Response'])
|
716
|
+
model
|
717
|
+
else
|
718
|
+
code = response['Response']['Error']['Code']
|
719
|
+
message = response['Response']['Error']['Message']
|
720
|
+
reqid = response['Response']['RequestId']
|
721
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
722
|
+
end
|
723
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
724
|
+
raise e
|
725
|
+
rescue StandardError => e
|
726
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
727
|
+
end
|
728
|
+
|
705
729
|
# 开启或禁用访问控制(自定义策略)
|
706
730
|
|
707
731
|
# @param request: Request instance for ModifyCustomRuleStatus.
|
@@ -870,6 +894,54 @@ module TencentCloud
|
|
870
894
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
895
|
end
|
872
896
|
|
897
|
+
# 新版本CLS接口存在参数变化,query改成了query_string支持lucence语法接口搜索查询。
|
898
|
+
|
899
|
+
# @param request: Request instance for SearchAttackLog.
|
900
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::SearchAttackLogRequest`
|
901
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::SearchAttackLogResponse`
|
902
|
+
def SearchAttackLog(request)
|
903
|
+
body = send_request('SearchAttackLog', request.serialize)
|
904
|
+
response = JSON.parse(body)
|
905
|
+
if response['Response'].key?('Error') == false
|
906
|
+
model = SearchAttackLogResponse.new
|
907
|
+
model.deserialize(response['Response'])
|
908
|
+
model
|
909
|
+
else
|
910
|
+
code = response['Response']['Error']['Code']
|
911
|
+
message = response['Response']['Error']['Message']
|
912
|
+
reqid = response['Response']['RequestId']
|
913
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
914
|
+
end
|
915
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
916
|
+
raise e
|
917
|
+
rescue StandardError => e
|
918
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
919
|
+
end
|
920
|
+
|
921
|
+
# 切换域名的规则开关
|
922
|
+
|
923
|
+
# @param request: Request instance for SwitchDomainRules.
|
924
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::SwitchDomainRulesRequest`
|
925
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::SwitchDomainRulesResponse`
|
926
|
+
def SwitchDomainRules(request)
|
927
|
+
body = send_request('SwitchDomainRules', request.serialize)
|
928
|
+
response = JSON.parse(body)
|
929
|
+
if response['Response'].key?('Error') == false
|
930
|
+
model = SwitchDomainRulesResponse.new
|
931
|
+
model.deserialize(response['Response'])
|
932
|
+
model
|
933
|
+
else
|
934
|
+
code = response['Response']['Error']['Code']
|
935
|
+
message = response['Response']['Error']['Message']
|
936
|
+
reqid = response['Response']['RequestId']
|
937
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
938
|
+
end
|
939
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
940
|
+
raise e
|
941
|
+
rescue StandardError => e
|
942
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
943
|
+
end
|
944
|
+
|
873
945
|
# Waf IP黑白名单Upsert接口
|
874
946
|
|
875
947
|
# @param request: Request instance for UpsertIpAccessControl.
|
data/lib/v20180125/models.rb
CHANGED
@@ -593,6 +593,34 @@ module TencentCloud
|
|
593
593
|
end
|
594
594
|
end
|
595
595
|
|
596
|
+
# 攻击日志详情
|
597
|
+
class AttackLogInfo < TencentCloud::Common::AbstractModel
|
598
|
+
# @param Content: 攻击日志的详情内容
|
599
|
+
# @type Content: String
|
600
|
+
# @param FileName: CLS返回内容
|
601
|
+
# @type FileName: String
|
602
|
+
# @param Source: CLS返回内容
|
603
|
+
# @type Source: String
|
604
|
+
# @param TimeStamp: CLS返回内容
|
605
|
+
# @type TimeStamp: String
|
606
|
+
|
607
|
+
attr_accessor :Content, :FileName, :Source, :TimeStamp
|
608
|
+
|
609
|
+
def initialize(content=nil, filename=nil, source=nil, timestamp=nil)
|
610
|
+
@Content = content
|
611
|
+
@FileName = filename
|
612
|
+
@Source = source
|
613
|
+
@TimeStamp = timestamp
|
614
|
+
end
|
615
|
+
|
616
|
+
def deserialize(params)
|
617
|
+
@Content = params['Content']
|
618
|
+
@FileName = params['FileName']
|
619
|
+
@Source = params['Source']
|
620
|
+
@TimeStamp = params['TimeStamp']
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
596
624
|
# Waf 攻击自动封禁详情
|
597
625
|
class AutoDenyDetail < TencentCloud::Common::AbstractModel
|
598
626
|
# @param AttackTags: 攻击封禁类型标签
|
@@ -2841,6 +2869,42 @@ module TencentCloud
|
|
2841
2869
|
end
|
2842
2870
|
end
|
2843
2871
|
|
2872
|
+
# ModifyAreaBanStatus请求参数结构体
|
2873
|
+
class ModifyAreaBanStatusRequest < TencentCloud::Common::AbstractModel
|
2874
|
+
# @param Domain: 修要修改的域名
|
2875
|
+
# @type Domain: String
|
2876
|
+
# @param Status: 状态值,0表示关闭,1表示开启
|
2877
|
+
# @type Status: Integer
|
2878
|
+
|
2879
|
+
attr_accessor :Domain, :Status
|
2880
|
+
|
2881
|
+
def initialize(domain=nil, status=nil)
|
2882
|
+
@Domain = domain
|
2883
|
+
@Status = status
|
2884
|
+
end
|
2885
|
+
|
2886
|
+
def deserialize(params)
|
2887
|
+
@Domain = params['Domain']
|
2888
|
+
@Status = params['Status']
|
2889
|
+
end
|
2890
|
+
end
|
2891
|
+
|
2892
|
+
# ModifyAreaBanStatus返回参数结构体
|
2893
|
+
class ModifyAreaBanStatusResponse < TencentCloud::Common::AbstractModel
|
2894
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2895
|
+
# @type RequestId: String
|
2896
|
+
|
2897
|
+
attr_accessor :RequestId
|
2898
|
+
|
2899
|
+
def initialize(requestid=nil)
|
2900
|
+
@RequestId = requestid
|
2901
|
+
end
|
2902
|
+
|
2903
|
+
def deserialize(params)
|
2904
|
+
@RequestId = params['RequestId']
|
2905
|
+
end
|
2906
|
+
end
|
2907
|
+
|
2844
2908
|
# ModifyCustomRuleStatus请求参数结构体
|
2845
2909
|
class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
|
2846
2910
|
# @param Domain: 域名
|
@@ -3370,6 +3434,89 @@ module TencentCloud
|
|
3370
3434
|
end
|
3371
3435
|
end
|
3372
3436
|
|
3437
|
+
# SearchAttackLog请求参数结构体
|
3438
|
+
class SearchAttackLogRequest < TencentCloud::Common::AbstractModel
|
3439
|
+
# @param Domain: 查询的域名,所有域名使用all
|
3440
|
+
# @type Domain: String
|
3441
|
+
# @param StartTime: 查询起始时间
|
3442
|
+
# @type StartTime: String
|
3443
|
+
# @param EndTime: 查询结束时间
|
3444
|
+
# @type EndTime: String
|
3445
|
+
# @param Context: 查询的游标。第一次请求使用空字符串即可,后续请求使用上一次请求返回的最后一条记录的context的值即可。
|
3446
|
+
# @type Context: String
|
3447
|
+
# @param QueryString: Lucene语法
|
3448
|
+
# @type QueryString: String
|
3449
|
+
# @param Count: 查询的数量,默认10条,最多100条
|
3450
|
+
# @type Count: Integer
|
3451
|
+
# @param Sort: 默认为desc,可以取值desc和asc
|
3452
|
+
# @type Sort: String
|
3453
|
+
|
3454
|
+
attr_accessor :Domain, :StartTime, :EndTime, :Context, :QueryString, :Count, :Sort
|
3455
|
+
|
3456
|
+
def initialize(domain=nil, starttime=nil, endtime=nil, context=nil, querystring=nil, count=nil, sort=nil)
|
3457
|
+
@Domain = domain
|
3458
|
+
@StartTime = starttime
|
3459
|
+
@EndTime = endtime
|
3460
|
+
@Context = context
|
3461
|
+
@QueryString = querystring
|
3462
|
+
@Count = count
|
3463
|
+
@Sort = sort
|
3464
|
+
end
|
3465
|
+
|
3466
|
+
def deserialize(params)
|
3467
|
+
@Domain = params['Domain']
|
3468
|
+
@StartTime = params['StartTime']
|
3469
|
+
@EndTime = params['EndTime']
|
3470
|
+
@Context = params['Context']
|
3471
|
+
@QueryString = params['QueryString']
|
3472
|
+
@Count = params['Count']
|
3473
|
+
@Sort = params['Sort']
|
3474
|
+
end
|
3475
|
+
end
|
3476
|
+
|
3477
|
+
# SearchAttackLog返回参数结构体
|
3478
|
+
class SearchAttackLogResponse < TencentCloud::Common::AbstractModel
|
3479
|
+
# @param Count: 当前返回的攻击日志条数
|
3480
|
+
# @type Count: Integer
|
3481
|
+
# @param Context: 翻页游标,如果没有下一页了,这个参数为空""
|
3482
|
+
# @type Context: String
|
3483
|
+
# @param Data: 攻击日志数组条目内容
|
3484
|
+
# @type Data: Array
|
3485
|
+
# @param ListOver: CLS接口返回内容
|
3486
|
+
# @type ListOver: Boolean
|
3487
|
+
# @param SqlFlag: CLS接口返回内容,标志是否启动新版本索引
|
3488
|
+
# @type SqlFlag: Boolean
|
3489
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3490
|
+
# @type RequestId: String
|
3491
|
+
|
3492
|
+
attr_accessor :Count, :Context, :Data, :ListOver, :SqlFlag, :RequestId
|
3493
|
+
|
3494
|
+
def initialize(count=nil, context=nil, data=nil, listover=nil, sqlflag=nil, requestid=nil)
|
3495
|
+
@Count = count
|
3496
|
+
@Context = context
|
3497
|
+
@Data = data
|
3498
|
+
@ListOver = listover
|
3499
|
+
@SqlFlag = sqlflag
|
3500
|
+
@RequestId = requestid
|
3501
|
+
end
|
3502
|
+
|
3503
|
+
def deserialize(params)
|
3504
|
+
@Count = params['Count']
|
3505
|
+
@Context = params['Context']
|
3506
|
+
unless params['Data'].nil?
|
3507
|
+
@Data = []
|
3508
|
+
params['Data'].each do |i|
|
3509
|
+
attackloginfo_tmp = AttackLogInfo.new
|
3510
|
+
attackloginfo_tmp.deserialize(i)
|
3511
|
+
@Data << attackloginfo_tmp
|
3512
|
+
end
|
3513
|
+
end
|
3514
|
+
@ListOver = params['ListOver']
|
3515
|
+
@SqlFlag = params['SqlFlag']
|
3516
|
+
@RequestId = params['RequestId']
|
3517
|
+
end
|
3518
|
+
end
|
3519
|
+
|
3373
3520
|
# 自定义规则的匹配条件结构体
|
3374
3521
|
class Strategy < TencentCloud::Common::AbstractModel
|
3375
3522
|
# @param Field: 匹配字段
|
@@ -3398,6 +3545,50 @@ module TencentCloud
|
|
3398
3545
|
end
|
3399
3546
|
end
|
3400
3547
|
|
3548
|
+
# SwitchDomainRules请求参数结构体
|
3549
|
+
class SwitchDomainRulesRequest < TencentCloud::Common::AbstractModel
|
3550
|
+
# @param Domain: 域名
|
3551
|
+
# @type Domain: String
|
3552
|
+
# @param Ids: 规则列表
|
3553
|
+
# @type Ids: Array
|
3554
|
+
# @param Status: 开关状态
|
3555
|
+
# @type Status: Integer
|
3556
|
+
# @param Reason: 设置为观察模式原因
|
3557
|
+
# @type Reason: Integer
|
3558
|
+
|
3559
|
+
attr_accessor :Domain, :Ids, :Status, :Reason
|
3560
|
+
|
3561
|
+
def initialize(domain=nil, ids=nil, status=nil, reason=nil)
|
3562
|
+
@Domain = domain
|
3563
|
+
@Ids = ids
|
3564
|
+
@Status = status
|
3565
|
+
@Reason = reason
|
3566
|
+
end
|
3567
|
+
|
3568
|
+
def deserialize(params)
|
3569
|
+
@Domain = params['Domain']
|
3570
|
+
@Ids = params['Ids']
|
3571
|
+
@Status = params['Status']
|
3572
|
+
@Reason = params['Reason']
|
3573
|
+
end
|
3574
|
+
end
|
3575
|
+
|
3576
|
+
# SwitchDomainRules返回参数结构体
|
3577
|
+
class SwitchDomainRulesResponse < TencentCloud::Common::AbstractModel
|
3578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3579
|
+
# @type RequestId: String
|
3580
|
+
|
3581
|
+
attr_accessor :RequestId
|
3582
|
+
|
3583
|
+
def initialize(requestid=nil)
|
3584
|
+
@RequestId = requestid
|
3585
|
+
end
|
3586
|
+
|
3587
|
+
def deserialize(params)
|
3588
|
+
@RequestId = params['RequestId']
|
3589
|
+
end
|
3590
|
+
end
|
3591
|
+
|
3401
3592
|
# UpsertIpAccessControl请求参数结构体
|
3402
3593
|
class UpsertIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
3403
3594
|
# @param Domain: 域名
|
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.502
|
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-02-
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|