tencentcloud-sdk-python-waf 3.1.165__tar.gz → 3.1.178__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.165 → tencentcloud_sdk_python_waf-3.1.178}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/setup.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/v20180125/models.py +517 -22
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/v20180125/waf_client_async.py +18 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_waf-3.1.178/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_waf-3.1.165/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/README.rst +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/setup.cfg +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.165 → tencentcloud_sdk_python_waf-3.1.178}/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.178
|
|
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.178
|
|
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.178,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Waf SDK for Python',
|
|
@@ -12877,6 +12877,507 @@ class CreateAccessExportResponse(AbstractModel):
|
|
|
12877
12877
|
self._RequestId = params.get("RequestId")
|
|
12878
12878
|
|
|
12879
12879
|
|
|
12880
|
+
class CreateAndUpdateBatchCCRuleRequest(AbstractModel):
|
|
12881
|
+
r"""CreateAndUpdateBatchCCRule请求参数结构体
|
|
12882
|
+
|
|
12883
|
+
"""
|
|
12884
|
+
|
|
12885
|
+
def __init__(self):
|
|
12886
|
+
r"""
|
|
12887
|
+
:param _Name: 名称
|
|
12888
|
+
:type Name: str
|
|
12889
|
+
:param _RuleId: 规则ID,新增时填0
|
|
12890
|
+
:type RuleId: int
|
|
12891
|
+
:param _Status: 状态
|
|
12892
|
+
:type Status: int
|
|
12893
|
+
:param _Advance: 高级模式(是否使用Session检测),0表示不启用,1表示启用
|
|
12894
|
+
:type Advance: str
|
|
12895
|
+
:param _Limit: CC检测阈值
|
|
12896
|
+
:type Limit: str
|
|
12897
|
+
:param _Interval: CC检测周期
|
|
12898
|
+
:type Interval: str
|
|
12899
|
+
:param _ActionType: 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
|
12900
|
+
:type ActionType: str
|
|
12901
|
+
:param _Priority: 优先级
|
|
12902
|
+
:type Priority: int
|
|
12903
|
+
:param _ValidTime: 动作有效时间
|
|
12904
|
+
:type ValidTime: int
|
|
12905
|
+
:param _Url: 检测Url
|
|
12906
|
+
:type Url: str
|
|
12907
|
+
:param _Length: url长度
|
|
12908
|
+
:type Length: int
|
|
12909
|
+
:param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
|
12910
|
+
:type MatchFunc: int
|
|
12911
|
+
:param _OptionsArr: CC的匹配条件JSON序列化的字符串,示例:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader、CaptchaRisk、CaptchaDeviceRisk、CaptchaScore match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、16(数值不等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
|
12912
|
+
:type OptionsArr: str
|
|
12913
|
+
:param _Edition: waf版本,sparta-waf或者clb-waf
|
|
12914
|
+
:type Edition: str
|
|
12915
|
+
:param _Type: 操作类型
|
|
12916
|
+
:type Type: int
|
|
12917
|
+
:param _EventId: 添加规则的来源事件id
|
|
12918
|
+
:type EventId: str
|
|
12919
|
+
:param _SessionApplied: 规则需要启用的SessionID
|
|
12920
|
+
:type SessionApplied: list of int
|
|
12921
|
+
:param _LimitMethod: 限频方式
|
|
12922
|
+
:type LimitMethod: str
|
|
12923
|
+
:param _LogicalOp: 配置方式的逻辑操作符,and或者or
|
|
12924
|
+
:type LogicalOp: str
|
|
12925
|
+
:param _CelRule: cel表达式
|
|
12926
|
+
:type CelRule: str
|
|
12927
|
+
:param _ActionRatio: 动作灰度比例,默认值100
|
|
12928
|
+
:type ActionRatio: int
|
|
12929
|
+
:param _PageId: 页面ID
|
|
12930
|
+
:type PageId: str
|
|
12931
|
+
:param _Domains: 批量规则配置的域名
|
|
12932
|
+
:type Domains: list of str
|
|
12933
|
+
:param _GroupIds: 批量规则配置的防护组
|
|
12934
|
+
:type GroupIds: list of int non-negative
|
|
12935
|
+
:param _JobType: 定时生效类型
|
|
12936
|
+
:type JobType: str
|
|
12937
|
+
:param _JobDateTime: 定时生效配置
|
|
12938
|
+
:type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
12939
|
+
:param _CronType: 定时生效类型:month or week
|
|
12940
|
+
:type CronType: str
|
|
12941
|
+
:param _ExpireTime: 过期时间
|
|
12942
|
+
:type ExpireTime: int
|
|
12943
|
+
"""
|
|
12944
|
+
self._Name = None
|
|
12945
|
+
self._RuleId = None
|
|
12946
|
+
self._Status = None
|
|
12947
|
+
self._Advance = None
|
|
12948
|
+
self._Limit = None
|
|
12949
|
+
self._Interval = None
|
|
12950
|
+
self._ActionType = None
|
|
12951
|
+
self._Priority = None
|
|
12952
|
+
self._ValidTime = None
|
|
12953
|
+
self._Url = None
|
|
12954
|
+
self._Length = None
|
|
12955
|
+
self._MatchFunc = None
|
|
12956
|
+
self._OptionsArr = None
|
|
12957
|
+
self._Edition = None
|
|
12958
|
+
self._Type = None
|
|
12959
|
+
self._EventId = None
|
|
12960
|
+
self._SessionApplied = None
|
|
12961
|
+
self._LimitMethod = None
|
|
12962
|
+
self._LogicalOp = None
|
|
12963
|
+
self._CelRule = None
|
|
12964
|
+
self._ActionRatio = None
|
|
12965
|
+
self._PageId = None
|
|
12966
|
+
self._Domains = None
|
|
12967
|
+
self._GroupIds = None
|
|
12968
|
+
self._JobType = None
|
|
12969
|
+
self._JobDateTime = None
|
|
12970
|
+
self._CronType = None
|
|
12971
|
+
self._ExpireTime = None
|
|
12972
|
+
|
|
12973
|
+
@property
|
|
12974
|
+
def Name(self):
|
|
12975
|
+
r"""名称
|
|
12976
|
+
:rtype: str
|
|
12977
|
+
"""
|
|
12978
|
+
return self._Name
|
|
12979
|
+
|
|
12980
|
+
@Name.setter
|
|
12981
|
+
def Name(self, Name):
|
|
12982
|
+
self._Name = Name
|
|
12983
|
+
|
|
12984
|
+
@property
|
|
12985
|
+
def RuleId(self):
|
|
12986
|
+
r"""规则ID,新增时填0
|
|
12987
|
+
:rtype: int
|
|
12988
|
+
"""
|
|
12989
|
+
return self._RuleId
|
|
12990
|
+
|
|
12991
|
+
@RuleId.setter
|
|
12992
|
+
def RuleId(self, RuleId):
|
|
12993
|
+
self._RuleId = RuleId
|
|
12994
|
+
|
|
12995
|
+
@property
|
|
12996
|
+
def Status(self):
|
|
12997
|
+
r"""状态
|
|
12998
|
+
:rtype: int
|
|
12999
|
+
"""
|
|
13000
|
+
return self._Status
|
|
13001
|
+
|
|
13002
|
+
@Status.setter
|
|
13003
|
+
def Status(self, Status):
|
|
13004
|
+
self._Status = Status
|
|
13005
|
+
|
|
13006
|
+
@property
|
|
13007
|
+
def Advance(self):
|
|
13008
|
+
r"""高级模式(是否使用Session检测),0表示不启用,1表示启用
|
|
13009
|
+
:rtype: str
|
|
13010
|
+
"""
|
|
13011
|
+
return self._Advance
|
|
13012
|
+
|
|
13013
|
+
@Advance.setter
|
|
13014
|
+
def Advance(self, Advance):
|
|
13015
|
+
self._Advance = Advance
|
|
13016
|
+
|
|
13017
|
+
@property
|
|
13018
|
+
def Limit(self):
|
|
13019
|
+
r"""CC检测阈值
|
|
13020
|
+
:rtype: str
|
|
13021
|
+
"""
|
|
13022
|
+
return self._Limit
|
|
13023
|
+
|
|
13024
|
+
@Limit.setter
|
|
13025
|
+
def Limit(self, Limit):
|
|
13026
|
+
self._Limit = Limit
|
|
13027
|
+
|
|
13028
|
+
@property
|
|
13029
|
+
def Interval(self):
|
|
13030
|
+
r"""CC检测周期
|
|
13031
|
+
:rtype: str
|
|
13032
|
+
"""
|
|
13033
|
+
return self._Interval
|
|
13034
|
+
|
|
13035
|
+
@Interval.setter
|
|
13036
|
+
def Interval(self, Interval):
|
|
13037
|
+
self._Interval = Interval
|
|
13038
|
+
|
|
13039
|
+
@property
|
|
13040
|
+
def ActionType(self):
|
|
13041
|
+
r"""动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
|
13042
|
+
:rtype: str
|
|
13043
|
+
"""
|
|
13044
|
+
return self._ActionType
|
|
13045
|
+
|
|
13046
|
+
@ActionType.setter
|
|
13047
|
+
def ActionType(self, ActionType):
|
|
13048
|
+
self._ActionType = ActionType
|
|
13049
|
+
|
|
13050
|
+
@property
|
|
13051
|
+
def Priority(self):
|
|
13052
|
+
r"""优先级
|
|
13053
|
+
:rtype: int
|
|
13054
|
+
"""
|
|
13055
|
+
return self._Priority
|
|
13056
|
+
|
|
13057
|
+
@Priority.setter
|
|
13058
|
+
def Priority(self, Priority):
|
|
13059
|
+
self._Priority = Priority
|
|
13060
|
+
|
|
13061
|
+
@property
|
|
13062
|
+
def ValidTime(self):
|
|
13063
|
+
r"""动作有效时间
|
|
13064
|
+
:rtype: int
|
|
13065
|
+
"""
|
|
13066
|
+
return self._ValidTime
|
|
13067
|
+
|
|
13068
|
+
@ValidTime.setter
|
|
13069
|
+
def ValidTime(self, ValidTime):
|
|
13070
|
+
self._ValidTime = ValidTime
|
|
13071
|
+
|
|
13072
|
+
@property
|
|
13073
|
+
def Url(self):
|
|
13074
|
+
r"""检测Url
|
|
13075
|
+
:rtype: str
|
|
13076
|
+
"""
|
|
13077
|
+
return self._Url
|
|
13078
|
+
|
|
13079
|
+
@Url.setter
|
|
13080
|
+
def Url(self, Url):
|
|
13081
|
+
self._Url = Url
|
|
13082
|
+
|
|
13083
|
+
@property
|
|
13084
|
+
def Length(self):
|
|
13085
|
+
r"""url长度
|
|
13086
|
+
:rtype: int
|
|
13087
|
+
"""
|
|
13088
|
+
return self._Length
|
|
13089
|
+
|
|
13090
|
+
@Length.setter
|
|
13091
|
+
def Length(self, Length):
|
|
13092
|
+
self._Length = Length
|
|
13093
|
+
|
|
13094
|
+
@property
|
|
13095
|
+
def MatchFunc(self):
|
|
13096
|
+
r"""匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
|
13097
|
+
:rtype: int
|
|
13098
|
+
"""
|
|
13099
|
+
return self._MatchFunc
|
|
13100
|
+
|
|
13101
|
+
@MatchFunc.setter
|
|
13102
|
+
def MatchFunc(self, MatchFunc):
|
|
13103
|
+
self._MatchFunc = MatchFunc
|
|
13104
|
+
|
|
13105
|
+
@property
|
|
13106
|
+
def OptionsArr(self):
|
|
13107
|
+
r"""CC的匹配条件JSON序列化的字符串,示例:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader、CaptchaRisk、CaptchaDeviceRisk、CaptchaScore match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、16(数值不等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
|
13108
|
+
:rtype: str
|
|
13109
|
+
"""
|
|
13110
|
+
return self._OptionsArr
|
|
13111
|
+
|
|
13112
|
+
@OptionsArr.setter
|
|
13113
|
+
def OptionsArr(self, OptionsArr):
|
|
13114
|
+
self._OptionsArr = OptionsArr
|
|
13115
|
+
|
|
13116
|
+
@property
|
|
13117
|
+
def Edition(self):
|
|
13118
|
+
r"""waf版本,sparta-waf或者clb-waf
|
|
13119
|
+
:rtype: str
|
|
13120
|
+
"""
|
|
13121
|
+
return self._Edition
|
|
13122
|
+
|
|
13123
|
+
@Edition.setter
|
|
13124
|
+
def Edition(self, Edition):
|
|
13125
|
+
self._Edition = Edition
|
|
13126
|
+
|
|
13127
|
+
@property
|
|
13128
|
+
def Type(self):
|
|
13129
|
+
r"""操作类型
|
|
13130
|
+
:rtype: int
|
|
13131
|
+
"""
|
|
13132
|
+
return self._Type
|
|
13133
|
+
|
|
13134
|
+
@Type.setter
|
|
13135
|
+
def Type(self, Type):
|
|
13136
|
+
self._Type = Type
|
|
13137
|
+
|
|
13138
|
+
@property
|
|
13139
|
+
def EventId(self):
|
|
13140
|
+
r"""添加规则的来源事件id
|
|
13141
|
+
:rtype: str
|
|
13142
|
+
"""
|
|
13143
|
+
return self._EventId
|
|
13144
|
+
|
|
13145
|
+
@EventId.setter
|
|
13146
|
+
def EventId(self, EventId):
|
|
13147
|
+
self._EventId = EventId
|
|
13148
|
+
|
|
13149
|
+
@property
|
|
13150
|
+
def SessionApplied(self):
|
|
13151
|
+
r"""规则需要启用的SessionID
|
|
13152
|
+
:rtype: list of int
|
|
13153
|
+
"""
|
|
13154
|
+
return self._SessionApplied
|
|
13155
|
+
|
|
13156
|
+
@SessionApplied.setter
|
|
13157
|
+
def SessionApplied(self, SessionApplied):
|
|
13158
|
+
self._SessionApplied = SessionApplied
|
|
13159
|
+
|
|
13160
|
+
@property
|
|
13161
|
+
def LimitMethod(self):
|
|
13162
|
+
r"""限频方式
|
|
13163
|
+
:rtype: str
|
|
13164
|
+
"""
|
|
13165
|
+
return self._LimitMethod
|
|
13166
|
+
|
|
13167
|
+
@LimitMethod.setter
|
|
13168
|
+
def LimitMethod(self, LimitMethod):
|
|
13169
|
+
self._LimitMethod = LimitMethod
|
|
13170
|
+
|
|
13171
|
+
@property
|
|
13172
|
+
def LogicalOp(self):
|
|
13173
|
+
r"""配置方式的逻辑操作符,and或者or
|
|
13174
|
+
:rtype: str
|
|
13175
|
+
"""
|
|
13176
|
+
return self._LogicalOp
|
|
13177
|
+
|
|
13178
|
+
@LogicalOp.setter
|
|
13179
|
+
def LogicalOp(self, LogicalOp):
|
|
13180
|
+
self._LogicalOp = LogicalOp
|
|
13181
|
+
|
|
13182
|
+
@property
|
|
13183
|
+
def CelRule(self):
|
|
13184
|
+
r"""cel表达式
|
|
13185
|
+
:rtype: str
|
|
13186
|
+
"""
|
|
13187
|
+
return self._CelRule
|
|
13188
|
+
|
|
13189
|
+
@CelRule.setter
|
|
13190
|
+
def CelRule(self, CelRule):
|
|
13191
|
+
self._CelRule = CelRule
|
|
13192
|
+
|
|
13193
|
+
@property
|
|
13194
|
+
def ActionRatio(self):
|
|
13195
|
+
r"""动作灰度比例,默认值100
|
|
13196
|
+
:rtype: int
|
|
13197
|
+
"""
|
|
13198
|
+
return self._ActionRatio
|
|
13199
|
+
|
|
13200
|
+
@ActionRatio.setter
|
|
13201
|
+
def ActionRatio(self, ActionRatio):
|
|
13202
|
+
self._ActionRatio = ActionRatio
|
|
13203
|
+
|
|
13204
|
+
@property
|
|
13205
|
+
def PageId(self):
|
|
13206
|
+
r"""页面ID
|
|
13207
|
+
:rtype: str
|
|
13208
|
+
"""
|
|
13209
|
+
return self._PageId
|
|
13210
|
+
|
|
13211
|
+
@PageId.setter
|
|
13212
|
+
def PageId(self, PageId):
|
|
13213
|
+
self._PageId = PageId
|
|
13214
|
+
|
|
13215
|
+
@property
|
|
13216
|
+
def Domains(self):
|
|
13217
|
+
r"""批量规则配置的域名
|
|
13218
|
+
:rtype: list of str
|
|
13219
|
+
"""
|
|
13220
|
+
return self._Domains
|
|
13221
|
+
|
|
13222
|
+
@Domains.setter
|
|
13223
|
+
def Domains(self, Domains):
|
|
13224
|
+
self._Domains = Domains
|
|
13225
|
+
|
|
13226
|
+
@property
|
|
13227
|
+
def GroupIds(self):
|
|
13228
|
+
r"""批量规则配置的防护组
|
|
13229
|
+
:rtype: list of int non-negative
|
|
13230
|
+
"""
|
|
13231
|
+
return self._GroupIds
|
|
13232
|
+
|
|
13233
|
+
@GroupIds.setter
|
|
13234
|
+
def GroupIds(self, GroupIds):
|
|
13235
|
+
self._GroupIds = GroupIds
|
|
13236
|
+
|
|
13237
|
+
@property
|
|
13238
|
+
def JobType(self):
|
|
13239
|
+
r"""定时生效类型
|
|
13240
|
+
:rtype: str
|
|
13241
|
+
"""
|
|
13242
|
+
return self._JobType
|
|
13243
|
+
|
|
13244
|
+
@JobType.setter
|
|
13245
|
+
def JobType(self, JobType):
|
|
13246
|
+
self._JobType = JobType
|
|
13247
|
+
|
|
13248
|
+
@property
|
|
13249
|
+
def JobDateTime(self):
|
|
13250
|
+
r"""定时生效配置
|
|
13251
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
|
|
13252
|
+
"""
|
|
13253
|
+
return self._JobDateTime
|
|
13254
|
+
|
|
13255
|
+
@JobDateTime.setter
|
|
13256
|
+
def JobDateTime(self, JobDateTime):
|
|
13257
|
+
self._JobDateTime = JobDateTime
|
|
13258
|
+
|
|
13259
|
+
@property
|
|
13260
|
+
def CronType(self):
|
|
13261
|
+
r"""定时生效类型:month or week
|
|
13262
|
+
:rtype: str
|
|
13263
|
+
"""
|
|
13264
|
+
return self._CronType
|
|
13265
|
+
|
|
13266
|
+
@CronType.setter
|
|
13267
|
+
def CronType(self, CronType):
|
|
13268
|
+
self._CronType = CronType
|
|
13269
|
+
|
|
13270
|
+
@property
|
|
13271
|
+
def ExpireTime(self):
|
|
13272
|
+
r"""过期时间
|
|
13273
|
+
:rtype: int
|
|
13274
|
+
"""
|
|
13275
|
+
return self._ExpireTime
|
|
13276
|
+
|
|
13277
|
+
@ExpireTime.setter
|
|
13278
|
+
def ExpireTime(self, ExpireTime):
|
|
13279
|
+
self._ExpireTime = ExpireTime
|
|
13280
|
+
|
|
13281
|
+
|
|
13282
|
+
def _deserialize(self, params):
|
|
13283
|
+
self._Name = params.get("Name")
|
|
13284
|
+
self._RuleId = params.get("RuleId")
|
|
13285
|
+
self._Status = params.get("Status")
|
|
13286
|
+
self._Advance = params.get("Advance")
|
|
13287
|
+
self._Limit = params.get("Limit")
|
|
13288
|
+
self._Interval = params.get("Interval")
|
|
13289
|
+
self._ActionType = params.get("ActionType")
|
|
13290
|
+
self._Priority = params.get("Priority")
|
|
13291
|
+
self._ValidTime = params.get("ValidTime")
|
|
13292
|
+
self._Url = params.get("Url")
|
|
13293
|
+
self._Length = params.get("Length")
|
|
13294
|
+
self._MatchFunc = params.get("MatchFunc")
|
|
13295
|
+
self._OptionsArr = params.get("OptionsArr")
|
|
13296
|
+
self._Edition = params.get("Edition")
|
|
13297
|
+
self._Type = params.get("Type")
|
|
13298
|
+
self._EventId = params.get("EventId")
|
|
13299
|
+
self._SessionApplied = params.get("SessionApplied")
|
|
13300
|
+
self._LimitMethod = params.get("LimitMethod")
|
|
13301
|
+
self._LogicalOp = params.get("LogicalOp")
|
|
13302
|
+
self._CelRule = params.get("CelRule")
|
|
13303
|
+
self._ActionRatio = params.get("ActionRatio")
|
|
13304
|
+
self._PageId = params.get("PageId")
|
|
13305
|
+
self._Domains = params.get("Domains")
|
|
13306
|
+
self._GroupIds = params.get("GroupIds")
|
|
13307
|
+
self._JobType = params.get("JobType")
|
|
13308
|
+
if params.get("JobDateTime") is not None:
|
|
13309
|
+
self._JobDateTime = JobDateTime()
|
|
13310
|
+
self._JobDateTime._deserialize(params.get("JobDateTime"))
|
|
13311
|
+
self._CronType = params.get("CronType")
|
|
13312
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
13313
|
+
memeber_set = set(params.keys())
|
|
13314
|
+
for name, value in vars(self).items():
|
|
13315
|
+
property_name = name[1:]
|
|
13316
|
+
if property_name in memeber_set:
|
|
13317
|
+
memeber_set.remove(property_name)
|
|
13318
|
+
if len(memeber_set) > 0:
|
|
13319
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13320
|
+
|
|
13321
|
+
|
|
13322
|
+
|
|
13323
|
+
class CreateAndUpdateBatchCCRuleResponse(AbstractModel):
|
|
13324
|
+
r"""CreateAndUpdateBatchCCRule返回参数结构体
|
|
13325
|
+
|
|
13326
|
+
"""
|
|
13327
|
+
|
|
13328
|
+
def __init__(self):
|
|
13329
|
+
r"""
|
|
13330
|
+
:param _RuleId: cc规则id
|
|
13331
|
+
:type RuleId: int
|
|
13332
|
+
:param _Data: 响应数据
|
|
13333
|
+
:type Data: str
|
|
13334
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13335
|
+
:type RequestId: str
|
|
13336
|
+
"""
|
|
13337
|
+
self._RuleId = None
|
|
13338
|
+
self._Data = None
|
|
13339
|
+
self._RequestId = None
|
|
13340
|
+
|
|
13341
|
+
@property
|
|
13342
|
+
def RuleId(self):
|
|
13343
|
+
r"""cc规则id
|
|
13344
|
+
:rtype: int
|
|
13345
|
+
"""
|
|
13346
|
+
return self._RuleId
|
|
13347
|
+
|
|
13348
|
+
@RuleId.setter
|
|
13349
|
+
def RuleId(self, RuleId):
|
|
13350
|
+
self._RuleId = RuleId
|
|
13351
|
+
|
|
13352
|
+
@property
|
|
13353
|
+
def Data(self):
|
|
13354
|
+
r"""响应数据
|
|
13355
|
+
:rtype: str
|
|
13356
|
+
"""
|
|
13357
|
+
return self._Data
|
|
13358
|
+
|
|
13359
|
+
@Data.setter
|
|
13360
|
+
def Data(self, Data):
|
|
13361
|
+
self._Data = Data
|
|
13362
|
+
|
|
13363
|
+
@property
|
|
13364
|
+
def RequestId(self):
|
|
13365
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13366
|
+
:rtype: str
|
|
13367
|
+
"""
|
|
13368
|
+
return self._RequestId
|
|
13369
|
+
|
|
13370
|
+
@RequestId.setter
|
|
13371
|
+
def RequestId(self, RequestId):
|
|
13372
|
+
self._RequestId = RequestId
|
|
13373
|
+
|
|
13374
|
+
|
|
13375
|
+
def _deserialize(self, params):
|
|
13376
|
+
self._RuleId = params.get("RuleId")
|
|
13377
|
+
self._Data = params.get("Data")
|
|
13378
|
+
self._RequestId = params.get("RequestId")
|
|
13379
|
+
|
|
13380
|
+
|
|
12880
13381
|
class CreateAreaBanRuleRequest(AbstractModel):
|
|
12881
13382
|
r"""CreateAreaBanRule请求参数结构体
|
|
12882
13383
|
|
|
@@ -55393,7 +55894,7 @@ class QueryBypassAllStatusResponse(AbstractModel):
|
|
|
55393
55894
|
|
|
55394
55895
|
def __init__(self):
|
|
55395
55896
|
r"""
|
|
55396
|
-
:param _Result:
|
|
55897
|
+
:param _Result: <p>该用户是否被加入了全局的bypass列表</p>
|
|
55397
55898
|
:type Result: bool
|
|
55398
55899
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
55399
55900
|
:type RequestId: str
|
|
@@ -55403,7 +55904,7 @@ class QueryBypassAllStatusResponse(AbstractModel):
|
|
|
55403
55904
|
|
|
55404
55905
|
@property
|
|
55405
55906
|
def Result(self):
|
|
55406
|
-
r"""
|
|
55907
|
+
r"""<p>该用户是否被加入了全局的bypass列表</p>
|
|
55407
55908
|
:rtype: bool
|
|
55408
55909
|
"""
|
|
55409
55910
|
return self._Result
|
|
@@ -58714,20 +59215,20 @@ class Strategy(AbstractModel):
|
|
|
58714
59215
|
<tr>
|
|
58715
59216
|
<td>CAPTCHA_RISK(验证码风险)</td>
|
|
58716
59217
|
<td>不支持参数</td>
|
|
58717
|
-
<td>
|
|
58718
|
-
<td
|
|
59218
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59219
|
+
<td>numeq/numneq:Content 为 0-255 的整数字符串,例如 "10";belong_to/not_belong_to:Content 为 JSON 字符串数组的序列化字符串,例如 ["1","2"],最多50个元素,每个值为0-255整数;null/nnull:Content 必须为空字符串。集合格式不能使用普通逗号分隔字符串。</td>
|
|
58719
59220
|
</tr>
|
|
58720
59221
|
<tr>
|
|
58721
59222
|
<td>CAPTCHA_DEVICE_RISK(验证码设备风险)</td>
|
|
58722
59223
|
<td>不支持参数</td>
|
|
58723
|
-
<td>
|
|
58724
|
-
<td
|
|
59224
|
+
<td>belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59225
|
+
<td>belong_to/not_belong_to:Content 为 JSON 字符串数组的序列化字符串,例如 ["101","201"],最多7个元素;支持取值:101、201、301、401、501、601、701;null/nnull:Content 必须为空字符串。</td>
|
|
58725
59226
|
</tr>
|
|
58726
59227
|
<tr>
|
|
58727
59228
|
<td>CAPTCHAR_SCORE(验证码风险评估分)</td>
|
|
58728
59229
|
<td>不支持参数</td>
|
|
58729
|
-
<td>numeq(数值等于)<br />
|
|
58730
|
-
<td
|
|
59230
|
+
<td>numeq(数值等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59231
|
+
<td>数值比较时 Content 为 0-100 的整数字符串;null/nnull 时 Content 必须为空字符串。</td>
|
|
58731
59232
|
</tr>
|
|
58732
59233
|
</tbody>
|
|
58733
59234
|
</table>
|
|
@@ -58764,10 +59265,7 @@ strsuffix ( 后缀匹配)
|
|
|
58764
59265
|
cel ( CEL表达式)
|
|
58765
59266
|
各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
|
58766
59267
|
:type CompareFunc: str
|
|
58767
|
-
:param _Content:
|
|
58768
|
-
|
|
58769
|
-
目前 当匹配字段为COOKIE(Cookie)时,不需要输入 匹配内容其他都需要
|
|
58770
|
-
|
|
59268
|
+
:param _Content: 匹配内容。验证码字段按 Field 表列出的控制台开放选项配置:CAPTCHA_RISK 支持 numeq、numneq、belong_to、not_belong_to、null、nnull;CAPTCHA_DEVICE_RISK 支持 belong_to、not_belong_to、null、nnull;CAPTCHAR_SCORE 支持 numeq、numgt、numlt、numge、numle、null、nnull。null/nnull 时 Content 必须为空字符串;数值比较传单个整数字符串;集合比较传 JSON 字符串数组的序列化字符串,元素范围和数量限制详见 Field。
|
|
58771
59269
|
:type Content: str
|
|
58772
59270
|
:param _Arg: 匹配参数
|
|
58773
59271
|
|
|
@@ -58924,20 +59422,20 @@ strsuffix ( 后缀匹配)
|
|
|
58924
59422
|
<tr>
|
|
58925
59423
|
<td>CAPTCHA_RISK(验证码风险)</td>
|
|
58926
59424
|
<td>不支持参数</td>
|
|
58927
|
-
<td>
|
|
58928
|
-
<td
|
|
59425
|
+
<td>numeq(数值等于)<br />numneq(数值不等于)<br />belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59426
|
+
<td>numeq/numneq:Content 为 0-255 的整数字符串,例如 "10";belong_to/not_belong_to:Content 为 JSON 字符串数组的序列化字符串,例如 ["1","2"],最多50个元素,每个值为0-255整数;null/nnull:Content 必须为空字符串。集合格式不能使用普通逗号分隔字符串。</td>
|
|
58929
59427
|
</tr>
|
|
58930
59428
|
<tr>
|
|
58931
59429
|
<td>CAPTCHA_DEVICE_RISK(验证码设备风险)</td>
|
|
58932
59430
|
<td>不支持参数</td>
|
|
58933
|
-
<td>
|
|
58934
|
-
<td
|
|
59431
|
+
<td>belong_to(属于)<br />not_belong_to(不属于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59432
|
+
<td>belong_to/not_belong_to:Content 为 JSON 字符串数组的序列化字符串,例如 ["101","201"],最多7个元素;支持取值:101、201、301、401、501、601、701;null/nnull:Content 必须为空字符串。</td>
|
|
58935
59433
|
</tr>
|
|
58936
59434
|
<tr>
|
|
58937
59435
|
<td>CAPTCHAR_SCORE(验证码风险评估分)</td>
|
|
58938
59436
|
<td>不支持参数</td>
|
|
58939
|
-
<td>numeq(数值等于)<br />
|
|
58940
|
-
<td
|
|
59437
|
+
<td>numeq(数值等于)<br />numgt(数值大于)<br />numlt(数值小于)<br />numle(数值小于等于)<br />numge(数值大于等于)<br />null(不存在)<br />nnull(存在)</td>
|
|
59438
|
+
<td>数值比较时 Content 为 0-100 的整数字符串;null/nnull 时 Content 必须为空字符串。</td>
|
|
58941
59439
|
</tr>
|
|
58942
59440
|
</tbody>
|
|
58943
59441
|
</table>
|
|
@@ -58992,10 +59490,7 @@ strsuffix ( 后缀匹配)
|
|
|
58992
59490
|
|
|
58993
59491
|
@property
|
|
58994
59492
|
def Content(self):
|
|
58995
|
-
r"""
|
|
58996
|
-
|
|
58997
|
-
目前 当匹配字段为COOKIE(Cookie)时,不需要输入 匹配内容其他都需要
|
|
58998
|
-
|
|
59493
|
+
r"""匹配内容。验证码字段按 Field 表列出的控制台开放选项配置:CAPTCHA_RISK 支持 numeq、numneq、belong_to、not_belong_to、null、nnull;CAPTCHA_DEVICE_RISK 支持 belong_to、not_belong_to、null、nnull;CAPTCHAR_SCORE 支持 numeq、numgt、numlt、numge、numle、null、nnull。null/nnull 时 Content 必须为空字符串;数值比较传单个整数字符串;集合比较传 JSON 字符串数组的序列化字符串,元素范围和数量限制详见 Field。
|
|
58999
59494
|
:rtype: str
|
|
59000
59495
|
"""
|
|
59001
59496
|
return self._Content
|
|
@@ -325,6 +325,29 @@ class WafClient(AbstractClient):
|
|
|
325
325
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
326
|
|
|
327
327
|
|
|
328
|
+
def CreateAndUpdateBatchCCRule(self, request):
|
|
329
|
+
r"""批量cc规则配置接口
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for CreateAndUpdateBatchCCRule.
|
|
332
|
+
:type request: :class:`tencentcloud.waf.v20180125.models.CreateAndUpdateBatchCCRuleRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.waf.v20180125.models.CreateAndUpdateBatchCCRuleResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("CreateAndUpdateBatchCCRule", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.CreateAndUpdateBatchCCRuleResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
328
351
|
def CreateAreaBanRule(self, request):
|
|
329
352
|
r"""添加(编辑)地域封禁中的地域信息
|
|
330
353
|
|
|
@@ -259,6 +259,24 @@ class WafClient(AbstractClient):
|
|
|
259
259
|
|
|
260
260
|
return await self.call_and_deserialize(**kwargs)
|
|
261
261
|
|
|
262
|
+
async def CreateAndUpdateBatchCCRule(
|
|
263
|
+
self,
|
|
264
|
+
request: models.CreateAndUpdateBatchCCRuleRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.CreateAndUpdateBatchCCRuleResponse:
|
|
267
|
+
"""
|
|
268
|
+
批量cc规则配置接口
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "CreateAndUpdateBatchCCRule"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.CreateAndUpdateBatchCCRuleResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
262
280
|
async def CreateAreaBanRule(
|
|
263
281
|
self,
|
|
264
282
|
request: models.CreateAreaBanRuleRequest,
|
|
@@ -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.178
|
|
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.178
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.178
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.165
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|