tencentcloud-sdk-python-waf 3.0.1141__tar.gz → 3.0.1144__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.1141 → tencentcloud-sdk-python-waf-3.0.1144}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/setup.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/waf/v20180125/models.py +607 -9
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/waf/v20180125/waf_client.py +92 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-waf-3.0.1144/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-waf-3.0.1141/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/README.rst +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/setup.cfg +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-waf-3.0.1141 → tencentcloud-sdk-python-waf-3.0.1144}/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.1144"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Waf SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -4750,6 +4750,162 @@ class CreateHostResponse(AbstractModel):
|
|
|
4750
4750
|
self._RequestId = params.get("RequestId")
|
|
4751
4751
|
|
|
4752
4752
|
|
|
4753
|
+
class CreateIpAccessControlRequest(AbstractModel):
|
|
4754
|
+
"""CreateIpAccessControl请求参数结构体
|
|
4755
|
+
|
|
4756
|
+
"""
|
|
4757
|
+
|
|
4758
|
+
def __init__(self):
|
|
4759
|
+
r"""
|
|
4760
|
+
:param _Domain: 具体域名如:test.qcloudwaf.com
|
|
4761
|
+
全局域名为:global
|
|
4762
|
+
:type Domain: str
|
|
4763
|
+
:param _IpList: ip参数列表
|
|
4764
|
+
:type IpList: list of str
|
|
4765
|
+
:param _ActionType: 42为黑名单,40为白名单
|
|
4766
|
+
:type ActionType: int
|
|
4767
|
+
:param _ValidTS: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
4768
|
+
:type ValidTS: int
|
|
4769
|
+
:param _InstanceId: 实例Id
|
|
4770
|
+
:type InstanceId: str
|
|
4771
|
+
:param _Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
|
4772
|
+
:type Edition: str
|
|
4773
|
+
:param _SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
4774
|
+
:type SourceType: str
|
|
4775
|
+
:param _Note: 备注
|
|
4776
|
+
:type Note: str
|
|
4777
|
+
"""
|
|
4778
|
+
self._Domain = None
|
|
4779
|
+
self._IpList = None
|
|
4780
|
+
self._ActionType = None
|
|
4781
|
+
self._ValidTS = None
|
|
4782
|
+
self._InstanceId = None
|
|
4783
|
+
self._Edition = None
|
|
4784
|
+
self._SourceType = None
|
|
4785
|
+
self._Note = None
|
|
4786
|
+
|
|
4787
|
+
@property
|
|
4788
|
+
def Domain(self):
|
|
4789
|
+
return self._Domain
|
|
4790
|
+
|
|
4791
|
+
@Domain.setter
|
|
4792
|
+
def Domain(self, Domain):
|
|
4793
|
+
self._Domain = Domain
|
|
4794
|
+
|
|
4795
|
+
@property
|
|
4796
|
+
def IpList(self):
|
|
4797
|
+
return self._IpList
|
|
4798
|
+
|
|
4799
|
+
@IpList.setter
|
|
4800
|
+
def IpList(self, IpList):
|
|
4801
|
+
self._IpList = IpList
|
|
4802
|
+
|
|
4803
|
+
@property
|
|
4804
|
+
def ActionType(self):
|
|
4805
|
+
return self._ActionType
|
|
4806
|
+
|
|
4807
|
+
@ActionType.setter
|
|
4808
|
+
def ActionType(self, ActionType):
|
|
4809
|
+
self._ActionType = ActionType
|
|
4810
|
+
|
|
4811
|
+
@property
|
|
4812
|
+
def ValidTS(self):
|
|
4813
|
+
return self._ValidTS
|
|
4814
|
+
|
|
4815
|
+
@ValidTS.setter
|
|
4816
|
+
def ValidTS(self, ValidTS):
|
|
4817
|
+
self._ValidTS = ValidTS
|
|
4818
|
+
|
|
4819
|
+
@property
|
|
4820
|
+
def InstanceId(self):
|
|
4821
|
+
return self._InstanceId
|
|
4822
|
+
|
|
4823
|
+
@InstanceId.setter
|
|
4824
|
+
def InstanceId(self, InstanceId):
|
|
4825
|
+
self._InstanceId = InstanceId
|
|
4826
|
+
|
|
4827
|
+
@property
|
|
4828
|
+
def Edition(self):
|
|
4829
|
+
return self._Edition
|
|
4830
|
+
|
|
4831
|
+
@Edition.setter
|
|
4832
|
+
def Edition(self, Edition):
|
|
4833
|
+
self._Edition = Edition
|
|
4834
|
+
|
|
4835
|
+
@property
|
|
4836
|
+
def SourceType(self):
|
|
4837
|
+
return self._SourceType
|
|
4838
|
+
|
|
4839
|
+
@SourceType.setter
|
|
4840
|
+
def SourceType(self, SourceType):
|
|
4841
|
+
self._SourceType = SourceType
|
|
4842
|
+
|
|
4843
|
+
@property
|
|
4844
|
+
def Note(self):
|
|
4845
|
+
return self._Note
|
|
4846
|
+
|
|
4847
|
+
@Note.setter
|
|
4848
|
+
def Note(self, Note):
|
|
4849
|
+
self._Note = Note
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
def _deserialize(self, params):
|
|
4853
|
+
self._Domain = params.get("Domain")
|
|
4854
|
+
self._IpList = params.get("IpList")
|
|
4855
|
+
self._ActionType = params.get("ActionType")
|
|
4856
|
+
self._ValidTS = params.get("ValidTS")
|
|
4857
|
+
self._InstanceId = params.get("InstanceId")
|
|
4858
|
+
self._Edition = params.get("Edition")
|
|
4859
|
+
self._SourceType = params.get("SourceType")
|
|
4860
|
+
self._Note = params.get("Note")
|
|
4861
|
+
memeber_set = set(params.keys())
|
|
4862
|
+
for name, value in vars(self).items():
|
|
4863
|
+
property_name = name[1:]
|
|
4864
|
+
if property_name in memeber_set:
|
|
4865
|
+
memeber_set.remove(property_name)
|
|
4866
|
+
if len(memeber_set) > 0:
|
|
4867
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4868
|
+
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
class CreateIpAccessControlResponse(AbstractModel):
|
|
4872
|
+
"""CreateIpAccessControl返回参数结构体
|
|
4873
|
+
|
|
4874
|
+
"""
|
|
4875
|
+
|
|
4876
|
+
def __init__(self):
|
|
4877
|
+
r"""
|
|
4878
|
+
:param _RuleId: 新增的规则对应的ID
|
|
4879
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4880
|
+
:type RuleId: int
|
|
4881
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4882
|
+
:type RequestId: str
|
|
4883
|
+
"""
|
|
4884
|
+
self._RuleId = None
|
|
4885
|
+
self._RequestId = None
|
|
4886
|
+
|
|
4887
|
+
@property
|
|
4888
|
+
def RuleId(self):
|
|
4889
|
+
return self._RuleId
|
|
4890
|
+
|
|
4891
|
+
@RuleId.setter
|
|
4892
|
+
def RuleId(self, RuleId):
|
|
4893
|
+
self._RuleId = RuleId
|
|
4894
|
+
|
|
4895
|
+
@property
|
|
4896
|
+
def RequestId(self):
|
|
4897
|
+
return self._RequestId
|
|
4898
|
+
|
|
4899
|
+
@RequestId.setter
|
|
4900
|
+
def RequestId(self, RequestId):
|
|
4901
|
+
self._RequestId = RequestId
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
def _deserialize(self, params):
|
|
4905
|
+
self._RuleId = params.get("RuleId")
|
|
4906
|
+
self._RequestId = params.get("RequestId")
|
|
4907
|
+
|
|
4908
|
+
|
|
4753
4909
|
class DealData(AbstractModel):
|
|
4754
4910
|
"""计费下单响应实体
|
|
4755
4911
|
|
|
@@ -5793,6 +5949,124 @@ class DeleteIpAccessControlResponse(AbstractModel):
|
|
|
5793
5949
|
self._RequestId = params.get("RequestId")
|
|
5794
5950
|
|
|
5795
5951
|
|
|
5952
|
+
class DeleteIpAccessControlV2Request(AbstractModel):
|
|
5953
|
+
"""DeleteIpAccessControlV2请求参数结构体
|
|
5954
|
+
|
|
5955
|
+
"""
|
|
5956
|
+
|
|
5957
|
+
def __init__(self):
|
|
5958
|
+
r"""
|
|
5959
|
+
:param _Domain: 域名
|
|
5960
|
+
:type Domain: str
|
|
5961
|
+
:param _RuleIds: 规则ID列表,支持批量删除
|
|
5962
|
+
:type RuleIds: list of int non-negative
|
|
5963
|
+
:param _DeleteAll: 是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单
|
|
5964
|
+
:type DeleteAll: bool
|
|
5965
|
+
:param _SourceType: batch表示为批量防护的IP黑白名单
|
|
5966
|
+
:type SourceType: str
|
|
5967
|
+
:param _ActionType: IP黑白名单类型,40为IP白名单,42为IP黑名单
|
|
5968
|
+
:type ActionType: int
|
|
5969
|
+
"""
|
|
5970
|
+
self._Domain = None
|
|
5971
|
+
self._RuleIds = None
|
|
5972
|
+
self._DeleteAll = None
|
|
5973
|
+
self._SourceType = None
|
|
5974
|
+
self._ActionType = None
|
|
5975
|
+
|
|
5976
|
+
@property
|
|
5977
|
+
def Domain(self):
|
|
5978
|
+
return self._Domain
|
|
5979
|
+
|
|
5980
|
+
@Domain.setter
|
|
5981
|
+
def Domain(self, Domain):
|
|
5982
|
+
self._Domain = Domain
|
|
5983
|
+
|
|
5984
|
+
@property
|
|
5985
|
+
def RuleIds(self):
|
|
5986
|
+
return self._RuleIds
|
|
5987
|
+
|
|
5988
|
+
@RuleIds.setter
|
|
5989
|
+
def RuleIds(self, RuleIds):
|
|
5990
|
+
self._RuleIds = RuleIds
|
|
5991
|
+
|
|
5992
|
+
@property
|
|
5993
|
+
def DeleteAll(self):
|
|
5994
|
+
return self._DeleteAll
|
|
5995
|
+
|
|
5996
|
+
@DeleteAll.setter
|
|
5997
|
+
def DeleteAll(self, DeleteAll):
|
|
5998
|
+
self._DeleteAll = DeleteAll
|
|
5999
|
+
|
|
6000
|
+
@property
|
|
6001
|
+
def SourceType(self):
|
|
6002
|
+
return self._SourceType
|
|
6003
|
+
|
|
6004
|
+
@SourceType.setter
|
|
6005
|
+
def SourceType(self, SourceType):
|
|
6006
|
+
self._SourceType = SourceType
|
|
6007
|
+
|
|
6008
|
+
@property
|
|
6009
|
+
def ActionType(self):
|
|
6010
|
+
return self._ActionType
|
|
6011
|
+
|
|
6012
|
+
@ActionType.setter
|
|
6013
|
+
def ActionType(self, ActionType):
|
|
6014
|
+
self._ActionType = ActionType
|
|
6015
|
+
|
|
6016
|
+
|
|
6017
|
+
def _deserialize(self, params):
|
|
6018
|
+
self._Domain = params.get("Domain")
|
|
6019
|
+
self._RuleIds = params.get("RuleIds")
|
|
6020
|
+
self._DeleteAll = params.get("DeleteAll")
|
|
6021
|
+
self._SourceType = params.get("SourceType")
|
|
6022
|
+
self._ActionType = params.get("ActionType")
|
|
6023
|
+
memeber_set = set(params.keys())
|
|
6024
|
+
for name, value in vars(self).items():
|
|
6025
|
+
property_name = name[1:]
|
|
6026
|
+
if property_name in memeber_set:
|
|
6027
|
+
memeber_set.remove(property_name)
|
|
6028
|
+
if len(memeber_set) > 0:
|
|
6029
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6030
|
+
|
|
6031
|
+
|
|
6032
|
+
|
|
6033
|
+
class DeleteIpAccessControlV2Response(AbstractModel):
|
|
6034
|
+
"""DeleteIpAccessControlV2返回参数结构体
|
|
6035
|
+
|
|
6036
|
+
"""
|
|
6037
|
+
|
|
6038
|
+
def __init__(self):
|
|
6039
|
+
r"""
|
|
6040
|
+
:param _FailedCount: 在批量删除的时候表示删除失败的条数
|
|
6041
|
+
:type FailedCount: int
|
|
6042
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6043
|
+
:type RequestId: str
|
|
6044
|
+
"""
|
|
6045
|
+
self._FailedCount = None
|
|
6046
|
+
self._RequestId = None
|
|
6047
|
+
|
|
6048
|
+
@property
|
|
6049
|
+
def FailedCount(self):
|
|
6050
|
+
return self._FailedCount
|
|
6051
|
+
|
|
6052
|
+
@FailedCount.setter
|
|
6053
|
+
def FailedCount(self, FailedCount):
|
|
6054
|
+
self._FailedCount = FailedCount
|
|
6055
|
+
|
|
6056
|
+
@property
|
|
6057
|
+
def RequestId(self):
|
|
6058
|
+
return self._RequestId
|
|
6059
|
+
|
|
6060
|
+
@RequestId.setter
|
|
6061
|
+
def RequestId(self, RequestId):
|
|
6062
|
+
self._RequestId = RequestId
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
def _deserialize(self, params):
|
|
6066
|
+
self._FailedCount = params.get("FailedCount")
|
|
6067
|
+
self._RequestId = params.get("RequestId")
|
|
6068
|
+
|
|
6069
|
+
|
|
5796
6070
|
class DeleteSessionRequest(AbstractModel):
|
|
5797
6071
|
"""DeleteSession请求参数结构体
|
|
5798
6072
|
|
|
@@ -17124,21 +17398,121 @@ class HybridPkg(AbstractModel):
|
|
|
17124
17398
|
|
|
17125
17399
|
|
|
17126
17400
|
|
|
17127
|
-
class
|
|
17128
|
-
"""
|
|
17401
|
+
class ImportIpAccessControlRequest(AbstractModel):
|
|
17402
|
+
"""ImportIpAccessControl请求参数结构体
|
|
17129
17403
|
|
|
17130
17404
|
"""
|
|
17131
17405
|
|
|
17132
17406
|
def __init__(self):
|
|
17133
17407
|
r"""
|
|
17134
|
-
:param
|
|
17408
|
+
:param _Data: 导入的IP黑白名单列表
|
|
17409
|
+
:type Data: list of IpAccessControlParam
|
|
17410
|
+
:param _Domain: 具体域名如:test.qcloudwaf.com
|
|
17411
|
+
全局域名为:global
|
|
17412
|
+
:type Domain: str
|
|
17413
|
+
:param _SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
17414
|
+
:type SourceType: str
|
|
17415
|
+
:param _InstanceId: 实例Id
|
|
17135
17416
|
:type InstanceId: str
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17417
|
+
"""
|
|
17418
|
+
self._Data = None
|
|
17419
|
+
self._Domain = None
|
|
17420
|
+
self._SourceType = None
|
|
17421
|
+
self._InstanceId = None
|
|
17422
|
+
|
|
17423
|
+
@property
|
|
17424
|
+
def Data(self):
|
|
17425
|
+
return self._Data
|
|
17426
|
+
|
|
17427
|
+
@Data.setter
|
|
17428
|
+
def Data(self, Data):
|
|
17429
|
+
self._Data = Data
|
|
17430
|
+
|
|
17431
|
+
@property
|
|
17432
|
+
def Domain(self):
|
|
17433
|
+
return self._Domain
|
|
17434
|
+
|
|
17435
|
+
@Domain.setter
|
|
17436
|
+
def Domain(self, Domain):
|
|
17437
|
+
self._Domain = Domain
|
|
17438
|
+
|
|
17439
|
+
@property
|
|
17440
|
+
def SourceType(self):
|
|
17441
|
+
return self._SourceType
|
|
17442
|
+
|
|
17443
|
+
@SourceType.setter
|
|
17444
|
+
def SourceType(self, SourceType):
|
|
17445
|
+
self._SourceType = SourceType
|
|
17446
|
+
|
|
17447
|
+
@property
|
|
17448
|
+
def InstanceId(self):
|
|
17449
|
+
return self._InstanceId
|
|
17450
|
+
|
|
17451
|
+
@InstanceId.setter
|
|
17452
|
+
def InstanceId(self, InstanceId):
|
|
17453
|
+
self._InstanceId = InstanceId
|
|
17454
|
+
|
|
17455
|
+
|
|
17456
|
+
def _deserialize(self, params):
|
|
17457
|
+
if params.get("Data") is not None:
|
|
17458
|
+
self._Data = []
|
|
17459
|
+
for item in params.get("Data"):
|
|
17460
|
+
obj = IpAccessControlParam()
|
|
17461
|
+
obj._deserialize(item)
|
|
17462
|
+
self._Data.append(obj)
|
|
17463
|
+
self._Domain = params.get("Domain")
|
|
17464
|
+
self._SourceType = params.get("SourceType")
|
|
17465
|
+
self._InstanceId = params.get("InstanceId")
|
|
17466
|
+
memeber_set = set(params.keys())
|
|
17467
|
+
for name, value in vars(self).items():
|
|
17468
|
+
property_name = name[1:]
|
|
17469
|
+
if property_name in memeber_set:
|
|
17470
|
+
memeber_set.remove(property_name)
|
|
17471
|
+
if len(memeber_set) > 0:
|
|
17472
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17473
|
+
|
|
17474
|
+
|
|
17475
|
+
|
|
17476
|
+
class ImportIpAccessControlResponse(AbstractModel):
|
|
17477
|
+
"""ImportIpAccessControl返回参数结构体
|
|
17478
|
+
|
|
17479
|
+
"""
|
|
17480
|
+
|
|
17481
|
+
def __init__(self):
|
|
17482
|
+
r"""
|
|
17483
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17484
|
+
:type RequestId: str
|
|
17485
|
+
"""
|
|
17486
|
+
self._RequestId = None
|
|
17487
|
+
|
|
17488
|
+
@property
|
|
17489
|
+
def RequestId(self):
|
|
17490
|
+
return self._RequestId
|
|
17491
|
+
|
|
17492
|
+
@RequestId.setter
|
|
17493
|
+
def RequestId(self, RequestId):
|
|
17494
|
+
self._RequestId = RequestId
|
|
17495
|
+
|
|
17496
|
+
|
|
17497
|
+
def _deserialize(self, params):
|
|
17498
|
+
self._RequestId = params.get("RequestId")
|
|
17499
|
+
|
|
17500
|
+
|
|
17501
|
+
class InstanceInfo(AbstractModel):
|
|
17502
|
+
"""一个实例的详细信息
|
|
17503
|
+
|
|
17504
|
+
"""
|
|
17505
|
+
|
|
17506
|
+
def __init__(self):
|
|
17507
|
+
r"""
|
|
17508
|
+
:param _InstanceId: 实例唯一ID
|
|
17509
|
+
:type InstanceId: str
|
|
17510
|
+
:param _InstanceName: 实例名称
|
|
17511
|
+
:type InstanceName: str
|
|
17512
|
+
:param _ResourceIds: 实例对应资源ID,计费使用
|
|
17513
|
+
:type ResourceIds: str
|
|
17514
|
+
:param _Region: 实例所属地域
|
|
17515
|
+
:type Region: str
|
|
17142
17516
|
:param _PayMode: 付费模式
|
|
17143
17517
|
:type PayMode: int
|
|
17144
17518
|
:param _RenewFlag: 自动续费标识。
|
|
@@ -17844,6 +18218,75 @@ class IpAccessControlItem(AbstractModel):
|
|
|
17844
18218
|
|
|
17845
18219
|
|
|
17846
18220
|
|
|
18221
|
+
class IpAccessControlParam(AbstractModel):
|
|
18222
|
+
"""IP黑白名单参数结构体,主要用于IP黑白名单的导入。
|
|
18223
|
+
|
|
18224
|
+
"""
|
|
18225
|
+
|
|
18226
|
+
def __init__(self):
|
|
18227
|
+
r"""
|
|
18228
|
+
:param _IpList: IP列表
|
|
18229
|
+
:type IpList: list of str
|
|
18230
|
+
:param _ValidTs: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
18231
|
+
:type ValidTs: int
|
|
18232
|
+
:param _ActionType: 42为黑名单,40为白名单
|
|
18233
|
+
:type ActionType: int
|
|
18234
|
+
:param _Note: 备注
|
|
18235
|
+
:type Note: str
|
|
18236
|
+
"""
|
|
18237
|
+
self._IpList = None
|
|
18238
|
+
self._ValidTs = None
|
|
18239
|
+
self._ActionType = None
|
|
18240
|
+
self._Note = None
|
|
18241
|
+
|
|
18242
|
+
@property
|
|
18243
|
+
def IpList(self):
|
|
18244
|
+
return self._IpList
|
|
18245
|
+
|
|
18246
|
+
@IpList.setter
|
|
18247
|
+
def IpList(self, IpList):
|
|
18248
|
+
self._IpList = IpList
|
|
18249
|
+
|
|
18250
|
+
@property
|
|
18251
|
+
def ValidTs(self):
|
|
18252
|
+
return self._ValidTs
|
|
18253
|
+
|
|
18254
|
+
@ValidTs.setter
|
|
18255
|
+
def ValidTs(self, ValidTs):
|
|
18256
|
+
self._ValidTs = ValidTs
|
|
18257
|
+
|
|
18258
|
+
@property
|
|
18259
|
+
def ActionType(self):
|
|
18260
|
+
return self._ActionType
|
|
18261
|
+
|
|
18262
|
+
@ActionType.setter
|
|
18263
|
+
def ActionType(self, ActionType):
|
|
18264
|
+
self._ActionType = ActionType
|
|
18265
|
+
|
|
18266
|
+
@property
|
|
18267
|
+
def Note(self):
|
|
18268
|
+
return self._Note
|
|
18269
|
+
|
|
18270
|
+
@Note.setter
|
|
18271
|
+
def Note(self, Note):
|
|
18272
|
+
self._Note = Note
|
|
18273
|
+
|
|
18274
|
+
|
|
18275
|
+
def _deserialize(self, params):
|
|
18276
|
+
self._IpList = params.get("IpList")
|
|
18277
|
+
self._ValidTs = params.get("ValidTs")
|
|
18278
|
+
self._ActionType = params.get("ActionType")
|
|
18279
|
+
self._Note = params.get("Note")
|
|
18280
|
+
memeber_set = set(params.keys())
|
|
18281
|
+
for name, value in vars(self).items():
|
|
18282
|
+
property_name = name[1:]
|
|
18283
|
+
if property_name in memeber_set:
|
|
18284
|
+
memeber_set.remove(property_name)
|
|
18285
|
+
if len(memeber_set) > 0:
|
|
18286
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18287
|
+
|
|
18288
|
+
|
|
18289
|
+
|
|
17847
18290
|
class IpHitItem(AbstractModel):
|
|
17848
18291
|
"""ip封堵状态数据
|
|
17849
18292
|
|
|
@@ -21426,6 +21869,161 @@ class ModifyInstanceRenewFlagResponse(AbstractModel):
|
|
|
21426
21869
|
self._RequestId = params.get("RequestId")
|
|
21427
21870
|
|
|
21428
21871
|
|
|
21872
|
+
class ModifyIpAccessControlRequest(AbstractModel):
|
|
21873
|
+
"""ModifyIpAccessControl请求参数结构体
|
|
21874
|
+
|
|
21875
|
+
"""
|
|
21876
|
+
|
|
21877
|
+
def __init__(self):
|
|
21878
|
+
r"""
|
|
21879
|
+
:param _Domain: 具体域名如:test.qcloudwaf.com
|
|
21880
|
+
全局域名为:global
|
|
21881
|
+
:type Domain: str
|
|
21882
|
+
:param _IpList: ip参数列表
|
|
21883
|
+
:type IpList: list of str
|
|
21884
|
+
:param _ActionType: 42为黑名单,40为白名单
|
|
21885
|
+
:type ActionType: int
|
|
21886
|
+
:param _ValidTS: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
21887
|
+
:type ValidTS: int
|
|
21888
|
+
:param _RuleId: 规则ID
|
|
21889
|
+
:type RuleId: int
|
|
21890
|
+
:param _InstanceId: 实例Id
|
|
21891
|
+
:type InstanceId: str
|
|
21892
|
+
:param _Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
|
21893
|
+
:type Edition: str
|
|
21894
|
+
:param _SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
21895
|
+
:type SourceType: str
|
|
21896
|
+
:param _Note: 备注
|
|
21897
|
+
:type Note: str
|
|
21898
|
+
"""
|
|
21899
|
+
self._Domain = None
|
|
21900
|
+
self._IpList = None
|
|
21901
|
+
self._ActionType = None
|
|
21902
|
+
self._ValidTS = None
|
|
21903
|
+
self._RuleId = None
|
|
21904
|
+
self._InstanceId = None
|
|
21905
|
+
self._Edition = None
|
|
21906
|
+
self._SourceType = None
|
|
21907
|
+
self._Note = None
|
|
21908
|
+
|
|
21909
|
+
@property
|
|
21910
|
+
def Domain(self):
|
|
21911
|
+
return self._Domain
|
|
21912
|
+
|
|
21913
|
+
@Domain.setter
|
|
21914
|
+
def Domain(self, Domain):
|
|
21915
|
+
self._Domain = Domain
|
|
21916
|
+
|
|
21917
|
+
@property
|
|
21918
|
+
def IpList(self):
|
|
21919
|
+
return self._IpList
|
|
21920
|
+
|
|
21921
|
+
@IpList.setter
|
|
21922
|
+
def IpList(self, IpList):
|
|
21923
|
+
self._IpList = IpList
|
|
21924
|
+
|
|
21925
|
+
@property
|
|
21926
|
+
def ActionType(self):
|
|
21927
|
+
return self._ActionType
|
|
21928
|
+
|
|
21929
|
+
@ActionType.setter
|
|
21930
|
+
def ActionType(self, ActionType):
|
|
21931
|
+
self._ActionType = ActionType
|
|
21932
|
+
|
|
21933
|
+
@property
|
|
21934
|
+
def ValidTS(self):
|
|
21935
|
+
return self._ValidTS
|
|
21936
|
+
|
|
21937
|
+
@ValidTS.setter
|
|
21938
|
+
def ValidTS(self, ValidTS):
|
|
21939
|
+
self._ValidTS = ValidTS
|
|
21940
|
+
|
|
21941
|
+
@property
|
|
21942
|
+
def RuleId(self):
|
|
21943
|
+
return self._RuleId
|
|
21944
|
+
|
|
21945
|
+
@RuleId.setter
|
|
21946
|
+
def RuleId(self, RuleId):
|
|
21947
|
+
self._RuleId = RuleId
|
|
21948
|
+
|
|
21949
|
+
@property
|
|
21950
|
+
def InstanceId(self):
|
|
21951
|
+
return self._InstanceId
|
|
21952
|
+
|
|
21953
|
+
@InstanceId.setter
|
|
21954
|
+
def InstanceId(self, InstanceId):
|
|
21955
|
+
self._InstanceId = InstanceId
|
|
21956
|
+
|
|
21957
|
+
@property
|
|
21958
|
+
def Edition(self):
|
|
21959
|
+
return self._Edition
|
|
21960
|
+
|
|
21961
|
+
@Edition.setter
|
|
21962
|
+
def Edition(self, Edition):
|
|
21963
|
+
self._Edition = Edition
|
|
21964
|
+
|
|
21965
|
+
@property
|
|
21966
|
+
def SourceType(self):
|
|
21967
|
+
return self._SourceType
|
|
21968
|
+
|
|
21969
|
+
@SourceType.setter
|
|
21970
|
+
def SourceType(self, SourceType):
|
|
21971
|
+
self._SourceType = SourceType
|
|
21972
|
+
|
|
21973
|
+
@property
|
|
21974
|
+
def Note(self):
|
|
21975
|
+
return self._Note
|
|
21976
|
+
|
|
21977
|
+
@Note.setter
|
|
21978
|
+
def Note(self, Note):
|
|
21979
|
+
self._Note = Note
|
|
21980
|
+
|
|
21981
|
+
|
|
21982
|
+
def _deserialize(self, params):
|
|
21983
|
+
self._Domain = params.get("Domain")
|
|
21984
|
+
self._IpList = params.get("IpList")
|
|
21985
|
+
self._ActionType = params.get("ActionType")
|
|
21986
|
+
self._ValidTS = params.get("ValidTS")
|
|
21987
|
+
self._RuleId = params.get("RuleId")
|
|
21988
|
+
self._InstanceId = params.get("InstanceId")
|
|
21989
|
+
self._Edition = params.get("Edition")
|
|
21990
|
+
self._SourceType = params.get("SourceType")
|
|
21991
|
+
self._Note = params.get("Note")
|
|
21992
|
+
memeber_set = set(params.keys())
|
|
21993
|
+
for name, value in vars(self).items():
|
|
21994
|
+
property_name = name[1:]
|
|
21995
|
+
if property_name in memeber_set:
|
|
21996
|
+
memeber_set.remove(property_name)
|
|
21997
|
+
if len(memeber_set) > 0:
|
|
21998
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21999
|
+
|
|
22000
|
+
|
|
22001
|
+
|
|
22002
|
+
class ModifyIpAccessControlResponse(AbstractModel):
|
|
22003
|
+
"""ModifyIpAccessControl返回参数结构体
|
|
22004
|
+
|
|
22005
|
+
"""
|
|
22006
|
+
|
|
22007
|
+
def __init__(self):
|
|
22008
|
+
r"""
|
|
22009
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22010
|
+
:type RequestId: str
|
|
22011
|
+
"""
|
|
22012
|
+
self._RequestId = None
|
|
22013
|
+
|
|
22014
|
+
@property
|
|
22015
|
+
def RequestId(self):
|
|
22016
|
+
return self._RequestId
|
|
22017
|
+
|
|
22018
|
+
@RequestId.setter
|
|
22019
|
+
def RequestId(self, RequestId):
|
|
22020
|
+
self._RequestId = RequestId
|
|
22021
|
+
|
|
22022
|
+
|
|
22023
|
+
def _deserialize(self, params):
|
|
22024
|
+
self._RequestId = params.get("RequestId")
|
|
22025
|
+
|
|
22026
|
+
|
|
21429
22027
|
class ModifyModuleStatusRequest(AbstractModel):
|
|
21430
22028
|
"""ModifyModuleStatus请求参数结构体
|
|
21431
22029
|
|
|
@@ -256,6 +256,29 @@ class WafClient(AbstractClient):
|
|
|
256
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
def CreateIpAccessControl(self, request):
|
|
260
|
+
"""Waf IP黑白名单新增接口
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for CreateIpAccessControl.
|
|
263
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.CreateIpAccessControlRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.CreateIpAccessControlResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("CreateIpAccessControl", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.CreateIpAccessControlResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
259
282
|
def DeleteAccessExport(self, request):
|
|
260
283
|
"""本接口用于删除访问日志导出
|
|
261
284
|
|
|
@@ -534,6 +557,29 @@ class WafClient(AbstractClient):
|
|
|
534
557
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
535
558
|
|
|
536
559
|
|
|
560
|
+
def DeleteIpAccessControlV2(self, request):
|
|
561
|
+
"""Waf IP黑白名单最新版本删除接口
|
|
562
|
+
|
|
563
|
+
:param request: Request instance for DeleteIpAccessControlV2.
|
|
564
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.DeleteIpAccessControlV2Request`
|
|
565
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.DeleteIpAccessControlV2Response`
|
|
566
|
+
|
|
567
|
+
"""
|
|
568
|
+
try:
|
|
569
|
+
params = request._serialize()
|
|
570
|
+
headers = request.headers
|
|
571
|
+
body = self.call("DeleteIpAccessControlV2", params, headers=headers)
|
|
572
|
+
response = json.loads(body)
|
|
573
|
+
model = models.DeleteIpAccessControlV2Response()
|
|
574
|
+
model._deserialize(response["Response"])
|
|
575
|
+
return model
|
|
576
|
+
except Exception as e:
|
|
577
|
+
if isinstance(e, TencentCloudSDKException):
|
|
578
|
+
raise
|
|
579
|
+
else:
|
|
580
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
581
|
+
|
|
582
|
+
|
|
537
583
|
def DeleteSession(self, request):
|
|
538
584
|
"""删除CC攻击的session设置
|
|
539
585
|
|
|
@@ -2033,6 +2079,29 @@ class WafClient(AbstractClient):
|
|
|
2033
2079
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2034
2080
|
|
|
2035
2081
|
|
|
2082
|
+
def ImportIpAccessControl(self, request):
|
|
2083
|
+
"""导入IP黑白名单
|
|
2084
|
+
|
|
2085
|
+
:param request: Request instance for ImportIpAccessControl.
|
|
2086
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ImportIpAccessControlRequest`
|
|
2087
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ImportIpAccessControlResponse`
|
|
2088
|
+
|
|
2089
|
+
"""
|
|
2090
|
+
try:
|
|
2091
|
+
params = request._serialize()
|
|
2092
|
+
headers = request.headers
|
|
2093
|
+
body = self.call("ImportIpAccessControl", params, headers=headers)
|
|
2094
|
+
response = json.loads(body)
|
|
2095
|
+
model = models.ImportIpAccessControlResponse()
|
|
2096
|
+
model._deserialize(response["Response"])
|
|
2097
|
+
return model
|
|
2098
|
+
except Exception as e:
|
|
2099
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2100
|
+
raise
|
|
2101
|
+
else:
|
|
2102
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2103
|
+
|
|
2104
|
+
|
|
2036
2105
|
def ModifyAccessPeriod(self, request):
|
|
2037
2106
|
"""本接口用于修改访问日志保存期限等字段信息
|
|
2038
2107
|
|
|
@@ -2632,6 +2701,29 @@ class WafClient(AbstractClient):
|
|
|
2632
2701
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2633
2702
|
|
|
2634
2703
|
|
|
2704
|
+
def ModifyIpAccessControl(self, request):
|
|
2705
|
+
"""Waf IP黑白名单编辑接口
|
|
2706
|
+
|
|
2707
|
+
:param request: Request instance for ModifyIpAccessControl.
|
|
2708
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.ModifyIpAccessControlRequest`
|
|
2709
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.ModifyIpAccessControlResponse`
|
|
2710
|
+
|
|
2711
|
+
"""
|
|
2712
|
+
try:
|
|
2713
|
+
params = request._serialize()
|
|
2714
|
+
headers = request.headers
|
|
2715
|
+
body = self.call("ModifyIpAccessControl", params, headers=headers)
|
|
2716
|
+
response = json.loads(body)
|
|
2717
|
+
model = models.ModifyIpAccessControlResponse()
|
|
2718
|
+
model._deserialize(response["Response"])
|
|
2719
|
+
return model
|
|
2720
|
+
except Exception as e:
|
|
2721
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2722
|
+
raise
|
|
2723
|
+
else:
|
|
2724
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2725
|
+
|
|
2726
|
+
|
|
2635
2727
|
def ModifyModuleStatus(self, request):
|
|
2636
2728
|
"""设置某个domain下基础安全模块的开关
|
|
2637
2729
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1144
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1141
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|