tencentcloud-sdk-python-cfw 3.1.135__tar.gz → 3.1.138__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-cfw might be problematic. Click here for more details.
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/setup.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/v20190904/cfw_client.py +71 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/v20190904/cfw_client_async.py +56 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/v20190904/models.py +1793 -532
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cfw-3.1.138/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cfw-3.1.135/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/README.rst +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.138}/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.138
|
|
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.138
|
|
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.138,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cfw SDK for Python',
|
|
@@ -256,6 +256,29 @@ class CfwClient(AbstractClient):
|
|
|
256
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
def CreateAlertCenterRuleAsync(self, request):
|
|
260
|
+
r"""用户告警中心-封禁、放通处置按钮
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for CreateAlertCenterRuleAsync.
|
|
263
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.CreateAlertCenterRuleAsyncRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.CreateAlertCenterRuleAsyncResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("CreateAlertCenterRuleAsync", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.CreateAlertCenterRuleAsyncResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
259
282
|
def CreateBlockIgnoreRuleList(self, request):
|
|
260
283
|
r"""批量添加入侵防御封禁列表、放通列表规则
|
|
261
284
|
|
|
@@ -716,6 +739,29 @@ class CfwClient(AbstractClient):
|
|
|
716
739
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
740
|
|
|
718
741
|
|
|
742
|
+
def DescribeAclRegInfo(self, request):
|
|
743
|
+
r"""查询ACL规则支持配置的地区
|
|
744
|
+
|
|
745
|
+
:param request: Request instance for DescribeAclRegInfo.
|
|
746
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeAclRegInfoRequest`
|
|
747
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeAclRegInfoResponse`
|
|
748
|
+
|
|
749
|
+
"""
|
|
750
|
+
try:
|
|
751
|
+
params = request._serialize()
|
|
752
|
+
headers = request.headers
|
|
753
|
+
body = self.call("DescribeAclRegInfo", params, headers=headers)
|
|
754
|
+
response = json.loads(body)
|
|
755
|
+
model = models.DescribeAclRegInfoResponse()
|
|
756
|
+
model._deserialize(response["Response"])
|
|
757
|
+
return model
|
|
758
|
+
except Exception as e:
|
|
759
|
+
if isinstance(e, TencentCloudSDKException):
|
|
760
|
+
raise
|
|
761
|
+
else:
|
|
762
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
763
|
+
|
|
764
|
+
|
|
719
765
|
def DescribeAclRule(self, request):
|
|
720
766
|
r"""查询互联网边界访问控制列表
|
|
721
767
|
|
|
@@ -1018,7 +1064,7 @@ class CfwClient(AbstractClient):
|
|
|
1018
1064
|
|
|
1019
1065
|
|
|
1020
1066
|
def DescribeCfwAssets(self, request):
|
|
1021
|
-
r"""
|
|
1067
|
+
r"""查询当前租户防火墙纳管资产。首次查询传 AssetType、过滤条件和 Limit;Response.Data.HasMore=true 时,续查只传 NextToken。默认查询 host;broad 查询分页返回资产,exact InstanceId 查询分页返回该实例 fingerprints 且每页重复基础资产。仅明确需要 VPC 或子网时传 AssetType。
|
|
1022
1068
|
|
|
1023
1069
|
:param request: Request instance for DescribeCfwAssets.
|
|
1024
1070
|
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwAssetsRequest`
|
|
@@ -1202,7 +1248,7 @@ class CfwClient(AbstractClient):
|
|
|
1202
1248
|
|
|
1203
1249
|
|
|
1204
1250
|
def DescribeCfwSwitches(self, request):
|
|
1205
|
-
r"""查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。
|
|
1251
|
+
r"""查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。border_firewall、nat_firewall、vpc_firewall、ndr 的 available 表示至少一个对应防护开关实际开启,不表示仅已购买或已创建;ips.mode 可能为跟随全局、观察、拦截、严格、关闭或未知。
|
|
1206
1252
|
|
|
1207
1253
|
:param request: Request instance for DescribeCfwSwitches.
|
|
1208
1254
|
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwSwitchesRequest`
|
|
@@ -2746,6 +2792,29 @@ class CfwClient(AbstractClient):
|
|
|
2746
2792
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2747
2793
|
|
|
2748
2794
|
|
|
2795
|
+
def ModifyIsolateTable(self, request):
|
|
2796
|
+
r"""ModifyIsolateTable 隔离列表编辑和删除操作
|
|
2797
|
+
|
|
2798
|
+
:param request: Request instance for ModifyIsolateTable.
|
|
2799
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyIsolateTableRequest`
|
|
2800
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyIsolateTableResponse`
|
|
2801
|
+
|
|
2802
|
+
"""
|
|
2803
|
+
try:
|
|
2804
|
+
params = request._serialize()
|
|
2805
|
+
headers = request.headers
|
|
2806
|
+
body = self.call("ModifyIsolateTable", params, headers=headers)
|
|
2807
|
+
response = json.loads(body)
|
|
2808
|
+
model = models.ModifyIsolateTableResponse()
|
|
2809
|
+
model._deserialize(response["Response"])
|
|
2810
|
+
return model
|
|
2811
|
+
except Exception as e:
|
|
2812
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2813
|
+
raise
|
|
2814
|
+
else:
|
|
2815
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2816
|
+
|
|
2817
|
+
|
|
2749
2818
|
def ModifyNatAcRule(self, request):
|
|
2750
2819
|
r"""修改NAT访问控制规则
|
|
2751
2820
|
|
|
@@ -205,6 +205,24 @@ class CfwClient(AbstractClient):
|
|
|
205
205
|
|
|
206
206
|
return await self.call_and_deserialize(**kwargs)
|
|
207
207
|
|
|
208
|
+
async def CreateAlertCenterRuleAsync(
|
|
209
|
+
self,
|
|
210
|
+
request: models.CreateAlertCenterRuleAsyncRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.CreateAlertCenterRuleAsyncResponse:
|
|
213
|
+
"""
|
|
214
|
+
用户告警中心-封禁、放通处置按钮
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "CreateAlertCenterRuleAsync"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.CreateAlertCenterRuleAsyncResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
208
226
|
async def CreateBlockIgnoreRuleList(
|
|
209
227
|
self,
|
|
210
228
|
request: models.CreateBlockIgnoreRuleListRequest,
|
|
@@ -565,6 +583,24 @@ class CfwClient(AbstractClient):
|
|
|
565
583
|
|
|
566
584
|
return await self.call_and_deserialize(**kwargs)
|
|
567
585
|
|
|
586
|
+
async def DescribeAclRegInfo(
|
|
587
|
+
self,
|
|
588
|
+
request: models.DescribeAclRegInfoRequest,
|
|
589
|
+
opts: Dict = None,
|
|
590
|
+
) -> models.DescribeAclRegInfoResponse:
|
|
591
|
+
"""
|
|
592
|
+
查询ACL规则支持配置的地区
|
|
593
|
+
"""
|
|
594
|
+
|
|
595
|
+
kwargs = {}
|
|
596
|
+
kwargs["action"] = "DescribeAclRegInfo"
|
|
597
|
+
kwargs["params"] = request._serialize()
|
|
598
|
+
kwargs["resp_cls"] = models.DescribeAclRegInfoResponse
|
|
599
|
+
kwargs["headers"] = request.headers
|
|
600
|
+
kwargs["opts"] = opts or {}
|
|
601
|
+
|
|
602
|
+
return await self.call_and_deserialize(**kwargs)
|
|
603
|
+
|
|
568
604
|
async def DescribeAclRule(
|
|
569
605
|
self,
|
|
570
606
|
request: models.DescribeAclRuleRequest,
|
|
@@ -807,7 +843,7 @@ class CfwClient(AbstractClient):
|
|
|
807
843
|
opts: Dict = None,
|
|
808
844
|
) -> models.DescribeCfwAssetsResponse:
|
|
809
845
|
"""
|
|
810
|
-
|
|
846
|
+
查询当前租户防火墙纳管资产。首次查询传 AssetType、过滤条件和 Limit;Response.Data.HasMore=true 时,续查只传 NextToken。默认查询 host;broad 查询分页返回资产,exact InstanceId 查询分页返回该实例 fingerprints 且每页重复基础资产。仅明确需要 VPC 或子网时传 AssetType。
|
|
811
847
|
"""
|
|
812
848
|
|
|
813
849
|
kwargs = {}
|
|
@@ -951,7 +987,7 @@ class CfwClient(AbstractClient):
|
|
|
951
987
|
opts: Dict = None,
|
|
952
988
|
) -> models.DescribeCfwSwitchesResponse:
|
|
953
989
|
"""
|
|
954
|
-
查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。
|
|
990
|
+
查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。border_firewall、nat_firewall、vpc_firewall、ndr 的 available 表示至少一个对应防护开关实际开启,不表示仅已购买或已创建;ips.mode 可能为跟随全局、观察、拦截、严格、关闭或未知。
|
|
955
991
|
"""
|
|
956
992
|
|
|
957
993
|
kwargs = {}
|
|
@@ -2155,6 +2191,24 @@ class CfwClient(AbstractClient):
|
|
|
2155
2191
|
|
|
2156
2192
|
return await self.call_and_deserialize(**kwargs)
|
|
2157
2193
|
|
|
2194
|
+
async def ModifyIsolateTable(
|
|
2195
|
+
self,
|
|
2196
|
+
request: models.ModifyIsolateTableRequest,
|
|
2197
|
+
opts: Dict = None,
|
|
2198
|
+
) -> models.ModifyIsolateTableResponse:
|
|
2199
|
+
"""
|
|
2200
|
+
ModifyIsolateTable 隔离列表编辑和删除操作
|
|
2201
|
+
"""
|
|
2202
|
+
|
|
2203
|
+
kwargs = {}
|
|
2204
|
+
kwargs["action"] = "ModifyIsolateTable"
|
|
2205
|
+
kwargs["params"] = request._serialize()
|
|
2206
|
+
kwargs["resp_cls"] = models.ModifyIsolateTableResponse
|
|
2207
|
+
kwargs["headers"] = request.headers
|
|
2208
|
+
kwargs["opts"] = opts or {}
|
|
2209
|
+
|
|
2210
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2211
|
+
|
|
2158
2212
|
async def ModifyNatAcRule(
|
|
2159
2213
|
self,
|
|
2160
2214
|
request: models.ModifyNatAcRuleRequest,
|