tencentcloud-sdk-python-cfw 3.1.145__tar.gz → 3.1.166__tar.gz
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.
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/setup.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/v20190904/cfw_client.py +69 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/v20190904/cfw_client_async.py +54 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/v20190904/models.py +1010 -110
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cfw-3.1.166/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cfw-3.1.145/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/README.rst +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.145 → tencentcloud_sdk_python_cfw-3.1.166}/tencentcloud_sdk_python_cfw.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cfw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.166
|
|
4
4
|
Summary: Tencent Cloud Cfw SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.166
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cfw',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.166,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cfw SDK for Python',
|
|
@@ -532,6 +532,29 @@ class CfwClient(AbstractClient):
|
|
|
532
532
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
533
533
|
|
|
534
534
|
|
|
535
|
+
def CreateWhiteRule(self, request):
|
|
536
|
+
r"""创建入侵防御白名单。先选择 RuleType,再按该类型填写 Rules[].Info;每条策略使用唯一 RuleName。创建成功后调用 DescribeWhiteRule,使用 RuleName+OperatorType 9 查询并精确核对 RuleName,取得 WhiteId。
|
|
537
|
+
|
|
538
|
+
:param request: Request instance for CreateWhiteRule.
|
|
539
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.CreateWhiteRuleRequest`
|
|
540
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.CreateWhiteRuleResponse`
|
|
541
|
+
|
|
542
|
+
"""
|
|
543
|
+
try:
|
|
544
|
+
params = request._serialize()
|
|
545
|
+
headers = request.headers
|
|
546
|
+
body = self.call("CreateWhiteRule", params, headers=headers)
|
|
547
|
+
response = json.loads(body)
|
|
548
|
+
model = models.CreateWhiteRuleResponse()
|
|
549
|
+
model._deserialize(response["Response"])
|
|
550
|
+
return model
|
|
551
|
+
except Exception as e:
|
|
552
|
+
if isinstance(e, TencentCloudSDKException):
|
|
553
|
+
raise
|
|
554
|
+
else:
|
|
555
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
556
|
+
|
|
557
|
+
|
|
535
558
|
def DeleteAcRule(self, request):
|
|
536
559
|
r"""删除规则
|
|
537
560
|
|
|
@@ -762,6 +785,29 @@ class CfwClient(AbstractClient):
|
|
|
762
785
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
763
786
|
|
|
764
787
|
|
|
788
|
+
def DeleteWhiteRule(self, request):
|
|
789
|
+
r"""按 WhiteId 删除入侵防御白名单。先从 DescribeWhiteRule.Data[].WhiteId 读取目标 ID;提交删除后调用 DescribeWhiteRule,Filters 使用 Name=WD、OperatorType=1 和目标 WhiteId,Data 为空表示删除完成。
|
|
790
|
+
|
|
791
|
+
:param request: Request instance for DeleteWhiteRule.
|
|
792
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.DeleteWhiteRuleRequest`
|
|
793
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.DeleteWhiteRuleResponse`
|
|
794
|
+
|
|
795
|
+
"""
|
|
796
|
+
try:
|
|
797
|
+
params = request._serialize()
|
|
798
|
+
headers = request.headers
|
|
799
|
+
body = self.call("DeleteWhiteRule", params, headers=headers)
|
|
800
|
+
response = json.loads(body)
|
|
801
|
+
model = models.DeleteWhiteRuleResponse()
|
|
802
|
+
model._deserialize(response["Response"])
|
|
803
|
+
return model
|
|
804
|
+
except Exception as e:
|
|
805
|
+
if isinstance(e, TencentCloudSDKException):
|
|
806
|
+
raise
|
|
807
|
+
else:
|
|
808
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
809
|
+
|
|
810
|
+
|
|
765
811
|
def DescribeAcLists(self, request):
|
|
766
812
|
r"""访问控制列表
|
|
767
813
|
|
|
@@ -3413,6 +3459,29 @@ class CfwClient(AbstractClient):
|
|
|
3413
3459
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3414
3460
|
|
|
3415
3461
|
|
|
3462
|
+
def ModifyWhiteRule(self, request):
|
|
3463
|
+
r"""修改入侵防御白名单采用整条替换。先调用 DescribeWhiteRule,选择 BanEdit=0 的策略并沿用其 WhiteId 和 RuleType;Rule 提交修改后的全部可写字段。Info 多值字段按笛卡尔积展开,第一项更新原 WhiteId,其余组合创建新 WhiteId,展开后最多 100 条且新增组合消耗配额。成功后调用 DescribeWhiteRule:原策略使用 Name=WD、OperatorType=1 精确查询,新组合使用 Name=RuleName、OperatorType=9 查询并逐项核对。
|
|
3464
|
+
|
|
3465
|
+
:param request: Request instance for ModifyWhiteRule.
|
|
3466
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyWhiteRuleRequest`
|
|
3467
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyWhiteRuleResponse`
|
|
3468
|
+
|
|
3469
|
+
"""
|
|
3470
|
+
try:
|
|
3471
|
+
params = request._serialize()
|
|
3472
|
+
headers = request.headers
|
|
3473
|
+
body = self.call("ModifyWhiteRule", params, headers=headers)
|
|
3474
|
+
response = json.loads(body)
|
|
3475
|
+
model = models.ModifyWhiteRuleResponse()
|
|
3476
|
+
model._deserialize(response["Response"])
|
|
3477
|
+
return model
|
|
3478
|
+
except Exception as e:
|
|
3479
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3480
|
+
raise
|
|
3481
|
+
else:
|
|
3482
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3483
|
+
|
|
3484
|
+
|
|
3416
3485
|
def OpenClusterNatFwSwitch(self, request):
|
|
3417
3486
|
r"""开启NAT CCN集群模式防火墙开关
|
|
3418
3487
|
|
|
@@ -421,6 +421,24 @@ class CfwClient(AbstractClient):
|
|
|
421
421
|
|
|
422
422
|
return await self.call_and_deserialize(**kwargs)
|
|
423
423
|
|
|
424
|
+
async def CreateWhiteRule(
|
|
425
|
+
self,
|
|
426
|
+
request: models.CreateWhiteRuleRequest,
|
|
427
|
+
opts: Dict = None,
|
|
428
|
+
) -> models.CreateWhiteRuleResponse:
|
|
429
|
+
"""
|
|
430
|
+
创建入侵防御白名单。先选择 RuleType,再按该类型填写 Rules[].Info;每条策略使用唯一 RuleName。创建成功后调用 DescribeWhiteRule,使用 RuleName+OperatorType 9 查询并精确核对 RuleName,取得 WhiteId。
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
kwargs = {}
|
|
434
|
+
kwargs["action"] = "CreateWhiteRule"
|
|
435
|
+
kwargs["params"] = request._serialize()
|
|
436
|
+
kwargs["resp_cls"] = models.CreateWhiteRuleResponse
|
|
437
|
+
kwargs["headers"] = request.headers
|
|
438
|
+
kwargs["opts"] = opts or {}
|
|
439
|
+
|
|
440
|
+
return await self.call_and_deserialize(**kwargs)
|
|
441
|
+
|
|
424
442
|
async def DeleteAcRule(
|
|
425
443
|
self,
|
|
426
444
|
request: models.DeleteAcRuleRequest,
|
|
@@ -601,6 +619,24 @@ class CfwClient(AbstractClient):
|
|
|
601
619
|
|
|
602
620
|
return await self.call_and_deserialize(**kwargs)
|
|
603
621
|
|
|
622
|
+
async def DeleteWhiteRule(
|
|
623
|
+
self,
|
|
624
|
+
request: models.DeleteWhiteRuleRequest,
|
|
625
|
+
opts: Dict = None,
|
|
626
|
+
) -> models.DeleteWhiteRuleResponse:
|
|
627
|
+
"""
|
|
628
|
+
按 WhiteId 删除入侵防御白名单。先从 DescribeWhiteRule.Data[].WhiteId 读取目标 ID;提交删除后调用 DescribeWhiteRule,Filters 使用 Name=WD、OperatorType=1 和目标 WhiteId,Data 为空表示删除完成。
|
|
629
|
+
"""
|
|
630
|
+
|
|
631
|
+
kwargs = {}
|
|
632
|
+
kwargs["action"] = "DeleteWhiteRule"
|
|
633
|
+
kwargs["params"] = request._serialize()
|
|
634
|
+
kwargs["resp_cls"] = models.DeleteWhiteRuleResponse
|
|
635
|
+
kwargs["headers"] = request.headers
|
|
636
|
+
kwargs["opts"] = opts or {}
|
|
637
|
+
|
|
638
|
+
return await self.call_and_deserialize(**kwargs)
|
|
639
|
+
|
|
604
640
|
async def DescribeAcLists(
|
|
605
641
|
self,
|
|
606
642
|
request: models.DescribeAcListsRequest,
|
|
@@ -2677,6 +2713,24 @@ class CfwClient(AbstractClient):
|
|
|
2677
2713
|
|
|
2678
2714
|
return await self.call_and_deserialize(**kwargs)
|
|
2679
2715
|
|
|
2716
|
+
async def ModifyWhiteRule(
|
|
2717
|
+
self,
|
|
2718
|
+
request: models.ModifyWhiteRuleRequest,
|
|
2719
|
+
opts: Dict = None,
|
|
2720
|
+
) -> models.ModifyWhiteRuleResponse:
|
|
2721
|
+
"""
|
|
2722
|
+
修改入侵防御白名单采用整条替换。先调用 DescribeWhiteRule,选择 BanEdit=0 的策略并沿用其 WhiteId 和 RuleType;Rule 提交修改后的全部可写字段。Info 多值字段按笛卡尔积展开,第一项更新原 WhiteId,其余组合创建新 WhiteId,展开后最多 100 条且新增组合消耗配额。成功后调用 DescribeWhiteRule:原策略使用 Name=WD、OperatorType=1 精确查询,新组合使用 Name=RuleName、OperatorType=9 查询并逐项核对。
|
|
2723
|
+
"""
|
|
2724
|
+
|
|
2725
|
+
kwargs = {}
|
|
2726
|
+
kwargs["action"] = "ModifyWhiteRule"
|
|
2727
|
+
kwargs["params"] = request._serialize()
|
|
2728
|
+
kwargs["resp_cls"] = models.ModifyWhiteRuleResponse
|
|
2729
|
+
kwargs["headers"] = request.headers
|
|
2730
|
+
kwargs["opts"] = opts or {}
|
|
2731
|
+
|
|
2732
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2733
|
+
|
|
2680
2734
|
async def OpenClusterNatFwSwitch(
|
|
2681
2735
|
self,
|
|
2682
2736
|
request: models.OpenClusterNatFwSwitchRequest,
|