tencentcloud-sdk-python-teo 3.1.145__tar.gz → 3.1.155__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.1.145 → tencentcloud_sdk_python_teo-3.1.155}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/setup.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/errorcodes.py +3 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/models.py +276 -104
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_teo-3.1.155/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_teo-3.1.145/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/README.rst +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/setup.cfg +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.145 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.155
|
|
4
4
|
Summary: Tencent Cloud Teo SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.155
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.155,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Teo SDK for Python',
|
|
@@ -1319,6 +1319,9 @@ OPERATIONDENIED_NODOMAINACCESSZONEONLYSUPPORTMODIFYAREAANDALIASZONENAME = 'Opera
|
|
|
1319
1319
|
# 无域名接入站点不支持除切换为CNAME接入类型以外的任何修改动作。
|
|
1320
1320
|
OPERATIONDENIED_NODOMAINACCESSZONEONLYSUPPORTMODIFYTYPE = 'OperationDenied.NoDomainAccessZoneOnlySupportModifyType'
|
|
1321
1321
|
|
|
1322
|
+
# 当前站点下存在域名关联了专属加速IP,如需关闭「中国大陆网络优化」请先解绑专属IP后重试。
|
|
1323
|
+
OPERATIONDENIED_NOTALLOWCLOSEACCELERATEMAINLANDWHENDOMAINBOUNDEXCLUSIVEIP = 'OperationDenied.NotAllowCloseAccelerateMainlandWhenDomainBoundExclusiveIP'
|
|
1324
|
+
|
|
1322
1325
|
# 当前高级回源优化功能仅针对白名单用户开放。
|
|
1323
1326
|
OPERATIONDENIED_NOTINADVANCEDORIGINROUTINGWHITELIST = 'OperationDenied.NotInAdvancedOriginRoutingWhiteList'
|
|
1324
1327
|
|
|
@@ -389,54 +389,41 @@ class AccelerationDomain(AbstractModel):
|
|
|
389
389
|
|
|
390
390
|
def __init__(self):
|
|
391
391
|
r"""
|
|
392
|
-
:param _ZoneId:
|
|
392
|
+
:param _ZoneId: <p>站点 ID。</p>
|
|
393
393
|
:type ZoneId: str
|
|
394
|
-
:param _DomainName:
|
|
394
|
+
:param _DomainName: <p>加速域名名称。</p>
|
|
395
395
|
:type DomainName: str
|
|
396
|
-
:param _DomainStatus:
|
|
397
|
-
<li>online:已生效;</li>
|
|
398
|
-
<li>process:部署中;</li>
|
|
399
|
-
<li>offline:已停用;</li>
|
|
400
|
-
<li>forbidden:已封禁;</li>
|
|
401
|
-
<li>init:未生效,待激活站点。</li>
|
|
396
|
+
:param _DomainStatus: <p>加速域名状态</p><p>枚举值:</p><ul><li>online: 已生效</li><li>process: 部署中</li><li>offline: 已停用</li><li>init: 未生效,待激活站点</li></ul>
|
|
402
397
|
:type DomainStatus: str
|
|
403
|
-
:param _Cname: CNAME
|
|
398
|
+
:param _Cname: <p>CNAME 地址。</p>
|
|
404
399
|
:type Cname: str
|
|
405
|
-
:param _IPv6Status: IPv6
|
|
406
|
-
<li>follow:遵循站点IPv6配置;</li>
|
|
407
|
-
<li>on:开启状态;</li>
|
|
408
|
-
<li>off:关闭状态。</li>
|
|
400
|
+
:param _IPv6Status: <p>IPv6 状态,取值有:</p><li>follow:遵循站点IPv6配置;</li><li>on:开启状态;</li><li>off:关闭状态。</li>
|
|
409
401
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
410
402
|
:type IPv6Status: str
|
|
411
|
-
:param _IdentificationStatus:
|
|
412
|
-
<li>pending:待验证;</li>
|
|
413
|
-
<li>finished:已完成验证。</li>
|
|
403
|
+
:param _IdentificationStatus: <p>加速域名归属权验证状态,取值有: </p><li>pending:待验证;</li><li>finished:已完成验证。</li>
|
|
414
404
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
415
405
|
:type IdentificationStatus: str
|
|
416
|
-
:param _OwnershipVerification:
|
|
406
|
+
:param _OwnershipVerification: <p>加速域名需进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。</p>
|
|
417
407
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
418
408
|
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
419
|
-
:param _OriginDetail:
|
|
409
|
+
:param _OriginDetail: <p>源站信息。</p>
|
|
420
410
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
421
411
|
:type OriginDetail: :class:`tencentcloud.teo.v20220901.models.OriginDetail`
|
|
422
|
-
:param _OriginProtocol:
|
|
423
|
-
<li>FOLLOW:协议跟随;</li>
|
|
424
|
-
<li>HTTP:HTTP协议回源;</li>
|
|
425
|
-
<li>HTTPS:HTTPS协议回源。</li>
|
|
412
|
+
:param _OriginProtocol: <p>回源协议,取值有:</p><li>FOLLOW:协议跟随;</li><li>HTTP:HTTP协议回源;</li><li>HTTPS:HTTPS协议回源。</li>
|
|
426
413
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
427
414
|
:type OriginProtocol: str
|
|
428
|
-
:param _HttpOriginPort: HTTP
|
|
415
|
+
:param _HttpOriginPort: <p>HTTP 回源端口。</p>
|
|
429
416
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
430
417
|
:type HttpOriginPort: int
|
|
431
|
-
:param _HttpsOriginPort: HTTPS
|
|
418
|
+
:param _HttpsOriginPort: <p>HTTPS 回源端口。</p>
|
|
432
419
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
433
420
|
:type HttpsOriginPort: int
|
|
434
|
-
:param _Certificate:
|
|
421
|
+
:param _Certificate: <p>加速域名证书信息。</p>
|
|
435
422
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
436
423
|
:type Certificate: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
437
|
-
:param _CreatedOn:
|
|
424
|
+
:param _CreatedOn: <p>创建时间。</p>
|
|
438
425
|
:type CreatedOn: str
|
|
439
|
-
:param _ModifiedOn:
|
|
426
|
+
:param _ModifiedOn: <p>修改时间。</p>
|
|
440
427
|
:type ModifiedOn: str
|
|
441
428
|
"""
|
|
442
429
|
self._ZoneId = None
|
|
@@ -456,7 +443,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
456
443
|
|
|
457
444
|
@property
|
|
458
445
|
def ZoneId(self):
|
|
459
|
-
r"""
|
|
446
|
+
r"""<p>站点 ID。</p>
|
|
460
447
|
:rtype: str
|
|
461
448
|
"""
|
|
462
449
|
return self._ZoneId
|
|
@@ -467,7 +454,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
467
454
|
|
|
468
455
|
@property
|
|
469
456
|
def DomainName(self):
|
|
470
|
-
r"""
|
|
457
|
+
r"""<p>加速域名名称。</p>
|
|
471
458
|
:rtype: str
|
|
472
459
|
"""
|
|
473
460
|
return self._DomainName
|
|
@@ -478,12 +465,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
478
465
|
|
|
479
466
|
@property
|
|
480
467
|
def DomainStatus(self):
|
|
481
|
-
r"""
|
|
482
|
-
<li>online:已生效;</li>
|
|
483
|
-
<li>process:部署中;</li>
|
|
484
|
-
<li>offline:已停用;</li>
|
|
485
|
-
<li>forbidden:已封禁;</li>
|
|
486
|
-
<li>init:未生效,待激活站点。</li>
|
|
468
|
+
r"""<p>加速域名状态</p><p>枚举值:</p><ul><li>online: 已生效</li><li>process: 部署中</li><li>offline: 已停用</li><li>init: 未生效,待激活站点</li></ul>
|
|
487
469
|
:rtype: str
|
|
488
470
|
"""
|
|
489
471
|
return self._DomainStatus
|
|
@@ -494,7 +476,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
494
476
|
|
|
495
477
|
@property
|
|
496
478
|
def Cname(self):
|
|
497
|
-
r"""CNAME
|
|
479
|
+
r"""<p>CNAME 地址。</p>
|
|
498
480
|
:rtype: str
|
|
499
481
|
"""
|
|
500
482
|
return self._Cname
|
|
@@ -505,10 +487,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
505
487
|
|
|
506
488
|
@property
|
|
507
489
|
def IPv6Status(self):
|
|
508
|
-
r"""IPv6
|
|
509
|
-
<li>follow:遵循站点IPv6配置;</li>
|
|
510
|
-
<li>on:开启状态;</li>
|
|
511
|
-
<li>off:关闭状态。</li>
|
|
490
|
+
r"""<p>IPv6 状态,取值有:</p><li>follow:遵循站点IPv6配置;</li><li>on:开启状态;</li><li>off:关闭状态。</li>
|
|
512
491
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
513
492
|
:rtype: str
|
|
514
493
|
"""
|
|
@@ -520,9 +499,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
520
499
|
|
|
521
500
|
@property
|
|
522
501
|
def IdentificationStatus(self):
|
|
523
|
-
r"""
|
|
524
|
-
<li>pending:待验证;</li>
|
|
525
|
-
<li>finished:已完成验证。</li>
|
|
502
|
+
r"""<p>加速域名归属权验证状态,取值有: </p><li>pending:待验证;</li><li>finished:已完成验证。</li>
|
|
526
503
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
527
504
|
:rtype: str
|
|
528
505
|
"""
|
|
@@ -534,7 +511,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
534
511
|
|
|
535
512
|
@property
|
|
536
513
|
def OwnershipVerification(self):
|
|
537
|
-
r"""
|
|
514
|
+
r"""<p>加速域名需进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。</p>
|
|
538
515
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
539
516
|
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
540
517
|
"""
|
|
@@ -546,7 +523,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
546
523
|
|
|
547
524
|
@property
|
|
548
525
|
def OriginDetail(self):
|
|
549
|
-
r"""
|
|
526
|
+
r"""<p>源站信息。</p>
|
|
550
527
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
551
528
|
:rtype: :class:`tencentcloud.teo.v20220901.models.OriginDetail`
|
|
552
529
|
"""
|
|
@@ -558,10 +535,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
558
535
|
|
|
559
536
|
@property
|
|
560
537
|
def OriginProtocol(self):
|
|
561
|
-
r"""
|
|
562
|
-
<li>FOLLOW:协议跟随;</li>
|
|
563
|
-
<li>HTTP:HTTP协议回源;</li>
|
|
564
|
-
<li>HTTPS:HTTPS协议回源。</li>
|
|
538
|
+
r"""<p>回源协议,取值有:</p><li>FOLLOW:协议跟随;</li><li>HTTP:HTTP协议回源;</li><li>HTTPS:HTTPS协议回源。</li>
|
|
565
539
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
566
540
|
:rtype: str
|
|
567
541
|
"""
|
|
@@ -573,7 +547,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
573
547
|
|
|
574
548
|
@property
|
|
575
549
|
def HttpOriginPort(self):
|
|
576
|
-
r"""HTTP
|
|
550
|
+
r"""<p>HTTP 回源端口。</p>
|
|
577
551
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
578
552
|
:rtype: int
|
|
579
553
|
"""
|
|
@@ -585,7 +559,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
585
559
|
|
|
586
560
|
@property
|
|
587
561
|
def HttpsOriginPort(self):
|
|
588
|
-
r"""HTTPS
|
|
562
|
+
r"""<p>HTTPS 回源端口。</p>
|
|
589
563
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
590
564
|
:rtype: int
|
|
591
565
|
"""
|
|
@@ -597,7 +571,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
597
571
|
|
|
598
572
|
@property
|
|
599
573
|
def Certificate(self):
|
|
600
|
-
r"""
|
|
574
|
+
r"""<p>加速域名证书信息。</p>
|
|
601
575
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
602
576
|
:rtype: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
603
577
|
"""
|
|
@@ -609,7 +583,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
609
583
|
|
|
610
584
|
@property
|
|
611
585
|
def CreatedOn(self):
|
|
612
|
-
r"""
|
|
586
|
+
r"""<p>创建时间。</p>
|
|
613
587
|
:rtype: str
|
|
614
588
|
"""
|
|
615
589
|
return self._CreatedOn
|
|
@@ -620,7 +594,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
620
594
|
|
|
621
595
|
@property
|
|
622
596
|
def ModifiedOn(self):
|
|
623
|
-
r"""
|
|
597
|
+
r"""<p>修改时间。</p>
|
|
624
598
|
:rtype: str
|
|
625
599
|
"""
|
|
626
600
|
return self._ModifiedOn
|
|
@@ -11490,6 +11464,8 @@ class CreateInferenceServiceRequest(AbstractModel):
|
|
|
11490
11464
|
:type Containers: list of InferenceContainerConfig
|
|
11491
11465
|
:param _ResourceConfig: <p>推理服务的资源配置。</p>
|
|
11492
11466
|
:type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
|
|
11467
|
+
:param _AffinityConfig: <p>推理服务亲和性配置。</p>
|
|
11468
|
+
:type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
11493
11469
|
:param _RequestPaths: <p>推理服务的请求路径列表。最多支持 20 个路径。</p>
|
|
11494
11470
|
:type RequestPaths: list of str
|
|
11495
11471
|
:param _Description: <p>描述信息。长度限制不超过 60 个字符。</p>
|
|
@@ -11500,6 +11476,7 @@ class CreateInferenceServiceRequest(AbstractModel):
|
|
|
11500
11476
|
self._ListenPort = None
|
|
11501
11477
|
self._Containers = None
|
|
11502
11478
|
self._ResourceConfig = None
|
|
11479
|
+
self._AffinityConfig = None
|
|
11503
11480
|
self._RequestPaths = None
|
|
11504
11481
|
self._Description = None
|
|
11505
11482
|
|
|
@@ -11558,6 +11535,17 @@ class CreateInferenceServiceRequest(AbstractModel):
|
|
|
11558
11535
|
def ResourceConfig(self, ResourceConfig):
|
|
11559
11536
|
self._ResourceConfig = ResourceConfig
|
|
11560
11537
|
|
|
11538
|
+
@property
|
|
11539
|
+
def AffinityConfig(self):
|
|
11540
|
+
r"""<p>推理服务亲和性配置。</p>
|
|
11541
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
11542
|
+
"""
|
|
11543
|
+
return self._AffinityConfig
|
|
11544
|
+
|
|
11545
|
+
@AffinityConfig.setter
|
|
11546
|
+
def AffinityConfig(self, AffinityConfig):
|
|
11547
|
+
self._AffinityConfig = AffinityConfig
|
|
11548
|
+
|
|
11561
11549
|
@property
|
|
11562
11550
|
def RequestPaths(self):
|
|
11563
11551
|
r"""<p>推理服务的请求路径列表。最多支持 20 个路径。</p>
|
|
@@ -11594,6 +11582,9 @@ class CreateInferenceServiceRequest(AbstractModel):
|
|
|
11594
11582
|
if params.get("ResourceConfig") is not None:
|
|
11595
11583
|
self._ResourceConfig = InferenceResourceConfig()
|
|
11596
11584
|
self._ResourceConfig._deserialize(params.get("ResourceConfig"))
|
|
11585
|
+
if params.get("AffinityConfig") is not None:
|
|
11586
|
+
self._AffinityConfig = InferenceAffinityConfig()
|
|
11587
|
+
self._AffinityConfig._deserialize(params.get("AffinityConfig"))
|
|
11597
11588
|
self._RequestPaths = params.get("RequestPaths")
|
|
11598
11589
|
self._Description = params.get("Description")
|
|
11599
11590
|
memeber_set = set(params.keys())
|
|
@@ -35167,17 +35158,19 @@ class ExceptionRule(AbstractModel):
|
|
|
35167
35158
|
:type Name: str
|
|
35168
35159
|
:param _Condition: 例外规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
35169
35160
|
:type Condition: str
|
|
35170
|
-
:param _SkipScope: 例外规则执行选项,取值有:<li>WebSecurityModules:
|
|
35161
|
+
:param _SkipScope: 例外规则执行选项,取值有:<li>WebSecurityModules: 指定例外规则的安全防护模块,需配合 WebSecurityModulesForException 使用;</li><li>WebSecuritySubmodules: 指定例外规则的安全防护子模块,需配合 WebSecuritySubmodulesForException 使用;</li><li>ManagedRules:指定例外规则的具体托管规则,需配合 ManagedRulesForException 使用;</li><li>ManagedRuleGroups:指定例外规则的托管规则组,需配合 ManagedRuleGroupsForException 使用。</li>
|
|
35171
35162
|
:type SkipScope: str
|
|
35172
|
-
:param _SkipOption: 跳过请求的具体类型,取值有:<li>SkipOnAllRequestFields: 跳过所有请求;</li><li>SkipOnSpecifiedRequestFields: 跳过指定请求字段。</li>仅当 SkipScope 为 ManagedRules 时有效。
|
|
35163
|
+
:param _SkipOption: 跳过请求的具体类型,取值有:<li>SkipOnAllRequestFields: 跳过所有请求;</li><li>SkipOnSpecifiedRequestFields: 跳过指定请求字段。</li>仅当 SkipScope 为 ManagedRules 或 ManagedRuleGroups 时有效。
|
|
35173
35164
|
:type SkipOption: str
|
|
35174
|
-
:param _WebSecurityModulesForException: 指定例外规则的安全防护模块,仅当 SkipScope 为 WebSecurityModules
|
|
35165
|
+
:param _WebSecurityModulesForException: 指定例外规则的安全防护模块,仅当 SkipScope 为 WebSecurityModules 时有效,取值有:<li>websec-mod-managed-rules:托管规则;</li><li>websec-mod-rate-limiting:速率限制;</li><li>websec-mod-custom-rules:自定义规则;</li><li>websec-mod-adaptive-control:自适应频控、智能客户端过滤、慢速攻击防护、流量盗刷防护;</li><li>websec-mod-bot:Bot管理。</li>
|
|
35175
35166
|
:type WebSecurityModulesForException: list of str
|
|
35176
|
-
:param
|
|
35167
|
+
:param _WebSecuritySubmodulesForException: 指定例外规则的安全防护子模块,仅当 SkipScope 为 WebSecuritySubmodules 时有效,取值有:<ul><li>托管规则(ManagedRules)模块功能:<ul><li>websec-mod-managed-rules/managed-rule-groups:规则集;</li><li>websec-mod-managed-rules/frequent-scanning-protection:高频扫描防护;</li></ul></li><li>速率限制(RateLimitingRules)模块功能:<ul><li>websec-mod-rate-limiting-rules:速率限制规则;</li></ul></li><li>自定义规则(CustomRules)模块功能:<ul><li>websec-mod-custom-rules:自定义规则;</li></ul></li><li>HTTP DDoS 防护(HttpDDoSProtection)模块功能:<ul><li>websec-mod-http-ddos-protection/adaptive-frequency-control:自适应频控;</li><li>websec-mod-http-ddos-protection/client-filtering:智能客户端过滤;</li><li>websec-mod-http-ddos-protection/bandwidth-abuse-defense:流量盗刷防护;</li></ul></li><li>高级 Bot 管理(BotManagement)模块功能:<ul><li>websec-mod-bot-management/basic-feature:基础特征管理;</li><li>websec-mod-bot-management/ip-reputation:客户端画像分析;</li><li>websec-mod-bot-management/bot-intelligence:智能 Bot 分析;</li><li>websec-mod-bot-management/custom-rules:自定义规则;</li><li>websec-mod-bot-management/browser-impersonation-detection:主动特征识别;</li><li>websec-mod-bot-management/client-attestation-rules:客户端认证;</li></ul></li><li>基础 Bot 管理(BotManagementLite)模块功能:<ul><li>websec-mod-bot-management-lite/ai-crawler-detection:AI 爬虫处置;</li><li>websec-mod-bot-management-lite/captcha-page-challenge:人机校验页。</li></ul></li></ul>
|
|
35168
|
+
:type WebSecuritySubmodulesForException: list of str
|
|
35169
|
+
:param _ManagedRulesForException: 指定例外规则的具体托管规则,仅当 SkipScope 为 ManagedRules 时有效。
|
|
35177
35170
|
:type ManagedRulesForException: list of str
|
|
35178
|
-
:param _ManagedRuleGroupsForException: 指定例外规则的托管规则组,仅当 SkipScope 为
|
|
35171
|
+
:param _ManagedRuleGroupsForException: 指定例外规则的托管规则组,仅当 SkipScope 为 ManagedRuleGroups 时有效。
|
|
35179
35172
|
:type ManagedRuleGroupsForException: list of str
|
|
35180
|
-
:param _RequestFieldsForException: 指定例外规则跳过指定请求字段的具体配置,仅当 SkipScope 为 ManagedRules 并且 SkipOption 为 SkipOnSpecifiedRequestFields 时有效。
|
|
35173
|
+
:param _RequestFieldsForException: 指定例外规则跳过指定请求字段的具体配置,仅当 SkipScope 为 ManagedRules 或 ManagedRuleGroups 并且 SkipOption 为 SkipOnSpecifiedRequestFields 时有效。
|
|
35181
35174
|
:type RequestFieldsForException: list of RequestFieldsForException
|
|
35182
35175
|
:param _Enabled: 例外规则是否开启。取值有:<li>on:开启</li><li>off:关闭</li>
|
|
35183
35176
|
:type Enabled: str
|
|
@@ -35188,6 +35181,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35188
35181
|
self._SkipScope = None
|
|
35189
35182
|
self._SkipOption = None
|
|
35190
35183
|
self._WebSecurityModulesForException = None
|
|
35184
|
+
self._WebSecuritySubmodulesForException = None
|
|
35191
35185
|
self._ManagedRulesForException = None
|
|
35192
35186
|
self._ManagedRuleGroupsForException = None
|
|
35193
35187
|
self._RequestFieldsForException = None
|
|
@@ -35228,7 +35222,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35228
35222
|
|
|
35229
35223
|
@property
|
|
35230
35224
|
def SkipScope(self):
|
|
35231
|
-
r"""例外规则执行选项,取值有:<li>WebSecurityModules:
|
|
35225
|
+
r"""例外规则执行选项,取值有:<li>WebSecurityModules: 指定例外规则的安全防护模块,需配合 WebSecurityModulesForException 使用;</li><li>WebSecuritySubmodules: 指定例外规则的安全防护子模块,需配合 WebSecuritySubmodulesForException 使用;</li><li>ManagedRules:指定例外规则的具体托管规则,需配合 ManagedRulesForException 使用;</li><li>ManagedRuleGroups:指定例外规则的托管规则组,需配合 ManagedRuleGroupsForException 使用。</li>
|
|
35232
35226
|
:rtype: str
|
|
35233
35227
|
"""
|
|
35234
35228
|
return self._SkipScope
|
|
@@ -35239,7 +35233,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35239
35233
|
|
|
35240
35234
|
@property
|
|
35241
35235
|
def SkipOption(self):
|
|
35242
|
-
r"""跳过请求的具体类型,取值有:<li>SkipOnAllRequestFields: 跳过所有请求;</li><li>SkipOnSpecifiedRequestFields: 跳过指定请求字段。</li>仅当 SkipScope 为 ManagedRules 时有效。
|
|
35236
|
+
r"""跳过请求的具体类型,取值有:<li>SkipOnAllRequestFields: 跳过所有请求;</li><li>SkipOnSpecifiedRequestFields: 跳过指定请求字段。</li>仅当 SkipScope 为 ManagedRules 或 ManagedRuleGroups 时有效。
|
|
35243
35237
|
:rtype: str
|
|
35244
35238
|
"""
|
|
35245
35239
|
return self._SkipOption
|
|
@@ -35250,7 +35244,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35250
35244
|
|
|
35251
35245
|
@property
|
|
35252
35246
|
def WebSecurityModulesForException(self):
|
|
35253
|
-
r"""指定例外规则的安全防护模块,仅当 SkipScope 为 WebSecurityModules
|
|
35247
|
+
r"""指定例外规则的安全防护模块,仅当 SkipScope 为 WebSecurityModules 时有效,取值有:<li>websec-mod-managed-rules:托管规则;</li><li>websec-mod-rate-limiting:速率限制;</li><li>websec-mod-custom-rules:自定义规则;</li><li>websec-mod-adaptive-control:自适应频控、智能客户端过滤、慢速攻击防护、流量盗刷防护;</li><li>websec-mod-bot:Bot管理。</li>
|
|
35254
35248
|
:rtype: list of str
|
|
35255
35249
|
"""
|
|
35256
35250
|
return self._WebSecurityModulesForException
|
|
@@ -35259,9 +35253,20 @@ class ExceptionRule(AbstractModel):
|
|
|
35259
35253
|
def WebSecurityModulesForException(self, WebSecurityModulesForException):
|
|
35260
35254
|
self._WebSecurityModulesForException = WebSecurityModulesForException
|
|
35261
35255
|
|
|
35256
|
+
@property
|
|
35257
|
+
def WebSecuritySubmodulesForException(self):
|
|
35258
|
+
r"""指定例外规则的安全防护子模块,仅当 SkipScope 为 WebSecuritySubmodules 时有效,取值有:<ul><li>托管规则(ManagedRules)模块功能:<ul><li>websec-mod-managed-rules/managed-rule-groups:规则集;</li><li>websec-mod-managed-rules/frequent-scanning-protection:高频扫描防护;</li></ul></li><li>速率限制(RateLimitingRules)模块功能:<ul><li>websec-mod-rate-limiting-rules:速率限制规则;</li></ul></li><li>自定义规则(CustomRules)模块功能:<ul><li>websec-mod-custom-rules:自定义规则;</li></ul></li><li>HTTP DDoS 防护(HttpDDoSProtection)模块功能:<ul><li>websec-mod-http-ddos-protection/adaptive-frequency-control:自适应频控;</li><li>websec-mod-http-ddos-protection/client-filtering:智能客户端过滤;</li><li>websec-mod-http-ddos-protection/bandwidth-abuse-defense:流量盗刷防护;</li></ul></li><li>高级 Bot 管理(BotManagement)模块功能:<ul><li>websec-mod-bot-management/basic-feature:基础特征管理;</li><li>websec-mod-bot-management/ip-reputation:客户端画像分析;</li><li>websec-mod-bot-management/bot-intelligence:智能 Bot 分析;</li><li>websec-mod-bot-management/custom-rules:自定义规则;</li><li>websec-mod-bot-management/browser-impersonation-detection:主动特征识别;</li><li>websec-mod-bot-management/client-attestation-rules:客户端认证;</li></ul></li><li>基础 Bot 管理(BotManagementLite)模块功能:<ul><li>websec-mod-bot-management-lite/ai-crawler-detection:AI 爬虫处置;</li><li>websec-mod-bot-management-lite/captcha-page-challenge:人机校验页。</li></ul></li></ul>
|
|
35259
|
+
:rtype: list of str
|
|
35260
|
+
"""
|
|
35261
|
+
return self._WebSecuritySubmodulesForException
|
|
35262
|
+
|
|
35263
|
+
@WebSecuritySubmodulesForException.setter
|
|
35264
|
+
def WebSecuritySubmodulesForException(self, WebSecuritySubmodulesForException):
|
|
35265
|
+
self._WebSecuritySubmodulesForException = WebSecuritySubmodulesForException
|
|
35266
|
+
|
|
35262
35267
|
@property
|
|
35263
35268
|
def ManagedRulesForException(self):
|
|
35264
|
-
r"""指定例外规则的具体托管规则,仅当 SkipScope 为 ManagedRules
|
|
35269
|
+
r"""指定例外规则的具体托管规则,仅当 SkipScope 为 ManagedRules 时有效。
|
|
35265
35270
|
:rtype: list of str
|
|
35266
35271
|
"""
|
|
35267
35272
|
return self._ManagedRulesForException
|
|
@@ -35272,7 +35277,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35272
35277
|
|
|
35273
35278
|
@property
|
|
35274
35279
|
def ManagedRuleGroupsForException(self):
|
|
35275
|
-
r"""指定例外规则的托管规则组,仅当 SkipScope 为
|
|
35280
|
+
r"""指定例外规则的托管规则组,仅当 SkipScope 为 ManagedRuleGroups 时有效。
|
|
35276
35281
|
:rtype: list of str
|
|
35277
35282
|
"""
|
|
35278
35283
|
return self._ManagedRuleGroupsForException
|
|
@@ -35283,7 +35288,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35283
35288
|
|
|
35284
35289
|
@property
|
|
35285
35290
|
def RequestFieldsForException(self):
|
|
35286
|
-
r"""指定例外规则跳过指定请求字段的具体配置,仅当 SkipScope 为 ManagedRules 并且 SkipOption 为 SkipOnSpecifiedRequestFields 时有效。
|
|
35291
|
+
r"""指定例外规则跳过指定请求字段的具体配置,仅当 SkipScope 为 ManagedRules 或 ManagedRuleGroups 并且 SkipOption 为 SkipOnSpecifiedRequestFields 时有效。
|
|
35287
35292
|
:rtype: list of RequestFieldsForException
|
|
35288
35293
|
"""
|
|
35289
35294
|
return self._RequestFieldsForException
|
|
@@ -35311,6 +35316,7 @@ class ExceptionRule(AbstractModel):
|
|
|
35311
35316
|
self._SkipScope = params.get("SkipScope")
|
|
35312
35317
|
self._SkipOption = params.get("SkipOption")
|
|
35313
35318
|
self._WebSecurityModulesForException = params.get("WebSecurityModulesForException")
|
|
35319
|
+
self._WebSecuritySubmodulesForException = params.get("WebSecuritySubmodulesForException")
|
|
35314
35320
|
self._ManagedRulesForException = params.get("ManagedRulesForException")
|
|
35315
35321
|
self._ManagedRuleGroupsForException = params.get("ManagedRuleGroupsForException")
|
|
35316
35322
|
if params.get("RequestFieldsForException") is not None:
|
|
@@ -38750,22 +38756,34 @@ class IPSSLConfig(AbstractModel):
|
|
|
38750
38756
|
|
|
38751
38757
|
def __init__(self):
|
|
38752
38758
|
r"""
|
|
38753
|
-
:param
|
|
38759
|
+
:param _ZoneId: <p>IP SSL 关联域名所属站点ID。如果Status值为 unbound 时,该字段为空值。</p>
|
|
38760
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
38761
|
+
:type ZoneId: str
|
|
38762
|
+
:param _AssociatedDomain: <p>IP SSL关联的域名。如果Status值为 unbound 时,该字段为空值。</p>
|
|
38754
38763
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
38755
38764
|
:type AssociatedDomain: str
|
|
38756
|
-
:param _Status:
|
|
38757
|
-
<li>bound:IP SSL配置已绑定</li>
|
|
38758
|
-
<li>binding:IP SSL配置绑定中</li>
|
|
38759
|
-
<li>unbinding:IP SSL配置解绑中</li>
|
|
38760
|
-
<li>unbound:IP SSL配置未绑定</li>
|
|
38765
|
+
:param _Status: <p>关联状态, 取值如下:</p><li>bound:IP SSL配置已绑定</li><li>binding:IP SSL配置绑定中</li><li>unbinding:IP SSL配置解绑中</li><li>unbound:IP SSL配置未绑定</li>
|
|
38761
38766
|
:type Status: str
|
|
38762
38767
|
"""
|
|
38768
|
+
self._ZoneId = None
|
|
38763
38769
|
self._AssociatedDomain = None
|
|
38764
38770
|
self._Status = None
|
|
38765
38771
|
|
|
38772
|
+
@property
|
|
38773
|
+
def ZoneId(self):
|
|
38774
|
+
r"""<p>IP SSL 关联域名所属站点ID。如果Status值为 unbound 时,该字段为空值。</p>
|
|
38775
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
38776
|
+
:rtype: str
|
|
38777
|
+
"""
|
|
38778
|
+
return self._ZoneId
|
|
38779
|
+
|
|
38780
|
+
@ZoneId.setter
|
|
38781
|
+
def ZoneId(self, ZoneId):
|
|
38782
|
+
self._ZoneId = ZoneId
|
|
38783
|
+
|
|
38766
38784
|
@property
|
|
38767
38785
|
def AssociatedDomain(self):
|
|
38768
|
-
r"""IP SSL关联的域名。如果Status值为 unbound
|
|
38786
|
+
r"""<p>IP SSL关联的域名。如果Status值为 unbound 时,该字段为空值。</p>
|
|
38769
38787
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
38770
38788
|
:rtype: str
|
|
38771
38789
|
"""
|
|
@@ -38777,11 +38795,7 @@ class IPSSLConfig(AbstractModel):
|
|
|
38777
38795
|
|
|
38778
38796
|
@property
|
|
38779
38797
|
def Status(self):
|
|
38780
|
-
r"""
|
|
38781
|
-
<li>bound:IP SSL配置已绑定</li>
|
|
38782
|
-
<li>binding:IP SSL配置绑定中</li>
|
|
38783
|
-
<li>unbinding:IP SSL配置解绑中</li>
|
|
38784
|
-
<li>unbound:IP SSL配置未绑定</li>
|
|
38798
|
+
r"""<p>关联状态, 取值如下:</p><li>bound:IP SSL配置已绑定</li><li>binding:IP SSL配置绑定中</li><li>unbinding:IP SSL配置解绑中</li><li>unbound:IP SSL配置未绑定</li>
|
|
38785
38799
|
:rtype: str
|
|
38786
38800
|
"""
|
|
38787
38801
|
return self._Status
|
|
@@ -38792,6 +38806,7 @@ class IPSSLConfig(AbstractModel):
|
|
|
38792
38806
|
|
|
38793
38807
|
|
|
38794
38808
|
def _deserialize(self, params):
|
|
38809
|
+
self._ZoneId = params.get("ZoneId")
|
|
38795
38810
|
self._AssociatedDomain = params.get("AssociatedDomain")
|
|
38796
38811
|
self._Status = params.get("Status")
|
|
38797
38812
|
memeber_set = set(params.keys())
|
|
@@ -39504,6 +39519,74 @@ class InferenceAPIToken(AbstractModel):
|
|
|
39504
39519
|
|
|
39505
39520
|
|
|
39506
39521
|
|
|
39522
|
+
class InferenceAffinityConfig(AbstractModel):
|
|
39523
|
+
r"""推理服务的亲和配置
|
|
39524
|
+
|
|
39525
|
+
"""
|
|
39526
|
+
|
|
39527
|
+
def __init__(self):
|
|
39528
|
+
r"""
|
|
39529
|
+
:param _Switch: <p>推理服务亲和总开关。</p><p>枚举值:</p><ul><li>On: 开启推理服务亲和;</li><li>Off: 关闭推理服务亲和。</li></ul>
|
|
39530
|
+
:type Switch: str
|
|
39531
|
+
:param _AffinityMode: <p>推理服务亲和方式。</p><p>枚举值:</p><ul><li>SessionId: 根据会话 ID 实现亲和。</li></ul><p>默认值:SessionId。</p>
|
|
39532
|
+
:type AffinityMode: str
|
|
39533
|
+
:param _SessionIdAffinityConfig: <p>推理服务亲和性配置。当 AffinityMode 为 SessionId 时必填。</p>
|
|
39534
|
+
:type SessionIdAffinityConfig: :class:`tencentcloud.teo.v20220901.models.SessionIdAffinityConfig`
|
|
39535
|
+
"""
|
|
39536
|
+
self._Switch = None
|
|
39537
|
+
self._AffinityMode = None
|
|
39538
|
+
self._SessionIdAffinityConfig = None
|
|
39539
|
+
|
|
39540
|
+
@property
|
|
39541
|
+
def Switch(self):
|
|
39542
|
+
r"""<p>推理服务亲和总开关。</p><p>枚举值:</p><ul><li>On: 开启推理服务亲和;</li><li>Off: 关闭推理服务亲和。</li></ul>
|
|
39543
|
+
:rtype: str
|
|
39544
|
+
"""
|
|
39545
|
+
return self._Switch
|
|
39546
|
+
|
|
39547
|
+
@Switch.setter
|
|
39548
|
+
def Switch(self, Switch):
|
|
39549
|
+
self._Switch = Switch
|
|
39550
|
+
|
|
39551
|
+
@property
|
|
39552
|
+
def AffinityMode(self):
|
|
39553
|
+
r"""<p>推理服务亲和方式。</p><p>枚举值:</p><ul><li>SessionId: 根据会话 ID 实现亲和。</li></ul><p>默认值:SessionId。</p>
|
|
39554
|
+
:rtype: str
|
|
39555
|
+
"""
|
|
39556
|
+
return self._AffinityMode
|
|
39557
|
+
|
|
39558
|
+
@AffinityMode.setter
|
|
39559
|
+
def AffinityMode(self, AffinityMode):
|
|
39560
|
+
self._AffinityMode = AffinityMode
|
|
39561
|
+
|
|
39562
|
+
@property
|
|
39563
|
+
def SessionIdAffinityConfig(self):
|
|
39564
|
+
r"""<p>推理服务亲和性配置。当 AffinityMode 为 SessionId 时必填。</p>
|
|
39565
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SessionIdAffinityConfig`
|
|
39566
|
+
"""
|
|
39567
|
+
return self._SessionIdAffinityConfig
|
|
39568
|
+
|
|
39569
|
+
@SessionIdAffinityConfig.setter
|
|
39570
|
+
def SessionIdAffinityConfig(self, SessionIdAffinityConfig):
|
|
39571
|
+
self._SessionIdAffinityConfig = SessionIdAffinityConfig
|
|
39572
|
+
|
|
39573
|
+
|
|
39574
|
+
def _deserialize(self, params):
|
|
39575
|
+
self._Switch = params.get("Switch")
|
|
39576
|
+
self._AffinityMode = params.get("AffinityMode")
|
|
39577
|
+
if params.get("SessionIdAffinityConfig") is not None:
|
|
39578
|
+
self._SessionIdAffinityConfig = SessionIdAffinityConfig()
|
|
39579
|
+
self._SessionIdAffinityConfig._deserialize(params.get("SessionIdAffinityConfig"))
|
|
39580
|
+
memeber_set = set(params.keys())
|
|
39581
|
+
for name, value in vars(self).items():
|
|
39582
|
+
property_name = name[1:]
|
|
39583
|
+
if property_name in memeber_set:
|
|
39584
|
+
memeber_set.remove(property_name)
|
|
39585
|
+
if len(memeber_set) > 0:
|
|
39586
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39587
|
+
|
|
39588
|
+
|
|
39589
|
+
|
|
39507
39590
|
class InferenceAutoScalingConfig(AbstractModel):
|
|
39508
39591
|
r"""推理服务自动伸缩配置。
|
|
39509
39592
|
|
|
@@ -39567,14 +39650,14 @@ class InferenceContainerConfig(AbstractModel):
|
|
|
39567
39650
|
|
|
39568
39651
|
def __init__(self):
|
|
39569
39652
|
r"""
|
|
39570
|
-
:param _ImageType:
|
|
39653
|
+
:param _ImageType: <p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
|
|
39571
39654
|
:type ImageType: str
|
|
39572
|
-
:param _TcrRepositoryConfig: TCR 镜像仓库信息。当 ImageType 为 TCR
|
|
39655
|
+
:param _TcrRepositoryConfig: <p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
|
|
39573
39656
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
39574
39657
|
:type TcrRepositoryConfig: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
|
|
39575
|
-
:param _StartupCommand:
|
|
39658
|
+
:param _StartupCommand: <p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
|
|
39576
39659
|
:type StartupCommand: str
|
|
39577
|
-
:param _EnvironmentVariables:
|
|
39660
|
+
:param _EnvironmentVariables: <p>容器运行时的环境变量。最多支持 10 个变量。</p>
|
|
39578
39661
|
:type EnvironmentVariables: list of InferenceEnvironmentVariable
|
|
39579
39662
|
"""
|
|
39580
39663
|
self._ImageType = None
|
|
@@ -39584,7 +39667,7 @@ class InferenceContainerConfig(AbstractModel):
|
|
|
39584
39667
|
|
|
39585
39668
|
@property
|
|
39586
39669
|
def ImageType(self):
|
|
39587
|
-
r"""
|
|
39670
|
+
r"""<p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
|
|
39588
39671
|
:rtype: str
|
|
39589
39672
|
"""
|
|
39590
39673
|
return self._ImageType
|
|
@@ -39595,7 +39678,7 @@ class InferenceContainerConfig(AbstractModel):
|
|
|
39595
39678
|
|
|
39596
39679
|
@property
|
|
39597
39680
|
def TcrRepositoryConfig(self):
|
|
39598
|
-
r"""TCR 镜像仓库信息。当 ImageType 为 TCR
|
|
39681
|
+
r"""<p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
|
|
39599
39682
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
39600
39683
|
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
|
|
39601
39684
|
"""
|
|
@@ -39607,7 +39690,7 @@ class InferenceContainerConfig(AbstractModel):
|
|
|
39607
39690
|
|
|
39608
39691
|
@property
|
|
39609
39692
|
def StartupCommand(self):
|
|
39610
|
-
r"""
|
|
39693
|
+
r"""<p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
|
|
39611
39694
|
:rtype: str
|
|
39612
39695
|
"""
|
|
39613
39696
|
return self._StartupCommand
|
|
@@ -39618,7 +39701,7 @@ class InferenceContainerConfig(AbstractModel):
|
|
|
39618
39701
|
|
|
39619
39702
|
@property
|
|
39620
39703
|
def EnvironmentVariables(self):
|
|
39621
|
-
r"""
|
|
39704
|
+
r"""<p>容器运行时的环境变量。最多支持 10 个变量。</p>
|
|
39622
39705
|
:rtype: list of InferenceEnvironmentVariable
|
|
39623
39706
|
"""
|
|
39624
39707
|
return self._EnvironmentVariables
|
|
@@ -39657,13 +39740,13 @@ class InferenceContainerConfigForModify(AbstractModel):
|
|
|
39657
39740
|
|
|
39658
39741
|
def __init__(self):
|
|
39659
39742
|
r"""
|
|
39660
|
-
:param _ImageType:
|
|
39743
|
+
:param _ImageType: <p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
|
|
39661
39744
|
:type ImageType: str
|
|
39662
|
-
:param _TcrRepositoryConfig: TCR 镜像仓库信息。当 ImageType 为 TCR
|
|
39745
|
+
:param _TcrRepositoryConfig: <p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
|
|
39663
39746
|
:type TcrRepositoryConfig: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
|
|
39664
|
-
:param _StartupCommand:
|
|
39747
|
+
:param _StartupCommand: <p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
|
|
39665
39748
|
:type StartupCommand: str
|
|
39666
|
-
:param _EnvironmentVariables:
|
|
39749
|
+
:param _EnvironmentVariables: <p>容器运行时的环境变量。最多支持 10 个变量。</p>
|
|
39667
39750
|
:type EnvironmentVariables: list of InferenceEnvironmentVariable
|
|
39668
39751
|
"""
|
|
39669
39752
|
self._ImageType = None
|
|
@@ -39673,7 +39756,7 @@ class InferenceContainerConfigForModify(AbstractModel):
|
|
|
39673
39756
|
|
|
39674
39757
|
@property
|
|
39675
39758
|
def ImageType(self):
|
|
39676
|
-
r"""
|
|
39759
|
+
r"""<p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
|
|
39677
39760
|
:rtype: str
|
|
39678
39761
|
"""
|
|
39679
39762
|
return self._ImageType
|
|
@@ -39684,7 +39767,7 @@ class InferenceContainerConfigForModify(AbstractModel):
|
|
|
39684
39767
|
|
|
39685
39768
|
@property
|
|
39686
39769
|
def TcrRepositoryConfig(self):
|
|
39687
|
-
r"""TCR 镜像仓库信息。当 ImageType 为 TCR
|
|
39770
|
+
r"""<p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
|
|
39688
39771
|
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
|
|
39689
39772
|
"""
|
|
39690
39773
|
return self._TcrRepositoryConfig
|
|
@@ -39695,7 +39778,7 @@ class InferenceContainerConfigForModify(AbstractModel):
|
|
|
39695
39778
|
|
|
39696
39779
|
@property
|
|
39697
39780
|
def StartupCommand(self):
|
|
39698
|
-
r"""
|
|
39781
|
+
r"""<p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
|
|
39699
39782
|
:rtype: str
|
|
39700
39783
|
"""
|
|
39701
39784
|
return self._StartupCommand
|
|
@@ -39706,7 +39789,7 @@ class InferenceContainerConfigForModify(AbstractModel):
|
|
|
39706
39789
|
|
|
39707
39790
|
@property
|
|
39708
39791
|
def EnvironmentVariables(self):
|
|
39709
|
-
r"""
|
|
39792
|
+
r"""<p>容器运行时的环境变量。最多支持 10 个变量。</p>
|
|
39710
39793
|
:rtype: list of InferenceEnvironmentVariable
|
|
39711
39794
|
"""
|
|
39712
39795
|
return self._EnvironmentVariables
|
|
@@ -40623,23 +40706,26 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40623
40706
|
|
|
40624
40707
|
def __init__(self):
|
|
40625
40708
|
r"""
|
|
40626
|
-
:param _ListenPort:
|
|
40709
|
+
:param _ListenPort: <p>模型服务需要监听的端口。</p>
|
|
40627
40710
|
:type ListenPort: int
|
|
40628
|
-
:param _RequestPaths:
|
|
40711
|
+
:param _RequestPaths: <p>推理服务的请求路径列表。</p>
|
|
40629
40712
|
:type RequestPaths: list of str
|
|
40630
|
-
:param _Containers:
|
|
40713
|
+
:param _Containers: <p>推理服务的容器配置。</p>
|
|
40631
40714
|
:type Containers: list of InferenceContainerConfig
|
|
40632
|
-
:param _ResourceConfig:
|
|
40715
|
+
:param _ResourceConfig: <p>推理服务的资源配置。</p>
|
|
40633
40716
|
:type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
|
|
40717
|
+
:param _AffinityConfig: <p>推理服务亲和性配置。</p>
|
|
40718
|
+
:type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
40634
40719
|
"""
|
|
40635
40720
|
self._ListenPort = None
|
|
40636
40721
|
self._RequestPaths = None
|
|
40637
40722
|
self._Containers = None
|
|
40638
40723
|
self._ResourceConfig = None
|
|
40724
|
+
self._AffinityConfig = None
|
|
40639
40725
|
|
|
40640
40726
|
@property
|
|
40641
40727
|
def ListenPort(self):
|
|
40642
|
-
r"""
|
|
40728
|
+
r"""<p>模型服务需要监听的端口。</p>
|
|
40643
40729
|
:rtype: int
|
|
40644
40730
|
"""
|
|
40645
40731
|
return self._ListenPort
|
|
@@ -40650,7 +40736,7 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40650
40736
|
|
|
40651
40737
|
@property
|
|
40652
40738
|
def RequestPaths(self):
|
|
40653
|
-
r"""
|
|
40739
|
+
r"""<p>推理服务的请求路径列表。</p>
|
|
40654
40740
|
:rtype: list of str
|
|
40655
40741
|
"""
|
|
40656
40742
|
return self._RequestPaths
|
|
@@ -40661,7 +40747,7 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40661
40747
|
|
|
40662
40748
|
@property
|
|
40663
40749
|
def Containers(self):
|
|
40664
|
-
r"""
|
|
40750
|
+
r"""<p>推理服务的容器配置。</p>
|
|
40665
40751
|
:rtype: list of InferenceContainerConfig
|
|
40666
40752
|
"""
|
|
40667
40753
|
return self._Containers
|
|
@@ -40672,7 +40758,7 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40672
40758
|
|
|
40673
40759
|
@property
|
|
40674
40760
|
def ResourceConfig(self):
|
|
40675
|
-
r"""
|
|
40761
|
+
r"""<p>推理服务的资源配置。</p>
|
|
40676
40762
|
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
|
|
40677
40763
|
"""
|
|
40678
40764
|
return self._ResourceConfig
|
|
@@ -40681,6 +40767,17 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40681
40767
|
def ResourceConfig(self, ResourceConfig):
|
|
40682
40768
|
self._ResourceConfig = ResourceConfig
|
|
40683
40769
|
|
|
40770
|
+
@property
|
|
40771
|
+
def AffinityConfig(self):
|
|
40772
|
+
r"""<p>推理服务亲和性配置。</p>
|
|
40773
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
40774
|
+
"""
|
|
40775
|
+
return self._AffinityConfig
|
|
40776
|
+
|
|
40777
|
+
@AffinityConfig.setter
|
|
40778
|
+
def AffinityConfig(self, AffinityConfig):
|
|
40779
|
+
self._AffinityConfig = AffinityConfig
|
|
40780
|
+
|
|
40684
40781
|
|
|
40685
40782
|
def _deserialize(self, params):
|
|
40686
40783
|
self._ListenPort = params.get("ListenPort")
|
|
@@ -40694,6 +40791,9 @@ class InferenceServiceConfig(AbstractModel):
|
|
|
40694
40791
|
if params.get("ResourceConfig") is not None:
|
|
40695
40792
|
self._ResourceConfig = InferenceResourceConfig()
|
|
40696
40793
|
self._ResourceConfig._deserialize(params.get("ResourceConfig"))
|
|
40794
|
+
if params.get("AffinityConfig") is not None:
|
|
40795
|
+
self._AffinityConfig = InferenceAffinityConfig()
|
|
40796
|
+
self._AffinityConfig._deserialize(params.get("AffinityConfig"))
|
|
40697
40797
|
memeber_set = set(params.keys())
|
|
40698
40798
|
for name, value in vars(self).items():
|
|
40699
40799
|
property_name = name[1:]
|
|
@@ -46975,6 +47075,8 @@ class ModifyInferenceServiceRequest(AbstractModel):
|
|
|
46975
47075
|
:type Containers: list of InferenceContainerConfigForModify
|
|
46976
47076
|
:param _ResourceConfig: <p>推理服务的资源配置。</p>
|
|
46977
47077
|
:type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfigForModify`
|
|
47078
|
+
:param _AffinityConfig: <p>推理服务亲和性配置</p>
|
|
47079
|
+
:type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
46978
47080
|
:param _Description: <p>描述信息。长度限制不超过 60 个字符。</p>
|
|
46979
47081
|
:type Description: str
|
|
46980
47082
|
"""
|
|
@@ -46984,6 +47086,7 @@ class ModifyInferenceServiceRequest(AbstractModel):
|
|
|
46984
47086
|
self._RequestPaths = None
|
|
46985
47087
|
self._Containers = None
|
|
46986
47088
|
self._ResourceConfig = None
|
|
47089
|
+
self._AffinityConfig = None
|
|
46987
47090
|
self._Description = None
|
|
46988
47091
|
|
|
46989
47092
|
@property
|
|
@@ -47052,6 +47155,17 @@ class ModifyInferenceServiceRequest(AbstractModel):
|
|
|
47052
47155
|
def ResourceConfig(self, ResourceConfig):
|
|
47053
47156
|
self._ResourceConfig = ResourceConfig
|
|
47054
47157
|
|
|
47158
|
+
@property
|
|
47159
|
+
def AffinityConfig(self):
|
|
47160
|
+
r"""<p>推理服务亲和性配置</p>
|
|
47161
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
|
|
47162
|
+
"""
|
|
47163
|
+
return self._AffinityConfig
|
|
47164
|
+
|
|
47165
|
+
@AffinityConfig.setter
|
|
47166
|
+
def AffinityConfig(self, AffinityConfig):
|
|
47167
|
+
self._AffinityConfig = AffinityConfig
|
|
47168
|
+
|
|
47055
47169
|
@property
|
|
47056
47170
|
def Description(self):
|
|
47057
47171
|
r"""<p>描述信息。长度限制不超过 60 个字符。</p>
|
|
@@ -47078,6 +47192,9 @@ class ModifyInferenceServiceRequest(AbstractModel):
|
|
|
47078
47192
|
if params.get("ResourceConfig") is not None:
|
|
47079
47193
|
self._ResourceConfig = InferenceResourceConfigForModify()
|
|
47080
47194
|
self._ResourceConfig._deserialize(params.get("ResourceConfig"))
|
|
47195
|
+
if params.get("AffinityConfig") is not None:
|
|
47196
|
+
self._AffinityConfig = InferenceAffinityConfig()
|
|
47197
|
+
self._AffinityConfig._deserialize(params.get("AffinityConfig"))
|
|
47081
47198
|
self._Description = params.get("Description")
|
|
47082
47199
|
memeber_set = set(params.keys())
|
|
47083
47200
|
for name, value in vars(self).items():
|
|
@@ -52903,8 +53020,10 @@ class OriginDetail(AbstractModel):
|
|
|
52903
53020
|
<li>当 OriginType = IP_DOMAIN 时,该参数为 IPv4、IPv6 地址或域名;</li>
|
|
52904
53021
|
<li>当 OriginType = COS 时,该参数为 COS 桶的访问域名;</li>
|
|
52905
53022
|
<li>当 OriginType = AWS_S3,该参数为 S3 桶的访问域名;</li>
|
|
52906
|
-
<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID
|
|
53023
|
+
<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID;如果引用了其它站点的源站组,格式为{源站组 ID}@{ZoneID}。例如:og-testorigin@zone-38moq1z10wwwy</li>
|
|
52907
53024
|
<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>
|
|
53025
|
+
<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;如果引用了其它站点的负载均衡,格式为{负载均衡 ID}@{ZoneID}。例如:lb-2rxpamcyqfzg@zone-38moq1z10wwwy</li>
|
|
53026
|
+
<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>
|
|
52908
53027
|
:type Origin: str
|
|
52909
53028
|
:param _BackupOrigin: 备用源站组 ID,该参数仅在 OriginType = ORIGIN_GROUP 且配置了备源站组时会生效。
|
|
52910
53029
|
:type BackupOrigin: str
|
|
@@ -52972,8 +53091,10 @@ class OriginDetail(AbstractModel):
|
|
|
52972
53091
|
<li>当 OriginType = IP_DOMAIN 时,该参数为 IPv4、IPv6 地址或域名;</li>
|
|
52973
53092
|
<li>当 OriginType = COS 时,该参数为 COS 桶的访问域名;</li>
|
|
52974
53093
|
<li>当 OriginType = AWS_S3,该参数为 S3 桶的访问域名;</li>
|
|
52975
|
-
<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID
|
|
53094
|
+
<li>当 OriginType = ORIGIN_GROUP 时,该参数为源站组 ID;如果引用了其它站点的源站组,格式为{源站组 ID}@{ZoneID}。例如:og-testorigin@zone-38moq1z10wwwy</li>
|
|
52976
53095
|
<li>当 OriginType = VOD 时,该参数请填写云点播应用 ID ;</li>
|
|
53096
|
+
<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;如果引用了其它站点的负载均衡,格式为{负载均衡 ID}@{ZoneID}。例如:lb-2rxpamcyqfzg@zone-38moq1z10wwwy</li>
|
|
53097
|
+
<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>
|
|
52977
53098
|
:rtype: str
|
|
52978
53099
|
"""
|
|
52979
53100
|
return self._Origin
|
|
@@ -61337,6 +61458,57 @@ class ServerCertInfo(AbstractModel):
|
|
|
61337
61458
|
|
|
61338
61459
|
|
|
61339
61460
|
|
|
61461
|
+
class SessionIdAffinityConfig(AbstractModel):
|
|
61462
|
+
r"""基于会话ID的亲和配置。
|
|
61463
|
+
|
|
61464
|
+
"""
|
|
61465
|
+
|
|
61466
|
+
def __init__(self):
|
|
61467
|
+
r"""
|
|
61468
|
+
:param _Source: <p>会话 ID 参数的传递位置。不填写时默认为 Header。</p><p>枚举值:</p><ul><li>Header: 在请求头中传递参数。</li></ul><p>默认值:Header。</p>
|
|
61469
|
+
:type Source: str
|
|
61470
|
+
:param _HeaderName: <p>传递会话 ID 的请求头名称。当 Source 为 Header 时必填。<br>不填写时默认为 EO-Infer-Session-Id。</p><p>入参限制:长度为 1-64 个字符,仅支持字母、数字、中划线。</p><p>默认值:EO-Infer-Session-Id。</p>
|
|
61471
|
+
:type HeaderName: str
|
|
61472
|
+
"""
|
|
61473
|
+
self._Source = None
|
|
61474
|
+
self._HeaderName = None
|
|
61475
|
+
|
|
61476
|
+
@property
|
|
61477
|
+
def Source(self):
|
|
61478
|
+
r"""<p>会话 ID 参数的传递位置。不填写时默认为 Header。</p><p>枚举值:</p><ul><li>Header: 在请求头中传递参数。</li></ul><p>默认值:Header。</p>
|
|
61479
|
+
:rtype: str
|
|
61480
|
+
"""
|
|
61481
|
+
return self._Source
|
|
61482
|
+
|
|
61483
|
+
@Source.setter
|
|
61484
|
+
def Source(self, Source):
|
|
61485
|
+
self._Source = Source
|
|
61486
|
+
|
|
61487
|
+
@property
|
|
61488
|
+
def HeaderName(self):
|
|
61489
|
+
r"""<p>传递会话 ID 的请求头名称。当 Source 为 Header 时必填。<br>不填写时默认为 EO-Infer-Session-Id。</p><p>入参限制:长度为 1-64 个字符,仅支持字母、数字、中划线。</p><p>默认值:EO-Infer-Session-Id。</p>
|
|
61490
|
+
:rtype: str
|
|
61491
|
+
"""
|
|
61492
|
+
return self._HeaderName
|
|
61493
|
+
|
|
61494
|
+
@HeaderName.setter
|
|
61495
|
+
def HeaderName(self, HeaderName):
|
|
61496
|
+
self._HeaderName = HeaderName
|
|
61497
|
+
|
|
61498
|
+
|
|
61499
|
+
def _deserialize(self, params):
|
|
61500
|
+
self._Source = params.get("Source")
|
|
61501
|
+
self._HeaderName = params.get("HeaderName")
|
|
61502
|
+
memeber_set = set(params.keys())
|
|
61503
|
+
for name, value in vars(self).items():
|
|
61504
|
+
property_name = name[1:]
|
|
61505
|
+
if property_name in memeber_set:
|
|
61506
|
+
memeber_set.remove(property_name)
|
|
61507
|
+
if len(memeber_set) > 0:
|
|
61508
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
61509
|
+
|
|
61510
|
+
|
|
61511
|
+
|
|
61340
61512
|
class SessionRateControl(AbstractModel):
|
|
61341
61513
|
r"""会话速率和周期特征校验配置。
|
|
61342
61514
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.155
|
|
4
4
|
Summary: Tencent Cloud Teo SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.155
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.155
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.145
|
|
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
|
|
File without changes
|