tencentcloud-sdk-waf 3.0.700 → 3.0.702

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1bac56e9dfa8342c27ed3ec2aa3b1c8a7edfbd8
4
- data.tar.gz: e6dcbc22b08a772cd6191991184a6b5f49faf39c
3
+ metadata.gz: 076daea27ccca03ba3c24463f9b13460e3f29c60
4
+ data.tar.gz: 2eddc8f732441a5e7c83769c30ae8c922dccd2e5
5
5
  SHA512:
6
- metadata.gz: 1378f2cb26526ff3de0925edf8287990401a910d48aad4f2a9c770290a8b6756146ea2e5be90133b84deaae36c7f8b9dd4a253d1dbf855816e962c3ef2215a15
7
- data.tar.gz: d0f2f460672e45937597f46092c63f027aab452846dd50d68c9a97d6f3740420caf7a4b5daf06f7630055e4c57ac8e409b9a9f4f2e00119af53ab7867ce407ed
6
+ metadata.gz: cca0e709bfc4f47ef8dcf650ef13976dcee2d6115ddc51373e254ff0c7e7d494cc44fe8cbdd4986f552c2c89176ebeac8b2222950e128772402bf9c434310da0
7
+ data.tar.gz: 21a376e25a2209d521d42eb4e79724eee66a2170a09f682fede2a580a83ad61bbb5da1aec3311831614abb28b43b518c7a089836b361a56651b69261e8901eea
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.700
1
+ 3.0.702
@@ -900,7 +900,29 @@ module TencentCloud
900
900
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
901
901
  end
902
902
 
903
- # 没有在使用。
903
+ # Waf 斯巴达版本查询cc自动封堵状态
904
+
905
+ # @param request: Request instance for DescribeCCAutoStatus.
906
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeCCAutoStatusRequest`
907
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCCAutoStatusResponse`
908
+ def DescribeCCAutoStatus(request)
909
+ body = send_request('DescribeCCAutoStatus', request.serialize)
910
+ response = JSON.parse(body)
911
+ if response['Response'].key?('Error') == false
912
+ model = DescribeCCAutoStatusResponse.new
913
+ model.deserialize(response['Response'])
914
+ model
915
+ else
916
+ code = response['Response']['Error']['Code']
917
+ message = response['Response']['Error']['Message']
918
+ reqid = response['Response']['RequestId']
919
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
920
+ end
921
+ rescue TencentCloud::Common::TencentCloudSDKException => e
922
+ raise e
923
+ rescue StandardError => e
924
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
925
+ end
904
926
 
905
927
  # Waf CC V2 Query接口
906
928
 
@@ -2897,30 +2919,6 @@ module TencentCloud
2897
2919
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2898
2920
  end
2899
2921
 
2900
- # 配置WAF自动封禁模块状态
2901
-
2902
- # @param request: Request instance for ModifyWafAutoDenyStatus.
2903
- # @type request: :class:`Tencentcloud::waf::V20180125::ModifyWafAutoDenyStatusRequest`
2904
- # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyWafAutoDenyStatusResponse`
2905
- def ModifyWafAutoDenyStatus(request)
2906
- body = send_request('ModifyWafAutoDenyStatus', request.serialize)
2907
- response = JSON.parse(body)
2908
- if response['Response'].key?('Error') == false
2909
- model = ModifyWafAutoDenyStatusResponse.new
2910
- model.deserialize(response['Response'])
2911
- model
2912
- else
2913
- code = response['Response']['Error']['Code']
2914
- message = response['Response']['Error']['Message']
2915
- reqid = response['Response']['RequestId']
2916
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2917
- end
2918
- rescue TencentCloud::Common::TencentCloudSDKException => e
2919
- raise e
2920
- rescue StandardError => e
2921
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2922
- end
2923
-
2924
2922
  # 配置WAF威胁情报封禁模块详情
2925
2923
 
2926
2924
  # @param request: Request instance for ModifyWafThreatenIntelligence.
@@ -3113,6 +3111,30 @@ module TencentCloud
3113
3111
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3114
3112
  end
3115
3113
 
3114
+ # Waf 斯巴达版本更新cc自动封堵状态
3115
+
3116
+ # @param request: Request instance for UpsertCCAutoStatus.
3117
+ # @type request: :class:`Tencentcloud::waf::V20180125::UpsertCCAutoStatusRequest`
3118
+ # @rtype: :class:`Tencentcloud::waf::V20180125::UpsertCCAutoStatusResponse`
3119
+ def UpsertCCAutoStatus(request)
3120
+ body = send_request('UpsertCCAutoStatus', request.serialize)
3121
+ response = JSON.parse(body)
3122
+ if response['Response'].key?('Error') == false
3123
+ model = UpsertCCAutoStatusResponse.new
3124
+ model.deserialize(response['Response'])
3125
+ model
3126
+ else
3127
+ code = response['Response']['Error']['Code']
3128
+ message = response['Response']['Error']['Message']
3129
+ reqid = response['Response']['RequestId']
3130
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3131
+ end
3132
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3133
+ raise e
3134
+ rescue StandardError => e
3135
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3136
+ end
3137
+
3116
3138
  # Waf CC V2 Upsert接口
3117
3139
 
3118
3140
  # @param request: Request instance for UpsertCCRule.
@@ -937,20 +937,13 @@ module TencentCloud
937
937
  # @param BillingItem: 计费项
938
938
  # 注意:此字段可能返回 null,表示取不到有效值。
939
939
  # @type BillingItem: String
940
- # @param APICPWaf: 1 API安全6折
941
- # 注意:此字段可能返回 null,表示取不到有效值。
942
- # @type APICPWaf: Integer
943
- # @param APINPWaf: 1 表示5折折扣
944
- # 2 表示4折折扣
945
- # 注意:此字段可能返回 null,表示取不到有效值。
946
- # @type APINPWaf: Integer
947
940
  # @param IsAPISecurityTrial: api安全7天试用标识。1试用。0没试用
948
941
  # 注意:此字段可能返回 null,表示取不到有效值。
949
942
  # @type IsAPISecurityTrial: Integer
950
943
 
951
- attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag, :BillingItem, :APICPWaf, :APINPWaf, :IsAPISecurityTrial
944
+ attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag, :BillingItem, :IsAPISecurityTrial
952
945
 
953
- def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil, billingitem=nil, apicpwaf=nil, apinpwaf=nil, isapisecuritytrial=nil)
946
+ def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil, billingitem=nil, isapisecuritytrial=nil)
954
947
  @ResourceIds = resourceids
955
948
  @Status = status
956
949
  @Region = region
@@ -960,8 +953,6 @@ module TencentCloud
960
953
  @UsedNum = usednum
961
954
  @RenewFlag = renewflag
962
955
  @BillingItem = billingitem
963
- @APICPWaf = apicpwaf
964
- @APINPWaf = apinpwaf
965
956
  @IsAPISecurityTrial = isapisecuritytrial
966
957
  end
967
958
 
@@ -975,8 +966,6 @@ module TencentCloud
975
966
  @UsedNum = params['UsedNum']
976
967
  @RenewFlag = params['RenewFlag']
977
968
  @BillingItem = params['BillingItem']
978
- @APICPWaf = params['APICPWaf']
979
- @APINPWaf = params['APINPWaf']
980
969
  @IsAPISecurityTrial = params['IsAPISecurityTrial']
981
970
  end
982
971
  end
@@ -1342,6 +1331,108 @@ module TencentCloud
1342
1331
  end
1343
1332
  end
1344
1333
 
1334
+ # CC规则详情
1335
+ class CCRuleItems < TencentCloud::Common::AbstractModel
1336
+ # @param Name: 名字
1337
+ # @type Name: String
1338
+ # @param Status: 状态
1339
+ # @type Status: Integer
1340
+ # @param Advance: 模式
1341
+ # @type Advance: Integer
1342
+ # @param Limit: 限制
1343
+ # @type Limit: Integer
1344
+ # @param Interval: 范围
1345
+ # @type Interval: Integer
1346
+ # @param Url: 网址
1347
+ # @type Url: String
1348
+ # @param MatchFunc: 匹配类型
1349
+ # @type MatchFunc: Integer
1350
+ # @param ActionType: 动作
1351
+ # @type ActionType: Integer
1352
+ # @param Priority: 优先级
1353
+ # @type Priority: Integer
1354
+ # @param ValidTime: 有效时间
1355
+ # @type ValidTime: Integer
1356
+ # @param TsVersion: 版本
1357
+ # @type TsVersion: Integer
1358
+ # @param Options: 规则详情
1359
+ # @type Options: String
1360
+ # @param RuleId: 规则ID
1361
+ # @type RuleId: Integer
1362
+ # @param EventId: 事件id
1363
+ # 注意:此字段可能返回 null,表示取不到有效值。
1364
+ # @type EventId: String
1365
+ # @param SessionApplied: 关联的Session规则
1366
+ # 注意:此字段可能返回 null,表示取不到有效值。
1367
+ # @type SessionApplied: Array
1368
+
1369
+ attr_accessor :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :TsVersion, :Options, :RuleId, :EventId, :SessionApplied
1370
+
1371
+ def initialize(name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, tsversion=nil, options=nil, ruleid=nil, eventid=nil, sessionapplied=nil)
1372
+ @Name = name
1373
+ @Status = status
1374
+ @Advance = advance
1375
+ @Limit = limit
1376
+ @Interval = interval
1377
+ @Url = url
1378
+ @MatchFunc = matchfunc
1379
+ @ActionType = actiontype
1380
+ @Priority = priority
1381
+ @ValidTime = validtime
1382
+ @TsVersion = tsversion
1383
+ @Options = options
1384
+ @RuleId = ruleid
1385
+ @EventId = eventid
1386
+ @SessionApplied = sessionapplied
1387
+ end
1388
+
1389
+ def deserialize(params)
1390
+ @Name = params['Name']
1391
+ @Status = params['Status']
1392
+ @Advance = params['Advance']
1393
+ @Limit = params['Limit']
1394
+ @Interval = params['Interval']
1395
+ @Url = params['Url']
1396
+ @MatchFunc = params['MatchFunc']
1397
+ @ActionType = params['ActionType']
1398
+ @Priority = params['Priority']
1399
+ @ValidTime = params['ValidTime']
1400
+ @TsVersion = params['TsVersion']
1401
+ @Options = params['Options']
1402
+ @RuleId = params['RuleId']
1403
+ @EventId = params['EventId']
1404
+ @SessionApplied = params['SessionApplied']
1405
+ end
1406
+ end
1407
+
1408
+ # CC规则总览
1409
+ class CCRuleLists < TencentCloud::Common::AbstractModel
1410
+ # @param TotalCount: 总数
1411
+ # @type TotalCount: Integer
1412
+ # @param Res: 规则
1413
+ # 注意:此字段可能返回 null,表示取不到有效值。
1414
+ # @type Res: Array
1415
+
1416
+ attr_accessor :TotalCount, :Res
1417
+
1418
+ def initialize(totalcount=nil, res=nil)
1419
+ @TotalCount = totalcount
1420
+ @Res = res
1421
+ end
1422
+
1423
+ def deserialize(params)
1424
+ @TotalCount = params['TotalCount']
1425
+ unless params['Res'].nil?
1426
+ @Res = []
1427
+ params['Res'].each do |i|
1428
+ ccruleitems_tmp = CCRuleItems.new
1429
+ ccruleitems_tmp.deserialize(i)
1430
+ @Res << ccruleitems_tmp
1431
+ end
1432
+ end
1433
+ end
1434
+ end
1435
+
1345
1436
  # 防篡改url元素
1346
1437
  class CacheUrlItem < TencentCloud::Common::AbstractModel
1347
1438
  # @param Id: Id
@@ -3374,6 +3465,42 @@ module TencentCloud
3374
3465
  end
3375
3466
  end
3376
3467
 
3468
+ # DescribeCCAutoStatus请求参数结构体
3469
+ class DescribeCCAutoStatusRequest < TencentCloud::Common::AbstractModel
3470
+ # @param Domain: 域名
3471
+ # @type Domain: String
3472
+
3473
+ attr_accessor :Domain
3474
+
3475
+ def initialize(domain=nil)
3476
+ @Domain = domain
3477
+ end
3478
+
3479
+ def deserialize(params)
3480
+ @Domain = params['Domain']
3481
+ end
3482
+ end
3483
+
3484
+ # DescribeCCAutoStatus返回参数结构体
3485
+ class DescribeCCAutoStatusResponse < TencentCloud::Common::AbstractModel
3486
+ # @param AutoCCSwitch: 配置状态
3487
+ # @type AutoCCSwitch: Integer
3488
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3489
+ # @type RequestId: String
3490
+
3491
+ attr_accessor :AutoCCSwitch, :RequestId
3492
+
3493
+ def initialize(autoccswitch=nil, requestid=nil)
3494
+ @AutoCCSwitch = autoccswitch
3495
+ @RequestId = requestid
3496
+ end
3497
+
3498
+ def deserialize(params)
3499
+ @AutoCCSwitch = params['AutoCCSwitch']
3500
+ @RequestId = params['RequestId']
3501
+ end
3502
+ end
3503
+
3377
3504
  # DescribeCCRuleList请求参数结构体
3378
3505
  class DescribeCCRuleListRequest < TencentCloud::Common::AbstractModel
3379
3506
  # @param Domain: 需要查询的API所属的域名
@@ -3419,16 +3546,24 @@ module TencentCloud
3419
3546
 
3420
3547
  # DescribeCCRuleList返回参数结构体
3421
3548
  class DescribeCCRuleListResponse < TencentCloud::Common::AbstractModel
3549
+ # @param Data: 查询到的CC规则的列表
3550
+ # 注意:此字段可能返回 null,表示取不到有效值。
3551
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.CCRuleLists`
3422
3552
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3423
3553
  # @type RequestId: String
3424
3554
 
3425
- attr_accessor :RequestId
3555
+ attr_accessor :Data, :RequestId
3426
3556
 
3427
- def initialize(requestid=nil)
3557
+ def initialize(data=nil, requestid=nil)
3558
+ @Data = data
3428
3559
  @RequestId = requestid
3429
3560
  end
3430
3561
 
3431
3562
  def deserialize(params)
3563
+ unless params['Data'].nil?
3564
+ @Data = CCRuleLists.new
3565
+ @Data.deserialize(params['Data'])
3566
+ end
3432
3567
  @RequestId = params['RequestId']
3433
3568
  end
3434
3569
  end
@@ -9666,48 +9801,6 @@ module TencentCloud
9666
9801
  end
9667
9802
  end
9668
9803
 
9669
- # ModifyWafAutoDenyStatus请求参数结构体
9670
- class ModifyWafAutoDenyStatusRequest < TencentCloud::Common::AbstractModel
9671
- # @param WafAutoDenyDetails: WAF 自动封禁配置项
9672
- # @type WafAutoDenyDetails: :class:`Tencentcloud::Waf.v20180125.models.AutoDenyDetail`
9673
-
9674
- attr_accessor :WafAutoDenyDetails
9675
-
9676
- def initialize(wafautodenydetails=nil)
9677
- @WafAutoDenyDetails = wafautodenydetails
9678
- end
9679
-
9680
- def deserialize(params)
9681
- unless params['WafAutoDenyDetails'].nil?
9682
- @WafAutoDenyDetails = AutoDenyDetail.new
9683
- @WafAutoDenyDetails.deserialize(params['WafAutoDenyDetails'])
9684
- end
9685
- end
9686
- end
9687
-
9688
- # ModifyWafAutoDenyStatus返回参数结构体
9689
- class ModifyWafAutoDenyStatusResponse < TencentCloud::Common::AbstractModel
9690
- # @param WafAutoDenyDetails: WAF 自动封禁配置项
9691
- # @type WafAutoDenyDetails: :class:`Tencentcloud::Waf.v20180125.models.AutoDenyDetail`
9692
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9693
- # @type RequestId: String
9694
-
9695
- attr_accessor :WafAutoDenyDetails, :RequestId
9696
-
9697
- def initialize(wafautodenydetails=nil, requestid=nil)
9698
- @WafAutoDenyDetails = wafautodenydetails
9699
- @RequestId = requestid
9700
- end
9701
-
9702
- def deserialize(params)
9703
- unless params['WafAutoDenyDetails'].nil?
9704
- @WafAutoDenyDetails = AutoDenyDetail.new
9705
- @WafAutoDenyDetails.deserialize(params['WafAutoDenyDetails'])
9706
- end
9707
- @RequestId = params['RequestId']
9708
- end
9709
- end
9710
-
9711
9804
  # ModifyWafThreatenIntelligence请求参数结构体
9712
9805
  class ModifyWafThreatenIntelligenceRequest < TencentCloud::Common::AbstractModel
9713
9806
  # @param WafThreatenIntelligenceDetails: 配置WAF威胁情报封禁模块详情
@@ -10881,6 +10974,51 @@ module TencentCloud
10881
10974
  end
10882
10975
  end
10883
10976
 
10977
+ # UpsertCCAutoStatus请求参数结构体
10978
+ class UpsertCCAutoStatusRequest < TencentCloud::Common::AbstractModel
10979
+ # @param Domain: 域名
10980
+ # @type Domain: String
10981
+ # @param Value: 状态值
10982
+ # @type Value: Integer
10983
+ # @param Edition: 版本:clb-waf, spart-waf
10984
+ # @type Edition: String
10985
+
10986
+ attr_accessor :Domain, :Value, :Edition
10987
+
10988
+ def initialize(domain=nil, value=nil, edition=nil)
10989
+ @Domain = domain
10990
+ @Value = value
10991
+ @Edition = edition
10992
+ end
10993
+
10994
+ def deserialize(params)
10995
+ @Domain = params['Domain']
10996
+ @Value = params['Value']
10997
+ @Edition = params['Edition']
10998
+ end
10999
+ end
11000
+
11001
+ # UpsertCCAutoStatus返回参数结构体
11002
+ class UpsertCCAutoStatusResponse < TencentCloud::Common::AbstractModel
11003
+ # @param Data: 正常情况为null
11004
+ # 注意:此字段可能返回 null,表示取不到有效值。
11005
+ # @type Data: String
11006
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11007
+ # @type RequestId: String
11008
+
11009
+ attr_accessor :Data, :RequestId
11010
+
11011
+ def initialize(data=nil, requestid=nil)
11012
+ @Data = data
11013
+ @RequestId = requestid
11014
+ end
11015
+
11016
+ def deserialize(params)
11017
+ @Data = params['Data']
11018
+ @RequestId = params['RequestId']
11019
+ end
11020
+ end
11021
+
10884
11022
  # UpsertCCRule请求参数结构体
10885
11023
  class UpsertCCRuleRequest < TencentCloud::Common::AbstractModel
10886
11024
  # @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.700
4
+ version: 3.0.702
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-11-13 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-waf.rb
37
- - lib/v20180125/client.rb
38
37
  - lib/v20180125/models.rb
38
+ - lib/v20180125/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: