tencentcloud-sdk-python 3.0.970__py2.py3-none-any.whl → 3.0.972__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apigateway/v20180808/models.py +27 -2
- tencentcloud/asr/v20190614/asr_client.py +1 -1
- tencentcloud/asr/v20190614/models.py +2 -2
- tencentcloud/bma/v20221115/models.py +25 -0
- tencentcloud/cdwch/v20200915/cdwch_client.py +92 -0
- tencentcloud/cdwch/v20200915/models.py +481 -0
- tencentcloud/ckafka/v20190819/models.py +105 -0
- tencentcloud/csip/v20221121/models.py +13 -0
- tencentcloud/cvm/v20170312/cvm_client.py +4 -4
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cwp/v20180228/models.py +24 -0
- tencentcloud/cynosdb/v20190107/models.py +2 -2
- tencentcloud/dbbrain/v20210527/models.py +24 -0
- tencentcloud/dsgc/v20190723/dsgc_client.py +46 -0
- tencentcloud/dsgc/v20190723/models.py +530 -14
- tencentcloud/ess/v20201111/models.py +1 -1
- tencentcloud/faceid/v20180301/models.py +33 -1
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +1 -1
- tencentcloud/oceanus/v20190422/models.py +130 -0
- tencentcloud/ses/v20201002/errorcodes.py +2 -2
- tencentcloud/trtc/v20190722/models.py +2 -1
- tencentcloud/tsf/v20180326/models.py +2 -2
- tencentcloud/vod/v20180717/models.py +96 -0
- tencentcloud/vpc/v20170312/models.py +210 -13
- tencentcloud/vpc/v20170312/vpc_client.py +48 -0
- tencentcloud/waf/v20180125/errorcodes.py +6 -0
- tencentcloud/waf/v20180125/models.py +8758 -5573
- tencentcloud/waf/v20180125/waf_client.py +462 -0
- tencentcloud/wedata/v20210820/models.py +13 -0
- {tencentcloud_sdk_python-3.0.970.dist-info → tencentcloud_sdk_python-3.0.972.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.970.dist-info → tencentcloud_sdk_python-3.0.972.dist-info}/RECORD +35 -35
- {tencentcloud_sdk_python-3.0.970.dist-info → tencentcloud_sdk_python-3.0.972.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.970.dist-info → tencentcloud_sdk_python-3.0.972.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.970.dist-info → tencentcloud_sdk_python-3.0.972.dist-info}/top_level.txt +0 -0
|
@@ -26,6 +26,52 @@ class WafClient(AbstractClient):
|
|
|
26
26
|
_service = 'waf'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def AddAntiFakeUrl(self, request):
|
|
30
|
+
"""添加防篡改url
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for AddAntiFakeUrl.
|
|
33
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.AddAntiFakeUrlRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.AddAntiFakeUrlResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("AddAntiFakeUrl", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.AddAntiFakeUrlResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def AddAntiInfoLeakRules(self, request):
|
|
53
|
+
"""添加信息防泄漏规则
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for AddAntiInfoLeakRules.
|
|
56
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.AddAntiInfoLeakRulesRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.AddAntiInfoLeakRulesResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("AddAntiInfoLeakRules", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.AddAntiInfoLeakRulesResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
29
75
|
def AddCustomRule(self, request):
|
|
30
76
|
"""增加访问控制(自定义策略)
|
|
31
77
|
|
|
@@ -233,6 +279,52 @@ class WafClient(AbstractClient):
|
|
|
233
279
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
280
|
|
|
235
281
|
|
|
282
|
+
def DeleteAntiFakeUrl(self, request):
|
|
283
|
+
"""删除防篡改url
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DeleteAntiFakeUrl.
|
|
286
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DeleteAntiFakeUrlRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DeleteAntiFakeUrlResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DeleteAntiFakeUrl", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DeleteAntiFakeUrlResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def DeleteAntiInfoLeakRule(self, request):
|
|
306
|
+
"""信息防泄漏删除规则
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DeleteAntiInfoLeakRule.
|
|
309
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DeleteAntiInfoLeakRuleRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DeleteAntiInfoLeakRuleResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DeleteAntiInfoLeakRule", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DeleteAntiInfoLeakRuleResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
236
328
|
def DeleteAttackDownloadRecord(self, request):
|
|
237
329
|
"""删除攻击日志下载任务记录
|
|
238
330
|
|
|
@@ -256,6 +348,29 @@ class WafClient(AbstractClient):
|
|
|
256
348
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
349
|
|
|
258
350
|
|
|
351
|
+
def DeleteCCRule(self, request):
|
|
352
|
+
"""Waf CC V2 Delete接口
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for DeleteCCRule.
|
|
355
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DeleteCCRuleRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DeleteCCRuleResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("DeleteCCRule", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.DeleteCCRuleResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
259
374
|
def DeleteCustomRule(self, request):
|
|
260
375
|
"""删除自定义规则
|
|
261
376
|
|
|
@@ -533,6 +648,100 @@ class WafClient(AbstractClient):
|
|
|
533
648
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
534
649
|
|
|
535
650
|
|
|
651
|
+
def DescribeAntiFakeRules(self, request):
|
|
652
|
+
"""获取防篡改url
|
|
653
|
+
|
|
654
|
+
:param request: Request instance for DescribeAntiFakeRules.
|
|
655
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAntiFakeRulesRequest`
|
|
656
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAntiFakeRulesResponse`
|
|
657
|
+
|
|
658
|
+
"""
|
|
659
|
+
try:
|
|
660
|
+
params = request._serialize()
|
|
661
|
+
headers = request.headers
|
|
662
|
+
body = self.call("DescribeAntiFakeRules", params, headers=headers)
|
|
663
|
+
response = json.loads(body)
|
|
664
|
+
model = models.DescribeAntiFakeRulesResponse()
|
|
665
|
+
model._deserialize(response["Response"])
|
|
666
|
+
return model
|
|
667
|
+
except Exception as e:
|
|
668
|
+
if isinstance(e, TencentCloudSDKException):
|
|
669
|
+
raise
|
|
670
|
+
else:
|
|
671
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
def DescribeAntiFakeUrl(self, request):
|
|
675
|
+
"""获取防篡改url
|
|
676
|
+
|
|
677
|
+
:param request: Request instance for DescribeAntiFakeUrl.
|
|
678
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAntiFakeUrlRequest`
|
|
679
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAntiFakeUrlResponse`
|
|
680
|
+
|
|
681
|
+
"""
|
|
682
|
+
try:
|
|
683
|
+
params = request._serialize()
|
|
684
|
+
headers = request.headers
|
|
685
|
+
body = self.call("DescribeAntiFakeUrl", params, headers=headers)
|
|
686
|
+
response = json.loads(body)
|
|
687
|
+
model = models.DescribeAntiFakeUrlResponse()
|
|
688
|
+
model._deserialize(response["Response"])
|
|
689
|
+
return model
|
|
690
|
+
except Exception as e:
|
|
691
|
+
if isinstance(e, TencentCloudSDKException):
|
|
692
|
+
raise
|
|
693
|
+
else:
|
|
694
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
def DescribeAntiInfoLeakRules(self, request):
|
|
698
|
+
"""老接口已经不再使用。
|
|
699
|
+
|
|
700
|
+
获取信息防泄漏规则列表
|
|
701
|
+
|
|
702
|
+
:param request: Request instance for DescribeAntiInfoLeakRules.
|
|
703
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAntiInfoLeakRulesRequest`
|
|
704
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAntiInfoLeakRulesResponse`
|
|
705
|
+
|
|
706
|
+
"""
|
|
707
|
+
try:
|
|
708
|
+
params = request._serialize()
|
|
709
|
+
headers = request.headers
|
|
710
|
+
body = self.call("DescribeAntiInfoLeakRules", params, headers=headers)
|
|
711
|
+
response = json.loads(body)
|
|
712
|
+
model = models.DescribeAntiInfoLeakRulesResponse()
|
|
713
|
+
model._deserialize(response["Response"])
|
|
714
|
+
return model
|
|
715
|
+
except Exception as e:
|
|
716
|
+
if isinstance(e, TencentCloudSDKException):
|
|
717
|
+
raise
|
|
718
|
+
else:
|
|
719
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
def DescribeAntiInfoLeakageRules(self, request):
|
|
723
|
+
"""取得信息防泄漏规则列表
|
|
724
|
+
|
|
725
|
+
:param request: Request instance for DescribeAntiInfoLeakageRules.
|
|
726
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAntiInfoLeakageRulesRequest`
|
|
727
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAntiInfoLeakageRulesResponse`
|
|
728
|
+
|
|
729
|
+
"""
|
|
730
|
+
try:
|
|
731
|
+
params = request._serialize()
|
|
732
|
+
headers = request.headers
|
|
733
|
+
body = self.call("DescribeAntiInfoLeakageRules", params, headers=headers)
|
|
734
|
+
response = json.loads(body)
|
|
735
|
+
model = models.DescribeAntiInfoLeakageRulesResponse()
|
|
736
|
+
model._deserialize(response["Response"])
|
|
737
|
+
return model
|
|
738
|
+
except Exception as e:
|
|
739
|
+
if isinstance(e, TencentCloudSDKException):
|
|
740
|
+
raise
|
|
741
|
+
else:
|
|
742
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
743
|
+
|
|
744
|
+
|
|
536
745
|
def DescribeAttackOverview(self, request):
|
|
537
746
|
"""攻击总览
|
|
538
747
|
|
|
@@ -581,6 +790,75 @@ class WafClient(AbstractClient):
|
|
|
581
790
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
582
791
|
|
|
583
792
|
|
|
793
|
+
def DescribeBatchIpAccessControl(self, request):
|
|
794
|
+
"""Waf 多域名ip黑白名单查询
|
|
795
|
+
|
|
796
|
+
:param request: Request instance for DescribeBatchIpAccessControl.
|
|
797
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeBatchIpAccessControlRequest`
|
|
798
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeBatchIpAccessControlResponse`
|
|
799
|
+
|
|
800
|
+
"""
|
|
801
|
+
try:
|
|
802
|
+
params = request._serialize()
|
|
803
|
+
headers = request.headers
|
|
804
|
+
body = self.call("DescribeBatchIpAccessControl", params, headers=headers)
|
|
805
|
+
response = json.loads(body)
|
|
806
|
+
model = models.DescribeBatchIpAccessControlResponse()
|
|
807
|
+
model._deserialize(response["Response"])
|
|
808
|
+
return model
|
|
809
|
+
except Exception as e:
|
|
810
|
+
if isinstance(e, TencentCloudSDKException):
|
|
811
|
+
raise
|
|
812
|
+
else:
|
|
813
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
def DescribeCCRule(self, request):
|
|
817
|
+
"""Waf CC V2 Query接口
|
|
818
|
+
|
|
819
|
+
:param request: Request instance for DescribeCCRule.
|
|
820
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeCCRuleRequest`
|
|
821
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeCCRuleResponse`
|
|
822
|
+
|
|
823
|
+
"""
|
|
824
|
+
try:
|
|
825
|
+
params = request._serialize()
|
|
826
|
+
headers = request.headers
|
|
827
|
+
body = self.call("DescribeCCRule", params, headers=headers)
|
|
828
|
+
response = json.loads(body)
|
|
829
|
+
model = models.DescribeCCRuleResponse()
|
|
830
|
+
model._deserialize(response["Response"])
|
|
831
|
+
return model
|
|
832
|
+
except Exception as e:
|
|
833
|
+
if isinstance(e, TencentCloudSDKException):
|
|
834
|
+
raise
|
|
835
|
+
else:
|
|
836
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
def DescribeCCRuleList(self, request):
|
|
840
|
+
"""根据多条件查询CC规则
|
|
841
|
+
|
|
842
|
+
:param request: Request instance for DescribeCCRuleList.
|
|
843
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeCCRuleListRequest`
|
|
844
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeCCRuleListResponse`
|
|
845
|
+
|
|
846
|
+
"""
|
|
847
|
+
try:
|
|
848
|
+
params = request._serialize()
|
|
849
|
+
headers = request.headers
|
|
850
|
+
body = self.call("DescribeCCRuleList", params, headers=headers)
|
|
851
|
+
response = json.loads(body)
|
|
852
|
+
model = models.DescribeCCRuleListResponse()
|
|
853
|
+
model._deserialize(response["Response"])
|
|
854
|
+
return model
|
|
855
|
+
except Exception as e:
|
|
856
|
+
if isinstance(e, TencentCloudSDKException):
|
|
857
|
+
raise
|
|
858
|
+
else:
|
|
859
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
860
|
+
|
|
861
|
+
|
|
584
862
|
def DescribeCiphersDetail(self, request):
|
|
585
863
|
"""查询加密套件信息
|
|
586
864
|
|
|
@@ -1041,6 +1319,29 @@ class WafClient(AbstractClient):
|
|
|
1041
1319
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1042
1320
|
|
|
1043
1321
|
|
|
1322
|
+
def DescribeSession(self, request):
|
|
1323
|
+
"""Waf 会话定义查询接口
|
|
1324
|
+
|
|
1325
|
+
:param request: Request instance for DescribeSession.
|
|
1326
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeSessionRequest`
|
|
1327
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeSessionResponse`
|
|
1328
|
+
|
|
1329
|
+
"""
|
|
1330
|
+
try:
|
|
1331
|
+
params = request._serialize()
|
|
1332
|
+
headers = request.headers
|
|
1333
|
+
body = self.call("DescribeSession", params, headers=headers)
|
|
1334
|
+
response = json.loads(body)
|
|
1335
|
+
model = models.DescribeSessionResponse()
|
|
1336
|
+
model._deserialize(response["Response"])
|
|
1337
|
+
return model
|
|
1338
|
+
except Exception as e:
|
|
1339
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1340
|
+
raise
|
|
1341
|
+
else:
|
|
1342
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1343
|
+
|
|
1344
|
+
|
|
1044
1345
|
def DescribeTlsVersion(self, request):
|
|
1045
1346
|
"""查询用户TLS版本
|
|
1046
1347
|
|
|
@@ -1342,6 +1643,98 @@ class WafClient(AbstractClient):
|
|
|
1342
1643
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1343
1644
|
|
|
1344
1645
|
|
|
1646
|
+
def ModifyAntiFakeUrl(self, request):
|
|
1647
|
+
"""编辑防篡改url
|
|
1648
|
+
|
|
1649
|
+
:param request: Request instance for ModifyAntiFakeUrl.
|
|
1650
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyAntiFakeUrlRequest`
|
|
1651
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAntiFakeUrlResponse`
|
|
1652
|
+
|
|
1653
|
+
"""
|
|
1654
|
+
try:
|
|
1655
|
+
params = request._serialize()
|
|
1656
|
+
headers = request.headers
|
|
1657
|
+
body = self.call("ModifyAntiFakeUrl", params, headers=headers)
|
|
1658
|
+
response = json.loads(body)
|
|
1659
|
+
model = models.ModifyAntiFakeUrlResponse()
|
|
1660
|
+
model._deserialize(response["Response"])
|
|
1661
|
+
return model
|
|
1662
|
+
except Exception as e:
|
|
1663
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1664
|
+
raise
|
|
1665
|
+
else:
|
|
1666
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
def ModifyAntiFakeUrlStatus(self, request):
|
|
1670
|
+
"""切换防篡改开关
|
|
1671
|
+
|
|
1672
|
+
:param request: Request instance for ModifyAntiFakeUrlStatus.
|
|
1673
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyAntiFakeUrlStatusRequest`
|
|
1674
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAntiFakeUrlStatusResponse`
|
|
1675
|
+
|
|
1676
|
+
"""
|
|
1677
|
+
try:
|
|
1678
|
+
params = request._serialize()
|
|
1679
|
+
headers = request.headers
|
|
1680
|
+
body = self.call("ModifyAntiFakeUrlStatus", params, headers=headers)
|
|
1681
|
+
response = json.loads(body)
|
|
1682
|
+
model = models.ModifyAntiFakeUrlStatusResponse()
|
|
1683
|
+
model._deserialize(response["Response"])
|
|
1684
|
+
return model
|
|
1685
|
+
except Exception as e:
|
|
1686
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1687
|
+
raise
|
|
1688
|
+
else:
|
|
1689
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
def ModifyAntiInfoLeakRuleStatus(self, request):
|
|
1693
|
+
"""信息防泄漏切换规则开关
|
|
1694
|
+
|
|
1695
|
+
:param request: Request instance for ModifyAntiInfoLeakRuleStatus.
|
|
1696
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyAntiInfoLeakRuleStatusRequest`
|
|
1697
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAntiInfoLeakRuleStatusResponse`
|
|
1698
|
+
|
|
1699
|
+
"""
|
|
1700
|
+
try:
|
|
1701
|
+
params = request._serialize()
|
|
1702
|
+
headers = request.headers
|
|
1703
|
+
body = self.call("ModifyAntiInfoLeakRuleStatus", params, headers=headers)
|
|
1704
|
+
response = json.loads(body)
|
|
1705
|
+
model = models.ModifyAntiInfoLeakRuleStatusResponse()
|
|
1706
|
+
model._deserialize(response["Response"])
|
|
1707
|
+
return model
|
|
1708
|
+
except Exception as e:
|
|
1709
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1710
|
+
raise
|
|
1711
|
+
else:
|
|
1712
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
def ModifyAntiInfoLeakRules(self, request):
|
|
1716
|
+
"""编辑信息防泄漏规则
|
|
1717
|
+
|
|
1718
|
+
:param request: Request instance for ModifyAntiInfoLeakRules.
|
|
1719
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyAntiInfoLeakRulesRequest`
|
|
1720
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAntiInfoLeakRulesResponse`
|
|
1721
|
+
|
|
1722
|
+
"""
|
|
1723
|
+
try:
|
|
1724
|
+
params = request._serialize()
|
|
1725
|
+
headers = request.headers
|
|
1726
|
+
body = self.call("ModifyAntiInfoLeakRules", params, headers=headers)
|
|
1727
|
+
response = json.loads(body)
|
|
1728
|
+
model = models.ModifyAntiInfoLeakRulesResponse()
|
|
1729
|
+
model._deserialize(response["Response"])
|
|
1730
|
+
return model
|
|
1731
|
+
except Exception as e:
|
|
1732
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1733
|
+
raise
|
|
1734
|
+
else:
|
|
1735
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1736
|
+
|
|
1737
|
+
|
|
1345
1738
|
def ModifyApiAnalyzeStatus(self, request):
|
|
1346
1739
|
"""api分析页面开关
|
|
1347
1740
|
|
|
@@ -1480,6 +1873,29 @@ class WafClient(AbstractClient):
|
|
|
1480
1873
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1481
1874
|
|
|
1482
1875
|
|
|
1876
|
+
def ModifyCustomWhiteRuleStatus(self, request):
|
|
1877
|
+
"""开启或禁用精准白名单
|
|
1878
|
+
|
|
1879
|
+
:param request: Request instance for ModifyCustomWhiteRuleStatus.
|
|
1880
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyCustomWhiteRuleStatusRequest`
|
|
1881
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyCustomWhiteRuleStatusResponse`
|
|
1882
|
+
|
|
1883
|
+
"""
|
|
1884
|
+
try:
|
|
1885
|
+
params = request._serialize()
|
|
1886
|
+
headers = request.headers
|
|
1887
|
+
body = self.call("ModifyCustomWhiteRuleStatus", params, headers=headers)
|
|
1888
|
+
response = json.loads(body)
|
|
1889
|
+
model = models.ModifyCustomWhiteRuleStatusResponse()
|
|
1890
|
+
model._deserialize(response["Response"])
|
|
1891
|
+
return model
|
|
1892
|
+
except Exception as e:
|
|
1893
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1894
|
+
raise
|
|
1895
|
+
else:
|
|
1896
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1897
|
+
|
|
1898
|
+
|
|
1483
1899
|
def ModifyDomainIpv6Status(self, request):
|
|
1484
1900
|
"""修改ipv6开关
|
|
1485
1901
|
|
|
@@ -1895,6 +2311,29 @@ class WafClient(AbstractClient):
|
|
|
1895
2311
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1896
2312
|
|
|
1897
2313
|
|
|
2314
|
+
def UpsertCCRule(self, request):
|
|
2315
|
+
"""Waf CC V2 Upsert接口
|
|
2316
|
+
|
|
2317
|
+
:param request: Request instance for UpsertCCRule.
|
|
2318
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.UpsertCCRuleRequest`
|
|
2319
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.UpsertCCRuleResponse`
|
|
2320
|
+
|
|
2321
|
+
"""
|
|
2322
|
+
try:
|
|
2323
|
+
params = request._serialize()
|
|
2324
|
+
headers = request.headers
|
|
2325
|
+
body = self.call("UpsertCCRule", params, headers=headers)
|
|
2326
|
+
response = json.loads(body)
|
|
2327
|
+
model = models.UpsertCCRuleResponse()
|
|
2328
|
+
model._deserialize(response["Response"])
|
|
2329
|
+
return model
|
|
2330
|
+
except Exception as e:
|
|
2331
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2332
|
+
raise
|
|
2333
|
+
else:
|
|
2334
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2335
|
+
|
|
2336
|
+
|
|
1898
2337
|
def UpsertIpAccessControl(self, request):
|
|
1899
2338
|
"""Waf IP黑白名单Upsert接口
|
|
1900
2339
|
|
|
@@ -1911,6 +2350,29 @@ class WafClient(AbstractClient):
|
|
|
1911
2350
|
model = models.UpsertIpAccessControlResponse()
|
|
1912
2351
|
model._deserialize(response["Response"])
|
|
1913
2352
|
return model
|
|
2353
|
+
except Exception as e:
|
|
2354
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2355
|
+
raise
|
|
2356
|
+
else:
|
|
2357
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
def UpsertSession(self, request):
|
|
2361
|
+
"""Waf 会话定义 Upsert接口
|
|
2362
|
+
|
|
2363
|
+
:param request: Request instance for UpsertSession.
|
|
2364
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.UpsertSessionRequest`
|
|
2365
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.UpsertSessionResponse`
|
|
2366
|
+
|
|
2367
|
+
"""
|
|
2368
|
+
try:
|
|
2369
|
+
params = request._serialize()
|
|
2370
|
+
headers = request.headers
|
|
2371
|
+
body = self.call("UpsertSession", params, headers=headers)
|
|
2372
|
+
response = json.loads(body)
|
|
2373
|
+
model = models.UpsertSessionResponse()
|
|
2374
|
+
model._deserialize(response["Response"])
|
|
2375
|
+
return model
|
|
1914
2376
|
except Exception as e:
|
|
1915
2377
|
if isinstance(e, TencentCloudSDKException):
|
|
1916
2378
|
raise
|
|
@@ -11302,6 +11302,9 @@ class DataSourceInfo(AbstractModel):
|
|
|
11302
11302
|
:param _ModifiedTime: 修改时间
|
|
11303
11303
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11304
11304
|
:type ModifiedTime: int
|
|
11305
|
+
:param _ShowType: 数据源页面展示类型,与Type对应
|
|
11306
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
11307
|
+
:type ShowType: str
|
|
11305
11308
|
"""
|
|
11306
11309
|
self._DatabaseName = None
|
|
11307
11310
|
self._Description = None
|
|
@@ -11333,6 +11336,7 @@ class DataSourceInfo(AbstractModel):
|
|
|
11333
11336
|
self._ParamsString = None
|
|
11334
11337
|
self._BizParamsString = None
|
|
11335
11338
|
self._ModifiedTime = None
|
|
11339
|
+
self._ShowType = None
|
|
11336
11340
|
|
|
11337
11341
|
@property
|
|
11338
11342
|
def DatabaseName(self):
|
|
@@ -11574,6 +11578,14 @@ class DataSourceInfo(AbstractModel):
|
|
|
11574
11578
|
def ModifiedTime(self, ModifiedTime):
|
|
11575
11579
|
self._ModifiedTime = ModifiedTime
|
|
11576
11580
|
|
|
11581
|
+
@property
|
|
11582
|
+
def ShowType(self):
|
|
11583
|
+
return self._ShowType
|
|
11584
|
+
|
|
11585
|
+
@ShowType.setter
|
|
11586
|
+
def ShowType(self, ShowType):
|
|
11587
|
+
self._ShowType = ShowType
|
|
11588
|
+
|
|
11577
11589
|
|
|
11578
11590
|
def _deserialize(self, params):
|
|
11579
11591
|
self._DatabaseName = params.get("DatabaseName")
|
|
@@ -11606,6 +11618,7 @@ class DataSourceInfo(AbstractModel):
|
|
|
11606
11618
|
self._ParamsString = params.get("ParamsString")
|
|
11607
11619
|
self._BizParamsString = params.get("BizParamsString")
|
|
11608
11620
|
self._ModifiedTime = params.get("ModifiedTime")
|
|
11621
|
+
self._ShowType = params.get("ShowType")
|
|
11609
11622
|
memeber_set = set(params.keys())
|
|
11610
11623
|
for name, value in vars(self).items():
|
|
11611
11624
|
property_name = name[1:]
|