tencentcloud-sdk-python-waf 3.0.1167__tar.gz → 3.0.1169__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.1167 → tencentcloud-sdk-python-waf-3.0.1169}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/setup.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/waf/v20180125/models.py +172 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-waf-3.0.1169/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-waf-3.0.1167/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/README.rst +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/setup.cfg +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1167 → tencentcloud-sdk-python-waf-3.0.1169}/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.1169"],
|
|
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,178 @@ class DescribeAntiLeakageItem(AbstractModel):
|
|
|
7818
7818
|
|
|
7819
7819
|
|
|
7820
7820
|
|
|
7821
|
+
class DescribeAreaBanAreasRequest(AbstractModel):
|
|
7822
|
+
"""DescribeAreaBanAreas请求参数结构体
|
|
7823
|
+
|
|
7824
|
+
"""
|
|
7825
|
+
|
|
7826
|
+
def __init__(self):
|
|
7827
|
+
r"""
|
|
7828
|
+
:param _Domain: 需要查询的域名
|
|
7829
|
+
:type Domain: str
|
|
7830
|
+
"""
|
|
7831
|
+
self._Domain = None
|
|
7832
|
+
|
|
7833
|
+
@property
|
|
7834
|
+
def Domain(self):
|
|
7835
|
+
return self._Domain
|
|
7836
|
+
|
|
7837
|
+
@Domain.setter
|
|
7838
|
+
def Domain(self, Domain):
|
|
7839
|
+
self._Domain = Domain
|
|
7840
|
+
|
|
7841
|
+
|
|
7842
|
+
def _deserialize(self, params):
|
|
7843
|
+
self._Domain = params.get("Domain")
|
|
7844
|
+
memeber_set = set(params.keys())
|
|
7845
|
+
for name, value in vars(self).items():
|
|
7846
|
+
property_name = name[1:]
|
|
7847
|
+
if property_name in memeber_set:
|
|
7848
|
+
memeber_set.remove(property_name)
|
|
7849
|
+
if len(memeber_set) > 0:
|
|
7850
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7851
|
+
|
|
7852
|
+
|
|
7853
|
+
|
|
7854
|
+
class DescribeAreaBanAreasResponse(AbstractModel):
|
|
7855
|
+
"""DescribeAreaBanAreas返回参数结构体
|
|
7856
|
+
|
|
7857
|
+
"""
|
|
7858
|
+
|
|
7859
|
+
def __init__(self):
|
|
7860
|
+
r"""
|
|
7861
|
+
:param _Data: 回包内容
|
|
7862
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7863
|
+
:type Data: :class:`tencentcloud.waf.v20180125.models.DescribeAreaBanAreasRsp`
|
|
7864
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7865
|
+
:type RequestId: str
|
|
7866
|
+
"""
|
|
7867
|
+
self._Data = None
|
|
7868
|
+
self._RequestId = None
|
|
7869
|
+
|
|
7870
|
+
@property
|
|
7871
|
+
def Data(self):
|
|
7872
|
+
return self._Data
|
|
7873
|
+
|
|
7874
|
+
@Data.setter
|
|
7875
|
+
def Data(self, Data):
|
|
7876
|
+
self._Data = Data
|
|
7877
|
+
|
|
7878
|
+
@property
|
|
7879
|
+
def RequestId(self):
|
|
7880
|
+
return self._RequestId
|
|
7881
|
+
|
|
7882
|
+
@RequestId.setter
|
|
7883
|
+
def RequestId(self, RequestId):
|
|
7884
|
+
self._RequestId = RequestId
|
|
7885
|
+
|
|
7886
|
+
|
|
7887
|
+
def _deserialize(self, params):
|
|
7888
|
+
if params.get("Data") is not None:
|
|
7889
|
+
self._Data = DescribeAreaBanAreasRsp()
|
|
7890
|
+
self._Data._deserialize(params.get("Data"))
|
|
7891
|
+
self._RequestId = params.get("RequestId")
|
|
7892
|
+
|
|
7893
|
+
|
|
7894
|
+
class DescribeAreaBanAreasRsp(AbstractModel):
|
|
7895
|
+
"""DescribeAreaBanAreas接口的回包
|
|
7896
|
+
|
|
7897
|
+
"""
|
|
7898
|
+
|
|
7899
|
+
def __init__(self):
|
|
7900
|
+
r"""
|
|
7901
|
+
:param _Status: 状态 "0":未开启地域封禁 "1":开启地域封禁
|
|
7902
|
+
:type Status: str
|
|
7903
|
+
:param _Source: 数据来源 custom-自定义(默认)、batch-批量防护
|
|
7904
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7905
|
+
:type Source: str
|
|
7906
|
+
:param _Areas: 字符串数据,配置的地域列表
|
|
7907
|
+
:type Areas: list of str
|
|
7908
|
+
:param _JobType: 定时任务类型
|
|
7909
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7910
|
+
:type JobType: str
|
|
7911
|
+
:param _JobDateTime: 定时任务详细配置
|
|
7912
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7913
|
+
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
7914
|
+
:param _CronType: 周期任务配置
|
|
7915
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7916
|
+
:type CronType: str
|
|
7917
|
+
"""
|
|
7918
|
+
self._Status = None
|
|
7919
|
+
self._Source = None
|
|
7920
|
+
self._Areas = None
|
|
7921
|
+
self._JobType = None
|
|
7922
|
+
self._JobDateTime = None
|
|
7923
|
+
self._CronType = None
|
|
7924
|
+
|
|
7925
|
+
@property
|
|
7926
|
+
def Status(self):
|
|
7927
|
+
return self._Status
|
|
7928
|
+
|
|
7929
|
+
@Status.setter
|
|
7930
|
+
def Status(self, Status):
|
|
7931
|
+
self._Status = Status
|
|
7932
|
+
|
|
7933
|
+
@property
|
|
7934
|
+
def Source(self):
|
|
7935
|
+
return self._Source
|
|
7936
|
+
|
|
7937
|
+
@Source.setter
|
|
7938
|
+
def Source(self, Source):
|
|
7939
|
+
self._Source = Source
|
|
7940
|
+
|
|
7941
|
+
@property
|
|
7942
|
+
def Areas(self):
|
|
7943
|
+
return self._Areas
|
|
7944
|
+
|
|
7945
|
+
@Areas.setter
|
|
7946
|
+
def Areas(self, Areas):
|
|
7947
|
+
self._Areas = Areas
|
|
7948
|
+
|
|
7949
|
+
@property
|
|
7950
|
+
def JobType(self):
|
|
7951
|
+
return self._JobType
|
|
7952
|
+
|
|
7953
|
+
@JobType.setter
|
|
7954
|
+
def JobType(self, JobType):
|
|
7955
|
+
self._JobType = JobType
|
|
7956
|
+
|
|
7957
|
+
@property
|
|
7958
|
+
def JobDateTime(self):
|
|
7959
|
+
return self._JobDateTime
|
|
7960
|
+
|
|
7961
|
+
@JobDateTime.setter
|
|
7962
|
+
def JobDateTime(self, JobDateTime):
|
|
7963
|
+
self._JobDateTime = JobDateTime
|
|
7964
|
+
|
|
7965
|
+
@property
|
|
7966
|
+
def CronType(self):
|
|
7967
|
+
return self._CronType
|
|
7968
|
+
|
|
7969
|
+
@CronType.setter
|
|
7970
|
+
def CronType(self, CronType):
|
|
7971
|
+
self._CronType = CronType
|
|
7972
|
+
|
|
7973
|
+
|
|
7974
|
+
def _deserialize(self, params):
|
|
7975
|
+
self._Status = params.get("Status")
|
|
7976
|
+
self._Source = params.get("Source")
|
|
7977
|
+
self._Areas = params.get("Areas")
|
|
7978
|
+
self._JobType = params.get("JobType")
|
|
7979
|
+
if params.get("JobDateTime") is not None:
|
|
7980
|
+
self._JobDateTime = JobDateTime()
|
|
7981
|
+
self._JobDateTime._deserialize(params.get("JobDateTime"))
|
|
7982
|
+
self._CronType = params.get("CronType")
|
|
7983
|
+
memeber_set = set(params.keys())
|
|
7984
|
+
for name, value in vars(self).items():
|
|
7985
|
+
property_name = name[1:]
|
|
7986
|
+
if property_name in memeber_set:
|
|
7987
|
+
memeber_set.remove(property_name)
|
|
7988
|
+
if len(memeber_set) > 0:
|
|
7989
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7990
|
+
|
|
7991
|
+
|
|
7992
|
+
|
|
7821
7993
|
class DescribeAreaBanSupportAreasRequest(AbstractModel):
|
|
7822
7994
|
"""DescribeAreaBanSupportAreas请求参数结构体
|
|
7823
7995
|
|
|
@@ -814,6 +814,29 @@ class WafClient(AbstractClient):
|
|
|
814
814
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
815
815
|
|
|
816
816
|
|
|
817
|
+
def DescribeAreaBanAreas(self, request):
|
|
818
|
+
"""获取地域封禁配置包括地域封禁开关,设置封禁的地区信息
|
|
819
|
+
|
|
820
|
+
:param request: Request instance for DescribeAreaBanAreas.
|
|
821
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeAreaBanAreasRequest`
|
|
822
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeAreaBanAreasResponse`
|
|
823
|
+
|
|
824
|
+
"""
|
|
825
|
+
try:
|
|
826
|
+
params = request._serialize()
|
|
827
|
+
headers = request.headers
|
|
828
|
+
body = self.call("DescribeAreaBanAreas", params, headers=headers)
|
|
829
|
+
response = json.loads(body)
|
|
830
|
+
model = models.DescribeAreaBanAreasResponse()
|
|
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 DescribeAreaBanSupportAreas(self, request):
|
|
818
841
|
"""获取WAF地域封禁支持的地域列表
|
|
819
842
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1169
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1167
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|