tencentcloud-sdk-teo 1.0.333 → 1.0.334
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220106/client.rb +432 -0
- data/lib/v20220106/models.rb +2788 -246
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae78ee50134cedf39ac1c0189f761d21eb36c03
|
4
|
+
data.tar.gz: 4a08acd3ebe78ec48eb57d01611829f6a38a34ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebdb7ebbafdcb70e94e4cafecdeba8bc4db4d615cd53653aedc432d126108a7c15f49634415dfcdad4822c858ca65e669adedeebdf2555a182d05c6678d331e
|
7
|
+
data.tar.gz: a00597fc811162bdb4d54cb30bec4569c846e29cb475b6e8fd8d3ba3f5780c62c3ff66be576f2e647724160f32c36e0eacd477927e6eb3ace2c493b9cfd4db19
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.334
|
data/lib/v20220106/client.rb
CHANGED
@@ -485,6 +485,30 @@ module TencentCloud
|
|
485
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
486
|
end
|
487
487
|
|
488
|
+
# 查询Bot攻击日志
|
489
|
+
|
490
|
+
# @param request: Request instance for DescribeBotLog.
|
491
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeBotLogRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeBotLogResponse`
|
493
|
+
def DescribeBotLog(request)
|
494
|
+
body = send_request('DescribeBotLog', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = DescribeBotLogResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
488
512
|
# 分页查询Bot托管规则
|
489
513
|
|
490
514
|
# @param request: Request instance for DescribeBotManagedRules.
|
@@ -557,6 +581,150 @@ module TencentCloud
|
|
557
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
582
|
end
|
559
583
|
|
584
|
+
# 查询DDos攻击数据
|
585
|
+
|
586
|
+
# @param request: Request instance for DescribeDDosAttackData.
|
587
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackDataRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackDataResponse`
|
589
|
+
def DescribeDDosAttackData(request)
|
590
|
+
body = send_request('DescribeDDosAttackData', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DescribeDDosAttackDataResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
608
|
+
# 查询DDos攻击事件
|
609
|
+
|
610
|
+
# @param request: Request instance for DescribeDDosAttackEvent.
|
611
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventResponse`
|
613
|
+
def DescribeDDosAttackEvent(request)
|
614
|
+
body = send_request('DescribeDDosAttackEvent', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DescribeDDosAttackEventResponse.new
|
618
|
+
model.deserialize(response['Response'])
|
619
|
+
model
|
620
|
+
else
|
621
|
+
code = response['Response']['Error']['Code']
|
622
|
+
message = response['Response']['Error']['Message']
|
623
|
+
reqid = response['Response']['RequestId']
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
+
end
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
+
raise e
|
628
|
+
rescue StandardError => e
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
+
end
|
631
|
+
|
632
|
+
# 查询DDos攻击事件详情
|
633
|
+
|
634
|
+
# @param request: Request instance for DescribeDDosAttackEventDetail.
|
635
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventDetailRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackEventDetailResponse`
|
637
|
+
def DescribeDDosAttackEventDetail(request)
|
638
|
+
body = send_request('DescribeDDosAttackEventDetail', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DescribeDDosAttackEventDetailResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 查询DDos攻击源
|
657
|
+
|
658
|
+
# @param request: Request instance for DescribeDDosAttackSourceEvent.
|
659
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackSourceEventRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackSourceEventResponse`
|
661
|
+
def DescribeDDosAttackSourceEvent(request)
|
662
|
+
body = send_request('DescribeDDosAttackSourceEvent', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DescribeDDosAttackSourceEventResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
680
|
+
# 查询DDos攻击Top数据
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeDDosAttackTopData.
|
683
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackTopDataRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosAttackTopDataResponse`
|
685
|
+
def DescribeDDosAttackTopData(request)
|
686
|
+
body = send_request('DescribeDDosAttackTopData', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeDDosAttackTopDataResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
704
|
+
# 查询DDos主攻击事件
|
705
|
+
|
706
|
+
# @param request: Request instance for DescribeDDosMajorAttackEvent.
|
707
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDosMajorAttackEventRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDosMajorAttackEventResponse`
|
709
|
+
def DescribeDDosMajorAttackEvent(request)
|
710
|
+
body = send_request('DescribeDDosMajorAttackEvent', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DescribeDDosMajorAttackEventResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
560
728
|
# 查询默认证书列表
|
561
729
|
|
562
730
|
# @param request: Request instance for DescribeDefaultCertificates.
|
@@ -821,6 +989,30 @@ module TencentCloud
|
|
821
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
990
|
end
|
823
991
|
|
992
|
+
# 查询七层监控类时序流量数据
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeOverviewL7Data.
|
995
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOverviewL7DataRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOverviewL7DataResponse`
|
997
|
+
def DescribeOverviewL7Data(request)
|
998
|
+
body = send_request('DescribeOverviewL7Data', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeOverviewL7DataResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
824
1016
|
# 查询预热任务状态
|
825
1017
|
|
826
1018
|
# @param request: Request instance for DescribePrefetchTasks.
|
@@ -1013,6 +1205,246 @@ module TencentCloud
|
|
1013
1205
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
1206
|
end
|
1015
1207
|
|
1208
|
+
# 四层时序流量数据查询
|
1209
|
+
|
1210
|
+
# @param request: Request instance for DescribeTimingL4Data.
|
1211
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTimingL4DataRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTimingL4DataResponse`
|
1213
|
+
def DescribeTimingL4Data(request)
|
1214
|
+
body = send_request('DescribeTimingL4Data', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = DescribeTimingL4DataResponse.new
|
1218
|
+
model.deserialize(response['Response'])
|
1219
|
+
model
|
1220
|
+
else
|
1221
|
+
code = response['Response']['Error']['Code']
|
1222
|
+
message = response['Response']['Error']['Message']
|
1223
|
+
reqid = response['Response']['RequestId']
|
1224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1225
|
+
end
|
1226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1227
|
+
raise e
|
1228
|
+
rescue StandardError => e
|
1229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# 查询七层数据分析类时序流量数据
|
1233
|
+
|
1234
|
+
# @param request: Request instance for DescribeTimingL7AnalysisData.
|
1235
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7AnalysisDataRequest`
|
1236
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTimingL7AnalysisDataResponse`
|
1237
|
+
def DescribeTimingL7AnalysisData(request)
|
1238
|
+
body = send_request('DescribeTimingL7AnalysisData', request.serialize)
|
1239
|
+
response = JSON.parse(body)
|
1240
|
+
if response['Response'].key?('Error') == false
|
1241
|
+
model = DescribeTimingL7AnalysisDataResponse.new
|
1242
|
+
model.deserialize(response['Response'])
|
1243
|
+
model
|
1244
|
+
else
|
1245
|
+
code = response['Response']['Error']['Code']
|
1246
|
+
message = response['Response']['Error']['Message']
|
1247
|
+
reqid = response['Response']['RequestId']
|
1248
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1249
|
+
end
|
1250
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1251
|
+
raise e
|
1252
|
+
rescue StandardError => e
|
1253
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
# 查询top类流量数据
|
1257
|
+
|
1258
|
+
# @param request: Request instance for DescribeTopL7AnalysisData.
|
1259
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeTopL7AnalysisDataRequest`
|
1260
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeTopL7AnalysisDataResponse`
|
1261
|
+
def DescribeTopL7AnalysisData(request)
|
1262
|
+
body = send_request('DescribeTopL7AnalysisData', request.serialize)
|
1263
|
+
response = JSON.parse(body)
|
1264
|
+
if response['Response'].key?('Error') == false
|
1265
|
+
model = DescribeTopL7AnalysisDataResponse.new
|
1266
|
+
model.deserialize(response['Response'])
|
1267
|
+
model
|
1268
|
+
else
|
1269
|
+
code = response['Response']['Error']['Code']
|
1270
|
+
message = response['Response']['Error']['Message']
|
1271
|
+
reqid = response['Response']['RequestId']
|
1272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1273
|
+
end
|
1274
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1275
|
+
raise e
|
1276
|
+
rescue StandardError => e
|
1277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# 查询Web托管攻击事件
|
1281
|
+
|
1282
|
+
# @param request: Request instance for DescribeWebManagedRulesAttackEvents.
|
1283
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesAttackEventsRequest`
|
1284
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesAttackEventsResponse`
|
1285
|
+
def DescribeWebManagedRulesAttackEvents(request)
|
1286
|
+
body = send_request('DescribeWebManagedRulesAttackEvents', request.serialize)
|
1287
|
+
response = JSON.parse(body)
|
1288
|
+
if response['Response'].key?('Error') == false
|
1289
|
+
model = DescribeWebManagedRulesAttackEventsResponse.new
|
1290
|
+
model.deserialize(response['Response'])
|
1291
|
+
model
|
1292
|
+
else
|
1293
|
+
code = response['Response']['Error']['Code']
|
1294
|
+
message = response['Response']['Error']['Message']
|
1295
|
+
reqid = response['Response']['RequestId']
|
1296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1297
|
+
end
|
1298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1299
|
+
raise e
|
1300
|
+
rescue StandardError => e
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# 查询Web托管规则数据
|
1305
|
+
|
1306
|
+
# @param request: Request instance for DescribeWebManagedRulesData.
|
1307
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesDataRequest`
|
1308
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesDataResponse`
|
1309
|
+
def DescribeWebManagedRulesData(request)
|
1310
|
+
body = send_request('DescribeWebManagedRulesData', request.serialize)
|
1311
|
+
response = JSON.parse(body)
|
1312
|
+
if response['Response'].key?('Error') == false
|
1313
|
+
model = DescribeWebManagedRulesDataResponse.new
|
1314
|
+
model.deserialize(response['Response'])
|
1315
|
+
model
|
1316
|
+
else
|
1317
|
+
code = response['Response']['Error']['Code']
|
1318
|
+
message = response['Response']['Error']['Message']
|
1319
|
+
reqid = response['Response']['RequestId']
|
1320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1321
|
+
end
|
1322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1323
|
+
raise e
|
1324
|
+
rescue StandardError => e
|
1325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
# 查询Web托管日志
|
1329
|
+
|
1330
|
+
# @param request: Request instance for DescribeWebManagedRulesLog.
|
1331
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesLogRequest`
|
1332
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesLogResponse`
|
1333
|
+
def DescribeWebManagedRulesLog(request)
|
1334
|
+
body = send_request('DescribeWebManagedRulesLog', request.serialize)
|
1335
|
+
response = JSON.parse(body)
|
1336
|
+
if response['Response'].key?('Error') == false
|
1337
|
+
model = DescribeWebManagedRulesLogResponse.new
|
1338
|
+
model.deserialize(response['Response'])
|
1339
|
+
model
|
1340
|
+
else
|
1341
|
+
code = response['Response']['Error']['Code']
|
1342
|
+
message = response['Response']['Error']['Message']
|
1343
|
+
reqid = response['Response']['RequestId']
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
+
end
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
+
raise e
|
1348
|
+
rescue StandardError => e
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# 查询Web托管规则Top数据
|
1353
|
+
|
1354
|
+
# @param request: Request instance for DescribeWebManagedRulesTopData.
|
1355
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesTopDataRequest`
|
1356
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebManagedRulesTopDataResponse`
|
1357
|
+
def DescribeWebManagedRulesTopData(request)
|
1358
|
+
body = send_request('DescribeWebManagedRulesTopData', request.serialize)
|
1359
|
+
response = JSON.parse(body)
|
1360
|
+
if response['Response'].key?('Error') == false
|
1361
|
+
model = DescribeWebManagedRulesTopDataResponse.new
|
1362
|
+
model.deserialize(response['Response'])
|
1363
|
+
model
|
1364
|
+
else
|
1365
|
+
code = response['Response']['Error']['Code']
|
1366
|
+
message = response['Response']['Error']['Message']
|
1367
|
+
reqid = response['Response']['RequestId']
|
1368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1369
|
+
end
|
1370
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1371
|
+
raise e
|
1372
|
+
rescue StandardError => e
|
1373
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# 查询web防护攻击事件
|
1377
|
+
|
1378
|
+
# @param request: Request instance for DescribeWebProtectionAttackEvents.
|
1379
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionAttackEventsRequest`
|
1380
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionAttackEventsResponse`
|
1381
|
+
def DescribeWebProtectionAttackEvents(request)
|
1382
|
+
body = send_request('DescribeWebProtectionAttackEvents', request.serialize)
|
1383
|
+
response = JSON.parse(body)
|
1384
|
+
if response['Response'].key?('Error') == false
|
1385
|
+
model = DescribeWebProtectionAttackEventsResponse.new
|
1386
|
+
model.deserialize(response['Response'])
|
1387
|
+
model
|
1388
|
+
else
|
1389
|
+
code = response['Response']['Error']['Code']
|
1390
|
+
message = response['Response']['Error']['Message']
|
1391
|
+
reqid = response['Response']['RequestId']
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1393
|
+
end
|
1394
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1395
|
+
raise e
|
1396
|
+
rescue StandardError => e
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# 查询web防护数据
|
1401
|
+
|
1402
|
+
# @param request: Request instance for DescribeWebProtectionData.
|
1403
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionDataRequest`
|
1404
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionDataResponse`
|
1405
|
+
def DescribeWebProtectionData(request)
|
1406
|
+
body = send_request('DescribeWebProtectionData', request.serialize)
|
1407
|
+
response = JSON.parse(body)
|
1408
|
+
if response['Response'].key?('Error') == false
|
1409
|
+
model = DescribeWebProtectionDataResponse.new
|
1410
|
+
model.deserialize(response['Response'])
|
1411
|
+
model
|
1412
|
+
else
|
1413
|
+
code = response['Response']['Error']['Code']
|
1414
|
+
message = response['Response']['Error']['Message']
|
1415
|
+
reqid = response['Response']['RequestId']
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1417
|
+
end
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1419
|
+
raise e
|
1420
|
+
rescue StandardError => e
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# 查询web防护日志
|
1425
|
+
|
1426
|
+
# @param request: Request instance for DescribeWebProtectionLog.
|
1427
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionLogRequest`
|
1428
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeWebProtectionLogResponse`
|
1429
|
+
def DescribeWebProtectionLog(request)
|
1430
|
+
body = send_request('DescribeWebProtectionLog', request.serialize)
|
1431
|
+
response = JSON.parse(body)
|
1432
|
+
if response['Response'].key?('Error') == false
|
1433
|
+
model = DescribeWebProtectionLogResponse.new
|
1434
|
+
model.deserialize(response['Response'])
|
1435
|
+
model
|
1436
|
+
else
|
1437
|
+
code = response['Response']['Error']['Code']
|
1438
|
+
message = response['Response']['Error']['Message']
|
1439
|
+
reqid = response['Response']['RequestId']
|
1440
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1441
|
+
end
|
1442
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1443
|
+
raise e
|
1444
|
+
rescue StandardError => e
|
1445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
|
+
end
|
1447
|
+
|
1016
1448
|
# 查询所有DDoS防护分区
|
1017
1449
|
|
1018
1450
|
# @param request: Request instance for DescribeZoneDDoSPolicy.
|