tencentcloud-sdk-python-waf 3.1.157__tar.gz → 3.1.164__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.1.157 → tencentcloud_sdk_python_waf-3.1.164}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/setup.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/v20180125/models.py +173 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/v20180125/waf_client.py +46 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/v20180125/waf_client_async.py +36 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_waf-3.1.164/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_waf-3.1.157/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/README.rst +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/setup.cfg +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.157 → tencentcloud_sdk_python_waf-3.1.164}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-waf
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.164
|
|
4
4
|
Summary: Tencent Cloud Waf 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.164
|
|
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-waf',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.164,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Waf SDK for Python',
|
|
@@ -34760,6 +34760,100 @@ class DownloadAttackRecordInfo(AbstractModel):
|
|
|
34760
34760
|
|
|
34761
34761
|
|
|
34762
34762
|
|
|
34763
|
+
class EnableClientMsgRequest(AbstractModel):
|
|
34764
|
+
r"""EnableClientMsg请求参数结构体
|
|
34765
|
+
|
|
34766
|
+
"""
|
|
34767
|
+
|
|
34768
|
+
def __init__(self):
|
|
34769
|
+
r"""
|
|
34770
|
+
:param _Status: 0表示关闭1表示开启
|
|
34771
|
+
:type Status: int
|
|
34772
|
+
:param _Domain: 域名
|
|
34773
|
+
:type Domain: str
|
|
34774
|
+
"""
|
|
34775
|
+
self._Status = None
|
|
34776
|
+
self._Domain = None
|
|
34777
|
+
|
|
34778
|
+
@property
|
|
34779
|
+
def Status(self):
|
|
34780
|
+
r"""0表示关闭1表示开启
|
|
34781
|
+
:rtype: int
|
|
34782
|
+
"""
|
|
34783
|
+
return self._Status
|
|
34784
|
+
|
|
34785
|
+
@Status.setter
|
|
34786
|
+
def Status(self, Status):
|
|
34787
|
+
self._Status = Status
|
|
34788
|
+
|
|
34789
|
+
@property
|
|
34790
|
+
def Domain(self):
|
|
34791
|
+
r"""域名
|
|
34792
|
+
:rtype: str
|
|
34793
|
+
"""
|
|
34794
|
+
return self._Domain
|
|
34795
|
+
|
|
34796
|
+
@Domain.setter
|
|
34797
|
+
def Domain(self, Domain):
|
|
34798
|
+
self._Domain = Domain
|
|
34799
|
+
|
|
34800
|
+
|
|
34801
|
+
def _deserialize(self, params):
|
|
34802
|
+
self._Status = params.get("Status")
|
|
34803
|
+
self._Domain = params.get("Domain")
|
|
34804
|
+
memeber_set = set(params.keys())
|
|
34805
|
+
for name, value in vars(self).items():
|
|
34806
|
+
property_name = name[1:]
|
|
34807
|
+
if property_name in memeber_set:
|
|
34808
|
+
memeber_set.remove(property_name)
|
|
34809
|
+
if len(memeber_set) > 0:
|
|
34810
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34811
|
+
|
|
34812
|
+
|
|
34813
|
+
|
|
34814
|
+
class EnableClientMsgResponse(AbstractModel):
|
|
34815
|
+
r"""EnableClientMsg返回参数结构体
|
|
34816
|
+
|
|
34817
|
+
"""
|
|
34818
|
+
|
|
34819
|
+
def __init__(self):
|
|
34820
|
+
r"""
|
|
34821
|
+
:param _RetCode: 0:成功,1:失败
|
|
34822
|
+
:type RetCode: int
|
|
34823
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
34824
|
+
:type RequestId: str
|
|
34825
|
+
"""
|
|
34826
|
+
self._RetCode = None
|
|
34827
|
+
self._RequestId = None
|
|
34828
|
+
|
|
34829
|
+
@property
|
|
34830
|
+
def RetCode(self):
|
|
34831
|
+
r"""0:成功,1:失败
|
|
34832
|
+
:rtype: int
|
|
34833
|
+
"""
|
|
34834
|
+
return self._RetCode
|
|
34835
|
+
|
|
34836
|
+
@RetCode.setter
|
|
34837
|
+
def RetCode(self, RetCode):
|
|
34838
|
+
self._RetCode = RetCode
|
|
34839
|
+
|
|
34840
|
+
@property
|
|
34841
|
+
def RequestId(self):
|
|
34842
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
34843
|
+
:rtype: str
|
|
34844
|
+
"""
|
|
34845
|
+
return self._RequestId
|
|
34846
|
+
|
|
34847
|
+
@RequestId.setter
|
|
34848
|
+
def RequestId(self, RequestId):
|
|
34849
|
+
self._RequestId = RequestId
|
|
34850
|
+
|
|
34851
|
+
|
|
34852
|
+
def _deserialize(self, params):
|
|
34853
|
+
self._RetCode = params.get("RetCode")
|
|
34854
|
+
self._RequestId = params.get("RequestId")
|
|
34855
|
+
|
|
34856
|
+
|
|
34763
34857
|
class EnableLimitRuleItem(AbstractModel):
|
|
34764
34858
|
r"""EnableLimitRuleItem
|
|
34765
34859
|
|
|
@@ -55288,6 +55382,85 @@ class QueryBypassAllStatusResponse(AbstractModel):
|
|
|
55288
55382
|
self._RequestId = params.get("RequestId")
|
|
55289
55383
|
|
|
55290
55384
|
|
|
55385
|
+
class QueryClientMsgRequest(AbstractModel):
|
|
55386
|
+
r"""QueryClientMsg请求参数结构体
|
|
55387
|
+
|
|
55388
|
+
"""
|
|
55389
|
+
|
|
55390
|
+
def __init__(self):
|
|
55391
|
+
r"""
|
|
55392
|
+
:param _Domain: 域名
|
|
55393
|
+
:type Domain: str
|
|
55394
|
+
"""
|
|
55395
|
+
self._Domain = None
|
|
55396
|
+
|
|
55397
|
+
@property
|
|
55398
|
+
def Domain(self):
|
|
55399
|
+
r"""域名
|
|
55400
|
+
:rtype: str
|
|
55401
|
+
"""
|
|
55402
|
+
return self._Domain
|
|
55403
|
+
|
|
55404
|
+
@Domain.setter
|
|
55405
|
+
def Domain(self, Domain):
|
|
55406
|
+
self._Domain = Domain
|
|
55407
|
+
|
|
55408
|
+
|
|
55409
|
+
def _deserialize(self, params):
|
|
55410
|
+
self._Domain = params.get("Domain")
|
|
55411
|
+
memeber_set = set(params.keys())
|
|
55412
|
+
for name, value in vars(self).items():
|
|
55413
|
+
property_name = name[1:]
|
|
55414
|
+
if property_name in memeber_set:
|
|
55415
|
+
memeber_set.remove(property_name)
|
|
55416
|
+
if len(memeber_set) > 0:
|
|
55417
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
55418
|
+
|
|
55419
|
+
|
|
55420
|
+
|
|
55421
|
+
class QueryClientMsgResponse(AbstractModel):
|
|
55422
|
+
r"""QueryClientMsg返回参数结构体
|
|
55423
|
+
|
|
55424
|
+
"""
|
|
55425
|
+
|
|
55426
|
+
def __init__(self):
|
|
55427
|
+
r"""
|
|
55428
|
+
:param _Status: 0表示关闭,1表示开启
|
|
55429
|
+
:type Status: int
|
|
55430
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
55431
|
+
:type RequestId: str
|
|
55432
|
+
"""
|
|
55433
|
+
self._Status = None
|
|
55434
|
+
self._RequestId = None
|
|
55435
|
+
|
|
55436
|
+
@property
|
|
55437
|
+
def Status(self):
|
|
55438
|
+
r"""0表示关闭,1表示开启
|
|
55439
|
+
:rtype: int
|
|
55440
|
+
"""
|
|
55441
|
+
return self._Status
|
|
55442
|
+
|
|
55443
|
+
@Status.setter
|
|
55444
|
+
def Status(self, Status):
|
|
55445
|
+
self._Status = Status
|
|
55446
|
+
|
|
55447
|
+
@property
|
|
55448
|
+
def RequestId(self):
|
|
55449
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
55450
|
+
:rtype: str
|
|
55451
|
+
"""
|
|
55452
|
+
return self._RequestId
|
|
55453
|
+
|
|
55454
|
+
@RequestId.setter
|
|
55455
|
+
def RequestId(self, RequestId):
|
|
55456
|
+
self._RequestId = RequestId
|
|
55457
|
+
|
|
55458
|
+
|
|
55459
|
+
def _deserialize(self, params):
|
|
55460
|
+
self._Status = params.get("Status")
|
|
55461
|
+
self._RequestId = params.get("RequestId")
|
|
55462
|
+
|
|
55463
|
+
|
|
55291
55464
|
class RCEPkg(AbstractModel):
|
|
55292
55465
|
r"""有效REC设备安全包信息
|
|
55293
55466
|
|
|
@@ -3179,6 +3179,29 @@ class WafClient(AbstractClient):
|
|
|
3179
3179
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3180
3180
|
|
|
3181
3181
|
|
|
3182
|
+
def EnableClientMsg(self, request):
|
|
3183
|
+
r"""开关开启后,会将客户端的ip和port透传到后端
|
|
3184
|
+
|
|
3185
|
+
:param request: Request instance for EnableClientMsg.
|
|
3186
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.EnableClientMsgRequest`
|
|
3187
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.EnableClientMsgResponse`
|
|
3188
|
+
|
|
3189
|
+
"""
|
|
3190
|
+
try:
|
|
3191
|
+
params = request._serialize()
|
|
3192
|
+
headers = request.headers
|
|
3193
|
+
body = self.call("EnableClientMsg", params, headers=headers)
|
|
3194
|
+
response = json.loads(body)
|
|
3195
|
+
model = models.EnableClientMsgResponse()
|
|
3196
|
+
model._deserialize(response["Response"])
|
|
3197
|
+
return model
|
|
3198
|
+
except Exception as e:
|
|
3199
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3200
|
+
raise
|
|
3201
|
+
else:
|
|
3202
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3203
|
+
|
|
3204
|
+
|
|
3182
3205
|
def EnableRateLimitsV2(self, request):
|
|
3183
3206
|
r"""批量更改自研版限流规则开关
|
|
3184
3207
|
|
|
@@ -4831,6 +4854,29 @@ class WafClient(AbstractClient):
|
|
|
4831
4854
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4832
4855
|
|
|
4833
4856
|
|
|
4857
|
+
def QueryClientMsg(self, request):
|
|
4858
|
+
r"""查询是否开启透传客户端信息
|
|
4859
|
+
|
|
4860
|
+
:param request: Request instance for QueryClientMsg.
|
|
4861
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.QueryClientMsgRequest`
|
|
4862
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.QueryClientMsgResponse`
|
|
4863
|
+
|
|
4864
|
+
"""
|
|
4865
|
+
try:
|
|
4866
|
+
params = request._serialize()
|
|
4867
|
+
headers = request.headers
|
|
4868
|
+
body = self.call("QueryClientMsg", params, headers=headers)
|
|
4869
|
+
response = json.loads(body)
|
|
4870
|
+
model = models.QueryClientMsgResponse()
|
|
4871
|
+
model._deserialize(response["Response"])
|
|
4872
|
+
return model
|
|
4873
|
+
except Exception as e:
|
|
4874
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4875
|
+
raise
|
|
4876
|
+
else:
|
|
4877
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4878
|
+
|
|
4879
|
+
|
|
4834
4880
|
def RefreshAccessCheckResult(self, request):
|
|
4835
4881
|
r"""刷新接入检查的结果,后台会生成接入检查任务
|
|
4836
4882
|
|
|
@@ -2493,6 +2493,24 @@ class WafClient(AbstractClient):
|
|
|
2493
2493
|
|
|
2494
2494
|
return await self.call_and_deserialize(**kwargs)
|
|
2495
2495
|
|
|
2496
|
+
async def EnableClientMsg(
|
|
2497
|
+
self,
|
|
2498
|
+
request: models.EnableClientMsgRequest,
|
|
2499
|
+
opts: Dict = None,
|
|
2500
|
+
) -> models.EnableClientMsgResponse:
|
|
2501
|
+
"""
|
|
2502
|
+
开关开启后,会将客户端的ip和port透传到后端
|
|
2503
|
+
"""
|
|
2504
|
+
|
|
2505
|
+
kwargs = {}
|
|
2506
|
+
kwargs["action"] = "EnableClientMsg"
|
|
2507
|
+
kwargs["params"] = request._serialize()
|
|
2508
|
+
kwargs["resp_cls"] = models.EnableClientMsgResponse
|
|
2509
|
+
kwargs["headers"] = request.headers
|
|
2510
|
+
kwargs["opts"] = opts or {}
|
|
2511
|
+
|
|
2512
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2513
|
+
|
|
2496
2514
|
async def EnableRateLimitsV2(
|
|
2497
2515
|
self,
|
|
2498
2516
|
request: models.EnableRateLimitsV2Request,
|
|
@@ -3790,6 +3808,24 @@ class WafClient(AbstractClient):
|
|
|
3790
3808
|
|
|
3791
3809
|
return await self.call_and_deserialize(**kwargs)
|
|
3792
3810
|
|
|
3811
|
+
async def QueryClientMsg(
|
|
3812
|
+
self,
|
|
3813
|
+
request: models.QueryClientMsgRequest,
|
|
3814
|
+
opts: Dict = None,
|
|
3815
|
+
) -> models.QueryClientMsgResponse:
|
|
3816
|
+
"""
|
|
3817
|
+
查询是否开启透传客户端信息
|
|
3818
|
+
"""
|
|
3819
|
+
|
|
3820
|
+
kwargs = {}
|
|
3821
|
+
kwargs["action"] = "QueryClientMsg"
|
|
3822
|
+
kwargs["params"] = request._serialize()
|
|
3823
|
+
kwargs["resp_cls"] = models.QueryClientMsgResponse
|
|
3824
|
+
kwargs["headers"] = request.headers
|
|
3825
|
+
kwargs["opts"] = opts or {}
|
|
3826
|
+
|
|
3827
|
+
return await self.call_and_deserialize(**kwargs)
|
|
3828
|
+
|
|
3793
3829
|
async def RefreshAccessCheckResult(
|
|
3794
3830
|
self,
|
|
3795
3831
|
request: models.RefreshAccessCheckResultRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-waf
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.164
|
|
4
4
|
Summary: Tencent Cloud Waf 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.164
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.157
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|