tencentcloud-sdk-python-teo 3.0.1341__tar.gz → 3.0.1342__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.1341 → tencentcloud-sdk-python-teo-3.0.1342}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/setup.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220901/models.py +227 -1
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220901/teo_client.py +8 -4
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-teo-3.0.1342/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-teo-3.0.1341/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/README.rst +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/setup.cfg +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1341 → tencentcloud-sdk-python-teo-3.0.1342}/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.1342"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Teo SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -21417,6 +21417,213 @@ class DetailHost(AbstractModel):
|
|
|
21417
21417
|
|
|
21418
21418
|
|
|
21419
21419
|
|
|
21420
|
+
class DetectLengthLimitCondition(AbstractModel):
|
|
21421
|
+
"""检测长度限制配置条件。
|
|
21422
|
+
|
|
21423
|
+
"""
|
|
21424
|
+
|
|
21425
|
+
def __init__(self):
|
|
21426
|
+
r"""
|
|
21427
|
+
:param _Name: 匹配条件的参数名称,取值有:
|
|
21428
|
+
<li>body_depth:请求正文包部分的检测深度。</li>
|
|
21429
|
+
:type Name: str
|
|
21430
|
+
:param _Values: 匹配条件的参数值,取值与 Name 成对使用。
|
|
21431
|
+
当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
|
21432
|
+
<li>8KB;</li>
|
|
21433
|
+
<li>64KB;</li>
|
|
21434
|
+
<li>128KB。</li>
|
|
21435
|
+
:type Values: list of str
|
|
21436
|
+
"""
|
|
21437
|
+
self._Name = None
|
|
21438
|
+
self._Values = None
|
|
21439
|
+
|
|
21440
|
+
@property
|
|
21441
|
+
def Name(self):
|
|
21442
|
+
"""匹配条件的参数名称,取值有:
|
|
21443
|
+
<li>body_depth:请求正文包部分的检测深度。</li>
|
|
21444
|
+
:rtype: str
|
|
21445
|
+
"""
|
|
21446
|
+
return self._Name
|
|
21447
|
+
|
|
21448
|
+
@Name.setter
|
|
21449
|
+
def Name(self, Name):
|
|
21450
|
+
self._Name = Name
|
|
21451
|
+
|
|
21452
|
+
@property
|
|
21453
|
+
def Values(self):
|
|
21454
|
+
"""匹配条件的参数值,取值与 Name 成对使用。
|
|
21455
|
+
当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
|
21456
|
+
<li>8KB;</li>
|
|
21457
|
+
<li>64KB;</li>
|
|
21458
|
+
<li>128KB。</li>
|
|
21459
|
+
:rtype: list of str
|
|
21460
|
+
"""
|
|
21461
|
+
return self._Values
|
|
21462
|
+
|
|
21463
|
+
@Values.setter
|
|
21464
|
+
def Values(self, Values):
|
|
21465
|
+
self._Values = Values
|
|
21466
|
+
|
|
21467
|
+
|
|
21468
|
+
def _deserialize(self, params):
|
|
21469
|
+
self._Name = params.get("Name")
|
|
21470
|
+
self._Values = params.get("Values")
|
|
21471
|
+
memeber_set = set(params.keys())
|
|
21472
|
+
for name, value in vars(self).items():
|
|
21473
|
+
property_name = name[1:]
|
|
21474
|
+
if property_name in memeber_set:
|
|
21475
|
+
memeber_set.remove(property_name)
|
|
21476
|
+
if len(memeber_set) > 0:
|
|
21477
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21478
|
+
|
|
21479
|
+
|
|
21480
|
+
|
|
21481
|
+
class DetectLengthLimitConfig(AbstractModel):
|
|
21482
|
+
"""检测长度限制
|
|
21483
|
+
|
|
21484
|
+
"""
|
|
21485
|
+
|
|
21486
|
+
def __init__(self):
|
|
21487
|
+
r"""
|
|
21488
|
+
:param _DetectLengthLimitRules: 检测长度限制的规则列表。
|
|
21489
|
+
:type DetectLengthLimitRules: list of DetectLengthLimitRule
|
|
21490
|
+
"""
|
|
21491
|
+
self._DetectLengthLimitRules = None
|
|
21492
|
+
|
|
21493
|
+
@property
|
|
21494
|
+
def DetectLengthLimitRules(self):
|
|
21495
|
+
"""检测长度限制的规则列表。
|
|
21496
|
+
:rtype: list of DetectLengthLimitRule
|
|
21497
|
+
"""
|
|
21498
|
+
return self._DetectLengthLimitRules
|
|
21499
|
+
|
|
21500
|
+
@DetectLengthLimitRules.setter
|
|
21501
|
+
def DetectLengthLimitRules(self, DetectLengthLimitRules):
|
|
21502
|
+
self._DetectLengthLimitRules = DetectLengthLimitRules
|
|
21503
|
+
|
|
21504
|
+
|
|
21505
|
+
def _deserialize(self, params):
|
|
21506
|
+
if params.get("DetectLengthLimitRules") is not None:
|
|
21507
|
+
self._DetectLengthLimitRules = []
|
|
21508
|
+
for item in params.get("DetectLengthLimitRules"):
|
|
21509
|
+
obj = DetectLengthLimitRule()
|
|
21510
|
+
obj._deserialize(item)
|
|
21511
|
+
self._DetectLengthLimitRules.append(obj)
|
|
21512
|
+
memeber_set = set(params.keys())
|
|
21513
|
+
for name, value in vars(self).items():
|
|
21514
|
+
property_name = name[1:]
|
|
21515
|
+
if property_name in memeber_set:
|
|
21516
|
+
memeber_set.remove(property_name)
|
|
21517
|
+
if len(memeber_set) > 0:
|
|
21518
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21519
|
+
|
|
21520
|
+
|
|
21521
|
+
|
|
21522
|
+
class DetectLengthLimitRule(AbstractModel):
|
|
21523
|
+
"""检测长度限制规则详情
|
|
21524
|
+
|
|
21525
|
+
"""
|
|
21526
|
+
|
|
21527
|
+
def __init__(self):
|
|
21528
|
+
r"""
|
|
21529
|
+
:param _RuleId: 规则Id。仅出参使用。
|
|
21530
|
+
:type RuleId: int
|
|
21531
|
+
:param _RuleName: 规则名称。仅出参使用。
|
|
21532
|
+
:type RuleName: str
|
|
21533
|
+
:param _Description: 规则描述,仅出参使用。
|
|
21534
|
+
:type Description: str
|
|
21535
|
+
:param _Conditions: 规则配置条件。仅出参使用。
|
|
21536
|
+
:type Conditions: list of DetectLengthLimitCondition
|
|
21537
|
+
:param _Action: 处置方式,取值有:
|
|
21538
|
+
<li>skip:当请求正文数据超过 Conditions 出参中 body_depth 设置的检测深度时,跳过所有请求正文内容的检测;</li>
|
|
21539
|
+
<li>scan:仅检测 Conditions 出参中 body_depth 设置的检测深度,对超出部分的请求正文内容直接截断处理,超出部分的请求正文不会经过安全检测。</li>仅出参使用。
|
|
21540
|
+
:type Action: str
|
|
21541
|
+
"""
|
|
21542
|
+
self._RuleId = None
|
|
21543
|
+
self._RuleName = None
|
|
21544
|
+
self._Description = None
|
|
21545
|
+
self._Conditions = None
|
|
21546
|
+
self._Action = None
|
|
21547
|
+
|
|
21548
|
+
@property
|
|
21549
|
+
def RuleId(self):
|
|
21550
|
+
"""规则Id。仅出参使用。
|
|
21551
|
+
:rtype: int
|
|
21552
|
+
"""
|
|
21553
|
+
return self._RuleId
|
|
21554
|
+
|
|
21555
|
+
@RuleId.setter
|
|
21556
|
+
def RuleId(self, RuleId):
|
|
21557
|
+
self._RuleId = RuleId
|
|
21558
|
+
|
|
21559
|
+
@property
|
|
21560
|
+
def RuleName(self):
|
|
21561
|
+
"""规则名称。仅出参使用。
|
|
21562
|
+
:rtype: str
|
|
21563
|
+
"""
|
|
21564
|
+
return self._RuleName
|
|
21565
|
+
|
|
21566
|
+
@RuleName.setter
|
|
21567
|
+
def RuleName(self, RuleName):
|
|
21568
|
+
self._RuleName = RuleName
|
|
21569
|
+
|
|
21570
|
+
@property
|
|
21571
|
+
def Description(self):
|
|
21572
|
+
"""规则描述,仅出参使用。
|
|
21573
|
+
:rtype: str
|
|
21574
|
+
"""
|
|
21575
|
+
return self._Description
|
|
21576
|
+
|
|
21577
|
+
@Description.setter
|
|
21578
|
+
def Description(self, Description):
|
|
21579
|
+
self._Description = Description
|
|
21580
|
+
|
|
21581
|
+
@property
|
|
21582
|
+
def Conditions(self):
|
|
21583
|
+
"""规则配置条件。仅出参使用。
|
|
21584
|
+
:rtype: list of DetectLengthLimitCondition
|
|
21585
|
+
"""
|
|
21586
|
+
return self._Conditions
|
|
21587
|
+
|
|
21588
|
+
@Conditions.setter
|
|
21589
|
+
def Conditions(self, Conditions):
|
|
21590
|
+
self._Conditions = Conditions
|
|
21591
|
+
|
|
21592
|
+
@property
|
|
21593
|
+
def Action(self):
|
|
21594
|
+
"""处置方式,取值有:
|
|
21595
|
+
<li>skip:当请求正文数据超过 Conditions 出参中 body_depth 设置的检测深度时,跳过所有请求正文内容的检测;</li>
|
|
21596
|
+
<li>scan:仅检测 Conditions 出参中 body_depth 设置的检测深度,对超出部分的请求正文内容直接截断处理,超出部分的请求正文不会经过安全检测。</li>仅出参使用。
|
|
21597
|
+
:rtype: str
|
|
21598
|
+
"""
|
|
21599
|
+
return self._Action
|
|
21600
|
+
|
|
21601
|
+
@Action.setter
|
|
21602
|
+
def Action(self, Action):
|
|
21603
|
+
self._Action = Action
|
|
21604
|
+
|
|
21605
|
+
|
|
21606
|
+
def _deserialize(self, params):
|
|
21607
|
+
self._RuleId = params.get("RuleId")
|
|
21608
|
+
self._RuleName = params.get("RuleName")
|
|
21609
|
+
self._Description = params.get("Description")
|
|
21610
|
+
if params.get("Conditions") is not None:
|
|
21611
|
+
self._Conditions = []
|
|
21612
|
+
for item in params.get("Conditions"):
|
|
21613
|
+
obj = DetectLengthLimitCondition()
|
|
21614
|
+
obj._deserialize(item)
|
|
21615
|
+
self._Conditions.append(obj)
|
|
21616
|
+
self._Action = params.get("Action")
|
|
21617
|
+
memeber_set = set(params.keys())
|
|
21618
|
+
for name, value in vars(self).items():
|
|
21619
|
+
property_name = name[1:]
|
|
21620
|
+
if property_name in memeber_set:
|
|
21621
|
+
memeber_set.remove(property_name)
|
|
21622
|
+
if len(memeber_set) > 0:
|
|
21623
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21624
|
+
|
|
21625
|
+
|
|
21626
|
+
|
|
21420
21627
|
class DiffIPWhitelist(AbstractModel):
|
|
21421
21628
|
"""最新IP白名单列表相比于当前IP白名单列表的区别
|
|
21422
21629
|
|
|
@@ -39071,7 +39278,7 @@ class SecEntryValue(AbstractModel):
|
|
|
39071
39278
|
|
|
39072
39279
|
|
|
39073
39280
|
class SecurityConfig(AbstractModel):
|
|
39074
|
-
"""安全配置
|
|
39281
|
+
"""Web安全配置
|
|
39075
39282
|
|
|
39076
39283
|
"""
|
|
39077
39284
|
|
|
@@ -39107,6 +39314,9 @@ class SecurityConfig(AbstractModel):
|
|
|
39107
39314
|
:param _SlowPostConfig: 慢速攻击配置。如果入参为空或不填,默认使用历史配置。
|
|
39108
39315
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
39109
39316
|
:type SlowPostConfig: :class:`tencentcloud.teo.v20220901.models.SlowPostConfig`
|
|
39317
|
+
:param _DetectLengthLimitConfig: 检测长度限制配置。仅出参使用。
|
|
39318
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39319
|
+
:type DetectLengthLimitConfig: :class:`tencentcloud.teo.v20220901.models.DetectLengthLimitConfig`
|
|
39110
39320
|
"""
|
|
39111
39321
|
self._WafConfig = None
|
|
39112
39322
|
self._RateLimitConfig = None
|
|
@@ -39118,6 +39328,7 @@ class SecurityConfig(AbstractModel):
|
|
|
39118
39328
|
self._DropPageConfig = None
|
|
39119
39329
|
self._TemplateConfig = None
|
|
39120
39330
|
self._SlowPostConfig = None
|
|
39331
|
+
self._DetectLengthLimitConfig = None
|
|
39121
39332
|
|
|
39122
39333
|
@property
|
|
39123
39334
|
def WafConfig(self):
|
|
@@ -39239,6 +39450,18 @@ class SecurityConfig(AbstractModel):
|
|
|
39239
39450
|
def SlowPostConfig(self, SlowPostConfig):
|
|
39240
39451
|
self._SlowPostConfig = SlowPostConfig
|
|
39241
39452
|
|
|
39453
|
+
@property
|
|
39454
|
+
def DetectLengthLimitConfig(self):
|
|
39455
|
+
"""检测长度限制配置。仅出参使用。
|
|
39456
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39457
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DetectLengthLimitConfig`
|
|
39458
|
+
"""
|
|
39459
|
+
return self._DetectLengthLimitConfig
|
|
39460
|
+
|
|
39461
|
+
@DetectLengthLimitConfig.setter
|
|
39462
|
+
def DetectLengthLimitConfig(self, DetectLengthLimitConfig):
|
|
39463
|
+
self._DetectLengthLimitConfig = DetectLengthLimitConfig
|
|
39464
|
+
|
|
39242
39465
|
|
|
39243
39466
|
def _deserialize(self, params):
|
|
39244
39467
|
if params.get("WafConfig") is not None:
|
|
@@ -39271,6 +39494,9 @@ class SecurityConfig(AbstractModel):
|
|
|
39271
39494
|
if params.get("SlowPostConfig") is not None:
|
|
39272
39495
|
self._SlowPostConfig = SlowPostConfig()
|
|
39273
39496
|
self._SlowPostConfig._deserialize(params.get("SlowPostConfig"))
|
|
39497
|
+
if params.get("DetectLengthLimitConfig") is not None:
|
|
39498
|
+
self._DetectLengthLimitConfig = DetectLengthLimitConfig()
|
|
39499
|
+
self._DetectLengthLimitConfig._deserialize(params.get("DetectLengthLimitConfig"))
|
|
39274
39500
|
memeber_set = set(params.keys())
|
|
39275
39501
|
for name, value in vars(self).items():
|
|
39276
39502
|
property_name = name[1:]
|
|
@@ -609,7 +609,8 @@ class TeoClient(AbstractClient):
|
|
|
609
609
|
|
|
610
610
|
|
|
611
611
|
def CreateRule(self, request):
|
|
612
|
-
"""
|
|
612
|
+
"""本接口为旧版本创建规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本创建七层加速规则接口详情请参考 [CreateL7AccRules](https://cloud.tencent.com/document/product/1552/115822)。
|
|
613
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
|
613
614
|
|
|
614
615
|
:param request: Request instance for CreateRule.
|
|
615
616
|
:type request: :class:`tencentcloud.teo.v20220901.models.CreateRuleRequest`
|
|
@@ -1049,7 +1050,8 @@ class TeoClient(AbstractClient):
|
|
|
1049
1050
|
|
|
1050
1051
|
|
|
1051
1052
|
def DeleteRules(self, request):
|
|
1052
|
-
"""
|
|
1053
|
+
"""本接口为旧版本删除规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本删除七层加速规则接口详情请参考 [DeleteL7AccRules](https://cloud.tencent.com/document/product/1552/115821)。
|
|
1054
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
|
1053
1055
|
|
|
1054
1056
|
:param request: Request instance for DeleteRules.
|
|
1055
1057
|
:type request: :class:`tencentcloud.teo.v20220901.models.DeleteRulesRequest`
|
|
@@ -1969,7 +1971,8 @@ class TeoClient(AbstractClient):
|
|
|
1969
1971
|
|
|
1970
1972
|
|
|
1971
1973
|
def DescribeRules(self, request):
|
|
1972
|
-
"""
|
|
1974
|
+
"""本接口为旧版本查询规则引擎规则接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本查询七层加速规则接口详情请参考 [DescribeL7AccRules](https://cloud.tencent.com/document/product/1552/115820)。
|
|
1975
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
|
1973
1976
|
|
|
1974
1977
|
:param request: Request instance for DescribeRules.
|
|
1975
1978
|
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeRulesRequest`
|
|
@@ -3067,7 +3070,8 @@ class TeoClient(AbstractClient):
|
|
|
3067
3070
|
|
|
3068
3071
|
|
|
3069
3072
|
def ModifyRule(self, request):
|
|
3070
|
-
"""
|
|
3073
|
+
"""本接口为旧版本修改规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本修改七层加速规则接口详情请参考 [ModifyL7AccRule](https://cloud.tencent.com/document/product/1552/115818)。
|
|
3074
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
|
3071
3075
|
|
|
3072
3076
|
:param request: Request instance for ModifyRule.
|
|
3073
3077
|
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyRuleRequest`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1342
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1341
|
|
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
|