tencentcloud-sdk-waf 1.0.295 → 1.0.298

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.
@@ -382,6 +382,94 @@ module TencentCloud
382
382
  end
383
383
  end
384
384
 
385
+ # AddDomainWhiteRule请求参数结构体
386
+ class AddDomainWhiteRuleRequest < TencentCloud::Common::AbstractModel
387
+ # @param Domain: 需要添加的域名
388
+ # @type Domain: String
389
+ # @param Rules: 需要添加的规则
390
+ # @type Rules: Array
391
+ # @param Url: 需要添加的规则url
392
+ # @type Url: String
393
+ # @param Function: 规则的方法
394
+ # @type Function: String
395
+ # @param Status: 规则的开关
396
+ # @type Status: Integer
397
+
398
+ attr_accessor :Domain, :Rules, :Url, :Function, :Status
399
+
400
+ def initialize(domain=nil, rules=nil, url=nil, function=nil, status=nil)
401
+ @Domain = domain
402
+ @Rules = rules
403
+ @Url = url
404
+ @Function = function
405
+ @Status = status
406
+ end
407
+
408
+ def deserialize(params)
409
+ @Domain = params['Domain']
410
+ @Rules = params['Rules']
411
+ @Url = params['Url']
412
+ @Function = params['Function']
413
+ @Status = params['Status']
414
+ end
415
+ end
416
+
417
+ # AddDomainWhiteRule返回参数结构体
418
+ class AddDomainWhiteRuleResponse < TencentCloud::Common::AbstractModel
419
+ # @param Id: 规则id
420
+ # @type Id: Integer
421
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
422
+ # @type RequestId: String
423
+
424
+ attr_accessor :Id, :RequestId
425
+
426
+ def initialize(id=nil, requestid=nil)
427
+ @Id = id
428
+ @RequestId = requestid
429
+ end
430
+
431
+ def deserialize(params)
432
+ @Id = params['Id']
433
+ @RequestId = params['RequestId']
434
+ end
435
+ end
436
+
437
+ # Waf 攻击自动封禁详情
438
+ class AutoDenyDetail < TencentCloud::Common::AbstractModel
439
+ # @param AttackTags: 攻击封禁类型标签
440
+ # @type AttackTags: Array
441
+ # @param AttackThreshold: 攻击次数阈值
442
+ # @type AttackThreshold: Integer
443
+ # @param DefenseStatus: 自动封禁状态
444
+ # @type DefenseStatus: Integer
445
+ # @param TimeThreshold: 攻击时间阈值
446
+ # @type TimeThreshold: Integer
447
+ # @param DenyTimeThreshold: 自动封禁时间
448
+ # @type DenyTimeThreshold: Integer
449
+ # @param LastUpdateTime: 最后更新时间
450
+ # @type LastUpdateTime: String
451
+
452
+ attr_accessor :AttackTags, :AttackThreshold, :DefenseStatus, :TimeThreshold, :DenyTimeThreshold, :LastUpdateTime
453
+
454
+ def initialize(attacktags=nil, attackthreshold=nil, defensestatus=nil, timethreshold=nil, denytimethreshold=nil, lastupdatetime=nil)
455
+ @AttackTags = attacktags
456
+ @AttackThreshold = attackthreshold
457
+ @DefenseStatus = defensestatus
458
+ @TimeThreshold = timethreshold
459
+ @DenyTimeThreshold = denytimethreshold
460
+ @LastUpdateTime = lastupdatetime
461
+ end
462
+
463
+ def deserialize(params)
464
+ @AttackTags = params['AttackTags']
465
+ @AttackThreshold = params['AttackThreshold']
466
+ @DefenseStatus = params['DefenseStatus']
467
+ @TimeThreshold = params['TimeThreshold']
468
+ @DenyTimeThreshold = params['DenyTimeThreshold']
469
+ @LastUpdateTime = params['LastUpdateTime']
470
+ end
471
+ end
472
+
385
473
  # bot的趋势图对象
386
474
  class BotStatPointItem < TencentCloud::Common::AbstractModel
387
475
  # @param TimeStamp: 横坐标
@@ -606,6 +694,47 @@ module TencentCloud
606
694
  end
607
695
  end
608
696
 
697
+ # DeleteDomainWhiteRules请求参数结构体
698
+ class DeleteDomainWhiteRulesRequest < TencentCloud::Common::AbstractModel
699
+ # @param Domain: 需要删除的规则域名
700
+ # @type Domain: String
701
+ # @param Ids: 需要删除的白名单规则
702
+ # @type Ids: Array
703
+
704
+ attr_accessor :Domain, :Ids
705
+
706
+ def initialize(domain=nil, ids=nil)
707
+ @Domain = domain
708
+ @Ids = ids
709
+ end
710
+
711
+ def deserialize(params)
712
+ @Domain = params['Domain']
713
+ @Ids = params['Ids']
714
+ end
715
+ end
716
+
717
+ # DeleteDomainWhiteRules返回参数结构体
718
+ class DeleteDomainWhiteRulesResponse < TencentCloud::Common::AbstractModel
719
+ # @param Data: 出参
720
+ # 注意:此字段可能返回 null,表示取不到有效值。
721
+ # @type Data: String
722
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
723
+ # @type RequestId: String
724
+
725
+ attr_accessor :Data, :RequestId
726
+
727
+ def initialize(data=nil, requestid=nil)
728
+ @Data = data
729
+ @RequestId = requestid
730
+ end
731
+
732
+ def deserialize(params)
733
+ @Data = params['Data']
734
+ @RequestId = params['RequestId']
735
+ end
736
+ end
737
+
609
738
  # DeleteDownloadRecord请求参数结构体
610
739
  class DeleteDownloadRecordRequest < TencentCloud::Common::AbstractModel
611
740
  # @param Flow: 记录id
@@ -638,6 +767,56 @@ module TencentCloud
638
767
  end
639
768
  end
640
769
 
770
+ # DeleteIpAccessControl请求参数结构体
771
+ class DeleteIpAccessControlRequest < TencentCloud::Common::AbstractModel
772
+ # @param Domain: 域名
773
+ # @type Domain: String
774
+ # @param Items: 删除的ip数组
775
+ # @type Items: Array
776
+ # @param DeleteAll: 删除对应的域名下的所有黑/白IP名额单
777
+ # @type DeleteAll: Boolean
778
+
779
+ attr_accessor :Domain, :Items, :DeleteAll
780
+
781
+ def initialize(domain=nil, items=nil, deleteall=nil)
782
+ @Domain = domain
783
+ @Items = items
784
+ @DeleteAll = deleteall
785
+ end
786
+
787
+ def deserialize(params)
788
+ @Domain = params['Domain']
789
+ @Items = params['Items']
790
+ @DeleteAll = params['DeleteAll']
791
+ end
792
+ end
793
+
794
+ # DeleteIpAccessControl返回参数结构体
795
+ class DeleteIpAccessControlResponse < TencentCloud::Common::AbstractModel
796
+ # @param FailedItems: 删除失败的条目
797
+ # 注意:此字段可能返回 null,表示取不到有效值。
798
+ # @type FailedItems: String
799
+ # @param FailedCount: 删除失败的条目数
800
+ # 注意:此字段可能返回 null,表示取不到有效值。
801
+ # @type FailedCount: Integer
802
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
803
+ # @type RequestId: String
804
+
805
+ attr_accessor :FailedItems, :FailedCount, :RequestId
806
+
807
+ def initialize(faileditems=nil, failedcount=nil, requestid=nil)
808
+ @FailedItems = faileditems
809
+ @FailedCount = failedcount
810
+ @RequestId = requestid
811
+ end
812
+
813
+ def deserialize(params)
814
+ @FailedItems = params['FailedItems']
815
+ @FailedCount = params['FailedCount']
816
+ @RequestId = params['RequestId']
817
+ end
818
+ end
819
+
641
820
  # DeleteSession请求参数结构体
642
821
  class DeleteSessionRequest < TencentCloud::Common::AbstractModel
643
822
  # @param Domain: 域名
@@ -827,6 +1006,89 @@ module TencentCloud
827
1006
  end
828
1007
  end
829
1008
 
1009
+ # DescribeAutoDenyIP请求参数结构体
1010
+ class DescribeAutoDenyIPRequest < TencentCloud::Common::AbstractModel
1011
+ # @param Domain: 域名
1012
+ # @type Domain: String
1013
+ # @param Ip: 查询IP自动封禁状态
1014
+ # @type Ip: String
1015
+ # @param Count: 计数标识
1016
+ # @type Count: Integer
1017
+ # @param Category: 类别
1018
+ # @type Category: String
1019
+ # @param VtsMin: 有效时间最小时间戳
1020
+ # @type VtsMin: Integer
1021
+ # @param VtsMax: 有效时间最大时间戳
1022
+ # @type VtsMax: Integer
1023
+ # @param CtsMin: 创建时间最小时间戳
1024
+ # @type CtsMin: Integer
1025
+ # @param CtsMax: 创建时间最大时间戳
1026
+ # @type CtsMax: Integer
1027
+ # @param Skip: 偏移量
1028
+ # @type Skip: Integer
1029
+ # @param Limit: 限制条数
1030
+ # @type Limit: Integer
1031
+ # @param Name: 策略名字
1032
+ # @type Name: String
1033
+ # @param Sort: 排序参数
1034
+ # @type Sort: String
1035
+
1036
+ attr_accessor :Domain, :Ip, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort
1037
+
1038
+ def initialize(domain=nil, ip=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil)
1039
+ @Domain = domain
1040
+ @Ip = ip
1041
+ @Count = count
1042
+ @Category = category
1043
+ @VtsMin = vtsmin
1044
+ @VtsMax = vtsmax
1045
+ @CtsMin = ctsmin
1046
+ @CtsMax = ctsmax
1047
+ @Skip = skip
1048
+ @Limit = limit
1049
+ @Name = name
1050
+ @Sort = sort
1051
+ end
1052
+
1053
+ def deserialize(params)
1054
+ @Domain = params['Domain']
1055
+ @Ip = params['Ip']
1056
+ @Count = params['Count']
1057
+ @Category = params['Category']
1058
+ @VtsMin = params['VtsMin']
1059
+ @VtsMax = params['VtsMax']
1060
+ @CtsMin = params['CtsMin']
1061
+ @CtsMax = params['CtsMax']
1062
+ @Skip = params['Skip']
1063
+ @Limit = params['Limit']
1064
+ @Name = params['Name']
1065
+ @Sort = params['Sort']
1066
+ end
1067
+ end
1068
+
1069
+ # DescribeAutoDenyIP返回参数结构体
1070
+ class DescribeAutoDenyIPResponse < TencentCloud::Common::AbstractModel
1071
+ # @param Data: 查询IP封禁状态返回结果
1072
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.IpHitItemsData`
1073
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1074
+ # @type RequestId: String
1075
+
1076
+ attr_accessor :Data, :RequestId
1077
+
1078
+ def initialize(data=nil, requestid=nil)
1079
+ @Data = data
1080
+ @RequestId = requestid
1081
+ end
1082
+
1083
+ def deserialize(params)
1084
+ unless params['Data'].nil?
1085
+ @Data = IpHitItemsData.new
1086
+ @Data.deserialize(params['Data'])
1087
+ end
1088
+ @RequestId = params['RequestId']
1089
+ end
1090
+ end
1091
+
830
1092
  # DescribeCustomRules接口的翻页参数
831
1093
  class DescribeCustomRulesPagingInfo < TencentCloud::Common::AbstractModel
832
1094
  # @param Offset: 当前页码
@@ -972,6 +1234,73 @@ module TencentCloud
972
1234
  end
973
1235
  end
974
1236
 
1237
+ # DescribeDomainWhiteRules请求参数结构体
1238
+ class DescribeDomainWhiteRulesRequest < TencentCloud::Common::AbstractModel
1239
+ # @param Domain: 需要查询的域名
1240
+ # @type Domain: String
1241
+ # @param Url: 请求的白名单匹配路径
1242
+ # @type Url: String
1243
+ # @param Page: 翻到多少页
1244
+ # @type Page: Integer
1245
+ # @param Count: 每页展示的条数
1246
+ # @type Count: Integer
1247
+ # @param Sort: 排序方式
1248
+ # @type Sort: String
1249
+ # @param RuleId: 规则ID
1250
+ # @type RuleId: String
1251
+
1252
+ attr_accessor :Domain, :Url, :Page, :Count, :Sort, :RuleId
1253
+
1254
+ def initialize(domain=nil, url=nil, page=nil, count=nil, sort=nil, ruleid=nil)
1255
+ @Domain = domain
1256
+ @Url = url
1257
+ @Page = page
1258
+ @Count = count
1259
+ @Sort = sort
1260
+ @RuleId = ruleid
1261
+ end
1262
+
1263
+ def deserialize(params)
1264
+ @Domain = params['Domain']
1265
+ @Url = params['Url']
1266
+ @Page = params['Page']
1267
+ @Count = params['Count']
1268
+ @Sort = params['Sort']
1269
+ @RuleId = params['RuleId']
1270
+ end
1271
+ end
1272
+
1273
+ # DescribeDomainWhiteRules返回参数结构体
1274
+ class DescribeDomainWhiteRulesResponse < TencentCloud::Common::AbstractModel
1275
+ # @param RuleList: 规则列表
1276
+ # @type RuleList: Array
1277
+ # @param Total: 规则的数量
1278
+ # @type Total: Integer
1279
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1280
+ # @type RequestId: String
1281
+
1282
+ attr_accessor :RuleList, :Total, :RequestId
1283
+
1284
+ def initialize(rulelist=nil, total=nil, requestid=nil)
1285
+ @RuleList = rulelist
1286
+ @Total = total
1287
+ @RequestId = requestid
1288
+ end
1289
+
1290
+ def deserialize(params)
1291
+ unless params['RuleList'].nil?
1292
+ @RuleList = []
1293
+ params['RuleList'].each do |i|
1294
+ rulelist_tmp = RuleList.new
1295
+ rulelist_tmp.deserialize(i)
1296
+ @RuleList << rulelist_tmp
1297
+ end
1298
+ end
1299
+ @Total = params['Total']
1300
+ @RequestId = params['RequestId']
1301
+ end
1302
+ end
1303
+
975
1304
  # DescribeFlowTrend请求参数结构体
976
1305
  class DescribeFlowTrendRequest < TencentCloud::Common::AbstractModel
977
1306
  # @param Domain: 需要获取流量趋势的域名, all表示所有域名
@@ -1023,22 +1352,71 @@ module TencentCloud
1023
1352
  end
1024
1353
  end
1025
1354
 
1026
- # DescribeUserClbWafRegions请求参数结构体
1027
- class DescribeUserClbWafRegionsRequest < TencentCloud::Common::AbstractModel
1355
+ # DescribeIpAccessControl请求参数结构体
1356
+ class DescribeIpAccessControlRequest < TencentCloud::Common::AbstractModel
1357
+ # @param Domain: 域名
1358
+ # @type Domain: String
1359
+ # @param Count: 计数标识
1360
+ # @type Count: Integer
1361
+ # @param ActionType: 动作
1362
+ # @type ActionType: Integer
1363
+ # @param VtsMin: 有效时间最小时间戳
1364
+ # @type VtsMin: Integer
1365
+ # @param VtsMax: 有效时间最大时间戳
1366
+ # @type VtsMax: Integer
1367
+ # @param CtsMin: 创建时间最小时间戳
1368
+ # @type CtsMin: Integer
1369
+ # @param CtsMax: 创建时间最大时间戳
1370
+ # @type CtsMax: Integer
1371
+ # @param OffSet: 偏移
1372
+ # @type OffSet: Integer
1373
+ # @param Limit: 限制
1374
+ # @type Limit: Integer
1375
+ # @param Source: 来源
1376
+ # @type Source: String
1377
+ # @param Sort: 排序参数
1378
+ # @type Sort: String
1379
+ # @param Ip: ip
1380
+ # @type Ip: String
1028
1381
 
1382
+ attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip
1029
1383
 
1030
- def initialize()
1384
+ 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)
1385
+ @Domain = domain
1386
+ @Count = count
1387
+ @ActionType = actiontype
1388
+ @VtsMin = vtsmin
1389
+ @VtsMax = vtsmax
1390
+ @CtsMin = ctsmin
1391
+ @CtsMax = ctsmax
1392
+ @OffSet = offset
1393
+ @Limit = limit
1394
+ @Source = source
1395
+ @Sort = sort
1396
+ @Ip = ip
1031
1397
  end
1032
1398
 
1033
1399
  def deserialize(params)
1400
+ @Domain = params['Domain']
1401
+ @Count = params['Count']
1402
+ @ActionType = params['ActionType']
1403
+ @VtsMin = params['VtsMin']
1404
+ @VtsMax = params['VtsMax']
1405
+ @CtsMin = params['CtsMin']
1406
+ @CtsMax = params['CtsMax']
1407
+ @OffSet = params['OffSet']
1408
+ @Limit = params['Limit']
1409
+ @Source = params['Source']
1410
+ @Sort = params['Sort']
1411
+ @Ip = params['Ip']
1034
1412
  end
1035
1413
  end
1036
1414
 
1037
- # DescribeUserClbWafRegions返回参数结构体
1038
- class DescribeUserClbWafRegionsResponse < TencentCloud::Common::AbstractModel
1039
- # @param Data: 地域(标准的ap-格式)列表
1415
+ # DescribeIpAccessControl返回参数结构体
1416
+ class DescribeIpAccessControlResponse < TencentCloud::Common::AbstractModel
1417
+ # @param Data: 输出
1040
1418
  # 注意:此字段可能返回 null,表示取不到有效值。
1041
- # @type Data: Array
1419
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.IpAccessControlData`
1042
1420
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1043
1421
  # @type RequestId: String
1044
1422
 
@@ -1050,64 +1428,299 @@ module TencentCloud
1050
1428
  end
1051
1429
 
1052
1430
  def deserialize(params)
1053
- @Data = params['Data']
1431
+ unless params['Data'].nil?
1432
+ @Data = IpAccessControlData.new
1433
+ @Data.deserialize(params['Data'])
1434
+ end
1054
1435
  @RequestId = params['RequestId']
1055
1436
  end
1056
1437
  end
1057
1438
 
1058
- # DescribeAccessExports接口
1059
- class ExportAccessInfo < TencentCloud::Common::AbstractModel
1060
- # @param ExportId: 日志导出任务ID
1061
- # 注意:此字段可能返回 null,表示取不到有效值。
1062
- # @type ExportId: String
1063
- # @param Query: 日志导出查询语句
1064
- # 注意:此字段可能返回 null,表示取不到有效值。
1065
- # @type Query: String
1066
- # @param FileName: 日志导出文件名
1067
- # 注意:此字段可能返回 null,表示取不到有效值。
1068
- # @type FileName: String
1069
- # @param FileSize: 日志文件大小
1070
- # @type FileSize: Integer
1071
- # @param Order: 日志导出时间排序
1072
- # 注意:此字段可能返回 null,表示取不到有效值。
1073
- # @type Order: String
1074
- # @param Format: 日志导出格式
1075
- # 注意:此字段可能返回 null,表示取不到有效值。
1076
- # @type Format: String
1077
- # @param Count: 日志导出数量
1078
- # 注意:此字段可能返回 null,表示取不到有效值。
1439
+ # DescribeIpHitItems请求参数结构体
1440
+ class DescribeIpHitItemsRequest < TencentCloud::Common::AbstractModel
1441
+ # @param Domain: 域名
1442
+ # @type Domain: String
1443
+ # @param Count: 计数标识
1079
1444
  # @type Count: Integer
1080
- # @param Status: 日志下载状态。Processing:导出正在进行中,Complete:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期)
1081
- # @type Status: String
1082
- # @param From: 日志导出起始时间
1083
- # @type From: Integer
1084
- # @param To: 日志导出结束时间
1085
- # @type To: Integer
1086
- # @param CosPath: 日志导出路径
1087
- # @type CosPath: String
1088
- # @param CreateTime: 日志导出创建时间
1089
- # @type CreateTime: String
1445
+ # @param Category: 类别
1446
+ # @type Category: String
1447
+ # @param VtsMin: 有效时间最小时间戳
1448
+ # @type VtsMin: Integer
1449
+ # @param VtsMax: 有效时间最大时间戳
1450
+ # @type VtsMax: Integer
1451
+ # @param CtsMin: 创建时间最小时间戳
1452
+ # @type CtsMin: Integer
1453
+ # @param CtsMax: 创建时间最大时间戳
1454
+ # @type CtsMax: Integer
1455
+ # @param Skip: 偏移参数
1456
+ # @type Skip: Integer
1457
+ # @param Limit: 限制数目
1458
+ # @type Limit: Integer
1459
+ # @param Name: 策略名称
1460
+ # @type Name: String
1461
+ # @param Sort: 排序参数
1462
+ # @type Sort: String
1463
+ # @param Ip: IP
1464
+ # @type Ip: String
1090
1465
 
1091
- attr_accessor :ExportId, :Query, :FileName, :FileSize, :Order, :Format, :Count, :Status, :From, :To, :CosPath, :CreateTime
1466
+ attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip
1092
1467
 
1093
- def initialize(exportid=nil, query=nil, filename=nil, filesize=nil, order=nil, format=nil, count=nil, status=nil, from=nil, to=nil, cospath=nil, createtime=nil)
1094
- @ExportId = exportid
1095
- @Query = query
1096
- @FileName = filename
1097
- @FileSize = filesize
1098
- @Order = order
1099
- @Format = format
1468
+ def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil)
1469
+ @Domain = domain
1100
1470
  @Count = count
1101
- @Status = status
1102
- @From = from
1103
- @To = to
1104
- @CosPath = cospath
1105
- @CreateTime = createtime
1471
+ @Category = category
1472
+ @VtsMin = vtsmin
1473
+ @VtsMax = vtsmax
1474
+ @CtsMin = ctsmin
1475
+ @CtsMax = ctsmax
1476
+ @Skip = skip
1477
+ @Limit = limit
1478
+ @Name = name
1479
+ @Sort = sort
1480
+ @Ip = ip
1106
1481
  end
1107
1482
 
1108
1483
  def deserialize(params)
1109
- @ExportId = params['ExportId']
1110
- @Query = params['Query']
1484
+ @Domain = params['Domain']
1485
+ @Count = params['Count']
1486
+ @Category = params['Category']
1487
+ @VtsMin = params['VtsMin']
1488
+ @VtsMax = params['VtsMax']
1489
+ @CtsMin = params['CtsMin']
1490
+ @CtsMax = params['CtsMax']
1491
+ @Skip = params['Skip']
1492
+ @Limit = params['Limit']
1493
+ @Name = params['Name']
1494
+ @Sort = params['Sort']
1495
+ @Ip = params['Ip']
1496
+ end
1497
+ end
1498
+
1499
+ # DescribeIpHitItems返回参数结构体
1500
+ class DescribeIpHitItemsResponse < TencentCloud::Common::AbstractModel
1501
+ # @param Data: 结果
1502
+ # 注意:此字段可能返回 null,表示取不到有效值。
1503
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.IpHitItemsData`
1504
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1505
+ # @type RequestId: String
1506
+
1507
+ attr_accessor :Data, :RequestId
1508
+
1509
+ def initialize(data=nil, requestid=nil)
1510
+ @Data = data
1511
+ @RequestId = requestid
1512
+ end
1513
+
1514
+ def deserialize(params)
1515
+ unless params['Data'].nil?
1516
+ @Data = IpHitItemsData.new
1517
+ @Data.deserialize(params['Data'])
1518
+ end
1519
+ @RequestId = params['RequestId']
1520
+ end
1521
+ end
1522
+
1523
+ # DescribeUserClbWafRegions请求参数结构体
1524
+ class DescribeUserClbWafRegionsRequest < TencentCloud::Common::AbstractModel
1525
+
1526
+
1527
+ def initialize()
1528
+ end
1529
+
1530
+ def deserialize(params)
1531
+ end
1532
+ end
1533
+
1534
+ # DescribeUserClbWafRegions返回参数结构体
1535
+ class DescribeUserClbWafRegionsResponse < TencentCloud::Common::AbstractModel
1536
+ # @param Data: 地域(标准的ap-格式)列表
1537
+ # 注意:此字段可能返回 null,表示取不到有效值。
1538
+ # @type Data: Array
1539
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1540
+ # @type RequestId: String
1541
+
1542
+ attr_accessor :Data, :RequestId
1543
+
1544
+ def initialize(data=nil, requestid=nil)
1545
+ @Data = data
1546
+ @RequestId = requestid
1547
+ end
1548
+
1549
+ def deserialize(params)
1550
+ @Data = params['Data']
1551
+ @RequestId = params['RequestId']
1552
+ end
1553
+ end
1554
+
1555
+ # DescribeWafAutoDenyRules请求参数结构体
1556
+ class DescribeWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
1557
+ # @param Domain: 域名
1558
+ # @type Domain: String
1559
+
1560
+ attr_accessor :Domain
1561
+
1562
+ def initialize(domain=nil)
1563
+ @Domain = domain
1564
+ end
1565
+
1566
+ def deserialize(params)
1567
+ @Domain = params['Domain']
1568
+ end
1569
+ end
1570
+
1571
+ # DescribeWafAutoDenyRules返回参数结构体
1572
+ class DescribeWafAutoDenyRulesResponse < TencentCloud::Common::AbstractModel
1573
+ # @param AttackThreshold: 攻击次数阈值
1574
+ # @type AttackThreshold: Integer
1575
+ # @param TimeThreshold: 攻击时间阈值
1576
+ # @type TimeThreshold: Integer
1577
+ # @param DenyTimeThreshold: 自动封禁时间
1578
+ # @type DenyTimeThreshold: Integer
1579
+ # @param DefenseStatus: 自动封禁状态
1580
+ # @type DefenseStatus: Integer
1581
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1582
+ # @type RequestId: String
1583
+
1584
+ attr_accessor :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus, :RequestId
1585
+
1586
+ def initialize(attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil, requestid=nil)
1587
+ @AttackThreshold = attackthreshold
1588
+ @TimeThreshold = timethreshold
1589
+ @DenyTimeThreshold = denytimethreshold
1590
+ @DefenseStatus = defensestatus
1591
+ @RequestId = requestid
1592
+ end
1593
+
1594
+ def deserialize(params)
1595
+ @AttackThreshold = params['AttackThreshold']
1596
+ @TimeThreshold = params['TimeThreshold']
1597
+ @DenyTimeThreshold = params['DenyTimeThreshold']
1598
+ @DefenseStatus = params['DefenseStatus']
1599
+ @RequestId = params['RequestId']
1600
+ end
1601
+ end
1602
+
1603
+ # DescribeWafAutoDenyStatus请求参数结构体
1604
+ class DescribeWafAutoDenyStatusRequest < TencentCloud::Common::AbstractModel
1605
+
1606
+
1607
+ def initialize()
1608
+ end
1609
+
1610
+ def deserialize(params)
1611
+ end
1612
+ end
1613
+
1614
+ # DescribeWafAutoDenyStatus返回参数结构体
1615
+ class DescribeWafAutoDenyStatusResponse < TencentCloud::Common::AbstractModel
1616
+ # @param WafAutoDenyDetails: WAF 自动封禁详情
1617
+ # @type WafAutoDenyDetails: :class:`Tencentcloud::Waf.v20180125.models.AutoDenyDetail`
1618
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1619
+ # @type RequestId: String
1620
+
1621
+ attr_accessor :WafAutoDenyDetails, :RequestId
1622
+
1623
+ def initialize(wafautodenydetails=nil, requestid=nil)
1624
+ @WafAutoDenyDetails = wafautodenydetails
1625
+ @RequestId = requestid
1626
+ end
1627
+
1628
+ def deserialize(params)
1629
+ unless params['WafAutoDenyDetails'].nil?
1630
+ @WafAutoDenyDetails = AutoDenyDetail.new
1631
+ @WafAutoDenyDetails.deserialize(params['WafAutoDenyDetails'])
1632
+ end
1633
+ @RequestId = params['RequestId']
1634
+ end
1635
+ end
1636
+
1637
+ # DescribeWafThreatenIntelligence请求参数结构体
1638
+ class DescribeWafThreatenIntelligenceRequest < TencentCloud::Common::AbstractModel
1639
+
1640
+
1641
+ def initialize()
1642
+ end
1643
+
1644
+ def deserialize(params)
1645
+ end
1646
+ end
1647
+
1648
+ # DescribeWafThreatenIntelligence返回参数结构体
1649
+ class DescribeWafThreatenIntelligenceResponse < TencentCloud::Common::AbstractModel
1650
+ # @param WafThreatenIntelligenceDetails: WAF 威胁情报封禁信息
1651
+ # @type WafThreatenIntelligenceDetails: :class:`Tencentcloud::Waf.v20180125.models.WafThreatenIntelligenceDetails`
1652
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1653
+ # @type RequestId: String
1654
+
1655
+ attr_accessor :WafThreatenIntelligenceDetails, :RequestId
1656
+
1657
+ def initialize(wafthreatenintelligencedetails=nil, requestid=nil)
1658
+ @WafThreatenIntelligenceDetails = wafthreatenintelligencedetails
1659
+ @RequestId = requestid
1660
+ end
1661
+
1662
+ def deserialize(params)
1663
+ unless params['WafThreatenIntelligenceDetails'].nil?
1664
+ @WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails.new
1665
+ @WafThreatenIntelligenceDetails.deserialize(params['WafThreatenIntelligenceDetails'])
1666
+ end
1667
+ @RequestId = params['RequestId']
1668
+ end
1669
+ end
1670
+
1671
+ # DescribeAccessExports接口
1672
+ class ExportAccessInfo < TencentCloud::Common::AbstractModel
1673
+ # @param ExportId: 日志导出任务ID
1674
+ # 注意:此字段可能返回 null,表示取不到有效值。
1675
+ # @type ExportId: String
1676
+ # @param Query: 日志导出查询语句
1677
+ # 注意:此字段可能返回 null,表示取不到有效值。
1678
+ # @type Query: String
1679
+ # @param FileName: 日志导出文件名
1680
+ # 注意:此字段可能返回 null,表示取不到有效值。
1681
+ # @type FileName: String
1682
+ # @param FileSize: 日志文件大小
1683
+ # @type FileSize: Integer
1684
+ # @param Order: 日志导出时间排序
1685
+ # 注意:此字段可能返回 null,表示取不到有效值。
1686
+ # @type Order: String
1687
+ # @param Format: 日志导出格式
1688
+ # 注意:此字段可能返回 null,表示取不到有效值。
1689
+ # @type Format: String
1690
+ # @param Count: 日志导出数量
1691
+ # 注意:此字段可能返回 null,表示取不到有效值。
1692
+ # @type Count: Integer
1693
+ # @param Status: 日志下载状态。Processing:导出正在进行中,Complete:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期)
1694
+ # @type Status: String
1695
+ # @param From: 日志导出起始时间
1696
+ # @type From: Integer
1697
+ # @param To: 日志导出结束时间
1698
+ # @type To: Integer
1699
+ # @param CosPath: 日志导出路径
1700
+ # @type CosPath: String
1701
+ # @param CreateTime: 日志导出创建时间
1702
+ # @type CreateTime: String
1703
+
1704
+ attr_accessor :ExportId, :Query, :FileName, :FileSize, :Order, :Format, :Count, :Status, :From, :To, :CosPath, :CreateTime
1705
+
1706
+ def initialize(exportid=nil, query=nil, filename=nil, filesize=nil, order=nil, format=nil, count=nil, status=nil, from=nil, to=nil, cospath=nil, createtime=nil)
1707
+ @ExportId = exportid
1708
+ @Query = query
1709
+ @FileName = filename
1710
+ @FileSize = filesize
1711
+ @Order = order
1712
+ @Format = format
1713
+ @Count = count
1714
+ @Status = status
1715
+ @From = from
1716
+ @To = to
1717
+ @CosPath = cospath
1718
+ @CreateTime = createtime
1719
+ end
1720
+
1721
+ def deserialize(params)
1722
+ @ExportId = params['ExportId']
1723
+ @Query = params['Query']
1111
1724
  @FileName = params['FileName']
1112
1725
  @FileSize = params['FileSize']
1113
1726
  @Order = params['Order']
@@ -1121,6 +1734,134 @@ module TencentCloud
1121
1734
  end
1122
1735
  end
1123
1736
 
1737
+ # 数据封装
1738
+ class IpAccessControlData < TencentCloud::Common::AbstractModel
1739
+ # @param Res: ip黑白名单
1740
+ # 注意:此字段可能返回 null,表示取不到有效值。
1741
+ # @type Res: Array
1742
+ # @param TotalCount: 计数
1743
+ # @type TotalCount: Integer
1744
+
1745
+ attr_accessor :Res, :TotalCount
1746
+
1747
+ def initialize(res=nil, totalcount=nil)
1748
+ @Res = res
1749
+ @TotalCount = totalcount
1750
+ end
1751
+
1752
+ def deserialize(params)
1753
+ unless params['Res'].nil?
1754
+ @Res = []
1755
+ params['Res'].each do |i|
1756
+ ipaccesscontrolitem_tmp = IpAccessControlItem.new
1757
+ ipaccesscontrolitem_tmp.deserialize(i)
1758
+ @Res << ipaccesscontrolitem_tmp
1759
+ end
1760
+ end
1761
+ @TotalCount = params['TotalCount']
1762
+ end
1763
+ end
1764
+
1765
+ # ip黑白名单
1766
+ class IpAccessControlItem < TencentCloud::Common::AbstractModel
1767
+ # @param ActionType: 动作
1768
+ # @type ActionType: Integer
1769
+ # @param Ip: ip
1770
+ # @type Ip: String
1771
+ # @param Note: 备注
1772
+ # @type Note: String
1773
+ # @param Source: 来源
1774
+ # @type Source: String
1775
+ # @param TsVersion: 更新时间戳
1776
+ # 注意:此字段可能返回 null,表示取不到有效值。
1777
+ # @type TsVersion: Integer
1778
+ # @param ValidTs: 有效截止时间戳
1779
+ # @type ValidTs: Integer
1780
+
1781
+ attr_accessor :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs
1782
+
1783
+ def initialize(actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil)
1784
+ @ActionType = actiontype
1785
+ @Ip = ip
1786
+ @Note = note
1787
+ @Source = source
1788
+ @TsVersion = tsversion
1789
+ @ValidTs = validts
1790
+ end
1791
+
1792
+ def deserialize(params)
1793
+ @ActionType = params['ActionType']
1794
+ @Ip = params['Ip']
1795
+ @Note = params['Note']
1796
+ @Source = params['Source']
1797
+ @TsVersion = params['TsVersion']
1798
+ @ValidTs = params['ValidTs']
1799
+ end
1800
+ end
1801
+
1802
+ # ip封堵状态数据
1803
+ class IpHitItem < TencentCloud::Common::AbstractModel
1804
+ # @param Action: 动作
1805
+ # @type Action: Integer
1806
+ # @param Category: 类别
1807
+ # @type Category: String
1808
+ # @param Ip: ip
1809
+ # @type Ip: String
1810
+ # @param Name: 规则名称
1811
+ # @type Name: String
1812
+ # @param TsVersion: 时间戳
1813
+ # @type TsVersion: Integer
1814
+ # @param ValidTs: 有效截止时间戳
1815
+ # @type ValidTs: Integer
1816
+
1817
+ attr_accessor :Action, :Category, :Ip, :Name, :TsVersion, :ValidTs
1818
+
1819
+ def initialize(action=nil, category=nil, ip=nil, name=nil, tsversion=nil, validts=nil)
1820
+ @Action = action
1821
+ @Category = category
1822
+ @Ip = ip
1823
+ @Name = name
1824
+ @TsVersion = tsversion
1825
+ @ValidTs = validts
1826
+ end
1827
+
1828
+ def deserialize(params)
1829
+ @Action = params['Action']
1830
+ @Category = params['Category']
1831
+ @Ip = params['Ip']
1832
+ @Name = params['Name']
1833
+ @TsVersion = params['TsVersion']
1834
+ @ValidTs = params['ValidTs']
1835
+ end
1836
+ end
1837
+
1838
+ # 封装参数
1839
+ class IpHitItemsData < TencentCloud::Common::AbstractModel
1840
+ # @param Res: 数组封装
1841
+ # @type Res: Array
1842
+ # @param TotalCount: 总数目
1843
+ # @type TotalCount: Integer
1844
+
1845
+ attr_accessor :Res, :TotalCount
1846
+
1847
+ def initialize(res=nil, totalcount=nil)
1848
+ @Res = res
1849
+ @TotalCount = totalcount
1850
+ end
1851
+
1852
+ def deserialize(params)
1853
+ unless params['Res'].nil?
1854
+ @Res = []
1855
+ params['Res'].each do |i|
1856
+ iphititem_tmp = IpHitItem.new
1857
+ iphititem_tmp.deserialize(i)
1858
+ @Res << iphititem_tmp
1859
+ end
1860
+ end
1861
+ @TotalCount = params['TotalCount']
1862
+ end
1863
+ end
1864
+
1124
1865
  # ModifyAccessPeriod请求参数结构体
1125
1866
  class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
1126
1867
  # @param Period: 访问日志保存期限,范围为[1, 30]
@@ -1208,6 +1949,197 @@ module TencentCloud
1208
1949
  end
1209
1950
  end
1210
1951
 
1952
+ # ModifyDomainWhiteRule请求参数结构体
1953
+ class ModifyDomainWhiteRuleRequest < TencentCloud::Common::AbstractModel
1954
+ # @param Domain: 需要更改的规则的域名
1955
+ # @type Domain: String
1956
+ # @param Id: 白名单id
1957
+ # @type Id: Integer
1958
+ # @param Rules: 规则的id列表
1959
+ # @type Rules: Array
1960
+ # @param Url: 规则匹配路径
1961
+ # @type Url: String
1962
+ # @param Function: 规则匹配方法
1963
+ # @type Function: String
1964
+ # @param Status: 规则的开关状态
1965
+ # @type Status: Integer
1966
+
1967
+ attr_accessor :Domain, :Id, :Rules, :Url, :Function, :Status
1968
+
1969
+ def initialize(domain=nil, id=nil, rules=nil, url=nil, function=nil, status=nil)
1970
+ @Domain = domain
1971
+ @Id = id
1972
+ @Rules = rules
1973
+ @Url = url
1974
+ @Function = function
1975
+ @Status = status
1976
+ end
1977
+
1978
+ def deserialize(params)
1979
+ @Domain = params['Domain']
1980
+ @Id = params['Id']
1981
+ @Rules = params['Rules']
1982
+ @Url = params['Url']
1983
+ @Function = params['Function']
1984
+ @Status = params['Status']
1985
+ end
1986
+ end
1987
+
1988
+ # ModifyDomainWhiteRule返回参数结构体
1989
+ class ModifyDomainWhiteRuleResponse < TencentCloud::Common::AbstractModel
1990
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1991
+ # @type RequestId: String
1992
+
1993
+ attr_accessor :RequestId
1994
+
1995
+ def initialize(requestid=nil)
1996
+ @RequestId = requestid
1997
+ end
1998
+
1999
+ def deserialize(params)
2000
+ @RequestId = params['RequestId']
2001
+ end
2002
+ end
2003
+
2004
+ # ModifyWafAutoDenyRules请求参数结构体
2005
+ class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
2006
+ # @param Domain: 域名
2007
+ # @type Domain: String
2008
+ # @param AttackThreshold: 攻击次数阈值
2009
+ # @type AttackThreshold: Integer
2010
+ # @param TimeThreshold: 攻击时间阈值
2011
+ # @type TimeThreshold: Integer
2012
+ # @param DenyTimeThreshold: 自动封禁时间
2013
+ # @type DenyTimeThreshold: Integer
2014
+ # @param DefenseStatus: 自动封禁状态
2015
+ # @type DefenseStatus: Integer
2016
+
2017
+ attr_accessor :Domain, :AttackThreshold, :TimeThreshold, :DenyTimeThreshold, :DefenseStatus
2018
+
2019
+ def initialize(domain=nil, attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil)
2020
+ @Domain = domain
2021
+ @AttackThreshold = attackthreshold
2022
+ @TimeThreshold = timethreshold
2023
+ @DenyTimeThreshold = denytimethreshold
2024
+ @DefenseStatus = defensestatus
2025
+ end
2026
+
2027
+ def deserialize(params)
2028
+ @Domain = params['Domain']
2029
+ @AttackThreshold = params['AttackThreshold']
2030
+ @TimeThreshold = params['TimeThreshold']
2031
+ @DenyTimeThreshold = params['DenyTimeThreshold']
2032
+ @DefenseStatus = params['DefenseStatus']
2033
+ end
2034
+ end
2035
+
2036
+ # ModifyWafAutoDenyRules返回参数结构体
2037
+ class ModifyWafAutoDenyRulesResponse < TencentCloud::Common::AbstractModel
2038
+ # @param Success: 成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
2039
+ # @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
2040
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2041
+ # @type RequestId: String
2042
+
2043
+ attr_accessor :Success, :RequestId
2044
+
2045
+ def initialize(success=nil, requestid=nil)
2046
+ @Success = success
2047
+ @RequestId = requestid
2048
+ end
2049
+
2050
+ def deserialize(params)
2051
+ unless params['Success'].nil?
2052
+ @Success = ResponseCode.new
2053
+ @Success.deserialize(params['Success'])
2054
+ end
2055
+ @RequestId = params['RequestId']
2056
+ end
2057
+ end
2058
+
2059
+ # ModifyWafAutoDenyStatus请求参数结构体
2060
+ class ModifyWafAutoDenyStatusRequest < TencentCloud::Common::AbstractModel
2061
+ # @param WafAutoDenyDetails: WAF 自动封禁配置项
2062
+ # @type WafAutoDenyDetails: :class:`Tencentcloud::Waf.v20180125.models.AutoDenyDetail`
2063
+
2064
+ attr_accessor :WafAutoDenyDetails
2065
+
2066
+ def initialize(wafautodenydetails=nil)
2067
+ @WafAutoDenyDetails = wafautodenydetails
2068
+ end
2069
+
2070
+ def deserialize(params)
2071
+ unless params['WafAutoDenyDetails'].nil?
2072
+ @WafAutoDenyDetails = AutoDenyDetail.new
2073
+ @WafAutoDenyDetails.deserialize(params['WafAutoDenyDetails'])
2074
+ end
2075
+ end
2076
+ end
2077
+
2078
+ # ModifyWafAutoDenyStatus返回参数结构体
2079
+ class ModifyWafAutoDenyStatusResponse < TencentCloud::Common::AbstractModel
2080
+ # @param WafAutoDenyDetails: WAF 自动封禁配置项
2081
+ # @type WafAutoDenyDetails: :class:`Tencentcloud::Waf.v20180125.models.AutoDenyDetail`
2082
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2083
+ # @type RequestId: String
2084
+
2085
+ attr_accessor :WafAutoDenyDetails, :RequestId
2086
+
2087
+ def initialize(wafautodenydetails=nil, requestid=nil)
2088
+ @WafAutoDenyDetails = wafautodenydetails
2089
+ @RequestId = requestid
2090
+ end
2091
+
2092
+ def deserialize(params)
2093
+ unless params['WafAutoDenyDetails'].nil?
2094
+ @WafAutoDenyDetails = AutoDenyDetail.new
2095
+ @WafAutoDenyDetails.deserialize(params['WafAutoDenyDetails'])
2096
+ end
2097
+ @RequestId = params['RequestId']
2098
+ end
2099
+ end
2100
+
2101
+ # ModifyWafThreatenIntelligence请求参数结构体
2102
+ class ModifyWafThreatenIntelligenceRequest < TencentCloud::Common::AbstractModel
2103
+ # @param WafThreatenIntelligenceDetails: 配置WAF威胁情报封禁模块详情
2104
+ # @type WafThreatenIntelligenceDetails: :class:`Tencentcloud::Waf.v20180125.models.WafThreatenIntelligenceDetails`
2105
+
2106
+ attr_accessor :WafThreatenIntelligenceDetails
2107
+
2108
+ def initialize(wafthreatenintelligencedetails=nil)
2109
+ @WafThreatenIntelligenceDetails = wafthreatenintelligencedetails
2110
+ end
2111
+
2112
+ def deserialize(params)
2113
+ unless params['WafThreatenIntelligenceDetails'].nil?
2114
+ @WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails.new
2115
+ @WafThreatenIntelligenceDetails.deserialize(params['WafThreatenIntelligenceDetails'])
2116
+ end
2117
+ end
2118
+ end
2119
+
2120
+ # ModifyWafThreatenIntelligence返回参数结构体
2121
+ class ModifyWafThreatenIntelligenceResponse < TencentCloud::Common::AbstractModel
2122
+ # @param WafThreatenIntelligenceDetails: 当前WAF威胁情报封禁模块详情
2123
+ # @type WafThreatenIntelligenceDetails: :class:`Tencentcloud::Waf.v20180125.models.WafThreatenIntelligenceDetails`
2124
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2125
+ # @type RequestId: String
2126
+
2127
+ attr_accessor :WafThreatenIntelligenceDetails, :RequestId
2128
+
2129
+ def initialize(wafthreatenintelligencedetails=nil, requestid=nil)
2130
+ @WafThreatenIntelligenceDetails = wafthreatenintelligencedetails
2131
+ @RequestId = requestid
2132
+ end
2133
+
2134
+ def deserialize(params)
2135
+ unless params['WafThreatenIntelligenceDetails'].nil?
2136
+ @WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails.new
2137
+ @WafThreatenIntelligenceDetails.deserialize(params['WafThreatenIntelligenceDetails'])
2138
+ end
2139
+ @RequestId = params['RequestId']
2140
+ end
2141
+ end
2142
+
1211
2143
  # 响应体的返回码
1212
2144
  class ResponseCode < TencentCloud::Common::AbstractModel
1213
2145
  # @param Code: 如果成功则返回Success,失败则返回yunapi定义的错误码
@@ -1228,6 +2160,42 @@ module TencentCloud
1228
2160
  end
1229
2161
  end
1230
2162
 
2163
+ # 规则白名单
2164
+ class RuleList < TencentCloud::Common::AbstractModel
2165
+ # @param Id: 规则Id
2166
+ # @type Id: Integer
2167
+ # @param Rules: 规则列表的id
2168
+ # @type Rules: Array
2169
+ # @param Url: 请求url
2170
+ # @type Url: String
2171
+ # @param Function: 请求的方法
2172
+ # @type Function: String
2173
+ # @param Time: 时间戳
2174
+ # @type Time: String
2175
+ # @param Status: 开关状态
2176
+ # @type Status: Integer
2177
+
2178
+ attr_accessor :Id, :Rules, :Url, :Function, :Time, :Status
2179
+
2180
+ def initialize(id=nil, rules=nil, url=nil, function=nil, time=nil, status=nil)
2181
+ @Id = id
2182
+ @Rules = rules
2183
+ @Url = url
2184
+ @Function = function
2185
+ @Time = time
2186
+ @Status = status
2187
+ end
2188
+
2189
+ def deserialize(params)
2190
+ @Id = params['Id']
2191
+ @Rules = params['Rules']
2192
+ @Url = params['Url']
2193
+ @Function = params['Function']
2194
+ @Time = params['Time']
2195
+ @Status = params['Status']
2196
+ end
2197
+ end
2198
+
1231
2199
  # SearchAccessLog请求参数结构体
1232
2200
  class SearchAccessLogRequest < TencentCloud::Common::AbstractModel
1233
2201
  # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
@@ -1356,6 +2324,81 @@ module TencentCloud
1356
2324
  end
1357
2325
  end
1358
2326
 
2327
+ # UpsertIpAccessControl请求参数结构体
2328
+ class UpsertIpAccessControlRequest < TencentCloud::Common::AbstractModel
2329
+ # @param Domain: 域名
2330
+ # @type Domain: String
2331
+ # @param Items: ip 参数列表,json数组由ip,source,note,action,valid_ts组成。ip对应配置的ip地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳
2332
+ # @type Items: Array
2333
+ # @param Edition: clb-waf或者sparta-waf
2334
+ # @type Edition: String
2335
+
2336
+ attr_accessor :Domain, :Items, :Edition
2337
+
2338
+ def initialize(domain=nil, items=nil, edition=nil)
2339
+ @Domain = domain
2340
+ @Items = items
2341
+ @Edition = edition
2342
+ end
2343
+
2344
+ def deserialize(params)
2345
+ @Domain = params['Domain']
2346
+ @Items = params['Items']
2347
+ @Edition = params['Edition']
2348
+ end
2349
+ end
2350
+
2351
+ # UpsertIpAccessControl返回参数结构体
2352
+ class UpsertIpAccessControlResponse < TencentCloud::Common::AbstractModel
2353
+ # @param FailedItems: 添加或修改失败的条目
2354
+ # 注意:此字段可能返回 null,表示取不到有效值。
2355
+ # @type FailedItems: String
2356
+ # @param FailedCount: 添加或修改失败的数目
2357
+ # 注意:此字段可能返回 null,表示取不到有效值。
2358
+ # @type FailedCount: Integer
2359
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2360
+ # @type RequestId: String
2361
+
2362
+ attr_accessor :FailedItems, :FailedCount, :RequestId
2363
+
2364
+ def initialize(faileditems=nil, failedcount=nil, requestid=nil)
2365
+ @FailedItems = faileditems
2366
+ @FailedCount = failedcount
2367
+ @RequestId = requestid
2368
+ end
2369
+
2370
+ def deserialize(params)
2371
+ @FailedItems = params['FailedItems']
2372
+ @FailedCount = params['FailedCount']
2373
+ @RequestId = params['RequestId']
2374
+ end
2375
+ end
2376
+
2377
+ # Waf 威胁情报封禁模块配置详情
2378
+ class WafThreatenIntelligenceDetails < TencentCloud::Common::AbstractModel
2379
+ # @param DefenseStatus: 封禁模组启用状态
2380
+ # @type DefenseStatus: Integer
2381
+ # @param Tags: 封禁属性标签
2382
+ # 注意:此字段可能返回 null,表示取不到有效值。
2383
+ # @type Tags: Array
2384
+ # @param LastUpdateTime: 最后更新时间
2385
+ # @type LastUpdateTime: String
2386
+
2387
+ attr_accessor :DefenseStatus, :Tags, :LastUpdateTime
2388
+
2389
+ def initialize(defensestatus=nil, tags=nil, lastupdatetime=nil)
2390
+ @DefenseStatus = defensestatus
2391
+ @Tags = tags
2392
+ @LastUpdateTime = lastupdatetime
2393
+ end
2394
+
2395
+ def deserialize(params)
2396
+ @DefenseStatus = params['DefenseStatus']
2397
+ @Tags = params['Tags']
2398
+ @LastUpdateTime = params['LastUpdateTime']
2399
+ end
2400
+ end
2401
+
1359
2402
  end
1360
2403
  end
1361
2404
  end