tencentcloud-sdk-python-waf 3.0.1444__tar.gz → 3.0.1450__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-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/setup.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/waf/v20180125/models.py +79 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-waf-3.0.1450/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-waf-3.0.1444/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/README.rst +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/setup.cfg +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1444 → tencentcloud-sdk-python-waf-3.0.1450}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-waf',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1450,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Waf SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -36492,6 +36492,85 @@ class ModifyOwaspWhiteRuleResponse(AbstractModel):
|
|
|
36492
36492
|
self._RequestId = params.get("RequestId")
|
|
36493
36493
|
|
|
36494
36494
|
|
|
36495
|
+
class ModifyProtectionLevelRequest(AbstractModel):
|
|
36496
|
+
"""ModifyProtectionLevel请求参数结构体
|
|
36497
|
+
|
|
36498
|
+
"""
|
|
36499
|
+
|
|
36500
|
+
def __init__(self):
|
|
36501
|
+
r"""
|
|
36502
|
+
:param _Domain: 客户域名
|
|
36503
|
+
:type Domain: str
|
|
36504
|
+
:param _Level: 防护等级,100,200,300
|
|
36505
|
+
:type Level: int
|
|
36506
|
+
"""
|
|
36507
|
+
self._Domain = None
|
|
36508
|
+
self._Level = None
|
|
36509
|
+
|
|
36510
|
+
@property
|
|
36511
|
+
def Domain(self):
|
|
36512
|
+
"""客户域名
|
|
36513
|
+
:rtype: str
|
|
36514
|
+
"""
|
|
36515
|
+
return self._Domain
|
|
36516
|
+
|
|
36517
|
+
@Domain.setter
|
|
36518
|
+
def Domain(self, Domain):
|
|
36519
|
+
self._Domain = Domain
|
|
36520
|
+
|
|
36521
|
+
@property
|
|
36522
|
+
def Level(self):
|
|
36523
|
+
"""防护等级,100,200,300
|
|
36524
|
+
:rtype: int
|
|
36525
|
+
"""
|
|
36526
|
+
return self._Level
|
|
36527
|
+
|
|
36528
|
+
@Level.setter
|
|
36529
|
+
def Level(self, Level):
|
|
36530
|
+
self._Level = Level
|
|
36531
|
+
|
|
36532
|
+
|
|
36533
|
+
def _deserialize(self, params):
|
|
36534
|
+
self._Domain = params.get("Domain")
|
|
36535
|
+
self._Level = params.get("Level")
|
|
36536
|
+
memeber_set = set(params.keys())
|
|
36537
|
+
for name, value in vars(self).items():
|
|
36538
|
+
property_name = name[1:]
|
|
36539
|
+
if property_name in memeber_set:
|
|
36540
|
+
memeber_set.remove(property_name)
|
|
36541
|
+
if len(memeber_set) > 0:
|
|
36542
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
36543
|
+
|
|
36544
|
+
|
|
36545
|
+
|
|
36546
|
+
class ModifyProtectionLevelResponse(AbstractModel):
|
|
36547
|
+
"""ModifyProtectionLevel返回参数结构体
|
|
36548
|
+
|
|
36549
|
+
"""
|
|
36550
|
+
|
|
36551
|
+
def __init__(self):
|
|
36552
|
+
r"""
|
|
36553
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
36554
|
+
:type RequestId: str
|
|
36555
|
+
"""
|
|
36556
|
+
self._RequestId = None
|
|
36557
|
+
|
|
36558
|
+
@property
|
|
36559
|
+
def RequestId(self):
|
|
36560
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
36561
|
+
:rtype: str
|
|
36562
|
+
"""
|
|
36563
|
+
return self._RequestId
|
|
36564
|
+
|
|
36565
|
+
@RequestId.setter
|
|
36566
|
+
def RequestId(self, RequestId):
|
|
36567
|
+
self._RequestId = RequestId
|
|
36568
|
+
|
|
36569
|
+
|
|
36570
|
+
def _deserialize(self, params):
|
|
36571
|
+
self._RequestId = params.get("RequestId")
|
|
36572
|
+
|
|
36573
|
+
|
|
36495
36574
|
class ModifyProtectionStatusRequest(AbstractModel):
|
|
36496
36575
|
"""ModifyProtectionStatus请求参数结构体
|
|
36497
36576
|
|
|
@@ -3571,6 +3571,29 @@ class WafClient(AbstractClient):
|
|
|
3571
3571
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3572
3572
|
|
|
3573
3573
|
|
|
3574
|
+
def ModifyProtectionLevel(self, request):
|
|
3575
|
+
"""更改防护等级
|
|
3576
|
+
|
|
3577
|
+
:param request: Request instance for ModifyProtectionLevel.
|
|
3578
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyProtectionLevelRequest`
|
|
3579
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyProtectionLevelResponse`
|
|
3580
|
+
|
|
3581
|
+
"""
|
|
3582
|
+
try:
|
|
3583
|
+
params = request._serialize()
|
|
3584
|
+
headers = request.headers
|
|
3585
|
+
body = self.call("ModifyProtectionLevel", params, headers=headers)
|
|
3586
|
+
response = json.loads(body)
|
|
3587
|
+
model = models.ModifyProtectionLevelResponse()
|
|
3588
|
+
model._deserialize(response["Response"])
|
|
3589
|
+
return model
|
|
3590
|
+
except Exception as e:
|
|
3591
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3592
|
+
raise
|
|
3593
|
+
else:
|
|
3594
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3595
|
+
|
|
3596
|
+
|
|
3574
3597
|
def ModifyProtectionStatus(self, request):
|
|
3575
3598
|
"""开启、关闭WAF开关
|
|
3576
3599
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1450
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1444
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|