tencentcloud-sdk-cfw 3.0.510 → 3.0.512

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: bb3b792fbeaf868bfaf5863e6453217236ed78e8
4
- data.tar.gz: acf9d5f01149573042b19ff30d86becc6f35fc8e
3
+ metadata.gz: ddd493fdce0d9b870470f444cb8194ac564b52fe
4
+ data.tar.gz: 78e99a1c878b631348529b5bc1f9079d2317ccd1
5
5
  SHA512:
6
- metadata.gz: 7ee93fda160b07bbfc5c562767dd2a9afe544236a8104eaa91763b73a42dc3cb8758e415fe3341811b125af9f638e3cd34effbb25124a7147ea09c388cca84cc
7
- data.tar.gz: fc1c6deb1ccf8df44eb585b78415d098f928395e27d08fa7e428022c8e2e3c61c1fae2f51884fe32746c47a615797304ce4d2562114cc488f79a9963012ef71e
6
+ metadata.gz: edbb05610c9b0fabdfd0771985ee2d8ee22f70a092d61126191e73ce1c6fe6858ddfa16797aa4a71c0cb89916ee07ab4a2e52947d4fe2d8b5fbbddb9d6e243b4
7
+ data.tar.gz: 300fe9d6c63f1c4d3a3efa96c3a4f3f3193b023d60523e27ba03ef5e5765d0220af009f342f89a718cd40bb28f96e9068b2a2846e9d4f2c48986819076a4440d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.510
1
+ 3.0.512
@@ -437,6 +437,30 @@ module TencentCloud
437
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
438
  end
439
439
 
440
+ # 查询入侵防御放通封禁列表
441
+
442
+ # @param request: Request instance for DescribeBlockIgnoreList.
443
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeBlockIgnoreListRequest`
444
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeBlockIgnoreListResponse`
445
+ def DescribeBlockIgnoreList(request)
446
+ body = send_request('DescribeBlockIgnoreList', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeBlockIgnoreListResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
440
464
  # DescribeBlockStaticList 告警中心柱形图
441
465
 
442
466
  # @param request: Request instance for DescribeBlockStaticList.
@@ -341,6 +341,93 @@ module TencentCloud
341
341
  end
342
342
  end
343
343
 
344
+ # 入侵防御放通封禁规则
345
+ class BlockIgnoreRule < TencentCloud::Common::AbstractModel
346
+ # @param Domain: 域名
347
+ # 注意:此字段可能返回 null,表示取不到有效值。
348
+ # @type Domain: String
349
+ # @param Ioc: 规则ip
350
+ # 注意:此字段可能返回 null,表示取不到有效值。
351
+ # @type Ioc: String
352
+ # @param Level: 危险等级
353
+ # 注意:此字段可能返回 null,表示取不到有效值。
354
+ # @type Level: String
355
+ # @param EventName: 来源事件名称
356
+ # 注意:此字段可能返回 null,表示取不到有效值。
357
+ # @type EventName: String
358
+ # @param Direction: 方向:1入站,0出站
359
+ # 注意:此字段可能返回 null,表示取不到有效值。
360
+ # @type Direction: Integer
361
+ # @param Protocol: 协议
362
+ # 注意:此字段可能返回 null,表示取不到有效值。
363
+ # @type Protocol: String
364
+ # @param Address: 地理位置
365
+ # 注意:此字段可能返回 null,表示取不到有效值。
366
+ # @type Address: String
367
+ # @param Action: 规则类型:1封禁,2放通
368
+ # 注意:此字段可能返回 null,表示取不到有效值。
369
+ # @type Action: Integer
370
+ # @param StartTime: 规则生效开始时间
371
+ # 注意:此字段可能返回 null,表示取不到有效值。
372
+ # @type StartTime: String
373
+ # @param EndTime: 规则生效结束时间
374
+ # 注意:此字段可能返回 null,表示取不到有效值。
375
+ # @type EndTime: String
376
+ # @param IgnoreReason: 忽略原因
377
+ # 注意:此字段可能返回 null,表示取不到有效值。
378
+ # @type IgnoreReason: String
379
+ # @param Source: 安全事件来源
380
+ # 注意:此字段可能返回 null,表示取不到有效值。
381
+ # @type Source: String
382
+ # @param UniqueId: 规则id
383
+ # 注意:此字段可能返回 null,表示取不到有效值。
384
+ # @type UniqueId: String
385
+ # @param MatchTimes: 规则命中次数
386
+ # 注意:此字段可能返回 null,表示取不到有效值。
387
+ # @type MatchTimes: Integer
388
+ # @param Country: 国家
389
+ # 注意:此字段可能返回 null,表示取不到有效值。
390
+ # @type Country: String
391
+
392
+ attr_accessor :Domain, :Ioc, :Level, :EventName, :Direction, :Protocol, :Address, :Action, :StartTime, :EndTime, :IgnoreReason, :Source, :UniqueId, :MatchTimes, :Country
393
+
394
+ def initialize(domain=nil, ioc=nil, level=nil, eventname=nil, direction=nil, protocol=nil, address=nil, action=nil, starttime=nil, endtime=nil, ignorereason=nil, source=nil, uniqueid=nil, matchtimes=nil, country=nil)
395
+ @Domain = domain
396
+ @Ioc = ioc
397
+ @Level = level
398
+ @EventName = eventname
399
+ @Direction = direction
400
+ @Protocol = protocol
401
+ @Address = address
402
+ @Action = action
403
+ @StartTime = starttime
404
+ @EndTime = endtime
405
+ @IgnoreReason = ignorereason
406
+ @Source = source
407
+ @UniqueId = uniqueid
408
+ @MatchTimes = matchtimes
409
+ @Country = country
410
+ end
411
+
412
+ def deserialize(params)
413
+ @Domain = params['Domain']
414
+ @Ioc = params['Ioc']
415
+ @Level = params['Level']
416
+ @EventName = params['EventName']
417
+ @Direction = params['Direction']
418
+ @Protocol = params['Protocol']
419
+ @Address = params['Address']
420
+ @Action = params['Action']
421
+ @StartTime = params['StartTime']
422
+ @EndTime = params['EndTime']
423
+ @IgnoreReason = params['IgnoreReason']
424
+ @Source = params['Source']
425
+ @UniqueId = params['UniqueId']
426
+ @MatchTimes = params['MatchTimes']
427
+ @Country = params['Country']
428
+ end
429
+ end
430
+
344
431
  # NAT防火墙Dnat规则
345
432
  class CfwNatDnatRule < TencentCloud::Common::AbstractModel
346
433
  # @param IpProtocol: 网络协议,可选值:TCP、UDP。
@@ -1301,6 +1388,85 @@ module TencentCloud
1301
1388
  end
1302
1389
  end
1303
1390
 
1391
+ # DescribeBlockIgnoreList请求参数结构体
1392
+ class DescribeBlockIgnoreListRequest < TencentCloud::Common::AbstractModel
1393
+ # @param Limit: 单页数量
1394
+ # @type Limit: Integer
1395
+ # @param Offset: 页偏移量
1396
+ # @type Offset: Integer
1397
+ # @param Direction: 方向:1互联网入站,0互联网出站,3内网,空 全部方向
1398
+ # @type Direction: String
1399
+ # @param RuleType: 规则类型:1封禁,2放通
1400
+ # @type RuleType: Integer
1401
+ # @param Order: 排序列:EndTime结束时间,StartTime开始时间,MatchTimes命中次数
1402
+ # @type Order: String
1403
+ # @param By: 排序类型:desc降序,asc正序
1404
+ # @type By: String
1405
+ # @param SearchValue: 搜索参数,json格式字符串,空则传"{}",域名:domain,危险等级:level,放通原因:ignore_reason,安全事件来源:rule_source,地理位置:address,模糊搜索:common
1406
+ # @type SearchValue: String
1407
+
1408
+ attr_accessor :Limit, :Offset, :Direction, :RuleType, :Order, :By, :SearchValue
1409
+
1410
+ def initialize(limit=nil, offset=nil, direction=nil, ruletype=nil, order=nil, by=nil, searchvalue=nil)
1411
+ @Limit = limit
1412
+ @Offset = offset
1413
+ @Direction = direction
1414
+ @RuleType = ruletype
1415
+ @Order = order
1416
+ @By = by
1417
+ @SearchValue = searchvalue
1418
+ end
1419
+
1420
+ def deserialize(params)
1421
+ @Limit = params['Limit']
1422
+ @Offset = params['Offset']
1423
+ @Direction = params['Direction']
1424
+ @RuleType = params['RuleType']
1425
+ @Order = params['Order']
1426
+ @By = params['By']
1427
+ @SearchValue = params['SearchValue']
1428
+ end
1429
+ end
1430
+
1431
+ # DescribeBlockIgnoreList返回参数结构体
1432
+ class DescribeBlockIgnoreListResponse < TencentCloud::Common::AbstractModel
1433
+ # @param Data: 列表数据
1434
+ # @type Data: Array
1435
+ # @param Total: 查询结果总数,用于分页
1436
+ # @type Total: Integer
1437
+ # @param ReturnCode: 状态值,0:查询成功,非0:查询失败
1438
+ # @type ReturnCode: Integer
1439
+ # @param ReturnMsg: 状态信息,success:查询成功,fail:查询失败
1440
+ # @type ReturnMsg: String
1441
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1442
+ # @type RequestId: String
1443
+
1444
+ attr_accessor :Data, :Total, :ReturnCode, :ReturnMsg, :RequestId
1445
+
1446
+ def initialize(data=nil, total=nil, returncode=nil, returnmsg=nil, requestid=nil)
1447
+ @Data = data
1448
+ @Total = total
1449
+ @ReturnCode = returncode
1450
+ @ReturnMsg = returnmsg
1451
+ @RequestId = requestid
1452
+ end
1453
+
1454
+ def deserialize(params)
1455
+ unless params['Data'].nil?
1456
+ @Data = []
1457
+ params['Data'].each do |i|
1458
+ blockignorerule_tmp = BlockIgnoreRule.new
1459
+ blockignorerule_tmp.deserialize(i)
1460
+ @Data << blockignorerule_tmp
1461
+ end
1462
+ end
1463
+ @Total = params['Total']
1464
+ @ReturnCode = params['ReturnCode']
1465
+ @ReturnMsg = params['ReturnMsg']
1466
+ @RequestId = params['RequestId']
1467
+ end
1468
+ end
1469
+
1304
1470
  # DescribeBlockStaticList请求参数结构体
1305
1471
  class DescribeBlockStaticListRequest < TencentCloud::Common::AbstractModel
1306
1472
  # @param StartTime: 开始时间
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.510
4
+ version: 3.0.512
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-16 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common