tencentcloud-sdk-waf 3.0.500 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f639be8f92b7b31dc557c80a4e5153a2cab00b5e
4
- data.tar.gz: 59313d0f7c83cf816488209cc8622f139b07225c
3
+ metadata.gz: 79a94ec29cd558e80dbf1907ef36a1a3db1d6d4b
4
+ data.tar.gz: fb41d6c4d20a2464e510891a2e0d86c1e9c91f49
5
5
  SHA512:
6
- metadata.gz: 13dbc51404ac0d66073d7fbf0999469ea9d2b84dbdbc3364a97f11e57c4e7181f0171ff90c3c149e46375cae4c45134460115e5f45df98a41261c892c9b9b2d5
7
- data.tar.gz: 0672da081e0abf37a8b0a14020a1bb35cb84d4a737096fd4f89902c15856a64acee81258198420378a1d65b366fe51e19f8744e022c063d7661d82bcd009ff2b
6
+ metadata.gz: 303a7973b2fe68e2396521a17995754a3f25be27c65fa462e50445f7ef53047abf5db7ce1c8014499c81b805fc28cbbe7f69d004906f5464547e9df7979cd43d
7
+ data.tar.gz: 95f7d6688d3528071aaddd5df6638bc749289a058df07beb967c5cefece56766c6f7c8ad7e4e888e1e43a527f18a5144d4781224b8a9ebc5d4e6f7334749d681
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.500
1
+ 3.0.502
@@ -392,7 +392,6 @@ module TencentCloud
392
392
 
393
393
  # 获取域名的规则白名单
394
394
 
395
-
396
395
  # @param request: Request instance for DescribeDomainWhiteRules.
397
396
  # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainWhiteRulesRequest`
398
397
  # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeDomainWhiteRulesResponse`
@@ -703,6 +702,30 @@ module TencentCloud
703
702
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
704
703
  end
705
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
+
706
729
  # 开启或禁用访问控制(自定义策略)
707
730
 
708
731
  # @param request: Request instance for ModifyCustomRuleStatus.
@@ -871,6 +894,54 @@ module TencentCloud
871
894
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
872
895
  end
873
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
+
874
945
  # Waf IP黑白名单Upsert接口
875
946
 
876
947
  # @param request: Request instance for UpsertIpAccessControl.
@@ -311,7 +311,7 @@ module TencentCloud
311
311
  # @type Strategies: Array
312
312
  # @param Domain: 需要添加策略的域名
313
313
  # @type Domain: String
314
- # @param ActionType: 动作类型
314
+ # @param ActionType: 动作类型,1代表阻断,2代表人机识别,3代表观察,4代表重定向
315
315
  # @type ActionType: String
316
316
  # @param Redirect: 如果动作是重定向,则表示重定向的地址;其他情况可以为空
317
317
  # @type Redirect: String
@@ -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: 攻击封禁类型标签
@@ -1374,7 +1402,7 @@ module TencentCloud
1374
1402
  # @type Page: Integer
1375
1403
  # @param Count: 每页展示的条数
1376
1404
  # @type Count: Integer
1377
- # @param Sort: 排序方式
1405
+ # @param Sort: 排序方式,desc表示降序,asc表示升序
1378
1406
  # @type Sort: String
1379
1407
  # @param RuleId: 规则ID
1380
1408
  # @type RuleId: String
@@ -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: 域名
@@ -2948,11 +3012,11 @@ module TencentCloud
2948
3012
  class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
2949
3013
  # @param Domain: 域名
2950
3014
  # @type Domain: String
2951
- # @param AttackThreshold: 攻击次数阈值
3015
+ # @param AttackThreshold: 触发IP封禁的攻击次数阈值,范围为2~100次
2952
3016
  # @type AttackThreshold: Integer
2953
- # @param TimeThreshold: 攻击时间阈值
3017
+ # @param TimeThreshold: IP封禁统计时间,范围为1-60分钟
2954
3018
  # @type TimeThreshold: Integer
2955
- # @param DenyTimeThreshold: 自动封禁时间
3019
+ # @param DenyTimeThreshold: 触发IP封禁后的封禁时间,范围为5~360分钟
2956
3020
  # @type DenyTimeThreshold: Integer
2957
3021
  # @param DefenseStatus: 自动封禁状态
2958
3022
  # @type DefenseStatus: Integer
@@ -3314,9 +3378,9 @@ module TencentCloud
3314
3378
  class SearchAccessLogResponse < TencentCloud::Common::AbstractModel
3315
3379
  # @param Context: 加载后续内容的Context
3316
3380
  # @type Context: String
3317
- # @param ListOver: 日志查询结果是否全部返回
3381
+ # @param ListOver: 日志查询结果是否全部返回,其中,“true”表示结果返回,“false”表示结果为返回
3318
3382
  # @type ListOver: Boolean
3319
- # @param Analysis: 返回的是否为分析结果
3383
+ # @param Analysis: 返回的是否为分析结果,其中,“true”表示返回分析结果,“false”表示未返回分析结果
3320
3384
  # @type Analysis: Boolean
3321
3385
  # @param ColNames: 如果Analysis为True,则返回分析结果的列名,否则为空
3322
3386
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -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.500
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-02 00:00:00.000000000 Z
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