tencentcloud-sdk-python-waf 3.0.1383__tar.gz → 3.0.1385__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-waf might be problematic. Click here for more details.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/setup.py +1 -1
  3. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/waf/v20180125/models.py +120 -32
  5. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-waf-3.0.1385/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-waf-3.0.1383/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/README.rst +0 -0
  9. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/waf/__init__.py +0 -0
  11. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/waf/v20180125/__init__.py +0 -0
  12. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  13. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud/waf/v20180125/waf_client.py +0 -0
  14. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-waf-3.0.1383 → tencentcloud-sdk-python-waf-3.0.1385}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1383
3
+ Version: 3.0.1385
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
@@ -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.1383"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1385"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Waf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1383'
17
+ __version__ = '3.0.1385'
@@ -1751,6 +1751,8 @@ class AddCustomWhiteRuleRequest(AbstractModel):
1751
1751
  :type JobType: str
1752
1752
  :param _JobDateTime: 定时任务配置
1753
1753
  :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
1754
+ :param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
1755
+ :type LogicalOp: str
1754
1756
  """
1755
1757
  self._Name = None
1756
1758
  self._SortId = None
@@ -1760,6 +1762,7 @@ class AddCustomWhiteRuleRequest(AbstractModel):
1760
1762
  self._ExpireTime = None
1761
1763
  self._JobType = None
1762
1764
  self._JobDateTime = None
1765
+ self._LogicalOp = None
1763
1766
 
1764
1767
  @property
1765
1768
  def Name(self):
@@ -1849,6 +1852,17 @@ class AddCustomWhiteRuleRequest(AbstractModel):
1849
1852
  def JobDateTime(self, JobDateTime):
1850
1853
  self._JobDateTime = JobDateTime
1851
1854
 
1855
+ @property
1856
+ def LogicalOp(self):
1857
+ """匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
1858
+ :rtype: str
1859
+ """
1860
+ return self._LogicalOp
1861
+
1862
+ @LogicalOp.setter
1863
+ def LogicalOp(self, LogicalOp):
1864
+ self._LogicalOp = LogicalOp
1865
+
1852
1866
 
1853
1867
  def _deserialize(self, params):
1854
1868
  self._Name = params.get("Name")
@@ -1866,6 +1880,7 @@ class AddCustomWhiteRuleRequest(AbstractModel):
1866
1880
  if params.get("JobDateTime") is not None:
1867
1881
  self._JobDateTime = JobDateTime()
1868
1882
  self._JobDateTime._deserialize(params.get("JobDateTime"))
1883
+ self._LogicalOp = params.get("LogicalOp")
1869
1884
  memeber_set = set(params.keys())
1870
1885
  for name, value in vars(self).items():
1871
1886
  property_name = name[1:]
@@ -6521,6 +6536,10 @@ class CCRuleItems(AbstractModel):
6521
6536
  :type CreateTime: int
6522
6537
  :param _LimitMethod: 限频方式
6523
6538
  :type LimitMethod: str
6539
+ :param _CelRule: cel表达式
6540
+ :type CelRule: str
6541
+ :param _LogicalOp: 逻辑操作符
6542
+ :type LogicalOp: str
6524
6543
  """
6525
6544
  self._Name = None
6526
6545
  self._Status = None
@@ -6539,6 +6558,8 @@ class CCRuleItems(AbstractModel):
6539
6558
  self._SessionApplied = None
6540
6559
  self._CreateTime = None
6541
6560
  self._LimitMethod = None
6561
+ self._CelRule = None
6562
+ self._LogicalOp = None
6542
6563
 
6543
6564
  @property
6544
6565
  def Name(self):
@@ -6727,6 +6748,28 @@ class CCRuleItems(AbstractModel):
6727
6748
  def LimitMethod(self, LimitMethod):
6728
6749
  self._LimitMethod = LimitMethod
6729
6750
 
6751
+ @property
6752
+ def CelRule(self):
6753
+ """cel表达式
6754
+ :rtype: str
6755
+ """
6756
+ return self._CelRule
6757
+
6758
+ @CelRule.setter
6759
+ def CelRule(self, CelRule):
6760
+ self._CelRule = CelRule
6761
+
6762
+ @property
6763
+ def LogicalOp(self):
6764
+ """逻辑操作符
6765
+ :rtype: str
6766
+ """
6767
+ return self._LogicalOp
6768
+
6769
+ @LogicalOp.setter
6770
+ def LogicalOp(self, LogicalOp):
6771
+ self._LogicalOp = LogicalOp
6772
+
6730
6773
 
6731
6774
  def _deserialize(self, params):
6732
6775
  self._Name = params.get("Name")
@@ -6746,6 +6789,8 @@ class CCRuleItems(AbstractModel):
6746
6789
  self._SessionApplied = params.get("SessionApplied")
6747
6790
  self._CreateTime = params.get("CreateTime")
6748
6791
  self._LimitMethod = params.get("LimitMethod")
6792
+ self._CelRule = params.get("CelRule")
6793
+ self._LogicalOp = params.get("LogicalOp")
6749
6794
  memeber_set = set(params.keys())
6750
6795
  for name, value in vars(self).items():
6751
6796
  property_name = name[1:]
@@ -9910,7 +9955,6 @@ class DeleteBotSceneUCBRuleResponse(AbstractModel):
9910
9955
  def __init__(self):
9911
9956
  r"""
9912
9957
  :param _Data: 正常情况下为null
9913
- 注意:此字段可能返回 null,表示取不到有效值。
9914
9958
  :type Data: str
9915
9959
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9916
9960
  :type RequestId: str
@@ -9921,7 +9965,6 @@ class DeleteBotSceneUCBRuleResponse(AbstractModel):
9921
9965
  @property
9922
9966
  def Data(self):
9923
9967
  """正常情况下为null
9924
- 注意:此字段可能返回 null,表示取不到有效值。
9925
9968
  :rtype: str
9926
9969
  """
9927
9970
  return self._Data
@@ -32572,6 +32615,8 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
32572
32615
  :type JobType: str
32573
32616
  :param _JobDateTime: 定时任务配置
32574
32617
  :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
32618
+ :param _LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
32619
+ :type LogicalOp: str
32575
32620
  """
32576
32621
  self._Domain = None
32577
32622
  self._RuleId = None
@@ -32582,6 +32627,7 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
32582
32627
  self._Strategies = None
32583
32628
  self._JobType = None
32584
32629
  self._JobDateTime = None
32630
+ self._LogicalOp = None
32585
32631
 
32586
32632
  @property
32587
32633
  def Domain(self):
@@ -32682,6 +32728,17 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
32682
32728
  def JobDateTime(self, JobDateTime):
32683
32729
  self._JobDateTime = JobDateTime
32684
32730
 
32731
+ @property
32732
+ def LogicalOp(self):
32733
+ """匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
32734
+ :rtype: str
32735
+ """
32736
+ return self._LogicalOp
32737
+
32738
+ @LogicalOp.setter
32739
+ def LogicalOp(self, LogicalOp):
32740
+ self._LogicalOp = LogicalOp
32741
+
32685
32742
 
32686
32743
  def _deserialize(self, params):
32687
32744
  self._Domain = params.get("Domain")
@@ -32700,6 +32757,7 @@ class ModifyCustomWhiteRuleRequest(AbstractModel):
32700
32757
  if params.get("JobDateTime") is not None:
32701
32758
  self._JobDateTime = JobDateTime()
32702
32759
  self._JobDateTime._deserialize(params.get("JobDateTime"))
32760
+ self._LogicalOp = params.get("LogicalOp")
32703
32761
  memeber_set = set(params.keys())
32704
32762
  for name, value in vars(self).items():
32705
32763
  property_name = name[1:]
@@ -40773,16 +40831,16 @@ class UpsertCCRuleRequest(AbstractModel):
40773
40831
  :type Limit: str
40774
40832
  :param _Interval: CC检测周期
40775
40833
  :type Interval: str
40776
- :param _Url: 检测Url
40777
- :type Url: str
40778
- :param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
40779
- :type MatchFunc: int
40780
40834
  :param _ActionType: 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
40781
40835
  :type ActionType: str
40782
40836
  :param _Priority: 优先级
40783
40837
  :type Priority: int
40784
40838
  :param _ValidTime: 动作有效时间
40785
40839
  :type ValidTime: int
40840
+ :param _Url: 检测Url
40841
+ :type Url: str
40842
+ :param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
40843
+ :type MatchFunc: int
40786
40844
  :param _OptionsArr: CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader 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(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
40787
40845
  :type OptionsArr: str
40788
40846
  :param _Edition: waf版本,sparta-waf或者clb-waf
@@ -40801,6 +40859,10 @@ class UpsertCCRuleRequest(AbstractModel):
40801
40859
  :type Length: int
40802
40860
  :param _LimitMethod: 限频方式
40803
40861
  :type LimitMethod: str
40862
+ :param _CelRule: cel表达式
40863
+ :type CelRule: str
40864
+ :param _LogicalOp: 配置方式的逻辑操作符,and或者or
40865
+ :type LogicalOp: str
40804
40866
  """
40805
40867
  self._Domain = None
40806
40868
  self._Name = None
@@ -40808,11 +40870,11 @@ class UpsertCCRuleRequest(AbstractModel):
40808
40870
  self._Advance = None
40809
40871
  self._Limit = None
40810
40872
  self._Interval = None
40811
- self._Url = None
40812
- self._MatchFunc = None
40813
40873
  self._ActionType = None
40814
40874
  self._Priority = None
40815
40875
  self._ValidTime = None
40876
+ self._Url = None
40877
+ self._MatchFunc = None
40816
40878
  self._OptionsArr = None
40817
40879
  self._Edition = None
40818
40880
  self._Type = None
@@ -40822,6 +40884,8 @@ class UpsertCCRuleRequest(AbstractModel):
40822
40884
  self._CreateTime = None
40823
40885
  self._Length = None
40824
40886
  self._LimitMethod = None
40887
+ self._CelRule = None
40888
+ self._LogicalOp = None
40825
40889
 
40826
40890
  @property
40827
40891
  def Domain(self):
@@ -40889,28 +40953,6 @@ class UpsertCCRuleRequest(AbstractModel):
40889
40953
  def Interval(self, Interval):
40890
40954
  self._Interval = Interval
40891
40955
 
40892
- @property
40893
- def Url(self):
40894
- """检测Url
40895
- :rtype: str
40896
- """
40897
- return self._Url
40898
-
40899
- @Url.setter
40900
- def Url(self, Url):
40901
- self._Url = Url
40902
-
40903
- @property
40904
- def MatchFunc(self):
40905
- """匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
40906
- :rtype: int
40907
- """
40908
- return self._MatchFunc
40909
-
40910
- @MatchFunc.setter
40911
- def MatchFunc(self, MatchFunc):
40912
- self._MatchFunc = MatchFunc
40913
-
40914
40956
  @property
40915
40957
  def ActionType(self):
40916
40958
  """动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
@@ -40944,6 +40986,28 @@ class UpsertCCRuleRequest(AbstractModel):
40944
40986
  def ValidTime(self, ValidTime):
40945
40987
  self._ValidTime = ValidTime
40946
40988
 
40989
+ @property
40990
+ def Url(self):
40991
+ """检测Url
40992
+ :rtype: str
40993
+ """
40994
+ return self._Url
40995
+
40996
+ @Url.setter
40997
+ def Url(self, Url):
40998
+ self._Url = Url
40999
+
41000
+ @property
41001
+ def MatchFunc(self):
41002
+ """匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
41003
+ :rtype: int
41004
+ """
41005
+ return self._MatchFunc
41006
+
41007
+ @MatchFunc.setter
41008
+ def MatchFunc(self, MatchFunc):
41009
+ self._MatchFunc = MatchFunc
41010
+
40947
41011
  @property
40948
41012
  def OptionsArr(self):
40949
41013
  """CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader 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(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
@@ -41043,6 +41107,28 @@ class UpsertCCRuleRequest(AbstractModel):
41043
41107
  def LimitMethod(self, LimitMethod):
41044
41108
  self._LimitMethod = LimitMethod
41045
41109
 
41110
+ @property
41111
+ def CelRule(self):
41112
+ """cel表达式
41113
+ :rtype: str
41114
+ """
41115
+ return self._CelRule
41116
+
41117
+ @CelRule.setter
41118
+ def CelRule(self, CelRule):
41119
+ self._CelRule = CelRule
41120
+
41121
+ @property
41122
+ def LogicalOp(self):
41123
+ """配置方式的逻辑操作符,and或者or
41124
+ :rtype: str
41125
+ """
41126
+ return self._LogicalOp
41127
+
41128
+ @LogicalOp.setter
41129
+ def LogicalOp(self, LogicalOp):
41130
+ self._LogicalOp = LogicalOp
41131
+
41046
41132
 
41047
41133
  def _deserialize(self, params):
41048
41134
  self._Domain = params.get("Domain")
@@ -41051,11 +41137,11 @@ class UpsertCCRuleRequest(AbstractModel):
41051
41137
  self._Advance = params.get("Advance")
41052
41138
  self._Limit = params.get("Limit")
41053
41139
  self._Interval = params.get("Interval")
41054
- self._Url = params.get("Url")
41055
- self._MatchFunc = params.get("MatchFunc")
41056
41140
  self._ActionType = params.get("ActionType")
41057
41141
  self._Priority = params.get("Priority")
41058
41142
  self._ValidTime = params.get("ValidTime")
41143
+ self._Url = params.get("Url")
41144
+ self._MatchFunc = params.get("MatchFunc")
41059
41145
  self._OptionsArr = params.get("OptionsArr")
41060
41146
  self._Edition = params.get("Edition")
41061
41147
  self._Type = params.get("Type")
@@ -41065,6 +41151,8 @@ class UpsertCCRuleRequest(AbstractModel):
41065
41151
  self._CreateTime = params.get("CreateTime")
41066
41152
  self._Length = params.get("Length")
41067
41153
  self._LimitMethod = params.get("LimitMethod")
41154
+ self._CelRule = params.get("CelRule")
41155
+ self._LogicalOp = params.get("LogicalOp")
41068
41156
  memeber_set = set(params.keys())
41069
41157
  for name, value in vars(self).items():
41070
41158
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1383
3
+ Version: 3.0.1385
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1385
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1383