tencentcloud-sdk-antiddos 1.0.309 → 1.0.310

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: 1454eb9c10d77baa4ebada5eec32fb0515b0162d
4
- data.tar.gz: bd8949cdbf1a0a3fac097fde3411a8fffdb35fc2
3
+ metadata.gz: c6f7a214ffcb8dc8b7a075840e0a0b610e17bad4
4
+ data.tar.gz: 7da40e9b52e0ce08ca924be7f2947053c063d75e
5
5
  SHA512:
6
- metadata.gz: 876407a248ad4dcbccc0f8d01c1c95163fbc04849971d3e537950399cb34af630330152e48b168659e77d86660a179267c19c563089eb7d952bcf3962f3590d3
7
- data.tar.gz: c321a327b2d9d7a890dc00b93d3b7bbc78c70b83bec578abd1fc03152f3902b0a7fe8bdeb0e30ae8864e1f20110bb9433485ee3da87309002fd4992cf317186f
6
+ metadata.gz: 30a575bf73a7a1ddc841593368bf1b863b63eb54c18f44c7aba49173ba53c5a2a6340f44aadd19f5c97240d94cdc333399e0a80e43755c36c48877834e46e9ab
7
+ data.tar.gz: 84fb730102b1eb3c68bbc5f5602e82fe100609a2829a477230dc7b064c391f6804fd3368902e8cd57fb51acd66eede8a2965c166eef27e42b4990604571b8681
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.309
1
+ 1.0.310
@@ -1685,6 +1685,30 @@ module TencentCloud
1685
1685
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
1686
  end
1687
1687
 
1688
+ # 获取防护概览的ddos攻击事件
1689
+
1690
+ # @param request: Request instance for DescribeOverviewDDoSEventList.
1691
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewDDoSEventListRequest`
1692
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeOverviewDDoSEventListResponse`
1693
+ def DescribeOverviewDDoSEventList(request)
1694
+ body = send_request('DescribeOverviewDDoSEventList', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = DescribeOverviewDDoSEventListResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1688
1712
  # 获取防护概览DDoS攻击流量带宽和攻击包速率数据
1689
1713
 
1690
1714
  # @param request: Request instance for DescribeOverviewDDoSTrend.
@@ -240,10 +240,13 @@ module TencentCloud
240
240
  # @param V6Flag: 是否Ipv6版本的IP, 是为1,否为0
241
241
  # 注意:此字段可能返回 null,表示取不到有效值。
242
242
  # @type V6Flag: Integer
243
+ # @param BGPIPChannelFlag: 是否渠道版高防IP,是为1,否为0
244
+ # 注意:此字段可能返回 null,表示取不到有效值。
245
+ # @type BGPIPChannelFlag: Integer
243
246
 
244
- attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :ExpiredTime, :CreatedTime, :Name, :PackInfo, :StaticPackRelation, :ZoneId, :Tgw, :EipAddressStatus, :EipFlag, :EipAddressPackRelation, :EipAddressInfo, :Domain, :DamDDoSStatus, :V6Flag
247
+ attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :ExpiredTime, :CreatedTime, :Name, :PackInfo, :StaticPackRelation, :ZoneId, :Tgw, :EipAddressStatus, :EipFlag, :EipAddressPackRelation, :EipAddressInfo, :Domain, :DamDDoSStatus, :V6Flag, :BGPIPChannelFlag
245
248
 
246
- def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, expiredtime=nil, createdtime=nil, name=nil, packinfo=nil, staticpackrelation=nil, zoneid=nil, tgw=nil, eipaddressstatus=nil, eipflag=nil, eipaddresspackrelation=nil, eipaddressinfo=nil, domain=nil, damddosstatus=nil, v6flag=nil)
249
+ def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, expiredtime=nil, createdtime=nil, name=nil, packinfo=nil, staticpackrelation=nil, zoneid=nil, tgw=nil, eipaddressstatus=nil, eipflag=nil, eipaddresspackrelation=nil, eipaddressinfo=nil, domain=nil, damddosstatus=nil, v6flag=nil, bgpipchannelflag=nil)
247
250
  @InstanceDetail = instancedetail
248
251
  @SpecificationLimit = specificationlimit
249
252
  @Usage = usage
@@ -263,6 +266,7 @@ module TencentCloud
263
266
  @Domain = domain
264
267
  @DamDDoSStatus = damddosstatus
265
268
  @V6Flag = v6flag
269
+ @BGPIPChannelFlag = bgpipchannelflag
266
270
  end
267
271
 
268
272
  def deserialize(params)
@@ -309,6 +313,7 @@ module TencentCloud
309
313
  @Domain = params['Domain']
310
314
  @DamDDoSStatus = params['DamDDoSStatus']
311
315
  @V6Flag = params['V6Flag']
316
+ @BGPIPChannelFlag = params['BGPIPChannelFlag']
312
317
  end
313
318
  end
314
319
 
@@ -508,10 +513,16 @@ module TencentCloud
508
513
  # @param ChannelEditionFlag: 渠道版标记,0表示普通高防包,1表示渠道版高防包
509
514
  # 注意:此字段可能返回 null,表示取不到有效值。
510
515
  # @type ChannelEditionFlag: Integer
516
+ # @param EnterpriseFlag: 高防包企业版标记,0表示普通高防包;1表示企业版高防包
517
+ # 注意:此字段可能返回 null,表示取不到有效值。
518
+ # @type EnterpriseFlag: Integer
519
+ # @param ElasticLimit: 高防包企业版弹性阈值,0表示未开启;大于0为弹性防护阈值
520
+ # 注意:此字段可能返回 null,表示取不到有效值。
521
+ # @type ElasticLimit: Integer
511
522
 
512
- attr_accessor :ProtectBandwidth, :ProtectCountLimit, :ProtectIPNumberLimit, :AutoRenewFlag, :UnionPackFlag, :ServiceBandWidth, :BattleEditionFlag, :ChannelEditionFlag
523
+ attr_accessor :ProtectBandwidth, :ProtectCountLimit, :ProtectIPNumberLimit, :AutoRenewFlag, :UnionPackFlag, :ServiceBandWidth, :BattleEditionFlag, :ChannelEditionFlag, :EnterpriseFlag, :ElasticLimit
513
524
 
514
- def initialize(protectbandwidth=nil, protectcountlimit=nil, protectipnumberlimit=nil, autorenewflag=nil, unionpackflag=nil, servicebandwidth=nil, battleeditionflag=nil, channeleditionflag=nil)
525
+ def initialize(protectbandwidth=nil, protectcountlimit=nil, protectipnumberlimit=nil, autorenewflag=nil, unionpackflag=nil, servicebandwidth=nil, battleeditionflag=nil, channeleditionflag=nil, enterpriseflag=nil, elasticlimit=nil)
515
526
  @ProtectBandwidth = protectbandwidth
516
527
  @ProtectCountLimit = protectcountlimit
517
528
  @ProtectIPNumberLimit = protectipnumberlimit
@@ -520,6 +531,8 @@ module TencentCloud
520
531
  @ServiceBandWidth = servicebandwidth
521
532
  @BattleEditionFlag = battleeditionflag
522
533
  @ChannelEditionFlag = channeleditionflag
534
+ @EnterpriseFlag = enterpriseflag
535
+ @ElasticLimit = elasticlimit
523
536
  end
524
537
 
525
538
  def deserialize(params)
@@ -531,6 +544,8 @@ module TencentCloud
531
544
  @ServiceBandWidth = params['ServiceBandWidth']
532
545
  @BattleEditionFlag = params['BattleEditionFlag']
533
546
  @ChannelEditionFlag = params['ChannelEditionFlag']
547
+ @EnterpriseFlag = params['EnterpriseFlag']
548
+ @ElasticLimit = params['ElasticLimit']
534
549
  end
535
550
  end
536
551
 
@@ -3861,10 +3876,14 @@ module TencentCloud
3861
3876
  # @type FilterDamDDoSStatus: Integer
3862
3877
  # @param FilterStatus: 获取特定状态的资源,运行中填idle,攻击中填attacking,封堵中填blocking
3863
3878
  # @type FilterStatus: String
3879
+ # @param FilterCname: 获取特定的实例Cname
3880
+ # @type FilterCname: String
3881
+ # @param FilterInstanceIdList: 批量查询实例ID对应的高防IP实例资源
3882
+ # @type FilterInstanceIdList: Array
3864
3883
 
3865
- attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterLine, :FilterRegion, :FilterName, :FilterEipType, :FilterEipEipAddressStatus, :FilterDamDDoSStatus, :FilterStatus
3884
+ attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterLine, :FilterRegion, :FilterName, :FilterEipType, :FilterEipEipAddressStatus, :FilterDamDDoSStatus, :FilterStatus, :FilterCname, :FilterInstanceIdList
3866
3885
 
3867
- def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterline=nil, filterregion=nil, filtername=nil, filtereiptype=nil, filtereipeipaddressstatus=nil, filterdamddosstatus=nil, filterstatus=nil)
3886
+ def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterline=nil, filterregion=nil, filtername=nil, filtereiptype=nil, filtereipeipaddressstatus=nil, filterdamddosstatus=nil, filterstatus=nil, filtercname=nil, filterinstanceidlist=nil)
3868
3887
  @Offset = offset
3869
3888
  @Limit = limit
3870
3889
  @FilterIp = filterip
@@ -3876,6 +3895,8 @@ module TencentCloud
3876
3895
  @FilterEipEipAddressStatus = filtereipeipaddressstatus
3877
3896
  @FilterDamDDoSStatus = filterdamddosstatus
3878
3897
  @FilterStatus = filterstatus
3898
+ @FilterCname = filtercname
3899
+ @FilterInstanceIdList = filterinstanceidlist
3879
3900
  end
3880
3901
 
3881
3902
  def deserialize(params)
@@ -3890,6 +3911,8 @@ module TencentCloud
3890
3911
  @FilterEipEipAddressStatus = params['FilterEipEipAddressStatus']
3891
3912
  @FilterDamDDoSStatus = params['FilterDamDDoSStatus']
3892
3913
  @FilterStatus = params['FilterStatus']
3914
+ @FilterCname = params['FilterCname']
3915
+ @FilterInstanceIdList = params['FilterInstanceIdList']
3893
3916
  end
3894
3917
  end
3895
3918
 
@@ -4258,15 +4281,18 @@ module TencentCloud
4258
4281
  # @type FilterAlarmType: Integer
4259
4282
  # @param FilterIp: IP搜索
4260
4283
  # @type FilterIp: String
4284
+ # @param FilterCname: 高防IP实例资源的cname
4285
+ # @type FilterCname: String
4261
4286
 
4262
- attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterAlarmType, :FilterIp
4287
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterAlarmType, :FilterIp, :FilterCname
4263
4288
 
4264
- def initialize(offset=nil, limit=nil, filterinstanceid=nil, filteralarmtype=nil, filterip=nil)
4289
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filteralarmtype=nil, filterip=nil, filtercname=nil)
4265
4290
  @Offset = offset
4266
4291
  @Limit = limit
4267
4292
  @FilterInstanceId = filterinstanceid
4268
4293
  @FilterAlarmType = filteralarmtype
4269
4294
  @FilterIp = filterip
4295
+ @FilterCname = filtercname
4270
4296
  end
4271
4297
 
4272
4298
  def deserialize(params)
@@ -4275,6 +4301,7 @@ module TencentCloud
4275
4301
  @FilterInstanceId = params['FilterInstanceId']
4276
4302
  @FilterAlarmType = params['FilterAlarmType']
4277
4303
  @FilterIp = params['FilterIp']
4304
+ @FilterCname = params['FilterCname']
4278
4305
  end
4279
4306
  end
4280
4307
 
@@ -4852,6 +4879,69 @@ module TencentCloud
4852
4879
  end
4853
4880
  end
4854
4881
 
4882
+ # DescribeOverviewDDoSEventList请求参数结构体
4883
+ class DescribeOverviewDDoSEventListRequest < TencentCloud::Common::AbstractModel
4884
+ # @param StartTime: 起始时间
4885
+ # @type StartTime: String
4886
+ # @param EndTime: 结束时间
4887
+ # @type EndTime: String
4888
+ # @param AttackStatus: 可选按攻击状态过滤,start:攻击中;end:攻击结束
4889
+ # @type AttackStatus: String
4890
+ # @param Offset: 偏移量
4891
+ # @type Offset: Integer
4892
+ # @param Limit: 记录条数
4893
+ # @type Limit: Integer
4894
+
4895
+ attr_accessor :StartTime, :EndTime, :AttackStatus, :Offset, :Limit
4896
+
4897
+ def initialize(starttime=nil, endtime=nil, attackstatus=nil, offset=nil, limit=nil)
4898
+ @StartTime = starttime
4899
+ @EndTime = endtime
4900
+ @AttackStatus = attackstatus
4901
+ @Offset = offset
4902
+ @Limit = limit
4903
+ end
4904
+
4905
+ def deserialize(params)
4906
+ @StartTime = params['StartTime']
4907
+ @EndTime = params['EndTime']
4908
+ @AttackStatus = params['AttackStatus']
4909
+ @Offset = params['Offset']
4910
+ @Limit = params['Limit']
4911
+ end
4912
+ end
4913
+
4914
+ # DescribeOverviewDDoSEventList返回参数结构体
4915
+ class DescribeOverviewDDoSEventListResponse < TencentCloud::Common::AbstractModel
4916
+ # @param Total: 记录总数
4917
+ # @type Total: Integer
4918
+ # @param EventList: 事件列表
4919
+ # @type EventList: Array
4920
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4921
+ # @type RequestId: String
4922
+
4923
+ attr_accessor :Total, :EventList, :RequestId
4924
+
4925
+ def initialize(total=nil, eventlist=nil, requestid=nil)
4926
+ @Total = total
4927
+ @EventList = eventlist
4928
+ @RequestId = requestid
4929
+ end
4930
+
4931
+ def deserialize(params)
4932
+ @Total = params['Total']
4933
+ unless params['EventList'].nil?
4934
+ @EventList = []
4935
+ params['EventList'].each do |i|
4936
+ overviewddosevent_tmp = OverviewDDoSEvent.new
4937
+ overviewddosevent_tmp.deserialize(i)
4938
+ @EventList << overviewddosevent_tmp
4939
+ end
4940
+ end
4941
+ @RequestId = params['RequestId']
4942
+ end
4943
+ end
4944
+
4855
4945
  # DescribeOverviewDDoSTrend请求参数结构体
4856
4946
  class DescribeOverviewDDoSTrendRequest < TencentCloud::Common::AbstractModel
4857
4947
  # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp-multip表示高防包;basic表示DDoS基础防护)
@@ -5200,17 +5290,25 @@ module TencentCloud
5200
5290
  # @type Type: String
5201
5291
  # @param Eip: 线路IP
5202
5292
  # @type Eip: String
5293
+ # @param Cname: 实例对应的cname
5294
+ # @type Cname: String
5295
+ # @param ResourceFlag: 资源flag,0:高防包资源,1:高防IP资源,2:非高防资源IP
5296
+ # @type ResourceFlag: Integer
5203
5297
 
5204
- attr_accessor :Type, :Eip
5298
+ attr_accessor :Type, :Eip, :Cname, :ResourceFlag
5205
5299
 
5206
- def initialize(type=nil, eip=nil)
5300
+ def initialize(type=nil, eip=nil, cname=nil, resourceflag=nil)
5207
5301
  @Type = type
5208
5302
  @Eip = eip
5303
+ @Cname = cname
5304
+ @ResourceFlag = resourceflag
5209
5305
  end
5210
5306
 
5211
5307
  def deserialize(params)
5212
5308
  @Type = params['Type']
5213
5309
  @Eip = params['Eip']
5310
+ @Cname = params['Cname']
5311
+ @ResourceFlag = params['ResourceFlag']
5214
5312
  end
5215
5313
  end
5216
5314
 
@@ -6410,6 +6508,62 @@ module TencentCloud
6410
6508
  end
6411
6509
  end
6412
6510
 
6511
+ # 防护概览DDoS攻击事件
6512
+ class OverviewDDoSEvent < TencentCloud::Common::AbstractModel
6513
+ # @param Id: 事件Id
6514
+ # @type Id: String
6515
+ # @param Vip: ip
6516
+ # @type Vip: String
6517
+ # @param StartTime: 开始时间
6518
+ # @type StartTime: String
6519
+ # @param EndTime: 结束时间
6520
+ # @type EndTime: String
6521
+ # @param AttackType: 攻击类型
6522
+ # @type AttackType: String
6523
+ # @param AttackStatus: 攻击状态,0:攻击中;1:攻击结束
6524
+ # @type AttackStatus: Integer
6525
+ # @param Mbps: 攻击流量,单位Mbps
6526
+ # @type Mbps: Integer
6527
+ # @param Pps: 攻击包量,单位pps
6528
+ # @type Pps: Integer
6529
+ # @param Business: 业务类型,bgp-multip:高防包;bgpip:高防ip;basic:基础防护
6530
+ # @type Business: String
6531
+ # @param InstanceId: 高防实例Id
6532
+ # @type InstanceId: String
6533
+ # @param InstanceName: 高防实例名称
6534
+ # @type InstanceName: String
6535
+
6536
+ attr_accessor :Id, :Vip, :StartTime, :EndTime, :AttackType, :AttackStatus, :Mbps, :Pps, :Business, :InstanceId, :InstanceName
6537
+
6538
+ def initialize(id=nil, vip=nil, starttime=nil, endtime=nil, attacktype=nil, attackstatus=nil, mbps=nil, pps=nil, business=nil, instanceid=nil, instancename=nil)
6539
+ @Id = id
6540
+ @Vip = vip
6541
+ @StartTime = starttime
6542
+ @EndTime = endtime
6543
+ @AttackType = attacktype
6544
+ @AttackStatus = attackstatus
6545
+ @Mbps = mbps
6546
+ @Pps = pps
6547
+ @Business = business
6548
+ @InstanceId = instanceid
6549
+ @InstanceName = instancename
6550
+ end
6551
+
6552
+ def deserialize(params)
6553
+ @Id = params['Id']
6554
+ @Vip = params['Vip']
6555
+ @StartTime = params['StartTime']
6556
+ @EndTime = params['EndTime']
6557
+ @AttackType = params['AttackType']
6558
+ @AttackStatus = params['AttackStatus']
6559
+ @Mbps = params['Mbps']
6560
+ @Pps = params['Pps']
6561
+ @Business = params['Business']
6562
+ @InstanceId = params['InstanceId']
6563
+ @InstanceName = params['InstanceName']
6564
+ end
6565
+ end
6566
+
6413
6567
  # 套餐包信息
6414
6568
  class PackInfo < TencentCloud::Common::AbstractModel
6415
6569
  # @param PackType: 套餐包的类型,取值[
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-antiddos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.309
4
+ version: 1.0.310
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-10 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common