tencentcloud-sdk-python-cfw 3.1.135__tar.gz → 3.1.137__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.137}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/setup.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/v20190904/cfw_client.py +48 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/v20190904/cfw_client_async.py +38 -2
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/v20190904/models.py +1606 -615
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cfw-3.1.137/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.137}/README.rst +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.135 → tencentcloud_sdk_python_cfw-3.1.137}/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.137
|
|
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.137
|
|
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.137,<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
|
|
|
@@ -1018,7 +1041,7 @@ class CfwClient(AbstractClient):
|
|
|
1018
1041
|
|
|
1019
1042
|
|
|
1020
1043
|
def DescribeCfwAssets(self, request):
|
|
1021
|
-
r"""
|
|
1044
|
+
r"""查询当前租户防火墙纳管资产。首次查询传 AssetType、过滤条件和 Limit;Response.Data.HasMore=true 时,续查只传 NextToken。默认查询 host;broad 查询分页返回资产,exact InstanceId 查询分页返回该实例 fingerprints 且每页重复基础资产。仅明确需要 VPC 或子网时传 AssetType。
|
|
1022
1045
|
|
|
1023
1046
|
:param request: Request instance for DescribeCfwAssets.
|
|
1024
1047
|
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwAssetsRequest`
|
|
@@ -1202,7 +1225,7 @@ class CfwClient(AbstractClient):
|
|
|
1202
1225
|
|
|
1203
1226
|
|
|
1204
1227
|
def DescribeCfwSwitches(self, request):
|
|
1205
|
-
r"""查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。
|
|
1228
|
+
r"""查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。border_firewall、nat_firewall、vpc_firewall、ndr 的 available 表示至少一个对应防护开关实际开启,不表示仅已购买或已创建;ips.mode 可能为跟随全局、观察、拦截、严格、关闭或未知。
|
|
1206
1229
|
|
|
1207
1230
|
:param request: Request instance for DescribeCfwSwitches.
|
|
1208
1231
|
:type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwSwitchesRequest`
|
|
@@ -2746,6 +2769,29 @@ class CfwClient(AbstractClient):
|
|
|
2746
2769
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2747
2770
|
|
|
2748
2771
|
|
|
2772
|
+
def ModifyIsolateTable(self, request):
|
|
2773
|
+
r"""ModifyIsolateTable 隔离列表编辑和删除操作
|
|
2774
|
+
|
|
2775
|
+
:param request: Request instance for ModifyIsolateTable.
|
|
2776
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyIsolateTableRequest`
|
|
2777
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyIsolateTableResponse`
|
|
2778
|
+
|
|
2779
|
+
"""
|
|
2780
|
+
try:
|
|
2781
|
+
params = request._serialize()
|
|
2782
|
+
headers = request.headers
|
|
2783
|
+
body = self.call("ModifyIsolateTable", params, headers=headers)
|
|
2784
|
+
response = json.loads(body)
|
|
2785
|
+
model = models.ModifyIsolateTableResponse()
|
|
2786
|
+
model._deserialize(response["Response"])
|
|
2787
|
+
return model
|
|
2788
|
+
except Exception as e:
|
|
2789
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2790
|
+
raise
|
|
2791
|
+
else:
|
|
2792
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2793
|
+
|
|
2794
|
+
|
|
2749
2795
|
def ModifyNatAcRule(self, request):
|
|
2750
2796
|
r"""修改NAT访问控制规则
|
|
2751
2797
|
|
|
@@ -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,
|
|
@@ -807,7 +825,7 @@ class CfwClient(AbstractClient):
|
|
|
807
825
|
opts: Dict = None,
|
|
808
826
|
) -> models.DescribeCfwAssetsResponse:
|
|
809
827
|
"""
|
|
810
|
-
|
|
828
|
+
查询当前租户防火墙纳管资产。首次查询传 AssetType、过滤条件和 Limit;Response.Data.HasMore=true 时,续查只传 NextToken。默认查询 host;broad 查询分页返回资产,exact InstanceId 查询分页返回该实例 fingerprints 且每页重复基础资产。仅明确需要 VPC 或子网时传 AssetType。
|
|
811
829
|
"""
|
|
812
830
|
|
|
813
831
|
kwargs = {}
|
|
@@ -951,7 +969,7 @@ class CfwClient(AbstractClient):
|
|
|
951
969
|
opts: Dict = None,
|
|
952
970
|
) -> models.DescribeCfwSwitchesResponse:
|
|
953
971
|
"""
|
|
954
|
-
查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。
|
|
972
|
+
查询当前租户防火墙防护开关总览。结果在 Response.Data 的 JSON 字符串中。本接口没有自定义业务入参,不支持过滤、排序或分页。border_firewall、nat_firewall、vpc_firewall、ndr 的 available 表示至少一个对应防护开关实际开启,不表示仅已购买或已创建;ips.mode 可能为跟随全局、观察、拦截、严格、关闭或未知。
|
|
955
973
|
"""
|
|
956
974
|
|
|
957
975
|
kwargs = {}
|
|
@@ -2155,6 +2173,24 @@ class CfwClient(AbstractClient):
|
|
|
2155
2173
|
|
|
2156
2174
|
return await self.call_and_deserialize(**kwargs)
|
|
2157
2175
|
|
|
2176
|
+
async def ModifyIsolateTable(
|
|
2177
|
+
self,
|
|
2178
|
+
request: models.ModifyIsolateTableRequest,
|
|
2179
|
+
opts: Dict = None,
|
|
2180
|
+
) -> models.ModifyIsolateTableResponse:
|
|
2181
|
+
"""
|
|
2182
|
+
ModifyIsolateTable 隔离列表编辑和删除操作
|
|
2183
|
+
"""
|
|
2184
|
+
|
|
2185
|
+
kwargs = {}
|
|
2186
|
+
kwargs["action"] = "ModifyIsolateTable"
|
|
2187
|
+
kwargs["params"] = request._serialize()
|
|
2188
|
+
kwargs["resp_cls"] = models.ModifyIsolateTableResponse
|
|
2189
|
+
kwargs["headers"] = request.headers
|
|
2190
|
+
kwargs["opts"] = opts or {}
|
|
2191
|
+
|
|
2192
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2193
|
+
|
|
2158
2194
|
async def ModifyNatAcRule(
|
|
2159
2195
|
self,
|
|
2160
2196
|
request: models.ModifyNatAcRuleRequest,
|