tencentcloud-sdk-python-waf 3.0.1164__tar.gz → 3.0.1167__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.1164 → tencentcloud-sdk-python-waf-3.0.1167}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/setup.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/waf/v20180125/models.py +139 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/waf/v20180125/waf_client.py +46 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-waf-3.0.1167/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-waf-3.0.1164/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/README.rst +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/setup.cfg +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1164 → tencentcloud-sdk-python-waf-3.0.1167}/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.1167"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Waf SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -7818,6 +7818,49 @@ class DescribeAntiLeakageItem(AbstractModel):
|
|
|
7818
7818
|
|
|
7819
7819
|
|
|
7820
7820
|
|
|
7821
|
+
class DescribeAreaBanSupportAreasRequest(AbstractModel):
|
|
7822
|
+
"""DescribeAreaBanSupportAreas请求参数结构体
|
|
7823
|
+
|
|
7824
|
+
"""
|
|
7825
|
+
|
|
7826
|
+
|
|
7827
|
+
class DescribeAreaBanSupportAreasResponse(AbstractModel):
|
|
7828
|
+
"""DescribeAreaBanSupportAreas返回参数结构体
|
|
7829
|
+
|
|
7830
|
+
"""
|
|
7831
|
+
|
|
7832
|
+
def __init__(self):
|
|
7833
|
+
r"""
|
|
7834
|
+
:param _Data: 地域封禁的地域列表,要解析成json后使用
|
|
7835
|
+
:type Data: str
|
|
7836
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7837
|
+
:type RequestId: str
|
|
7838
|
+
"""
|
|
7839
|
+
self._Data = None
|
|
7840
|
+
self._RequestId = None
|
|
7841
|
+
|
|
7842
|
+
@property
|
|
7843
|
+
def Data(self):
|
|
7844
|
+
return self._Data
|
|
7845
|
+
|
|
7846
|
+
@Data.setter
|
|
7847
|
+
def Data(self, Data):
|
|
7848
|
+
self._Data = Data
|
|
7849
|
+
|
|
7850
|
+
@property
|
|
7851
|
+
def RequestId(self):
|
|
7852
|
+
return self._RequestId
|
|
7853
|
+
|
|
7854
|
+
@RequestId.setter
|
|
7855
|
+
def RequestId(self, RequestId):
|
|
7856
|
+
self._RequestId = RequestId
|
|
7857
|
+
|
|
7858
|
+
|
|
7859
|
+
def _deserialize(self, params):
|
|
7860
|
+
self._Data = params.get("Data")
|
|
7861
|
+
self._RequestId = params.get("RequestId")
|
|
7862
|
+
|
|
7863
|
+
|
|
7821
7864
|
class DescribeAttackOverviewRequest(AbstractModel):
|
|
7822
7865
|
"""DescribeAttackOverview请求参数结构体
|
|
7823
7866
|
|
|
@@ -20622,6 +20665,102 @@ class ModifyApiSecEventChangeResponse(AbstractModel):
|
|
|
20622
20665
|
self._RequestId = params.get("RequestId")
|
|
20623
20666
|
|
|
20624
20667
|
|
|
20668
|
+
class ModifyAreaBanAreasRequest(AbstractModel):
|
|
20669
|
+
"""ModifyAreaBanAreas请求参数结构体
|
|
20670
|
+
|
|
20671
|
+
"""
|
|
20672
|
+
|
|
20673
|
+
def __init__(self):
|
|
20674
|
+
r"""
|
|
20675
|
+
:param _Domain: 需要修改的域名
|
|
20676
|
+
:type Domain: str
|
|
20677
|
+
:param _Areas: 需要调整的地域信息,一个字符串数组
|
|
20678
|
+
:type Areas: list of str
|
|
20679
|
+
:param _JobType: 定时任务类型
|
|
20680
|
+
:type JobType: str
|
|
20681
|
+
:param _JobDateTime: 定时任务配置
|
|
20682
|
+
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
20683
|
+
"""
|
|
20684
|
+
self._Domain = None
|
|
20685
|
+
self._Areas = None
|
|
20686
|
+
self._JobType = None
|
|
20687
|
+
self._JobDateTime = None
|
|
20688
|
+
|
|
20689
|
+
@property
|
|
20690
|
+
def Domain(self):
|
|
20691
|
+
return self._Domain
|
|
20692
|
+
|
|
20693
|
+
@Domain.setter
|
|
20694
|
+
def Domain(self, Domain):
|
|
20695
|
+
self._Domain = Domain
|
|
20696
|
+
|
|
20697
|
+
@property
|
|
20698
|
+
def Areas(self):
|
|
20699
|
+
return self._Areas
|
|
20700
|
+
|
|
20701
|
+
@Areas.setter
|
|
20702
|
+
def Areas(self, Areas):
|
|
20703
|
+
self._Areas = Areas
|
|
20704
|
+
|
|
20705
|
+
@property
|
|
20706
|
+
def JobType(self):
|
|
20707
|
+
return self._JobType
|
|
20708
|
+
|
|
20709
|
+
@JobType.setter
|
|
20710
|
+
def JobType(self, JobType):
|
|
20711
|
+
self._JobType = JobType
|
|
20712
|
+
|
|
20713
|
+
@property
|
|
20714
|
+
def JobDateTime(self):
|
|
20715
|
+
return self._JobDateTime
|
|
20716
|
+
|
|
20717
|
+
@JobDateTime.setter
|
|
20718
|
+
def JobDateTime(self, JobDateTime):
|
|
20719
|
+
self._JobDateTime = JobDateTime
|
|
20720
|
+
|
|
20721
|
+
|
|
20722
|
+
def _deserialize(self, params):
|
|
20723
|
+
self._Domain = params.get("Domain")
|
|
20724
|
+
self._Areas = params.get("Areas")
|
|
20725
|
+
self._JobType = params.get("JobType")
|
|
20726
|
+
if params.get("JobDateTime") is not None:
|
|
20727
|
+
self._JobDateTime = JobDateTime()
|
|
20728
|
+
self._JobDateTime._deserialize(params.get("JobDateTime"))
|
|
20729
|
+
memeber_set = set(params.keys())
|
|
20730
|
+
for name, value in vars(self).items():
|
|
20731
|
+
property_name = name[1:]
|
|
20732
|
+
if property_name in memeber_set:
|
|
20733
|
+
memeber_set.remove(property_name)
|
|
20734
|
+
if len(memeber_set) > 0:
|
|
20735
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20736
|
+
|
|
20737
|
+
|
|
20738
|
+
|
|
20739
|
+
class ModifyAreaBanAreasResponse(AbstractModel):
|
|
20740
|
+
"""ModifyAreaBanAreas返回参数结构体
|
|
20741
|
+
|
|
20742
|
+
"""
|
|
20743
|
+
|
|
20744
|
+
def __init__(self):
|
|
20745
|
+
r"""
|
|
20746
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20747
|
+
:type RequestId: str
|
|
20748
|
+
"""
|
|
20749
|
+
self._RequestId = None
|
|
20750
|
+
|
|
20751
|
+
@property
|
|
20752
|
+
def RequestId(self):
|
|
20753
|
+
return self._RequestId
|
|
20754
|
+
|
|
20755
|
+
@RequestId.setter
|
|
20756
|
+
def RequestId(self, RequestId):
|
|
20757
|
+
self._RequestId = RequestId
|
|
20758
|
+
|
|
20759
|
+
|
|
20760
|
+
def _deserialize(self, params):
|
|
20761
|
+
self._RequestId = params.get("RequestId")
|
|
20762
|
+
|
|
20763
|
+
|
|
20625
20764
|
class ModifyAreaBanStatusRequest(AbstractModel):
|
|
20626
20765
|
"""ModifyAreaBanStatus请求参数结构体
|
|
20627
20766
|
|
|
@@ -814,6 +814,29 @@ class WafClient(AbstractClient):
|
|
|
814
814
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
815
815
|
|
|
816
816
|
|
|
817
|
+
def DescribeAreaBanSupportAreas(self, request):
|
|
818
|
+
"""获取WAF地域封禁支持的地域列表
|
|
819
|
+
|
|
820
|
+
:param request: Request instance for DescribeAreaBanSupportAreas.
|
|
821
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAreaBanSupportAreasRequest`
|
|
822
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAreaBanSupportAreasResponse`
|
|
823
|
+
|
|
824
|
+
"""
|
|
825
|
+
try:
|
|
826
|
+
params = request._serialize()
|
|
827
|
+
headers = request.headers
|
|
828
|
+
body = self.call("DescribeAreaBanSupportAreas", params, headers=headers)
|
|
829
|
+
response = json.loads(body)
|
|
830
|
+
model = models.DescribeAreaBanSupportAreasResponse()
|
|
831
|
+
model._deserialize(response["Response"])
|
|
832
|
+
return model
|
|
833
|
+
except Exception as e:
|
|
834
|
+
if isinstance(e, TencentCloudSDKException):
|
|
835
|
+
raise
|
|
836
|
+
else:
|
|
837
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
838
|
+
|
|
839
|
+
|
|
817
840
|
def DescribeAttackOverview(self, request):
|
|
818
841
|
"""攻击总览
|
|
819
842
|
|
|
@@ -2263,6 +2286,29 @@ class WafClient(AbstractClient):
|
|
|
2263
2286
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2264
2287
|
|
|
2265
2288
|
|
|
2289
|
+
def ModifyAreaBanAreas(self, request):
|
|
2290
|
+
"""修改地域封禁中的地域信息
|
|
2291
|
+
|
|
2292
|
+
:param request: Request instance for ModifyAreaBanAreas.
|
|
2293
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyAreaBanAreasRequest`
|
|
2294
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAreaBanAreasResponse`
|
|
2295
|
+
|
|
2296
|
+
"""
|
|
2297
|
+
try:
|
|
2298
|
+
params = request._serialize()
|
|
2299
|
+
headers = request.headers
|
|
2300
|
+
body = self.call("ModifyAreaBanAreas", params, headers=headers)
|
|
2301
|
+
response = json.loads(body)
|
|
2302
|
+
model = models.ModifyAreaBanAreasResponse()
|
|
2303
|
+
model._deserialize(response["Response"])
|
|
2304
|
+
return model
|
|
2305
|
+
except Exception as e:
|
|
2306
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2307
|
+
raise
|
|
2308
|
+
else:
|
|
2309
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2310
|
+
|
|
2311
|
+
|
|
2266
2312
|
def ModifyAreaBanStatus(self, request):
|
|
2267
2313
|
"""修改防护域名的地域封禁状态
|
|
2268
2314
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1167
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1164
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|