tencentcloud-sdk-waf 3.0.666 → 3.0.667

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180125/models.rb +307 -57
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d427abba7f0763c3d3d8722459c9ec8bd457bb9
4
- data.tar.gz: 44c74dd3eefa03b0380e8b9980b3f55932b188c5
3
+ metadata.gz: 8fb81fe060ae8b02f381e13153d33b3a61952ef3
4
+ data.tar.gz: 433900fef7fdb7249c65591f45ed9e05d7016bef
5
5
  SHA512:
6
- metadata.gz: 3fb367650584b75ac645aa8330eb1a34b31e7a3b60074c7d58198a4899b80f44d13e5194b8885eec125cd4831cbf200ab756d94e0390634360e36b494310d8ad
7
- data.tar.gz: 6ec335ba6e1655414f93b59477ede2125f24252a7aa8a766fabaeafdfb4508c2cfd1afada0c2f7ecbbf5caff3d2fda941dec4798253f99e79c8691be602affbf
6
+ metadata.gz: 097b77cb3cd0a054e921f068cfbb5b660c8e4382b89f45d50663cca683ee5ec24ae03b4b085845fed611dcf49c49ea2e01e377a1799d73b1aa81ed8ea3dabd7e
7
+ data.tar.gz: 6f2eeb59a2c0d11f256db201e56538b6d35735a16482166542e2ef9a1e6f9281637a15f4965b3b175ca506b6bd5978970a5a9e3ec982fac8335a20ce53bcc56d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.666
1
+ 3.0.667
@@ -347,18 +347,22 @@ module TencentCloud
347
347
  class AddAntiFakeUrlResponse < TencentCloud::Common::AbstractModel
348
348
  # @param Result: 结果
349
349
  # @type Result: String
350
+ # @param Id: 规则ID
351
+ # @type Id: String
350
352
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
351
353
  # @type RequestId: String
352
354
 
353
- attr_accessor :Result, :RequestId
355
+ attr_accessor :Result, :Id, :RequestId
354
356
 
355
- def initialize(result=nil, requestid=nil)
357
+ def initialize(result=nil, id=nil, requestid=nil)
356
358
  @Result = result
359
+ @Id = id
357
360
  @RequestId = requestid
358
361
  end
359
362
 
360
363
  def deserialize(params)
361
364
  @Result = params['Result']
365
+ @Id = params['Id']
362
366
  @RequestId = params['RequestId']
363
367
  end
364
368
  end
@@ -367,9 +371,9 @@ module TencentCloud
367
371
  class AddAntiInfoLeakRulesRequest < TencentCloud::Common::AbstractModel
368
372
  # @param Domain: 域名
369
373
  # @type Domain: String
370
- # @param Name: 名称
374
+ # @param Name: 规则名称
371
375
  # @type Name: String
372
- # @param ActionType: 动作
376
+ # @param ActionType: 动作,0(告警)、1(替换)、2(仅显示前四位)、3(仅显示后四位)、4(阻断)
373
377
  # @type ActionType: Integer
374
378
  # @param Strategies: 策略详情
375
379
  # @type Strategies: Array
@@ -404,16 +408,20 @@ module TencentCloud
404
408
 
405
409
  # AddAntiInfoLeakRules返回参数结构体
406
410
  class AddAntiInfoLeakRulesResponse < TencentCloud::Common::AbstractModel
411
+ # @param RuleId: 规则ID
412
+ # @type RuleId: Integer
407
413
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
408
414
  # @type RequestId: String
409
415
 
410
- attr_accessor :RequestId
416
+ attr_accessor :RuleId, :RequestId
411
417
 
412
- def initialize(requestid=nil)
418
+ def initialize(ruleid=nil, requestid=nil)
419
+ @RuleId = ruleid
413
420
  @RequestId = requestid
414
421
  end
415
422
 
416
423
  def deserialize(params)
424
+ @RuleId = params['RuleId']
417
425
  @RequestId = params['RequestId']
418
426
  end
419
427
  end
@@ -934,6 +942,9 @@ module TencentCloud
934
942
 
935
943
  # 多域名黑白名单列表Ip
936
944
  class BatchIpAccessControlItem < TencentCloud::Common::AbstractModel
945
+ # @param Id: mongo表自增Id
946
+ # 注意:此字段可能返回 null,表示取不到有效值。
947
+ # @type Id: String
937
948
  # @param ActionType: 黑名单42或白名单40
938
949
  # @type ActionType: Integer
939
950
  # @param Ip: 黑白名单的IP
@@ -949,9 +960,10 @@ module TencentCloud
949
960
  # @param Hosts: 域名列表
950
961
  # @type Hosts: Array
951
962
 
952
- attr_accessor :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts
963
+ attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts
953
964
 
954
- def initialize(actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil)
965
+ def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil)
966
+ @Id = id
955
967
  @ActionType = actiontype
956
968
  @Ip = ip
957
969
  @Note = note
@@ -962,6 +974,7 @@ module TencentCloud
962
974
  end
963
975
 
964
976
  def deserialize(params)
977
+ @Id = params['Id']
965
978
  @ActionType = params['ActionType']
966
979
  @Ip = params['Ip']
967
980
  @Note = params['Note']
@@ -1709,19 +1722,23 @@ module TencentCloud
1709
1722
  # @type Name: String
1710
1723
  # @param Edition: clb-waf或者sparta-waf
1711
1724
  # @type Edition: String
1725
+ # @param RuleId: 规则Id
1726
+ # @type RuleId: Integer
1712
1727
 
1713
- attr_accessor :Domain, :Name, :Edition
1728
+ attr_accessor :Domain, :Name, :Edition, :RuleId
1714
1729
 
1715
- def initialize(domain=nil, name=nil, edition=nil)
1730
+ def initialize(domain=nil, name=nil, edition=nil, ruleid=nil)
1716
1731
  @Domain = domain
1717
1732
  @Name = name
1718
1733
  @Edition = edition
1734
+ @RuleId = ruleid
1719
1735
  end
1720
1736
 
1721
1737
  def deserialize(params)
1722
1738
  @Domain = params['Domain']
1723
1739
  @Name = params['Name']
1724
1740
  @Edition = params['Edition']
1741
+ @RuleId = params['RuleId']
1725
1742
  end
1726
1743
  end
1727
1744
 
@@ -1730,18 +1747,22 @@ module TencentCloud
1730
1747
  # @param Data: 一般为null
1731
1748
  # 注意:此字段可能返回 null,表示取不到有效值。
1732
1749
  # @type Data: String
1750
+ # @param RuleId: 操作的规则Id
1751
+ # @type RuleId: Integer
1733
1752
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1734
1753
  # @type RequestId: String
1735
1754
 
1736
- attr_accessor :Data, :RequestId
1755
+ attr_accessor :Data, :RuleId, :RequestId
1737
1756
 
1738
- def initialize(data=nil, requestid=nil)
1757
+ def initialize(data=nil, ruleid=nil, requestid=nil)
1739
1758
  @Data = data
1759
+ @RuleId = ruleid
1740
1760
  @RequestId = requestid
1741
1761
  end
1742
1762
 
1743
1763
  def deserialize(params)
1744
1764
  @Data = params['Data']
1765
+ @RuleId = params['RuleId']
1745
1766
  @RequestId = params['RequestId']
1746
1767
  end
1747
1768
  end
@@ -1954,16 +1975,19 @@ module TencentCloud
1954
1975
  # @type Domain: String
1955
1976
  # @param Items: 删除的ip数组
1956
1977
  # @type Items: Array
1978
+ # @param IsId: 若IsId字段为True,则Items列表元素需为Id,否则为IP
1979
+ # @type IsId: Boolean
1957
1980
  # @param DeleteAll: 是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单
1958
1981
  # @type DeleteAll: Boolean
1959
1982
  # @param SourceType: 是否为多域名黑白名单
1960
1983
  # @type SourceType: String
1961
1984
 
1962
- attr_accessor :Domain, :Items, :DeleteAll, :SourceType
1985
+ attr_accessor :Domain, :Items, :IsId, :DeleteAll, :SourceType
1963
1986
 
1964
- def initialize(domain=nil, items=nil, deleteall=nil, sourcetype=nil)
1987
+ def initialize(domain=nil, items=nil, isid=nil, deleteall=nil, sourcetype=nil)
1965
1988
  @Domain = domain
1966
1989
  @Items = items
1990
+ @IsId = isid
1967
1991
  @DeleteAll = deleteall
1968
1992
  @SourceType = sourcetype
1969
1993
  end
@@ -1971,6 +1995,7 @@ module TencentCloud
1971
1995
  def deserialize(params)
1972
1996
  @Domain = params['Domain']
1973
1997
  @Items = params['Items']
1998
+ @IsId = params['IsId']
1974
1999
  @DeleteAll = params['DeleteAll']
1975
2000
  @SourceType = params['SourceType']
1976
2001
  end
@@ -2008,17 +2033,21 @@ module TencentCloud
2008
2033
  # @type Domain: String
2009
2034
  # @param Edition: clb-waf 或者 sprta-waf
2010
2035
  # @type Edition: String
2036
+ # @param SessionID: 要删除的SessionID
2037
+ # @type SessionID: Integer
2011
2038
 
2012
- attr_accessor :Domain, :Edition
2039
+ attr_accessor :Domain, :Edition, :SessionID
2013
2040
 
2014
- def initialize(domain=nil, edition=nil)
2041
+ def initialize(domain=nil, edition=nil, sessionid=nil)
2015
2042
  @Domain = domain
2016
2043
  @Edition = edition
2044
+ @SessionID = sessionid
2017
2045
  end
2018
2046
 
2019
2047
  def deserialize(params)
2020
2048
  @Domain = params['Domain']
2021
2049
  @Edition = params['Edition']
2050
+ @SessionID = params['SessionID']
2022
2051
  end
2023
2052
  end
2024
2053
 
@@ -2151,15 +2180,21 @@ module TencentCloud
2151
2180
  # @type Query: String
2152
2181
  # @param FieldName: 需要分析统计的字段名
2153
2182
  # @type FieldName: String
2183
+ # @param Sort: 排序字段,升序asc,降序desc,默认降序desc
2184
+ # @type Sort: String
2185
+ # @param Count: 返回的top数,默认返回top5
2186
+ # @type Count: Integer
2154
2187
 
2155
- attr_accessor :TopicId, :From, :To, :Query, :FieldName
2188
+ attr_accessor :TopicId, :From, :To, :Query, :FieldName, :Sort, :Count
2156
2189
 
2157
- def initialize(topicid=nil, from=nil, to=nil, query=nil, fieldname=nil)
2190
+ def initialize(topicid=nil, from=nil, to=nil, query=nil, fieldname=nil, sort=nil, count=nil)
2158
2191
  @TopicId = topicid
2159
2192
  @From = from
2160
2193
  @To = to
2161
2194
  @Query = query
2162
2195
  @FieldName = fieldname
2196
+ @Sort = sort
2197
+ @Count = count
2163
2198
  end
2164
2199
 
2165
2200
  def deserialize(params)
@@ -2168,6 +2203,8 @@ module TencentCloud
2168
2203
  @To = params['To']
2169
2204
  @Query = params['Query']
2170
2205
  @FieldName = params['FieldName']
2206
+ @Sort = params['Sort']
2207
+ @Count = params['Count']
2171
2208
  end
2172
2209
  end
2173
2210
 
@@ -2698,12 +2735,21 @@ module TencentCloud
2698
2735
  # @param ApiRiskEventCount: api风险事件数量
2699
2736
  # 注意:此字段可能返回 null,表示取不到有效值。
2700
2737
  # @type ApiRiskEventCount: Integer
2738
+ # @param IPBlackCount: 黑名单总数
2739
+ # 注意:此字段可能返回 null,表示取不到有效值。
2740
+ # @type IPBlackCount: Integer
2741
+ # @param TamperCount: 防篡改总数
2742
+ # 注意:此字段可能返回 null,表示取不到有效值。
2743
+ # @type TamperCount: Integer
2744
+ # @param LeakCount: 信息泄露总数
2745
+ # 注意:此字段可能返回 null,表示取不到有效值。
2746
+ # @type LeakCount: Integer
2701
2747
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2702
2748
  # @type RequestId: String
2703
2749
 
2704
- attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :ApiRiskEventCount, :RequestId
2750
+ attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :ApiRiskEventCount, :IPBlackCount, :TamperCount, :LeakCount, :RequestId
2705
2751
 
2706
- def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, apiriskeventcount=nil, requestid=nil)
2752
+ def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, apiriskeventcount=nil, ipblackcount=nil, tampercount=nil, leakcount=nil, requestid=nil)
2707
2753
  @AccessCount = accesscount
2708
2754
  @AttackCount = attackcount
2709
2755
  @ACLCount = aclcount
@@ -2711,6 +2757,9 @@ module TencentCloud
2711
2757
  @BotCount = botcount
2712
2758
  @ApiAssetsCount = apiassetscount
2713
2759
  @ApiRiskEventCount = apiriskeventcount
2760
+ @IPBlackCount = ipblackcount
2761
+ @TamperCount = tampercount
2762
+ @LeakCount = leakcount
2714
2763
  @RequestId = requestid
2715
2764
  end
2716
2765
 
@@ -2722,6 +2771,9 @@ module TencentCloud
2722
2771
  @BotCount = params['BotCount']
2723
2772
  @ApiAssetsCount = params['ApiAssetsCount']
2724
2773
  @ApiRiskEventCount = params['ApiRiskEventCount']
2774
+ @IPBlackCount = params['IPBlackCount']
2775
+ @TamperCount = params['TamperCount']
2776
+ @LeakCount = params['LeakCount']
2725
2777
  @RequestId = params['RequestId']
2726
2778
  end
2727
2779
  end
@@ -3889,10 +3941,12 @@ module TencentCloud
3889
3941
  # @type Sort: String
3890
3942
  # @param Ip: ip
3891
3943
  # @type Ip: String
3944
+ # @param ValidStatus: 生效状态
3945
+ # @type ValidStatus: Integer
3892
3946
 
3893
- attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip
3947
+ attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus
3894
3948
 
3895
- def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil)
3949
+ def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil)
3896
3950
  @Domain = domain
3897
3951
  @Count = count
3898
3952
  @ActionType = actiontype
@@ -3905,6 +3959,7 @@ module TencentCloud
3905
3959
  @Source = source
3906
3960
  @Sort = sort
3907
3961
  @Ip = ip
3962
+ @ValidStatus = validstatus
3908
3963
  end
3909
3964
 
3910
3965
  def deserialize(params)
@@ -3920,6 +3975,7 @@ module TencentCloud
3920
3975
  @Source = params['Source']
3921
3976
  @Sort = params['Sort']
3922
3977
  @Ip = params['Ip']
3978
+ @ValidStatus = params['ValidStatus']
3923
3979
  end
3924
3980
  end
3925
3981
 
@@ -4043,20 +4099,18 @@ module TencentCloud
4043
4099
  # @type Edition: String
4044
4100
  # @param InstanceID: WAF实例ID,不传则不过滤
4045
4101
  # @type InstanceID: String
4046
- # @param MetricName: 十三个值可选:
4102
+ # @param MetricName: 十一个值可选:
4047
4103
  # access-峰值qps趋势图
4048
4104
  # botAccess- bot峰值qps趋势图
4049
4105
  # down-下行峰值带宽趋势图
4050
4106
  # up-上行峰值带宽趋势图
4051
4107
  # attack-Web攻击总数趋势图
4052
4108
  # cc-CC攻击总数趋势图
4053
- # StatusServerError-WAF返回给客户端状态码次数趋势图
4054
- # StatusClientError-WAF返回给客户端状态码次数趋势图
4055
- # StatusRedirect-WAF返回给客户端状态码次数趋势图
4056
- # StatusOk-WAF返回给客户端状态码次数趋势图
4057
- # UpstreamServerError-源站返回给WAF状态码次数趋势图
4058
- # UpstreamClientError-源站返回给WAF状态码次数趋势图
4059
- # UpstreamRedirect-源站返回给WAF状态码次数趋势图
4109
+ # bw-黑IP攻击总数趋势图
4110
+ # tamper-防篡改攻击总数趋势图
4111
+ # leak-防泄露攻击总数趋势图
4112
+ # acl-访问控制攻击总数趋势图
4113
+ # http_status-状态码各次数趋势图
4060
4114
  # @type MetricName: String
4061
4115
 
4062
4116
  attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
@@ -4276,15 +4330,19 @@ module TencentCloud
4276
4330
  class DescribeRuleLimitRequest < TencentCloud::Common::AbstractModel
4277
4331
  # @param Domain: 域名
4278
4332
  # @type Domain: String
4333
+ # @param InstanceId: 实例Id
4334
+ # @type InstanceId: String
4279
4335
 
4280
- attr_accessor :Domain
4336
+ attr_accessor :Domain, :InstanceId
4281
4337
 
4282
- def initialize(domain=nil)
4338
+ def initialize(domain=nil, instanceid=nil)
4283
4339
  @Domain = domain
4340
+ @InstanceId = instanceid
4284
4341
  end
4285
4342
 
4286
4343
  def deserialize(params)
4287
4344
  @Domain = params['Domain']
4345
+ @InstanceId = params['InstanceId']
4288
4346
  end
4289
4347
  end
4290
4348
 
@@ -4549,15 +4607,19 @@ module TencentCloud
4549
4607
  class DescribeWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
4550
4608
  # @param Domain: 域名
4551
4609
  # @type Domain: String
4610
+ # @param InstanceId: 实例Id
4611
+ # @type InstanceId: String
4552
4612
 
4553
- attr_accessor :Domain
4613
+ attr_accessor :Domain, :InstanceId
4554
4614
 
4555
- def initialize(domain=nil)
4615
+ def initialize(domain=nil, instanceid=nil)
4556
4616
  @Domain = domain
4617
+ @InstanceId = instanceid
4557
4618
  end
4558
4619
 
4559
4620
  def deserialize(params)
4560
4621
  @Domain = params['Domain']
4622
+ @InstanceId = params['InstanceId']
4561
4623
  end
4562
4624
  end
4563
4625
 
@@ -4571,16 +4633,19 @@ module TencentCloud
4571
4633
  # @type DenyTimeThreshold: Integer
4572
4634
  # @param DefenseStatus: 自动封禁状态
4573
4635
  # @type DefenseStatus: Integer
4636
+ # @param HWState: 重保护网域名状态
4637
+ # @type HWState: Integer
4574
4638
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4575
4639
  # @type RequestId: String
4576
4640
 
4577
- attr_accessor :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus, :RequestId
4641
+ attr_accessor :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus, :HWState, :RequestId
4578
4642
 
4579
- def initialize(attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil, requestid=nil)
4643
+ def initialize(attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil, hwstate=nil, requestid=nil)
4580
4644
  @AttackThreshold = attackthreshold
4581
4645
  @TimeThreshold = timethreshold
4582
4646
  @DenyTimeThreshold = denytimethreshold
4583
4647
  @DefenseStatus = defensestatus
4648
+ @HWState = hwstate
4584
4649
  @RequestId = requestid
4585
4650
  end
4586
4651
 
@@ -4589,6 +4654,7 @@ module TencentCloud
4589
4654
  @TimeThreshold = params['TimeThreshold']
4590
4655
  @DenyTimeThreshold = params['DenyTimeThreshold']
4591
4656
  @DefenseStatus = params['DefenseStatus']
4657
+ @HWState = params['HWState']
4592
4658
  @RequestId = params['RequestId']
4593
4659
  end
4594
4660
  end
@@ -5950,6 +6016,58 @@ module TencentCloud
5950
6016
  end
5951
6017
  end
5952
6018
 
6019
+ # 混合云节点资源信息
6020
+ class HybridPkg < TencentCloud::Common::AbstractModel
6021
+ # @param ResourceIds: 资源id
6022
+ # 注意:此字段可能返回 null,表示取不到有效值。
6023
+ # @type ResourceIds: String
6024
+ # @param Status: 状态
6025
+ # 注意:此字段可能返回 null,表示取不到有效值。
6026
+ # @type Status: Integer
6027
+ # @param Region: 地域
6028
+ # 注意:此字段可能返回 null,表示取不到有效值。
6029
+ # @type Region: Integer
6030
+ # @param BeginTime: 开始时间
6031
+ # 注意:此字段可能返回 null,表示取不到有效值。
6032
+ # @type BeginTime: String
6033
+ # @param EndTime: 结束时间
6034
+ # 注意:此字段可能返回 null,表示取不到有效值。
6035
+ # @type EndTime: String
6036
+ # @param InquireNum: 申请数量
6037
+ # 注意:此字段可能返回 null,表示取不到有效值。
6038
+ # @type InquireNum: Integer
6039
+ # @param UsedNum: 使用数量
6040
+ # 注意:此字段可能返回 null,表示取不到有效值。
6041
+ # @type UsedNum: Integer
6042
+ # @param RenewFlag: 续费标志
6043
+ # 注意:此字段可能返回 null,表示取不到有效值。
6044
+ # @type RenewFlag: Integer
6045
+
6046
+ attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag
6047
+
6048
+ def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil)
6049
+ @ResourceIds = resourceids
6050
+ @Status = status
6051
+ @Region = region
6052
+ @BeginTime = begintime
6053
+ @EndTime = endtime
6054
+ @InquireNum = inquirenum
6055
+ @UsedNum = usednum
6056
+ @RenewFlag = renewflag
6057
+ end
6058
+
6059
+ def deserialize(params)
6060
+ @ResourceIds = params['ResourceIds']
6061
+ @Status = params['Status']
6062
+ @Region = params['Region']
6063
+ @BeginTime = params['BeginTime']
6064
+ @EndTime = params['EndTime']
6065
+ @InquireNum = params['InquireNum']
6066
+ @UsedNum = params['UsedNum']
6067
+ @RenewFlag = params['RenewFlag']
6068
+ end
6069
+ end
6070
+
5953
6071
  # 一个实例的详细信息
5954
6072
  class InstanceInfo < TencentCloud::Common::AbstractModel
5955
6073
  # @param InstanceId: id
@@ -6025,10 +6143,16 @@ module TencentCloud
6025
6143
  # @param IsAPISecurityTrial: 是否api 安全试用
6026
6144
  # 注意:此字段可能返回 null,表示取不到有效值。
6027
6145
  # @type IsAPISecurityTrial: Integer
6146
+ # @param MajorEventsPkg: 重保包
6147
+ # 注意:此字段可能返回 null,表示取不到有效值。
6148
+ # @type MajorEventsPkg: :class:`Tencentcloud::Waf.v20180125.models.MajorEventsPkg`
6149
+ # @param HybridPkg: 混合云子节点包
6150
+ # 注意:此字段可能返回 null,表示取不到有效值。
6151
+ # @type HybridPkg: :class:`Tencentcloud::Waf.v20180125.models.HybridPkg`
6028
6152
 
6029
- attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg, :BotQPS, :ElasticBilling, :AttackLogPost, :MaxBandwidth, :APISecurity, :QpsStandard, :BandwidthStandard, :Status, :SandboxQps, :IsAPISecurityTrial
6153
+ attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg, :BotQPS, :ElasticBilling, :AttackLogPost, :MaxBandwidth, :APISecurity, :QpsStandard, :BandwidthStandard, :Status, :SandboxQps, :IsAPISecurityTrial, :MajorEventsPkg, :HybridPkg
6030
6154
 
6031
- def initialize(instanceid=nil, instancename=nil, resourceids=nil, region=nil, paymode=nil, renewflag=nil, mode=nil, level=nil, validtime=nil, begintime=nil, domaincount=nil, subdomainlimit=nil, maindomaincount=nil, maindomainlimit=nil, maxqps=nil, qps=nil, domainpkg=nil, appid=nil, edition=nil, fraudpkg=nil, botpkg=nil, botqps=nil, elasticbilling=nil, attacklogpost=nil, maxbandwidth=nil, apisecurity=nil, qpsstandard=nil, bandwidthstandard=nil, status=nil, sandboxqps=nil, isapisecuritytrial=nil)
6155
+ def initialize(instanceid=nil, instancename=nil, resourceids=nil, region=nil, paymode=nil, renewflag=nil, mode=nil, level=nil, validtime=nil, begintime=nil, domaincount=nil, subdomainlimit=nil, maindomaincount=nil, maindomainlimit=nil, maxqps=nil, qps=nil, domainpkg=nil, appid=nil, edition=nil, fraudpkg=nil, botpkg=nil, botqps=nil, elasticbilling=nil, attacklogpost=nil, maxbandwidth=nil, apisecurity=nil, qpsstandard=nil, bandwidthstandard=nil, status=nil, sandboxqps=nil, isapisecuritytrial=nil, majoreventspkg=nil, hybridpkg=nil)
6032
6156
  @InstanceId = instanceid
6033
6157
  @InstanceName = instancename
6034
6158
  @ResourceIds = resourceids
@@ -6060,6 +6184,8 @@ module TencentCloud
6060
6184
  @Status = status
6061
6185
  @SandboxQps = sandboxqps
6062
6186
  @IsAPISecurityTrial = isapisecuritytrial
6187
+ @MajorEventsPkg = majoreventspkg
6188
+ @HybridPkg = hybridpkg
6063
6189
  end
6064
6190
 
6065
6191
  def deserialize(params)
@@ -6109,6 +6235,14 @@ module TencentCloud
6109
6235
  @Status = params['Status']
6110
6236
  @SandboxQps = params['SandboxQps']
6111
6237
  @IsAPISecurityTrial = params['IsAPISecurityTrial']
6238
+ unless params['MajorEventsPkg'].nil?
6239
+ @MajorEventsPkg = MajorEventsPkg.new
6240
+ @MajorEventsPkg.deserialize(params['MajorEventsPkg'])
6241
+ end
6242
+ unless params['HybridPkg'].nil?
6243
+ @HybridPkg = HybridPkg.new
6244
+ @HybridPkg.deserialize(params['HybridPkg'])
6245
+ end
6112
6246
  end
6113
6247
  end
6114
6248
 
@@ -6142,6 +6276,9 @@ module TencentCloud
6142
6276
 
6143
6277
  # ip黑白名单
6144
6278
  class IpAccessControlItem < TencentCloud::Common::AbstractModel
6279
+ # @param Id: mongo表自增Id
6280
+ # 注意:此字段可能返回 null,表示取不到有效值。
6281
+ # @type Id: String
6145
6282
  # @param ActionType: 动作
6146
6283
  # @type ActionType: Integer
6147
6284
  # @param Ip: ip
@@ -6155,25 +6292,32 @@ module TencentCloud
6155
6292
  # @type TsVersion: Integer
6156
6293
  # @param ValidTs: 有效截止时间戳
6157
6294
  # @type ValidTs: Integer
6295
+ # @param ValidStatus: 生效状态
6296
+ # 注意:此字段可能返回 null,表示取不到有效值。
6297
+ # @type ValidStatus: Integer
6158
6298
 
6159
- attr_accessor :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs
6299
+ attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :ValidStatus
6160
6300
 
6161
- def initialize(actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil)
6301
+ def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, validstatus=nil)
6302
+ @Id = id
6162
6303
  @ActionType = actiontype
6163
6304
  @Ip = ip
6164
6305
  @Note = note
6165
6306
  @Source = source
6166
6307
  @TsVersion = tsversion
6167
6308
  @ValidTs = validts
6309
+ @ValidStatus = validstatus
6168
6310
  end
6169
6311
 
6170
6312
  def deserialize(params)
6313
+ @Id = params['Id']
6171
6314
  @ActionType = params['ActionType']
6172
6315
  @Ip = params['Ip']
6173
6316
  @Note = params['Note']
6174
6317
  @Source = params['Source']
6175
6318
  @TsVersion = params['TsVersion']
6176
6319
  @ValidTs = params['ValidTs']
6320
+ @ValidStatus = params['ValidStatus']
6177
6321
  end
6178
6322
  end
6179
6323
 
@@ -6395,6 +6539,68 @@ module TencentCloud
6395
6539
  end
6396
6540
  end
6397
6541
 
6542
+ # 重保防护资源信息
6543
+ class MajorEventsPkg < TencentCloud::Common::AbstractModel
6544
+ # @param ResourceIds: 资源id
6545
+ # 注意:此字段可能返回 null,表示取不到有效值。
6546
+ # @type ResourceIds: String
6547
+ # @param Status: 状态
6548
+ # 注意:此字段可能返回 null,表示取不到有效值。
6549
+ # @type Status: Integer
6550
+ # @param Region: 地域
6551
+ # 注意:此字段可能返回 null,表示取不到有效值。
6552
+ # @type Region: Integer
6553
+ # @param BeginTime: 开始时间
6554
+ # 注意:此字段可能返回 null,表示取不到有效值。
6555
+ # @type BeginTime: String
6556
+ # @param EndTime: 结束时间
6557
+ # 注意:此字段可能返回 null,表示取不到有效值。
6558
+ # @type EndTime: String
6559
+ # @param InquireNum: 申请数量
6560
+ # 注意:此字段可能返回 null,表示取不到有效值。
6561
+ # @type InquireNum: Integer
6562
+ # @param UsedNum: 使用数量
6563
+ # 注意:此字段可能返回 null,表示取不到有效值。
6564
+ # @type UsedNum: Integer
6565
+ # @param RenewFlag: 续费标志
6566
+ # 注意:此字段可能返回 null,表示取不到有效值。
6567
+ # @type RenewFlag: Integer
6568
+ # @param BillingItem: 计费项
6569
+ # 注意:此字段可能返回 null,表示取不到有效值。
6570
+ # @type BillingItem: String
6571
+ # @param HWState: 护网包状态
6572
+ # 注意:此字段可能返回 null,表示取不到有效值。
6573
+ # @type HWState: Integer
6574
+
6575
+ attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag, :BillingItem, :HWState
6576
+
6577
+ def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil, billingitem=nil, hwstate=nil)
6578
+ @ResourceIds = resourceids
6579
+ @Status = status
6580
+ @Region = region
6581
+ @BeginTime = begintime
6582
+ @EndTime = endtime
6583
+ @InquireNum = inquirenum
6584
+ @UsedNum = usednum
6585
+ @RenewFlag = renewflag
6586
+ @BillingItem = billingitem
6587
+ @HWState = hwstate
6588
+ end
6589
+
6590
+ def deserialize(params)
6591
+ @ResourceIds = params['ResourceIds']
6592
+ @Status = params['Status']
6593
+ @Region = params['Region']
6594
+ @BeginTime = params['BeginTime']
6595
+ @EndTime = params['EndTime']
6596
+ @InquireNum = params['InquireNum']
6597
+ @UsedNum = params['UsedNum']
6598
+ @RenewFlag = params['RenewFlag']
6599
+ @BillingItem = params['BillingItem']
6600
+ @HWState = params['HWState']
6601
+ end
6602
+ end
6603
+
6398
6604
  # ModifyAccessPeriod请求参数结构体
6399
6605
  class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
6400
6606
  # @param Period: 访问日志保存期限,范围为[1, 30]
@@ -7944,31 +8150,43 @@ module TencentCloud
7944
8150
  # @type Cc: Integer
7945
8151
  # @param BotAccess: Bot qps
7946
8152
  # @type BotAccess: Integer
7947
- # @param StatusServerError: WAF返回给客户端状态码次数
8153
+ # @param StatusServerError: WAF返回给客户端状态码5xx次数
7948
8154
  # 注意:此字段可能返回 null,表示取不到有效值。
7949
8155
  # @type StatusServerError: Integer
7950
- # @param StatusClientError: WAF返回给客户端状态码次数
8156
+ # @param StatusClientError: WAF返回给客户端状态码4xx次数
7951
8157
  # 注意:此字段可能返回 null,表示取不到有效值。
7952
8158
  # @type StatusClientError: Integer
7953
- # @param StatusRedirect: WAF返回给客户端状态码次数
8159
+ # @param StatusRedirect: WAF返回给客户端状态码302次数
7954
8160
  # 注意:此字段可能返回 null,表示取不到有效值。
7955
8161
  # @type StatusRedirect: Integer
7956
- # @param StatusOk: WAF返回给客户端状态码次数
8162
+ # @param StatusOk: WAF返回给客户端状态码202次数
7957
8163
  # 注意:此字段可能返回 null,表示取不到有效值。
7958
8164
  # @type StatusOk: Integer
7959
- # @param UpstreamServerError: 源站返回给WAF状态码次数
8165
+ # @param UpstreamServerError: 源站返回给WAF状态码5xx次数
7960
8166
  # 注意:此字段可能返回 null,表示取不到有效值。
7961
8167
  # @type UpstreamServerError: Integer
7962
- # @param UpstreamClientError: 源站返回给WAF状态码次数
8168
+ # @param UpstreamClientError: 源站返回给WAF状态码4xx次数
7963
8169
  # 注意:此字段可能返回 null,表示取不到有效值。
7964
8170
  # @type UpstreamClientError: Integer
7965
- # @param UpstreamRedirect: 源站返回给WAF状态码次数
8171
+ # @param UpstreamRedirect: 源站返回给WAF状态码302次数
7966
8172
  # 注意:此字段可能返回 null,表示取不到有效值。
7967
8173
  # @type UpstreamRedirect: Integer
8174
+ # @param BlackIP: 黑名单次数
8175
+ # 注意:此字段可能返回 null,表示取不到有效值。
8176
+ # @type BlackIP: Integer
8177
+ # @param Tamper: 防篡改次数
8178
+ # 注意:此字段可能返回 null,表示取不到有效值。
8179
+ # @type Tamper: Integer
8180
+ # @param Leak: 信息防泄露次数
8181
+ # 注意:此字段可能返回 null,表示取不到有效值。
8182
+ # @type Leak: Integer
8183
+ # @param ACL: 访问控制
8184
+ # 注意:此字段可能返回 null,表示取不到有效值。
8185
+ # @type ACL: Integer
7968
8186
 
7969
- attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess, :StatusServerError, :StatusClientError, :StatusRedirect, :StatusOk, :UpstreamServerError, :UpstreamClientError, :UpstreamRedirect
8187
+ attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess, :StatusServerError, :StatusClientError, :StatusRedirect, :StatusOk, :UpstreamServerError, :UpstreamClientError, :UpstreamRedirect, :BlackIP, :Tamper, :Leak, :ACL
7970
8188
 
7971
- def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil, statusservererror=nil, statusclienterror=nil, statusredirect=nil, statusok=nil, upstreamservererror=nil, upstreamclienterror=nil, upstreamredirect=nil)
8189
+ def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil, statusservererror=nil, statusclienterror=nil, statusredirect=nil, statusok=nil, upstreamservererror=nil, upstreamclienterror=nil, upstreamredirect=nil, blackip=nil, tamper=nil, leak=nil, acl=nil)
7972
8190
  @Time = time
7973
8191
  @Access = access
7974
8192
  @Up = up
@@ -7983,6 +8201,10 @@ module TencentCloud
7983
8201
  @UpstreamServerError = upstreamservererror
7984
8202
  @UpstreamClientError = upstreamclienterror
7985
8203
  @UpstreamRedirect = upstreamredirect
8204
+ @BlackIP = blackip
8205
+ @Tamper = tamper
8206
+ @Leak = leak
8207
+ @ACL = acl
7986
8208
  end
7987
8209
 
7988
8210
  def deserialize(params)
@@ -8000,6 +8222,10 @@ module TencentCloud
8000
8222
  @UpstreamServerError = params['UpstreamServerError']
8001
8223
  @UpstreamClientError = params['UpstreamClientError']
8002
8224
  @UpstreamRedirect = params['UpstreamRedirect']
8225
+ @BlackIP = params['BlackIP']
8226
+ @Tamper = params['Tamper']
8227
+ @Leak = params['Leak']
8228
+ @ACL = params['ACL']
8003
8229
  end
8004
8230
  end
8005
8231
 
@@ -8887,10 +9113,14 @@ module TencentCloud
8887
9113
  # @type Type: Integer
8888
9114
  # @param EventId: 添加规则的来源事件id
8889
9115
  # @type EventId: String
9116
+ # @param SessionApplied: 规则需要启用的SessionID
9117
+ # @type SessionApplied: Array
9118
+ # @param RuleId: 规则ID,新增时填0
9119
+ # @type RuleId: Integer
8890
9120
 
8891
- attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :OptionsArr, :Edition, :Type, :EventId
9121
+ attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :OptionsArr, :Edition, :Type, :EventId, :SessionApplied, :RuleId
8892
9122
 
8893
- def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil)
9123
+ def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil, sessionapplied=nil, ruleid=nil)
8894
9124
  @Domain = domain
8895
9125
  @Name = name
8896
9126
  @Status = status
@@ -8906,6 +9136,8 @@ module TencentCloud
8906
9136
  @Edition = edition
8907
9137
  @Type = type
8908
9138
  @EventId = eventid
9139
+ @SessionApplied = sessionapplied
9140
+ @RuleId = ruleid
8909
9141
  end
8910
9142
 
8911
9143
  def deserialize(params)
@@ -8924,6 +9156,8 @@ module TencentCloud
8924
9156
  @Edition = params['Edition']
8925
9157
  @Type = params['Type']
8926
9158
  @EventId = params['EventId']
9159
+ @SessionApplied = params['SessionApplied']
9160
+ @RuleId = params['RuleId']
8927
9161
  end
8928
9162
  end
8929
9163
 
@@ -8932,18 +9166,22 @@ module TencentCloud
8932
9166
  # @param Data: 一般为null
8933
9167
  # 注意:此字段可能返回 null,表示取不到有效值。
8934
9168
  # @type Data: String
9169
+ # @param RuleId: 操作的RuleId
9170
+ # @type RuleId: Integer
8935
9171
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8936
9172
  # @type RequestId: String
8937
9173
 
8938
- attr_accessor :Data, :RequestId
9174
+ attr_accessor :Data, :RuleId, :RequestId
8939
9175
 
8940
- def initialize(data=nil, requestid=nil)
9176
+ def initialize(data=nil, ruleid=nil, requestid=nil)
8941
9177
  @Data = data
9178
+ @RuleId = ruleid
8942
9179
  @RequestId = requestid
8943
9180
  end
8944
9181
 
8945
9182
  def deserialize(params)
8946
9183
  @Data = params['Data']
9184
+ @RuleId = params['RuleId']
8947
9185
  @RequestId = params['RequestId']
8948
9186
  end
8949
9187
  end
@@ -8954,16 +9192,19 @@ module TencentCloud
8954
9192
  # @type Domain: String
8955
9193
  # @param Items: ip 参数列表,json数组由ip,source,note,action,valid_ts组成。ip对应配置的ip地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
8956
9194
  # @type Items: Array
9195
+ # @param InstanceId: 实例Id
9196
+ # @type InstanceId: String
8957
9197
  # @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
8958
9198
  # @type Edition: String
8959
9199
  # @param SourceType: 是否为多域名黑白名单,当为多域名的黑白名单时,取值为batch,否则为空
8960
9200
  # @type SourceType: String
8961
9201
 
8962
- attr_accessor :Domain, :Items, :Edition, :SourceType
9202
+ attr_accessor :Domain, :Items, :InstanceId, :Edition, :SourceType
8963
9203
 
8964
- def initialize(domain=nil, items=nil, edition=nil, sourcetype=nil)
9204
+ def initialize(domain=nil, items=nil, instanceid=nil, edition=nil, sourcetype=nil)
8965
9205
  @Domain = domain
8966
9206
  @Items = items
9207
+ @InstanceId = instanceid
8967
9208
  @Edition = edition
8968
9209
  @SourceType = sourcetype
8969
9210
  end
@@ -8971,6 +9212,7 @@ module TencentCloud
8971
9212
  def deserialize(params)
8972
9213
  @Domain = params['Domain']
8973
9214
  @Items = params['Items']
9215
+ @InstanceId = params['InstanceId']
8974
9216
  @Edition = params['Edition']
8975
9217
  @SourceType = params['SourceType']
8976
9218
  end
@@ -9020,10 +9262,14 @@ module TencentCloud
9020
9262
  # @type EndOffset: String
9021
9263
  # @param Edition: 版本
9022
9264
  # @type Edition: String
9265
+ # @param SessionName: Session名
9266
+ # @type SessionName: String
9267
+ # @param SessionID: Session对应ID
9268
+ # @type SessionID: Integer
9023
9269
 
9024
- attr_accessor :Domain, :Source, :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Edition
9270
+ attr_accessor :Domain, :Source, :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Edition, :SessionName, :SessionID
9025
9271
 
9026
- def initialize(domain=nil, source=nil, category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, edition=nil)
9272
+ def initialize(domain=nil, source=nil, category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, edition=nil, sessionname=nil, sessionid=nil)
9027
9273
  @Domain = domain
9028
9274
  @Source = source
9029
9275
  @Category = category
@@ -9032,6 +9278,8 @@ module TencentCloud
9032
9278
  @StartOffset = startoffset
9033
9279
  @EndOffset = endoffset
9034
9280
  @Edition = edition
9281
+ @SessionName = sessionname
9282
+ @SessionID = sessionid
9035
9283
  end
9036
9284
 
9037
9285
  def deserialize(params)
@@ -9043,6 +9291,8 @@ module TencentCloud
9043
9291
  @StartOffset = params['StartOffset']
9044
9292
  @EndOffset = params['EndOffset']
9045
9293
  @Edition = params['Edition']
9294
+ @SessionName = params['SessionName']
9295
+ @SessionID = params['SessionID']
9046
9296
  end
9047
9297
  end
9048
9298
 
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.666
4
+ version: 3.0.667
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-09-25 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common