tencentcloud-sdk-python-teo 3.0.1180__tar.gz → 3.0.1182__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.1180 → tencentcloud-sdk-python-teo-3.0.1182}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/setup.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220901/errorcodes.py +15 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220901/models.py +117 -23
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-teo-3.0.1182/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-teo-3.0.1180/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/README.rst +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/setup.cfg +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud/teo/v20220901/teo_client.py +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-teo-3.0.1180 → tencentcloud-sdk-python-teo-3.0.1182}/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.1182"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Teo SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -674,6 +674,15 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
|
674
674
|
# 该站点域名已被禁用。
|
|
675
675
|
INVALIDPARAMETERVALUE_ACCESSBLACKLIST = 'InvalidParameterValue.AccessBlacklist'
|
|
676
676
|
|
|
677
|
+
# 边缘双向认证配置中的客户端证书必须是CA证书。
|
|
678
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTMUSTCA = 'InvalidParameterValue.CertificateVerifyClientMustCa'
|
|
679
|
+
|
|
680
|
+
# 边缘双向认证配置至少需要配置一本证书。
|
|
681
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTNEEDCERT = 'InvalidParameterValue.CertificateVerifyClientNeedCert'
|
|
682
|
+
|
|
683
|
+
# 边缘双向认证配置中的客户端 CA 证书最多允许配置20本。
|
|
684
|
+
INVALIDPARAMETERVALUE_CLIENTCERTINFOQUOTALIMIT = 'InvalidParameterValue.ClientCertInfoQuotaLimit'
|
|
685
|
+
|
|
677
686
|
# 与已经添加的记录冲突。
|
|
678
687
|
INVALIDPARAMETERVALUE_CONFLICTRECORD = 'InvalidParameterValue.ConflictRecord'
|
|
679
688
|
|
|
@@ -746,6 +755,12 @@ INVALIDPARAMETERVALUE_PAGENAMEALREADYEXIST = 'InvalidParameterValue.PageNameAlre
|
|
|
746
755
|
# 不符合指定的正则表达式。
|
|
747
756
|
INVALIDPARAMETERVALUE_REGEXMISMATCH = 'InvalidParameterValue.RegExMismatch'
|
|
748
757
|
|
|
758
|
+
# 已开启双向认证,客户端使用 RSA 或者 ECC 算法证书时,HTTPS 证书必须也配置有相同算法证书。
|
|
759
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINRSAORECC = 'InvalidParameterValue.ServerCertInfoNeedContainRSAorECC'
|
|
760
|
+
|
|
761
|
+
# 已开启双向认证,客户端使用国密算法 CA 证书时,HTTPS 证书必须也配置有国密证书。
|
|
762
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINSM2 = 'InvalidParameterValue.ServerCertInfoNeedContainSM2'
|
|
763
|
+
|
|
749
764
|
# 请输入合法的共享 CNAME 前缀,最大支持50个字符。
|
|
750
765
|
INVALIDPARAMETERVALUE_SHAREDCNAMEPREFIXNOTMATCH = 'InvalidParameterValue.SharedCNAMEPrefixNotMatch'
|
|
751
766
|
|
|
@@ -311,12 +311,15 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
311
311
|
r"""
|
|
312
312
|
:param _Mode: 配置证书的模式,取值有: <li>disable:不配置证书;</li> <li>eofreecert:配置 EdgeOne 免费证书;</li> <li>sslcert:配置 SSL 证书。</li>
|
|
313
313
|
:type Mode: str
|
|
314
|
-
:param _List:
|
|
314
|
+
:param _List: 服务端证书列表。
|
|
315
315
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
316
316
|
:type List: list of CertificateInfo
|
|
317
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
|
318
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
|
317
319
|
"""
|
|
318
320
|
self._Mode = None
|
|
319
321
|
self._List = None
|
|
322
|
+
self._ClientCertInfo = None
|
|
320
323
|
|
|
321
324
|
@property
|
|
322
325
|
def Mode(self):
|
|
@@ -334,6 +337,14 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
334
337
|
def List(self, List):
|
|
335
338
|
self._List = List
|
|
336
339
|
|
|
340
|
+
@property
|
|
341
|
+
def ClientCertInfo(self):
|
|
342
|
+
return self._ClientCertInfo
|
|
343
|
+
|
|
344
|
+
@ClientCertInfo.setter
|
|
345
|
+
def ClientCertInfo(self, ClientCertInfo):
|
|
346
|
+
self._ClientCertInfo = ClientCertInfo
|
|
347
|
+
|
|
337
348
|
|
|
338
349
|
def _deserialize(self, params):
|
|
339
350
|
self._Mode = params.get("Mode")
|
|
@@ -343,6 +354,9 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
343
354
|
obj = CertificateInfo()
|
|
344
355
|
obj._deserialize(item)
|
|
345
356
|
self._List.append(obj)
|
|
357
|
+
if params.get("ClientCertInfo") is not None:
|
|
358
|
+
self._ClientCertInfo = MutualTLS()
|
|
359
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
|
346
360
|
memeber_set = set(params.keys())
|
|
347
361
|
for name, value in vars(self).items():
|
|
348
362
|
property_name = name[1:]
|
|
@@ -3345,13 +3359,13 @@ class CacheTag(AbstractModel):
|
|
|
3345
3359
|
|
|
3346
3360
|
|
|
3347
3361
|
class CertificateInfo(AbstractModel):
|
|
3348
|
-
"""https
|
|
3362
|
+
"""https 证书配置。
|
|
3349
3363
|
|
|
3350
3364
|
"""
|
|
3351
3365
|
|
|
3352
3366
|
def __init__(self):
|
|
3353
3367
|
r"""
|
|
3354
|
-
:param _CertId:
|
|
3368
|
+
:param _CertId: 证书 ID。
|
|
3355
3369
|
:type CertId: str
|
|
3356
3370
|
:param _Alias: 证书备注名。
|
|
3357
3371
|
:type Alias: str
|
|
@@ -16486,7 +16500,7 @@ class IpTableConfig(AbstractModel):
|
|
|
16486
16500
|
|
|
16487
16501
|
|
|
16488
16502
|
class IpTableRule(AbstractModel):
|
|
16489
|
-
"""
|
|
16503
|
+
"""自定义规则-基础访问管控配置。
|
|
16490
16504
|
|
|
16491
16505
|
"""
|
|
16492
16506
|
|
|
@@ -16498,32 +16512,43 @@ class IpTableRule(AbstractModel):
|
|
|
16498
16512
|
<li> monitor:观察。</li>
|
|
16499
16513
|
:type Action: str
|
|
16500
16514
|
:param _MatchFrom: 根据类型匹配,取值有:
|
|
16501
|
-
<li>ip
|
|
16502
|
-
<li>area
|
|
16515
|
+
<li>ip:客户端 IP 进行匹配;</li>
|
|
16516
|
+
<li>area:客户端 IP 所属地区匹配;</li>
|
|
16517
|
+
<li>asn:客户端所属的自治系统进行匹配;</li>
|
|
16518
|
+
<li>referer:请求头 Referer 进行匹配;</li>
|
|
16519
|
+
<li>ua:请求头 User-Agent 进行匹配;</li>
|
|
16520
|
+
<li>url:请求 URL 进行匹配。</li>
|
|
16503
16521
|
:type MatchFrom: str
|
|
16504
|
-
:param _Operator:
|
|
16505
|
-
|
|
16506
|
-
<li>
|
|
16507
|
-
<li>
|
|
16508
|
-
<li>
|
|
16509
|
-
<li>
|
|
16510
|
-
<li>
|
|
16511
|
-
<li>
|
|
16512
|
-
|
|
16522
|
+
:param _Operator: 规则的匹配方式。取值有:
|
|
16523
|
+
<li> match:匹配,适用于 MatchFrom 为 ip;</li>
|
|
16524
|
+
<li> not_match:不匹配,适用于 MatchFrom 为 ip;</li>
|
|
16525
|
+
<li> include_area:地域包含,适用于 MatchFrom 为 area;</li>
|
|
16526
|
+
<li> not_include_area:地域不包含,适用于 MatchFrom 为 area;</li>
|
|
16527
|
+
<li> asn_match:ASN 包含,适用于 MatchFrom 为 asn;</li>
|
|
16528
|
+
<li> asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;</li>
|
|
16529
|
+
<li> equal:等于,适用于 MatchFrom 为 ua , referer;</li>
|
|
16530
|
+
<li> not_equal:不等于,适用于 MatchFrom 为 ua , referer;</li>
|
|
16531
|
+
<li> include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;</li>
|
|
16532
|
+
<li> not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;</li>
|
|
16533
|
+
<li> is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;</li>
|
|
16534
|
+
<li> not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。</li>
|
|
16513
16535
|
:type Operator: str
|
|
16514
16536
|
:param _RuleID: 规则id。仅出参使用。
|
|
16515
16537
|
:type RuleID: int
|
|
16516
16538
|
:param _UpdateTime: 更新时间。仅出参使用。
|
|
16517
16539
|
:type UpdateTime: str
|
|
16518
|
-
:param _Status:
|
|
16540
|
+
:param _Status: 规则启用状态。取值有:
|
|
16519
16541
|
<li> on:启用;</li>
|
|
16520
16542
|
<li> off:未启用。</li>
|
|
16521
|
-
|
|
16543
|
+
当入参缺省时,按 on 取值。
|
|
16522
16544
|
:type Status: str
|
|
16523
16545
|
:param _RuleName: 规则名。
|
|
16524
16546
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16525
16547
|
:type RuleName: str
|
|
16526
|
-
:param _MatchContent:
|
|
16548
|
+
:param _MatchContent: 匹配内容。支持多值输入。
|
|
16549
|
+
<li>当输入多个匹配值时,请使用英文逗号分隔;</li>
|
|
16550
|
+
<li>当 MatchFrom 为 ua 时,不支持多值输入;</li>
|
|
16551
|
+
<li>当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。</li>
|
|
16527
16552
|
:type MatchContent: str
|
|
16528
16553
|
"""
|
|
16529
16554
|
self._Action = None
|
|
@@ -18532,24 +18557,29 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
18532
18557
|
:type ZoneId: str
|
|
18533
18558
|
:param _Hosts: 需要修改证书配置的加速域名。
|
|
18534
18559
|
:type Hosts: list of str
|
|
18535
|
-
:param _Mode:
|
|
18536
|
-
<li>disable
|
|
18537
|
-
<li>eofreecert:配置 EdgeOne
|
|
18538
|
-
<li>sslcert:配置 SSL
|
|
18560
|
+
:param _Mode: 配置服务端证书的模式,取值有:
|
|
18561
|
+
<li>disable:不配置服务端证书;</li>
|
|
18562
|
+
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
18563
|
+
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
18564
|
+
不填写表示服务端证书保持原有配置。
|
|
18539
18565
|
:type Mode: str
|
|
18540
|
-
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode
|
|
18566
|
+
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
|
18541
18567
|
:type ServerCertInfo: list of ServerCertInfo
|
|
18542
18568
|
:param _ApplyType: 托管类型,取值有:
|
|
18543
18569
|
<li>none:不托管EO;</li>
|
|
18544
18570
|
<li>apply:托管EO</li>
|
|
18545
18571
|
不填,默认取值为none。
|
|
18546
18572
|
:type ApplyType: str
|
|
18573
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
|
18574
|
+
不填写表示边缘双向认证保持原有配置。
|
|
18575
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
|
18547
18576
|
"""
|
|
18548
18577
|
self._ZoneId = None
|
|
18549
18578
|
self._Hosts = None
|
|
18550
18579
|
self._Mode = None
|
|
18551
18580
|
self._ServerCertInfo = None
|
|
18552
18581
|
self._ApplyType = None
|
|
18582
|
+
self._ClientCertInfo = None
|
|
18553
18583
|
|
|
18554
18584
|
@property
|
|
18555
18585
|
def ZoneId(self):
|
|
@@ -18595,6 +18625,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
18595
18625
|
|
|
18596
18626
|
self._ApplyType = ApplyType
|
|
18597
18627
|
|
|
18628
|
+
@property
|
|
18629
|
+
def ClientCertInfo(self):
|
|
18630
|
+
return self._ClientCertInfo
|
|
18631
|
+
|
|
18632
|
+
@ClientCertInfo.setter
|
|
18633
|
+
def ClientCertInfo(self, ClientCertInfo):
|
|
18634
|
+
self._ClientCertInfo = ClientCertInfo
|
|
18635
|
+
|
|
18598
18636
|
|
|
18599
18637
|
def _deserialize(self, params):
|
|
18600
18638
|
self._ZoneId = params.get("ZoneId")
|
|
@@ -18607,6 +18645,9 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
18607
18645
|
obj._deserialize(item)
|
|
18608
18646
|
self._ServerCertInfo.append(obj)
|
|
18609
18647
|
self._ApplyType = params.get("ApplyType")
|
|
18648
|
+
if params.get("ClientCertInfo") is not None:
|
|
18649
|
+
self._ClientCertInfo = MutualTLS()
|
|
18650
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
|
18610
18651
|
memeber_set = set(params.keys())
|
|
18611
18652
|
for name, value in vars(self).items():
|
|
18612
18653
|
property_name = name[1:]
|
|
@@ -20297,6 +20338,59 @@ class ModifyZoneStatusResponse(AbstractModel):
|
|
|
20297
20338
|
self._RequestId = params.get("RequestId")
|
|
20298
20339
|
|
|
20299
20340
|
|
|
20341
|
+
class MutualTLS(AbstractModel):
|
|
20342
|
+
"""HTTPS 双向认证。
|
|
20343
|
+
|
|
20344
|
+
"""
|
|
20345
|
+
|
|
20346
|
+
def __init__(self):
|
|
20347
|
+
r"""
|
|
20348
|
+
:param _Switch: 双向认证配置开关,取值有:
|
|
20349
|
+
<li>on:开启;</li>
|
|
20350
|
+
<li>off:关闭。</li>
|
|
20351
|
+
:type Switch: str
|
|
20352
|
+
:param _CertInfos: 双向认证证书列表。
|
|
20353
|
+
注意:MutualTLS 在 ModifyHostsCertificate 作为入参使用时,该参数传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
|
20354
|
+
:type CertInfos: list of CertificateInfo
|
|
20355
|
+
"""
|
|
20356
|
+
self._Switch = None
|
|
20357
|
+
self._CertInfos = None
|
|
20358
|
+
|
|
20359
|
+
@property
|
|
20360
|
+
def Switch(self):
|
|
20361
|
+
return self._Switch
|
|
20362
|
+
|
|
20363
|
+
@Switch.setter
|
|
20364
|
+
def Switch(self, Switch):
|
|
20365
|
+
self._Switch = Switch
|
|
20366
|
+
|
|
20367
|
+
@property
|
|
20368
|
+
def CertInfos(self):
|
|
20369
|
+
return self._CertInfos
|
|
20370
|
+
|
|
20371
|
+
@CertInfos.setter
|
|
20372
|
+
def CertInfos(self, CertInfos):
|
|
20373
|
+
self._CertInfos = CertInfos
|
|
20374
|
+
|
|
20375
|
+
|
|
20376
|
+
def _deserialize(self, params):
|
|
20377
|
+
self._Switch = params.get("Switch")
|
|
20378
|
+
if params.get("CertInfos") is not None:
|
|
20379
|
+
self._CertInfos = []
|
|
20380
|
+
for item in params.get("CertInfos"):
|
|
20381
|
+
obj = CertificateInfo()
|
|
20382
|
+
obj._deserialize(item)
|
|
20383
|
+
self._CertInfos.append(obj)
|
|
20384
|
+
memeber_set = set(params.keys())
|
|
20385
|
+
for name, value in vars(self).items():
|
|
20386
|
+
property_name = name[1:]
|
|
20387
|
+
if property_name in memeber_set:
|
|
20388
|
+
memeber_set.remove(property_name)
|
|
20389
|
+
if len(memeber_set) > 0:
|
|
20390
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20391
|
+
|
|
20392
|
+
|
|
20393
|
+
|
|
20300
20394
|
class NoCache(AbstractModel):
|
|
20301
20395
|
"""不缓存配置
|
|
20302
20396
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1182
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1180
|
|
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
|