tencentcloud-sdk-python-waf 3.0.1174__tar.gz → 3.0.1175__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.1174 → tencentcloud-sdk-python-waf-3.0.1175}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/setup.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/waf/v20180125/models.py +108 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-waf-3.0.1175/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-waf-3.0.1174/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/README.rst +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/setup.cfg +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1174 → tencentcloud-sdk-python-waf-3.0.1175}/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.1175"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Waf SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -934,6 +934,114 @@ class AddAntiInfoLeakRulesResponse(AbstractModel):
|
|
|
934
934
|
self._RequestId = params.get("RequestId")
|
|
935
935
|
|
|
936
936
|
|
|
937
|
+
class AddAreaBanAreasRequest(AbstractModel):
|
|
938
|
+
"""AddAreaBanAreas请求参数结构体
|
|
939
|
+
|
|
940
|
+
"""
|
|
941
|
+
|
|
942
|
+
def __init__(self):
|
|
943
|
+
r"""
|
|
944
|
+
:param _Domain: 需要修改的域名
|
|
945
|
+
:type Domain: str
|
|
946
|
+
:param _Areas: 需要新增的封禁地域
|
|
947
|
+
:type Areas: list of str
|
|
948
|
+
:param _Edition: waf版本信息,spart-waf或者clb-waf,其他无效,请一定填写
|
|
949
|
+
:type Edition: str
|
|
950
|
+
:param _JobType: 定时任务类型
|
|
951
|
+
:type JobType: str
|
|
952
|
+
:param _JobDateTime: 定时任务配置
|
|
953
|
+
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
954
|
+
"""
|
|
955
|
+
self._Domain = None
|
|
956
|
+
self._Areas = None
|
|
957
|
+
self._Edition = None
|
|
958
|
+
self._JobType = None
|
|
959
|
+
self._JobDateTime = None
|
|
960
|
+
|
|
961
|
+
@property
|
|
962
|
+
def Domain(self):
|
|
963
|
+
return self._Domain
|
|
964
|
+
|
|
965
|
+
@Domain.setter
|
|
966
|
+
def Domain(self, Domain):
|
|
967
|
+
self._Domain = Domain
|
|
968
|
+
|
|
969
|
+
@property
|
|
970
|
+
def Areas(self):
|
|
971
|
+
return self._Areas
|
|
972
|
+
|
|
973
|
+
@Areas.setter
|
|
974
|
+
def Areas(self, Areas):
|
|
975
|
+
self._Areas = Areas
|
|
976
|
+
|
|
977
|
+
@property
|
|
978
|
+
def Edition(self):
|
|
979
|
+
return self._Edition
|
|
980
|
+
|
|
981
|
+
@Edition.setter
|
|
982
|
+
def Edition(self, Edition):
|
|
983
|
+
self._Edition = Edition
|
|
984
|
+
|
|
985
|
+
@property
|
|
986
|
+
def JobType(self):
|
|
987
|
+
return self._JobType
|
|
988
|
+
|
|
989
|
+
@JobType.setter
|
|
990
|
+
def JobType(self, JobType):
|
|
991
|
+
self._JobType = JobType
|
|
992
|
+
|
|
993
|
+
@property
|
|
994
|
+
def JobDateTime(self):
|
|
995
|
+
return self._JobDateTime
|
|
996
|
+
|
|
997
|
+
@JobDateTime.setter
|
|
998
|
+
def JobDateTime(self, JobDateTime):
|
|
999
|
+
self._JobDateTime = JobDateTime
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
def _deserialize(self, params):
|
|
1003
|
+
self._Domain = params.get("Domain")
|
|
1004
|
+
self._Areas = params.get("Areas")
|
|
1005
|
+
self._Edition = params.get("Edition")
|
|
1006
|
+
self._JobType = params.get("JobType")
|
|
1007
|
+
if params.get("JobDateTime") is not None:
|
|
1008
|
+
self._JobDateTime = JobDateTime()
|
|
1009
|
+
self._JobDateTime._deserialize(params.get("JobDateTime"))
|
|
1010
|
+
memeber_set = set(params.keys())
|
|
1011
|
+
for name, value in vars(self).items():
|
|
1012
|
+
property_name = name[1:]
|
|
1013
|
+
if property_name in memeber_set:
|
|
1014
|
+
memeber_set.remove(property_name)
|
|
1015
|
+
if len(memeber_set) > 0:
|
|
1016
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
class AddAreaBanAreasResponse(AbstractModel):
|
|
1021
|
+
"""AddAreaBanAreas返回参数结构体
|
|
1022
|
+
|
|
1023
|
+
"""
|
|
1024
|
+
|
|
1025
|
+
def __init__(self):
|
|
1026
|
+
r"""
|
|
1027
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1028
|
+
:type RequestId: str
|
|
1029
|
+
"""
|
|
1030
|
+
self._RequestId = None
|
|
1031
|
+
|
|
1032
|
+
@property
|
|
1033
|
+
def RequestId(self):
|
|
1034
|
+
return self._RequestId
|
|
1035
|
+
|
|
1036
|
+
@RequestId.setter
|
|
1037
|
+
def RequestId(self, RequestId):
|
|
1038
|
+
self._RequestId = RequestId
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
def _deserialize(self, params):
|
|
1042
|
+
self._RequestId = params.get("RequestId")
|
|
1043
|
+
|
|
1044
|
+
|
|
937
1045
|
class AddAttackWhiteRuleRequest(AbstractModel):
|
|
938
1046
|
"""AddAttackWhiteRule请求参数结构体
|
|
939
1047
|
|
|
@@ -72,6 +72,29 @@ class WafClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def AddAreaBanAreas(self, request):
|
|
76
|
+
"""添加地域封禁中的地域信息
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for AddAreaBanAreas.
|
|
79
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.AddAreaBanAreasRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.AddAreaBanAreasResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("AddAreaBanAreas", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.AddAreaBanAreasResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def AddAttackWhiteRule(self, request):
|
|
76
99
|
"""供用户控制台调用,增加Tiga规则引擎白名单。
|
|
77
100
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1175
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1174
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|