tencentcloud-sdk-waf 3.0.649 → 3.0.650
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +482 -0
- data/lib/v20180125/models.rb +1630 -156
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597f6690aac8610a2576a43b616c12067a3afe38
|
4
|
+
data.tar.gz: 28998811702ab6e90eebb946bc84aef9bf079a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca60edb36647293ec7aaaaea292e4074976a4fb5ac8c419245183f6898c92a63de3df88216149517ec6d4d3fe33e372391948e974e82de3d09944ed148651fd6
|
7
|
+
data.tar.gz: 5285fff5fa8ecb8d4a0441f5c7aa5b40d1d7ca8321466fbbe64e9fc67554fe5a855d5364e2b281e183c954894f962c3a5d81e18e97e43824763c5c2f1c9e84fd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.650
|
data/lib/v20180125/client.rb
CHANGED
@@ -29,6 +29,54 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 添加防篡改url
|
33
|
+
|
34
|
+
# @param request: Request instance for AddAntiFakeUrl.
|
35
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::AddAntiFakeUrlRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::AddAntiFakeUrlResponse`
|
37
|
+
def AddAntiFakeUrl(request)
|
38
|
+
body = send_request('AddAntiFakeUrl', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddAntiFakeUrlResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 添加信息防泄漏规则
|
57
|
+
|
58
|
+
# @param request: Request instance for AddAntiInfoLeakRules.
|
59
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::AddAntiInfoLeakRulesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::AddAntiInfoLeakRulesResponse`
|
61
|
+
def AddAntiInfoLeakRules(request)
|
62
|
+
body = send_request('AddAntiInfoLeakRules', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddAntiInfoLeakRulesResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
32
80
|
# 增加访问控制(自定义策略)
|
33
81
|
|
34
82
|
# @param request: Request instance for AddCustomRule.
|
@@ -245,6 +293,54 @@ module TencentCloud
|
|
245
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
294
|
end
|
247
295
|
|
296
|
+
# 删除防篡改url
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteAntiFakeUrl.
|
299
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteAntiFakeUrlRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteAntiFakeUrlResponse`
|
301
|
+
def DeleteAntiFakeUrl(request)
|
302
|
+
body = send_request('DeleteAntiFakeUrl', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteAntiFakeUrlResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
320
|
+
# 信息防泄漏删除规则
|
321
|
+
|
322
|
+
# @param request: Request instance for DeleteAntiInfoLeakRule.
|
323
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteAntiInfoLeakRuleRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteAntiInfoLeakRuleResponse`
|
325
|
+
def DeleteAntiInfoLeakRule(request)
|
326
|
+
body = send_request('DeleteAntiInfoLeakRule', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DeleteAntiInfoLeakRuleResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
248
344
|
# 删除攻击日志下载任务记录
|
249
345
|
|
250
346
|
# @param request: Request instance for DeleteAttackDownloadRecord.
|
@@ -269,6 +365,30 @@ module TencentCloud
|
|
269
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
366
|
end
|
271
367
|
|
368
|
+
# Waf CC V2 Delete接口
|
369
|
+
|
370
|
+
# @param request: Request instance for DeleteCCRule.
|
371
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteCCRuleRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteCCRuleResponse`
|
373
|
+
def DeleteCCRule(request)
|
374
|
+
body = send_request('DeleteCCRule', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DeleteCCRuleResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
272
392
|
# 删除自定义规则
|
273
393
|
|
274
394
|
# @param request: Request instance for DeleteCustomRule.
|
@@ -558,6 +678,104 @@ module TencentCloud
|
|
558
678
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
679
|
end
|
560
680
|
|
681
|
+
# 获取防篡改url
|
682
|
+
|
683
|
+
# @param request: Request instance for DescribeAntiFakeRules.
|
684
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAntiFakeRulesRequest`
|
685
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAntiFakeRulesResponse`
|
686
|
+
def DescribeAntiFakeRules(request)
|
687
|
+
body = send_request('DescribeAntiFakeRules', request.serialize)
|
688
|
+
response = JSON.parse(body)
|
689
|
+
if response['Response'].key?('Error') == false
|
690
|
+
model = DescribeAntiFakeRulesResponse.new
|
691
|
+
model.deserialize(response['Response'])
|
692
|
+
model
|
693
|
+
else
|
694
|
+
code = response['Response']['Error']['Code']
|
695
|
+
message = response['Response']['Error']['Message']
|
696
|
+
reqid = response['Response']['RequestId']
|
697
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
698
|
+
end
|
699
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
700
|
+
raise e
|
701
|
+
rescue StandardError => e
|
702
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
703
|
+
end
|
704
|
+
|
705
|
+
# 获取防篡改url
|
706
|
+
|
707
|
+
# @param request: Request instance for DescribeAntiFakeUrl.
|
708
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAntiFakeUrlRequest`
|
709
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAntiFakeUrlResponse`
|
710
|
+
def DescribeAntiFakeUrl(request)
|
711
|
+
body = send_request('DescribeAntiFakeUrl', request.serialize)
|
712
|
+
response = JSON.parse(body)
|
713
|
+
if response['Response'].key?('Error') == false
|
714
|
+
model = DescribeAntiFakeUrlResponse.new
|
715
|
+
model.deserialize(response['Response'])
|
716
|
+
model
|
717
|
+
else
|
718
|
+
code = response['Response']['Error']['Code']
|
719
|
+
message = response['Response']['Error']['Message']
|
720
|
+
reqid = response['Response']['RequestId']
|
721
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
722
|
+
end
|
723
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
724
|
+
raise e
|
725
|
+
rescue StandardError => e
|
726
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
727
|
+
end
|
728
|
+
|
729
|
+
# 老接口已经不再使用。
|
730
|
+
|
731
|
+
# 获取信息防泄漏规则列表
|
732
|
+
|
733
|
+
# @param request: Request instance for DescribeAntiInfoLeakRules.
|
734
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAntiInfoLeakRulesRequest`
|
735
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAntiInfoLeakRulesResponse`
|
736
|
+
def DescribeAntiInfoLeakRules(request)
|
737
|
+
body = send_request('DescribeAntiInfoLeakRules', request.serialize)
|
738
|
+
response = JSON.parse(body)
|
739
|
+
if response['Response'].key?('Error') == false
|
740
|
+
model = DescribeAntiInfoLeakRulesResponse.new
|
741
|
+
model.deserialize(response['Response'])
|
742
|
+
model
|
743
|
+
else
|
744
|
+
code = response['Response']['Error']['Code']
|
745
|
+
message = response['Response']['Error']['Message']
|
746
|
+
reqid = response['Response']['RequestId']
|
747
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
748
|
+
end
|
749
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
750
|
+
raise e
|
751
|
+
rescue StandardError => e
|
752
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
753
|
+
end
|
754
|
+
|
755
|
+
# 取得信息防泄漏规则列表
|
756
|
+
|
757
|
+
# @param request: Request instance for DescribeAntiInfoLeakageRules.
|
758
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAntiInfoLeakageRulesRequest`
|
759
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAntiInfoLeakageRulesResponse`
|
760
|
+
def DescribeAntiInfoLeakageRules(request)
|
761
|
+
body = send_request('DescribeAntiInfoLeakageRules', request.serialize)
|
762
|
+
response = JSON.parse(body)
|
763
|
+
if response['Response'].key?('Error') == false
|
764
|
+
model = DescribeAntiInfoLeakageRulesResponse.new
|
765
|
+
model.deserialize(response['Response'])
|
766
|
+
model
|
767
|
+
else
|
768
|
+
code = response['Response']['Error']['Code']
|
769
|
+
message = response['Response']['Error']['Message']
|
770
|
+
reqid = response['Response']['RequestId']
|
771
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
772
|
+
end
|
773
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
774
|
+
raise e
|
775
|
+
rescue StandardError => e
|
776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
777
|
+
end
|
778
|
+
|
561
779
|
# 攻击总览
|
562
780
|
|
563
781
|
# @param request: Request instance for DescribeAttackOverview.
|
@@ -608,6 +826,78 @@ module TencentCloud
|
|
608
826
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
609
827
|
end
|
610
828
|
|
829
|
+
# Waf 多域名ip黑白名单查询
|
830
|
+
|
831
|
+
# @param request: Request instance for DescribeBatchIpAccessControl.
|
832
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBatchIpAccessControlRequest`
|
833
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBatchIpAccessControlResponse`
|
834
|
+
def DescribeBatchIpAccessControl(request)
|
835
|
+
body = send_request('DescribeBatchIpAccessControl', request.serialize)
|
836
|
+
response = JSON.parse(body)
|
837
|
+
if response['Response'].key?('Error') == false
|
838
|
+
model = DescribeBatchIpAccessControlResponse.new
|
839
|
+
model.deserialize(response['Response'])
|
840
|
+
model
|
841
|
+
else
|
842
|
+
code = response['Response']['Error']['Code']
|
843
|
+
message = response['Response']['Error']['Message']
|
844
|
+
reqid = response['Response']['RequestId']
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
846
|
+
end
|
847
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
848
|
+
raise e
|
849
|
+
rescue StandardError => e
|
850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
851
|
+
end
|
852
|
+
|
853
|
+
# Waf CC V2 Query接口
|
854
|
+
|
855
|
+
# @param request: Request instance for DescribeCCRule.
|
856
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeCCRuleRequest`
|
857
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCCRuleResponse`
|
858
|
+
def DescribeCCRule(request)
|
859
|
+
body = send_request('DescribeCCRule', request.serialize)
|
860
|
+
response = JSON.parse(body)
|
861
|
+
if response['Response'].key?('Error') == false
|
862
|
+
model = DescribeCCRuleResponse.new
|
863
|
+
model.deserialize(response['Response'])
|
864
|
+
model
|
865
|
+
else
|
866
|
+
code = response['Response']['Error']['Code']
|
867
|
+
message = response['Response']['Error']['Message']
|
868
|
+
reqid = response['Response']['RequestId']
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
870
|
+
end
|
871
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
872
|
+
raise e
|
873
|
+
rescue StandardError => e
|
874
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
875
|
+
end
|
876
|
+
|
877
|
+
# 根据多条件查询CC规则
|
878
|
+
|
879
|
+
# @param request: Request instance for DescribeCCRuleList.
|
880
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeCCRuleListRequest`
|
881
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCCRuleListResponse`
|
882
|
+
def DescribeCCRuleList(request)
|
883
|
+
body = send_request('DescribeCCRuleList', request.serialize)
|
884
|
+
response = JSON.parse(body)
|
885
|
+
if response['Response'].key?('Error') == false
|
886
|
+
model = DescribeCCRuleListResponse.new
|
887
|
+
model.deserialize(response['Response'])
|
888
|
+
model
|
889
|
+
else
|
890
|
+
code = response['Response']['Error']['Code']
|
891
|
+
message = response['Response']['Error']['Message']
|
892
|
+
reqid = response['Response']['RequestId']
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
894
|
+
end
|
895
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
896
|
+
raise e
|
897
|
+
rescue StandardError => e
|
898
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
899
|
+
end
|
900
|
+
|
611
901
|
# 查询加密套件信息
|
612
902
|
|
613
903
|
# @param request: Request instance for DescribeCiphersDetail.
|
@@ -1088,6 +1378,30 @@ module TencentCloud
|
|
1088
1378
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1089
1379
|
end
|
1090
1380
|
|
1381
|
+
# Waf 会话定义查询接口
|
1382
|
+
|
1383
|
+
# @param request: Request instance for DescribeSession.
|
1384
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeSessionRequest`
|
1385
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeSessionResponse`
|
1386
|
+
def DescribeSession(request)
|
1387
|
+
body = send_request('DescribeSession', request.serialize)
|
1388
|
+
response = JSON.parse(body)
|
1389
|
+
if response['Response'].key?('Error') == false
|
1390
|
+
model = DescribeSessionResponse.new
|
1391
|
+
model.deserialize(response['Response'])
|
1392
|
+
model
|
1393
|
+
else
|
1394
|
+
code = response['Response']['Error']['Code']
|
1395
|
+
message = response['Response']['Error']['Message']
|
1396
|
+
reqid = response['Response']['RequestId']
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1398
|
+
end
|
1399
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1400
|
+
raise e
|
1401
|
+
rescue StandardError => e
|
1402
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1403
|
+
end
|
1404
|
+
|
1091
1405
|
# 查询用户TLS版本
|
1092
1406
|
|
1093
1407
|
# @param request: Request instance for DescribeTlsVersion.
|
@@ -1402,6 +1716,102 @@ module TencentCloud
|
|
1402
1716
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1403
1717
|
end
|
1404
1718
|
|
1719
|
+
# 编辑防篡改url
|
1720
|
+
|
1721
|
+
# @param request: Request instance for ModifyAntiFakeUrl.
|
1722
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAntiFakeUrlRequest`
|
1723
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAntiFakeUrlResponse`
|
1724
|
+
def ModifyAntiFakeUrl(request)
|
1725
|
+
body = send_request('ModifyAntiFakeUrl', request.serialize)
|
1726
|
+
response = JSON.parse(body)
|
1727
|
+
if response['Response'].key?('Error') == false
|
1728
|
+
model = ModifyAntiFakeUrlResponse.new
|
1729
|
+
model.deserialize(response['Response'])
|
1730
|
+
model
|
1731
|
+
else
|
1732
|
+
code = response['Response']['Error']['Code']
|
1733
|
+
message = response['Response']['Error']['Message']
|
1734
|
+
reqid = response['Response']['RequestId']
|
1735
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1736
|
+
end
|
1737
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1738
|
+
raise e
|
1739
|
+
rescue StandardError => e
|
1740
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1741
|
+
end
|
1742
|
+
|
1743
|
+
# 切换防篡改开关
|
1744
|
+
|
1745
|
+
# @param request: Request instance for ModifyAntiFakeUrlStatus.
|
1746
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAntiFakeUrlStatusRequest`
|
1747
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAntiFakeUrlStatusResponse`
|
1748
|
+
def ModifyAntiFakeUrlStatus(request)
|
1749
|
+
body = send_request('ModifyAntiFakeUrlStatus', request.serialize)
|
1750
|
+
response = JSON.parse(body)
|
1751
|
+
if response['Response'].key?('Error') == false
|
1752
|
+
model = ModifyAntiFakeUrlStatusResponse.new
|
1753
|
+
model.deserialize(response['Response'])
|
1754
|
+
model
|
1755
|
+
else
|
1756
|
+
code = response['Response']['Error']['Code']
|
1757
|
+
message = response['Response']['Error']['Message']
|
1758
|
+
reqid = response['Response']['RequestId']
|
1759
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1760
|
+
end
|
1761
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1762
|
+
raise e
|
1763
|
+
rescue StandardError => e
|
1764
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
# 信息防泄漏切换规则开关
|
1768
|
+
|
1769
|
+
# @param request: Request instance for ModifyAntiInfoLeakRuleStatus.
|
1770
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAntiInfoLeakRuleStatusRequest`
|
1771
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAntiInfoLeakRuleStatusResponse`
|
1772
|
+
def ModifyAntiInfoLeakRuleStatus(request)
|
1773
|
+
body = send_request('ModifyAntiInfoLeakRuleStatus', request.serialize)
|
1774
|
+
response = JSON.parse(body)
|
1775
|
+
if response['Response'].key?('Error') == false
|
1776
|
+
model = ModifyAntiInfoLeakRuleStatusResponse.new
|
1777
|
+
model.deserialize(response['Response'])
|
1778
|
+
model
|
1779
|
+
else
|
1780
|
+
code = response['Response']['Error']['Code']
|
1781
|
+
message = response['Response']['Error']['Message']
|
1782
|
+
reqid = response['Response']['RequestId']
|
1783
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1784
|
+
end
|
1785
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1786
|
+
raise e
|
1787
|
+
rescue StandardError => e
|
1788
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# 编辑信息防泄漏规则
|
1792
|
+
|
1793
|
+
# @param request: Request instance for ModifyAntiInfoLeakRules.
|
1794
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAntiInfoLeakRulesRequest`
|
1795
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAntiInfoLeakRulesResponse`
|
1796
|
+
def ModifyAntiInfoLeakRules(request)
|
1797
|
+
body = send_request('ModifyAntiInfoLeakRules', request.serialize)
|
1798
|
+
response = JSON.parse(body)
|
1799
|
+
if response['Response'].key?('Error') == false
|
1800
|
+
model = ModifyAntiInfoLeakRulesResponse.new
|
1801
|
+
model.deserialize(response['Response'])
|
1802
|
+
model
|
1803
|
+
else
|
1804
|
+
code = response['Response']['Error']['Code']
|
1805
|
+
message = response['Response']['Error']['Message']
|
1806
|
+
reqid = response['Response']['RequestId']
|
1807
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1808
|
+
end
|
1809
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1810
|
+
raise e
|
1811
|
+
rescue StandardError => e
|
1812
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1813
|
+
end
|
1814
|
+
|
1405
1815
|
# api分析页面开关
|
1406
1816
|
|
1407
1817
|
# @param request: Request instance for ModifyApiAnalyzeStatus.
|
@@ -1546,6 +1956,30 @@ module TencentCloud
|
|
1546
1956
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1547
1957
|
end
|
1548
1958
|
|
1959
|
+
# 开启或禁用精准白名单
|
1960
|
+
|
1961
|
+
# @param request: Request instance for ModifyCustomWhiteRuleStatus.
|
1962
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyCustomWhiteRuleStatusRequest`
|
1963
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyCustomWhiteRuleStatusResponse`
|
1964
|
+
def ModifyCustomWhiteRuleStatus(request)
|
1965
|
+
body = send_request('ModifyCustomWhiteRuleStatus', request.serialize)
|
1966
|
+
response = JSON.parse(body)
|
1967
|
+
if response['Response'].key?('Error') == false
|
1968
|
+
model = ModifyCustomWhiteRuleStatusResponse.new
|
1969
|
+
model.deserialize(response['Response'])
|
1970
|
+
model
|
1971
|
+
else
|
1972
|
+
code = response['Response']['Error']['Code']
|
1973
|
+
message = response['Response']['Error']['Message']
|
1974
|
+
reqid = response['Response']['RequestId']
|
1975
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1976
|
+
end
|
1977
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1978
|
+
raise e
|
1979
|
+
rescue StandardError => e
|
1980
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1981
|
+
end
|
1982
|
+
|
1549
1983
|
# 修改ipv6开关
|
1550
1984
|
|
1551
1985
|
# @param request: Request instance for ModifyDomainIpv6Status.
|
@@ -1979,6 +2413,30 @@ module TencentCloud
|
|
1979
2413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1980
2414
|
end
|
1981
2415
|
|
2416
|
+
# Waf CC V2 Upsert接口
|
2417
|
+
|
2418
|
+
# @param request: Request instance for UpsertCCRule.
|
2419
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::UpsertCCRuleRequest`
|
2420
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::UpsertCCRuleResponse`
|
2421
|
+
def UpsertCCRule(request)
|
2422
|
+
body = send_request('UpsertCCRule', request.serialize)
|
2423
|
+
response = JSON.parse(body)
|
2424
|
+
if response['Response'].key?('Error') == false
|
2425
|
+
model = UpsertCCRuleResponse.new
|
2426
|
+
model.deserialize(response['Response'])
|
2427
|
+
model
|
2428
|
+
else
|
2429
|
+
code = response['Response']['Error']['Code']
|
2430
|
+
message = response['Response']['Error']['Message']
|
2431
|
+
reqid = response['Response']['RequestId']
|
2432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2433
|
+
end
|
2434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2435
|
+
raise e
|
2436
|
+
rescue StandardError => e
|
2437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2438
|
+
end
|
2439
|
+
|
1982
2440
|
# Waf IP黑白名单Upsert接口
|
1983
2441
|
|
1984
2442
|
# @param request: Request instance for UpsertIpAccessControl.
|
@@ -2003,6 +2461,30 @@ module TencentCloud
|
|
2003
2461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2004
2462
|
end
|
2005
2463
|
|
2464
|
+
# Waf 会话定义 Upsert接口
|
2465
|
+
|
2466
|
+
# @param request: Request instance for UpsertSession.
|
2467
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::UpsertSessionRequest`
|
2468
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::UpsertSessionResponse`
|
2469
|
+
def UpsertSession(request)
|
2470
|
+
body = send_request('UpsertSession', request.serialize)
|
2471
|
+
response = JSON.parse(body)
|
2472
|
+
if response['Response'].key?('Error') == false
|
2473
|
+
model = UpsertSessionResponse.new
|
2474
|
+
model.deserialize(response['Response'])
|
2475
|
+
model
|
2476
|
+
else
|
2477
|
+
code = response['Response']['Error']['Code']
|
2478
|
+
message = response['Response']['Error']['Message']
|
2479
|
+
reqid = response['Response']['RequestId']
|
2480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2481
|
+
end
|
2482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2483
|
+
raise e
|
2484
|
+
rescue StandardError => e
|
2485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2486
|
+
end
|
2487
|
+
|
2006
2488
|
|
2007
2489
|
end
|
2008
2490
|
end
|