tencentcloud-sdk-python-teo 3.0.1438__tar.gz → 3.0.1443__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.1443}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/setup.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220901/models.py +148 -18
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-teo-3.0.1443/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.1443}/README.rst +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/setup.cfg +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud/teo/v20220901/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1438 → tencentcloud-sdk-python-teo-3.0.1443}/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.1443,<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(),
|
|
@@ -10399,21 +10399,21 @@ class CreateOriginGroupRequest(AbstractModel):
|
|
|
10399
10399
|
r"""
|
|
10400
10400
|
:param _ZoneId: 站点 ID
|
|
10401
10401
|
:type ZoneId: str
|
|
10402
|
+
:param _Records: 源站记录信息,此参数必填。
|
|
10403
|
+
:type Records: list of OriginRecord
|
|
10402
10404
|
:param _Name: 源站组名称,可输入1 - 200个字符,允许的字符为 a - z, A - Z, 0 - 9, _, - 。
|
|
10403
10405
|
:type Name: str
|
|
10404
10406
|
:param _Type: 源站组类型,此参数必填,取值有:
|
|
10405
10407
|
<li>GENERAL:通用型源站组,仅支持添加 IP/域名 源站,可以被域名服务、规则引擎、四层代理、通用型负载均衡、HTTP 专用型负载均衡引用;</li>
|
|
10406
10408
|
<li>HTTP: HTTP 专用型源站组,支持添加 IP/域名、对象存储源站作为源站,无法被四层代理引用,仅支持被添加加速域名、规则引擎-修改源站、HTTP 专用型负载均衡引用。</li>
|
|
10407
10409
|
:type Type: str
|
|
10408
|
-
:param _Records: 源站记录信息,此参数必填。
|
|
10409
|
-
:type Records: list of OriginRecord
|
|
10410
10410
|
:param _HostHeader: 回源 Host Header,仅 Type = HTTP 时传入生效,规则引擎修改 Host Header 配置优先级高于源站组的 Host Header。
|
|
10411
10411
|
:type HostHeader: str
|
|
10412
10412
|
"""
|
|
10413
10413
|
self._ZoneId = None
|
|
10414
|
+
self._Records = None
|
|
10414
10415
|
self._Name = None
|
|
10415
10416
|
self._Type = None
|
|
10416
|
-
self._Records = None
|
|
10417
10417
|
self._HostHeader = None
|
|
10418
10418
|
|
|
10419
10419
|
@property
|
|
@@ -10427,6 +10427,17 @@ class CreateOriginGroupRequest(AbstractModel):
|
|
|
10427
10427
|
def ZoneId(self, ZoneId):
|
|
10428
10428
|
self._ZoneId = ZoneId
|
|
10429
10429
|
|
|
10430
|
+
@property
|
|
10431
|
+
def Records(self):
|
|
10432
|
+
"""源站记录信息,此参数必填。
|
|
10433
|
+
:rtype: list of OriginRecord
|
|
10434
|
+
"""
|
|
10435
|
+
return self._Records
|
|
10436
|
+
|
|
10437
|
+
@Records.setter
|
|
10438
|
+
def Records(self, Records):
|
|
10439
|
+
self._Records = Records
|
|
10440
|
+
|
|
10430
10441
|
@property
|
|
10431
10442
|
def Name(self):
|
|
10432
10443
|
"""源站组名称,可输入1 - 200个字符,允许的字符为 a - z, A - Z, 0 - 9, _, - 。
|
|
@@ -10451,17 +10462,6 @@ class CreateOriginGroupRequest(AbstractModel):
|
|
|
10451
10462
|
def Type(self, Type):
|
|
10452
10463
|
self._Type = Type
|
|
10453
10464
|
|
|
10454
|
-
@property
|
|
10455
|
-
def Records(self):
|
|
10456
|
-
"""源站记录信息,此参数必填。
|
|
10457
|
-
:rtype: list of OriginRecord
|
|
10458
|
-
"""
|
|
10459
|
-
return self._Records
|
|
10460
|
-
|
|
10461
|
-
@Records.setter
|
|
10462
|
-
def Records(self, Records):
|
|
10463
|
-
self._Records = Records
|
|
10464
|
-
|
|
10465
10465
|
@property
|
|
10466
10466
|
def HostHeader(self):
|
|
10467
10467
|
"""回源 Host Header,仅 Type = HTTP 时传入生效,规则引擎修改 Host Header 配置优先级高于源站组的 Host Header。
|
|
@@ -10476,14 +10476,14 @@ class CreateOriginGroupRequest(AbstractModel):
|
|
|
10476
10476
|
|
|
10477
10477
|
def _deserialize(self, params):
|
|
10478
10478
|
self._ZoneId = params.get("ZoneId")
|
|
10479
|
-
self._Name = params.get("Name")
|
|
10480
|
-
self._Type = params.get("Type")
|
|
10481
10479
|
if params.get("Records") is not None:
|
|
10482
10480
|
self._Records = []
|
|
10483
10481
|
for item in params.get("Records"):
|
|
10484
10482
|
obj = OriginRecord()
|
|
10485
10483
|
obj._deserialize(item)
|
|
10486
10484
|
self._Records.append(obj)
|
|
10485
|
+
self._Name = params.get("Name")
|
|
10486
|
+
self._Type = params.get("Type")
|
|
10487
10487
|
self._HostHeader = params.get("HostHeader")
|
|
10488
10488
|
memeber_set = set(params.keys())
|
|
10489
10489
|
for name, value in vars(self).items():
|
|
@@ -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:]
|
|
@@ -42822,7 +42952,7 @@ class OriginRecord(AbstractModel):
|
|
|
42822
42952
|
:type Type: str
|
|
42823
42953
|
:param _RecordId: 源站记录ID。
|
|
42824
42954
|
:type RecordId: str
|
|
42825
|
-
:param _Weight:
|
|
42955
|
+
:param _Weight: 【源站权重】:用于控制流量分配优先级的参数,取值范围:0-100(整数):<li>空值:不设置权重,系统按默认策略调度;</li><li>0 值:明确设置权重为0,流量将不会分配到该源站,注意事项:必须确保至少有一个源站的权重值大于0;</li><li>正常值:数值越大分配流量越多 ;</li>
|
|
42826
42956
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
42827
42957
|
:type Weight: int
|
|
42828
42958
|
:param _Private: 是否私有鉴权,当源站类型 RecordType=COS/AWS_S3 时生效,取值有:
|
|
@@ -42878,7 +43008,7 @@ class OriginRecord(AbstractModel):
|
|
|
42878
43008
|
|
|
42879
43009
|
@property
|
|
42880
43010
|
def Weight(self):
|
|
42881
|
-
"""
|
|
43011
|
+
"""【源站权重】:用于控制流量分配优先级的参数,取值范围:0-100(整数):<li>空值:不设置权重,系统按默认策略调度;</li><li>0 值:明确设置权重为0,流量将不会分配到该源站,注意事项:必须确保至少有一个源站的权重值大于0;</li><li>正常值:数值越大分配流量越多 ;</li>
|
|
42882
43012
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
42883
43013
|
:rtype: int
|
|
42884
43014
|
"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1443
|
|
@@ -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
|