tencentcloud-sdk-python-cfw 3.1.69__tar.gz → 3.1.74__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.69 → tencentcloud_sdk_python_cfw-3.1.74}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/setup.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/v20190904/cfw_client.py +46 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/v20190904/cfw_client_async.py +36 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/v20190904/models.py +198 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cfw-3.1.74/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cfw-3.1.69/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/README.rst +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.69 → tencentcloud_sdk_python_cfw-3.1.74}/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.74
|
|
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.74
|
|
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.74,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cfw SDK for Python',
|
|
@@ -325,6 +325,29 @@ class CfwClient(AbstractClient):
|
|
|
325
325
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
326
|
|
|
327
327
|
|
|
328
|
+
def CreateNatFwDnatRule(self, request):
|
|
329
|
+
r"""创建Nat防火墙Dnat规则
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for CreateNatFwDnatRule.
|
|
332
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.CreateNatFwDnatRuleRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.CreateNatFwDnatRuleResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("CreateNatFwDnatRule", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.CreateNatFwDnatRuleResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
328
351
|
def CreateNatFwInstance(self, request):
|
|
329
352
|
r"""创建NAT防火墙实例(Region参数必填)
|
|
330
353
|
|
|
@@ -509,6 +532,29 @@ class CfwClient(AbstractClient):
|
|
|
509
532
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
533
|
|
|
511
534
|
|
|
535
|
+
def DeleteNatFwDnatRule(self, request):
|
|
536
|
+
r"""删除Nat防火墙Dnat规则
|
|
537
|
+
|
|
538
|
+
:param request: Request instance for DeleteNatFwDnatRule.
|
|
539
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.DeleteNatFwDnatRuleRequest`
|
|
540
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.DeleteNatFwDnatRuleResponse`
|
|
541
|
+
|
|
542
|
+
"""
|
|
543
|
+
try:
|
|
544
|
+
params = request._serialize()
|
|
545
|
+
headers = request.headers
|
|
546
|
+
body = self.call("DeleteNatFwDnatRule", params, headers=headers)
|
|
547
|
+
response = json.loads(body)
|
|
548
|
+
model = models.DeleteNatFwDnatRuleResponse()
|
|
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
|
+
|
|
512
558
|
def DeleteNatFwInstance(self, request):
|
|
513
559
|
r"""销毁防火墙实例
|
|
514
560
|
|
|
@@ -259,6 +259,24 @@ class CfwClient(AbstractClient):
|
|
|
259
259
|
|
|
260
260
|
return await self.call_and_deserialize(**kwargs)
|
|
261
261
|
|
|
262
|
+
async def CreateNatFwDnatRule(
|
|
263
|
+
self,
|
|
264
|
+
request: models.CreateNatFwDnatRuleRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.CreateNatFwDnatRuleResponse:
|
|
267
|
+
"""
|
|
268
|
+
创建Nat防火墙Dnat规则
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "CreateNatFwDnatRule"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.CreateNatFwDnatRuleResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
262
280
|
async def CreateNatFwInstance(
|
|
263
281
|
self,
|
|
264
282
|
request: models.CreateNatFwInstanceRequest,
|
|
@@ -403,6 +421,24 @@ class CfwClient(AbstractClient):
|
|
|
403
421
|
|
|
404
422
|
return await self.call_and_deserialize(**kwargs)
|
|
405
423
|
|
|
424
|
+
async def DeleteNatFwDnatRule(
|
|
425
|
+
self,
|
|
426
|
+
request: models.DeleteNatFwDnatRuleRequest,
|
|
427
|
+
opts: Dict = None,
|
|
428
|
+
) -> models.DeleteNatFwDnatRuleResponse:
|
|
429
|
+
"""
|
|
430
|
+
删除Nat防火墙Dnat规则
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
kwargs = {}
|
|
434
|
+
kwargs["action"] = "DeleteNatFwDnatRule"
|
|
435
|
+
kwargs["params"] = request._serialize()
|
|
436
|
+
kwargs["resp_cls"] = models.DeleteNatFwDnatRuleResponse
|
|
437
|
+
kwargs["headers"] = request.headers
|
|
438
|
+
kwargs["opts"] = opts or {}
|
|
439
|
+
|
|
440
|
+
return await self.call_and_deserialize(**kwargs)
|
|
441
|
+
|
|
406
442
|
async def DeleteNatFwInstance(
|
|
407
443
|
self,
|
|
408
444
|
request: models.DeleteNatFwInstanceRequest,
|
|
@@ -4343,6 +4343,105 @@ class CreateDatabaseWhiteListRulesResponse(AbstractModel):
|
|
|
4343
4343
|
self._RequestId = params.get("RequestId")
|
|
4344
4344
|
|
|
4345
4345
|
|
|
4346
|
+
class CreateNatFwDnatRuleRequest(AbstractModel):
|
|
4347
|
+
r"""CreateNatFwDnatRule请求参数结构体
|
|
4348
|
+
|
|
4349
|
+
"""
|
|
4350
|
+
|
|
4351
|
+
def __init__(self):
|
|
4352
|
+
r"""
|
|
4353
|
+
:param _Mode: 0:cfw新增模式,1:cfw接入模式。
|
|
4354
|
+
:type Mode: int
|
|
4355
|
+
:param _CfwInstance: 防火墙实例id,该字段必须传递。
|
|
4356
|
+
:type CfwInstance: str
|
|
4357
|
+
:param _DnatRules: 添加或删除操作的Dnat规则列表。
|
|
4358
|
+
:type DnatRules: list of CfwNatDnatRule
|
|
4359
|
+
"""
|
|
4360
|
+
self._Mode = None
|
|
4361
|
+
self._CfwInstance = None
|
|
4362
|
+
self._DnatRules = None
|
|
4363
|
+
|
|
4364
|
+
@property
|
|
4365
|
+
def Mode(self):
|
|
4366
|
+
r"""0:cfw新增模式,1:cfw接入模式。
|
|
4367
|
+
:rtype: int
|
|
4368
|
+
"""
|
|
4369
|
+
return self._Mode
|
|
4370
|
+
|
|
4371
|
+
@Mode.setter
|
|
4372
|
+
def Mode(self, Mode):
|
|
4373
|
+
self._Mode = Mode
|
|
4374
|
+
|
|
4375
|
+
@property
|
|
4376
|
+
def CfwInstance(self):
|
|
4377
|
+
r"""防火墙实例id,该字段必须传递。
|
|
4378
|
+
:rtype: str
|
|
4379
|
+
"""
|
|
4380
|
+
return self._CfwInstance
|
|
4381
|
+
|
|
4382
|
+
@CfwInstance.setter
|
|
4383
|
+
def CfwInstance(self, CfwInstance):
|
|
4384
|
+
self._CfwInstance = CfwInstance
|
|
4385
|
+
|
|
4386
|
+
@property
|
|
4387
|
+
def DnatRules(self):
|
|
4388
|
+
r"""添加或删除操作的Dnat规则列表。
|
|
4389
|
+
:rtype: list of CfwNatDnatRule
|
|
4390
|
+
"""
|
|
4391
|
+
return self._DnatRules
|
|
4392
|
+
|
|
4393
|
+
@DnatRules.setter
|
|
4394
|
+
def DnatRules(self, DnatRules):
|
|
4395
|
+
self._DnatRules = DnatRules
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
def _deserialize(self, params):
|
|
4399
|
+
self._Mode = params.get("Mode")
|
|
4400
|
+
self._CfwInstance = params.get("CfwInstance")
|
|
4401
|
+
if params.get("DnatRules") is not None:
|
|
4402
|
+
self._DnatRules = []
|
|
4403
|
+
for item in params.get("DnatRules"):
|
|
4404
|
+
obj = CfwNatDnatRule()
|
|
4405
|
+
obj._deserialize(item)
|
|
4406
|
+
self._DnatRules.append(obj)
|
|
4407
|
+
memeber_set = set(params.keys())
|
|
4408
|
+
for name, value in vars(self).items():
|
|
4409
|
+
property_name = name[1:]
|
|
4410
|
+
if property_name in memeber_set:
|
|
4411
|
+
memeber_set.remove(property_name)
|
|
4412
|
+
if len(memeber_set) > 0:
|
|
4413
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4414
|
+
|
|
4415
|
+
|
|
4416
|
+
|
|
4417
|
+
class CreateNatFwDnatRuleResponse(AbstractModel):
|
|
4418
|
+
r"""CreateNatFwDnatRule返回参数结构体
|
|
4419
|
+
|
|
4420
|
+
"""
|
|
4421
|
+
|
|
4422
|
+
def __init__(self):
|
|
4423
|
+
r"""
|
|
4424
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4425
|
+
:type RequestId: str
|
|
4426
|
+
"""
|
|
4427
|
+
self._RequestId = None
|
|
4428
|
+
|
|
4429
|
+
@property
|
|
4430
|
+
def RequestId(self):
|
|
4431
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4432
|
+
:rtype: str
|
|
4433
|
+
"""
|
|
4434
|
+
return self._RequestId
|
|
4435
|
+
|
|
4436
|
+
@RequestId.setter
|
|
4437
|
+
def RequestId(self, RequestId):
|
|
4438
|
+
self._RequestId = RequestId
|
|
4439
|
+
|
|
4440
|
+
|
|
4441
|
+
def _deserialize(self, params):
|
|
4442
|
+
self._RequestId = params.get("RequestId")
|
|
4443
|
+
|
|
4444
|
+
|
|
4346
4445
|
class CreateNatFwInstanceRequest(AbstractModel):
|
|
4347
4446
|
r"""CreateNatFwInstance请求参数结构体
|
|
4348
4447
|
|
|
@@ -6343,6 +6442,105 @@ class DeleteBlockIgnoreRuleNewResponse(AbstractModel):
|
|
|
6343
6442
|
self._RequestId = params.get("RequestId")
|
|
6344
6443
|
|
|
6345
6444
|
|
|
6445
|
+
class DeleteNatFwDnatRuleRequest(AbstractModel):
|
|
6446
|
+
r"""DeleteNatFwDnatRule请求参数结构体
|
|
6447
|
+
|
|
6448
|
+
"""
|
|
6449
|
+
|
|
6450
|
+
def __init__(self):
|
|
6451
|
+
r"""
|
|
6452
|
+
:param _Mode: 0:cfw新增模式,1:cfw接入模式。
|
|
6453
|
+
:type Mode: int
|
|
6454
|
+
:param _CfwInstance: 防火墙实例id,该字段必须传递。
|
|
6455
|
+
:type CfwInstance: str
|
|
6456
|
+
:param _DnatRules: 添加或删除操作的Dnat规则列表。
|
|
6457
|
+
:type DnatRules: list of CfwNatDnatRule
|
|
6458
|
+
"""
|
|
6459
|
+
self._Mode = None
|
|
6460
|
+
self._CfwInstance = None
|
|
6461
|
+
self._DnatRules = None
|
|
6462
|
+
|
|
6463
|
+
@property
|
|
6464
|
+
def Mode(self):
|
|
6465
|
+
r"""0:cfw新增模式,1:cfw接入模式。
|
|
6466
|
+
:rtype: int
|
|
6467
|
+
"""
|
|
6468
|
+
return self._Mode
|
|
6469
|
+
|
|
6470
|
+
@Mode.setter
|
|
6471
|
+
def Mode(self, Mode):
|
|
6472
|
+
self._Mode = Mode
|
|
6473
|
+
|
|
6474
|
+
@property
|
|
6475
|
+
def CfwInstance(self):
|
|
6476
|
+
r"""防火墙实例id,该字段必须传递。
|
|
6477
|
+
:rtype: str
|
|
6478
|
+
"""
|
|
6479
|
+
return self._CfwInstance
|
|
6480
|
+
|
|
6481
|
+
@CfwInstance.setter
|
|
6482
|
+
def CfwInstance(self, CfwInstance):
|
|
6483
|
+
self._CfwInstance = CfwInstance
|
|
6484
|
+
|
|
6485
|
+
@property
|
|
6486
|
+
def DnatRules(self):
|
|
6487
|
+
r"""添加或删除操作的Dnat规则列表。
|
|
6488
|
+
:rtype: list of CfwNatDnatRule
|
|
6489
|
+
"""
|
|
6490
|
+
return self._DnatRules
|
|
6491
|
+
|
|
6492
|
+
@DnatRules.setter
|
|
6493
|
+
def DnatRules(self, DnatRules):
|
|
6494
|
+
self._DnatRules = DnatRules
|
|
6495
|
+
|
|
6496
|
+
|
|
6497
|
+
def _deserialize(self, params):
|
|
6498
|
+
self._Mode = params.get("Mode")
|
|
6499
|
+
self._CfwInstance = params.get("CfwInstance")
|
|
6500
|
+
if params.get("DnatRules") is not None:
|
|
6501
|
+
self._DnatRules = []
|
|
6502
|
+
for item in params.get("DnatRules"):
|
|
6503
|
+
obj = CfwNatDnatRule()
|
|
6504
|
+
obj._deserialize(item)
|
|
6505
|
+
self._DnatRules.append(obj)
|
|
6506
|
+
memeber_set = set(params.keys())
|
|
6507
|
+
for name, value in vars(self).items():
|
|
6508
|
+
property_name = name[1:]
|
|
6509
|
+
if property_name in memeber_set:
|
|
6510
|
+
memeber_set.remove(property_name)
|
|
6511
|
+
if len(memeber_set) > 0:
|
|
6512
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6513
|
+
|
|
6514
|
+
|
|
6515
|
+
|
|
6516
|
+
class DeleteNatFwDnatRuleResponse(AbstractModel):
|
|
6517
|
+
r"""DeleteNatFwDnatRule返回参数结构体
|
|
6518
|
+
|
|
6519
|
+
"""
|
|
6520
|
+
|
|
6521
|
+
def __init__(self):
|
|
6522
|
+
r"""
|
|
6523
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6524
|
+
:type RequestId: str
|
|
6525
|
+
"""
|
|
6526
|
+
self._RequestId = None
|
|
6527
|
+
|
|
6528
|
+
@property
|
|
6529
|
+
def RequestId(self):
|
|
6530
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6531
|
+
:rtype: str
|
|
6532
|
+
"""
|
|
6533
|
+
return self._RequestId
|
|
6534
|
+
|
|
6535
|
+
@RequestId.setter
|
|
6536
|
+
def RequestId(self, RequestId):
|
|
6537
|
+
self._RequestId = RequestId
|
|
6538
|
+
|
|
6539
|
+
|
|
6540
|
+
def _deserialize(self, params):
|
|
6541
|
+
self._RequestId = params.get("RequestId")
|
|
6542
|
+
|
|
6543
|
+
|
|
6346
6544
|
class DeleteNatFwInstanceRequest(AbstractModel):
|
|
6347
6545
|
r"""DeleteNatFwInstance请求参数结构体
|
|
6348
6546
|
|
|
@@ -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.74
|
|
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.74
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.74
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.69
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|