tencentcloud-sdk-python-teo 3.0.1438__tar.gz → 3.0.1440__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-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/setup.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220901/models.py +130 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-teo-3.0.1440/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-teo-3.0.1438/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/README.rst +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/setup.cfg +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud/teo/v20220901/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1440}/tencentcloud_sdk_python_teo.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-teo',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1440,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Teo SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -29727,6 +29727,119 @@ class ForceRedirectHTTPSParameters(AbstractModel):
|
|
|
29727
29727
|
|
|
29728
29728
|
|
|
29729
29729
|
|
|
29730
|
+
class FrequentScanningProtection(AbstractModel):
|
|
29731
|
+
"""高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
|
29732
|
+
|
|
29733
|
+
"""
|
|
29734
|
+
|
|
29735
|
+
def __init__(self):
|
|
29736
|
+
r"""
|
|
29737
|
+
:param _Enabled: 高频扫描防护规则是否开启。取值有:<li>on:开启,高频扫描防护规则生效;</li><li>off:关闭,高频扫描防护规则不生效。</li>
|
|
29738
|
+
:type Enabled: str
|
|
29739
|
+
:param _Action: 高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>JSChallenge:JavaScript 挑战,响应 JavaScript 挑战页面。</li>
|
|
29740
|
+
:type Action: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
29741
|
+
:param _CountBy: 请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:<li>http.request.xff_header_ip:客户端 IP(优先匹配 XFF 头部);</li><li>http.request.ip:客户端 IP。</li>
|
|
29742
|
+
:type CountBy: str
|
|
29743
|
+
:param _BlockThreshold: 此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。
|
|
29744
|
+
:type BlockThreshold: int
|
|
29745
|
+
:param _CountingPeriod: 此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。
|
|
29746
|
+
:type CountingPeriod: str
|
|
29747
|
+
:param _ActionDuration: 此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。
|
|
29748
|
+
:type ActionDuration: str
|
|
29749
|
+
"""
|
|
29750
|
+
self._Enabled = None
|
|
29751
|
+
self._Action = None
|
|
29752
|
+
self._CountBy = None
|
|
29753
|
+
self._BlockThreshold = None
|
|
29754
|
+
self._CountingPeriod = None
|
|
29755
|
+
self._ActionDuration = None
|
|
29756
|
+
|
|
29757
|
+
@property
|
|
29758
|
+
def Enabled(self):
|
|
29759
|
+
"""高频扫描防护规则是否开启。取值有:<li>on:开启,高频扫描防护规则生效;</li><li>off:关闭,高频扫描防护规则不生效。</li>
|
|
29760
|
+
:rtype: str
|
|
29761
|
+
"""
|
|
29762
|
+
return self._Enabled
|
|
29763
|
+
|
|
29764
|
+
@Enabled.setter
|
|
29765
|
+
def Enabled(self, Enabled):
|
|
29766
|
+
self._Enabled = Enabled
|
|
29767
|
+
|
|
29768
|
+
@property
|
|
29769
|
+
def Action(self):
|
|
29770
|
+
"""高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>JSChallenge:JavaScript 挑战,响应 JavaScript 挑战页面。</li>
|
|
29771
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
29772
|
+
"""
|
|
29773
|
+
return self._Action
|
|
29774
|
+
|
|
29775
|
+
@Action.setter
|
|
29776
|
+
def Action(self, Action):
|
|
29777
|
+
self._Action = Action
|
|
29778
|
+
|
|
29779
|
+
@property
|
|
29780
|
+
def CountBy(self):
|
|
29781
|
+
"""请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:<li>http.request.xff_header_ip:客户端 IP(优先匹配 XFF 头部);</li><li>http.request.ip:客户端 IP。</li>
|
|
29782
|
+
:rtype: str
|
|
29783
|
+
"""
|
|
29784
|
+
return self._CountBy
|
|
29785
|
+
|
|
29786
|
+
@CountBy.setter
|
|
29787
|
+
def CountBy(self, CountBy):
|
|
29788
|
+
self._CountBy = CountBy
|
|
29789
|
+
|
|
29790
|
+
@property
|
|
29791
|
+
def BlockThreshold(self):
|
|
29792
|
+
"""此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。
|
|
29793
|
+
:rtype: int
|
|
29794
|
+
"""
|
|
29795
|
+
return self._BlockThreshold
|
|
29796
|
+
|
|
29797
|
+
@BlockThreshold.setter
|
|
29798
|
+
def BlockThreshold(self, BlockThreshold):
|
|
29799
|
+
self._BlockThreshold = BlockThreshold
|
|
29800
|
+
|
|
29801
|
+
@property
|
|
29802
|
+
def CountingPeriod(self):
|
|
29803
|
+
"""此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。
|
|
29804
|
+
:rtype: str
|
|
29805
|
+
"""
|
|
29806
|
+
return self._CountingPeriod
|
|
29807
|
+
|
|
29808
|
+
@CountingPeriod.setter
|
|
29809
|
+
def CountingPeriod(self, CountingPeriod):
|
|
29810
|
+
self._CountingPeriod = CountingPeriod
|
|
29811
|
+
|
|
29812
|
+
@property
|
|
29813
|
+
def ActionDuration(self):
|
|
29814
|
+
"""此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。
|
|
29815
|
+
:rtype: str
|
|
29816
|
+
"""
|
|
29817
|
+
return self._ActionDuration
|
|
29818
|
+
|
|
29819
|
+
@ActionDuration.setter
|
|
29820
|
+
def ActionDuration(self, ActionDuration):
|
|
29821
|
+
self._ActionDuration = ActionDuration
|
|
29822
|
+
|
|
29823
|
+
|
|
29824
|
+
def _deserialize(self, params):
|
|
29825
|
+
self._Enabled = params.get("Enabled")
|
|
29826
|
+
if params.get("Action") is not None:
|
|
29827
|
+
self._Action = SecurityAction()
|
|
29828
|
+
self._Action._deserialize(params.get("Action"))
|
|
29829
|
+
self._CountBy = params.get("CountBy")
|
|
29830
|
+
self._BlockThreshold = params.get("BlockThreshold")
|
|
29831
|
+
self._CountingPeriod = params.get("CountingPeriod")
|
|
29832
|
+
self._ActionDuration = params.get("ActionDuration")
|
|
29833
|
+
memeber_set = set(params.keys())
|
|
29834
|
+
for name, value in vars(self).items():
|
|
29835
|
+
property_name = name[1:]
|
|
29836
|
+
if property_name in memeber_set:
|
|
29837
|
+
memeber_set.remove(property_name)
|
|
29838
|
+
if len(memeber_set) > 0:
|
|
29839
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29840
|
+
|
|
29841
|
+
|
|
29842
|
+
|
|
29730
29843
|
class Function(AbstractModel):
|
|
29731
29844
|
"""边缘函数详情
|
|
29732
29845
|
|
|
@@ -34591,12 +34704,15 @@ class ManagedRules(AbstractModel):
|
|
|
34591
34704
|
:type AutoUpdate: :class:`tencentcloud.teo.v20220901.models.ManagedRuleAutoUpdate`
|
|
34592
34705
|
:param _ManagedRuleGroups: 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
|
34593
34706
|
:type ManagedRuleGroups: list of ManagedRuleGroup
|
|
34707
|
+
:param _FrequentScanningProtection: 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
|
34708
|
+
:type FrequentScanningProtection: :class:`tencentcloud.teo.v20220901.models.FrequentScanningProtection`
|
|
34594
34709
|
"""
|
|
34595
34710
|
self._Enabled = None
|
|
34596
34711
|
self._DetectionOnly = None
|
|
34597
34712
|
self._SemanticAnalysis = None
|
|
34598
34713
|
self._AutoUpdate = None
|
|
34599
34714
|
self._ManagedRuleGroups = None
|
|
34715
|
+
self._FrequentScanningProtection = None
|
|
34600
34716
|
|
|
34601
34717
|
@property
|
|
34602
34718
|
def Enabled(self):
|
|
@@ -34653,6 +34769,17 @@ class ManagedRules(AbstractModel):
|
|
|
34653
34769
|
def ManagedRuleGroups(self, ManagedRuleGroups):
|
|
34654
34770
|
self._ManagedRuleGroups = ManagedRuleGroups
|
|
34655
34771
|
|
|
34772
|
+
@property
|
|
34773
|
+
def FrequentScanningProtection(self):
|
|
34774
|
+
"""高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
|
34775
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.FrequentScanningProtection`
|
|
34776
|
+
"""
|
|
34777
|
+
return self._FrequentScanningProtection
|
|
34778
|
+
|
|
34779
|
+
@FrequentScanningProtection.setter
|
|
34780
|
+
def FrequentScanningProtection(self, FrequentScanningProtection):
|
|
34781
|
+
self._FrequentScanningProtection = FrequentScanningProtection
|
|
34782
|
+
|
|
34656
34783
|
|
|
34657
34784
|
def _deserialize(self, params):
|
|
34658
34785
|
self._Enabled = params.get("Enabled")
|
|
@@ -34667,6 +34794,9 @@ class ManagedRules(AbstractModel):
|
|
|
34667
34794
|
obj = ManagedRuleGroup()
|
|
34668
34795
|
obj._deserialize(item)
|
|
34669
34796
|
self._ManagedRuleGroups.append(obj)
|
|
34797
|
+
if params.get("FrequentScanningProtection") is not None:
|
|
34798
|
+
self._FrequentScanningProtection = FrequentScanningProtection()
|
|
34799
|
+
self._FrequentScanningProtection._deserialize(params.get("FrequentScanningProtection"))
|
|
34670
34800
|
memeber_set = set(params.keys())
|
|
34671
34801
|
for name, value in vars(self).items():
|
|
34672
34802
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1440
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1438
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|