tencentcloud-sdk-python-teo 3.1.149__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.
Files changed (22) hide show
  1. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/setup.py +1 -1
  3. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/models.py +194 -24
  5. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_teo-3.1.155/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_teo-3.1.149/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/README.rst +0 -0
  9. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/__init__.py +0 -0
  11. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/__init__.py +0 -0
  12. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/models.py +0 -0
  14. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  15. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
  16. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/__init__.py +0 -0
  17. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/teo_client.py +0 -0
  19. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud/teo/v20220901/teo_client_async.py +0 -0
  20. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_teo-3.1.149 → tencentcloud_sdk_python_teo-3.1.155}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_teo-3.1.149 → 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.149
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.149
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.149,<4.0.0"],
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',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.149'
17
+ __version__ = '3.1.155'
@@ -11464,6 +11464,8 @@ class CreateInferenceServiceRequest(AbstractModel):
11464
11464
  :type Containers: list of InferenceContainerConfig
11465
11465
  :param _ResourceConfig: <p>推理服务的资源配置。</p>
11466
11466
  :type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
11467
+ :param _AffinityConfig: <p>推理服务亲和性配置。</p>
11468
+ :type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
11467
11469
  :param _RequestPaths: <p>推理服务的请求路径列表。最多支持 20 个路径。</p>
11468
11470
  :type RequestPaths: list of str
11469
11471
  :param _Description: <p>描述信息。长度限制不超过 60 个字符。</p>
@@ -11474,6 +11476,7 @@ class CreateInferenceServiceRequest(AbstractModel):
11474
11476
  self._ListenPort = None
11475
11477
  self._Containers = None
11476
11478
  self._ResourceConfig = None
11479
+ self._AffinityConfig = None
11477
11480
  self._RequestPaths = None
11478
11481
  self._Description = None
11479
11482
 
@@ -11532,6 +11535,17 @@ class CreateInferenceServiceRequest(AbstractModel):
11532
11535
  def ResourceConfig(self, ResourceConfig):
11533
11536
  self._ResourceConfig = ResourceConfig
11534
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
+
11535
11549
  @property
11536
11550
  def RequestPaths(self):
11537
11551
  r"""<p>推理服务的请求路径列表。最多支持 20 个路径。</p>
@@ -11568,6 +11582,9 @@ class CreateInferenceServiceRequest(AbstractModel):
11568
11582
  if params.get("ResourceConfig") is not None:
11569
11583
  self._ResourceConfig = InferenceResourceConfig()
11570
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"))
11571
11588
  self._RequestPaths = params.get("RequestPaths")
11572
11589
  self._Description = params.get("Description")
11573
11590
  memeber_set = set(params.keys())
@@ -39502,6 +39519,74 @@ class InferenceAPIToken(AbstractModel):
39502
39519
 
39503
39520
 
39504
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
+
39505
39590
  class InferenceAutoScalingConfig(AbstractModel):
39506
39591
  r"""推理服务自动伸缩配置。
39507
39592
 
@@ -39565,14 +39650,14 @@ class InferenceContainerConfig(AbstractModel):
39565
39650
 
39566
39651
  def __init__(self):
39567
39652
  r"""
39568
- :param _ImageType: 镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li>
39653
+ :param _ImageType: <p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
39569
39654
  :type ImageType: str
39570
- :param _TcrRepositoryConfig: TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。
39655
+ :param _TcrRepositoryConfig: <p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
39571
39656
  注意:此字段可能返回 null,表示取不到有效值。
39572
39657
  :type TcrRepositoryConfig: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
39573
- :param _StartupCommand: 容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。
39658
+ :param _StartupCommand: <p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
39574
39659
  :type StartupCommand: str
39575
- :param _EnvironmentVariables: 容器运行时的环境变量。最多支持 10 个变量。
39660
+ :param _EnvironmentVariables: <p>容器运行时的环境变量。最多支持 10 个变量。</p>
39576
39661
  :type EnvironmentVariables: list of InferenceEnvironmentVariable
39577
39662
  """
39578
39663
  self._ImageType = None
@@ -39582,7 +39667,7 @@ class InferenceContainerConfig(AbstractModel):
39582
39667
 
39583
39668
  @property
39584
39669
  def ImageType(self):
39585
- r"""镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li>
39670
+ r"""<p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
39586
39671
  :rtype: str
39587
39672
  """
39588
39673
  return self._ImageType
@@ -39593,7 +39678,7 @@ class InferenceContainerConfig(AbstractModel):
39593
39678
 
39594
39679
  @property
39595
39680
  def TcrRepositoryConfig(self):
39596
- r"""TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。
39681
+ r"""<p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
39597
39682
  注意:此字段可能返回 null,表示取不到有效值。
39598
39683
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
39599
39684
  """
@@ -39605,7 +39690,7 @@ class InferenceContainerConfig(AbstractModel):
39605
39690
 
39606
39691
  @property
39607
39692
  def StartupCommand(self):
39608
- r"""容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。
39693
+ r"""<p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
39609
39694
  :rtype: str
39610
39695
  """
39611
39696
  return self._StartupCommand
@@ -39616,7 +39701,7 @@ class InferenceContainerConfig(AbstractModel):
39616
39701
 
39617
39702
  @property
39618
39703
  def EnvironmentVariables(self):
39619
- r"""容器运行时的环境变量。最多支持 10 个变量。
39704
+ r"""<p>容器运行时的环境变量。最多支持 10 个变量。</p>
39620
39705
  :rtype: list of InferenceEnvironmentVariable
39621
39706
  """
39622
39707
  return self._EnvironmentVariables
@@ -39655,13 +39740,13 @@ class InferenceContainerConfigForModify(AbstractModel):
39655
39740
 
39656
39741
  def __init__(self):
39657
39742
  r"""
39658
- :param _ImageType: 镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li>
39743
+ :param _ImageType: <p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
39659
39744
  :type ImageType: str
39660
- :param _TcrRepositoryConfig: TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。
39745
+ :param _TcrRepositoryConfig: <p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
39661
39746
  :type TcrRepositoryConfig: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
39662
- :param _StartupCommand: 容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。
39747
+ :param _StartupCommand: <p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
39663
39748
  :type StartupCommand: str
39664
- :param _EnvironmentVariables: 容器运行时的环境变量。最多支持 10 个变量。
39749
+ :param _EnvironmentVariables: <p>容器运行时的环境变量。最多支持 10 个变量。</p>
39665
39750
  :type EnvironmentVariables: list of InferenceEnvironmentVariable
39666
39751
  """
39667
39752
  self._ImageType = None
@@ -39671,7 +39756,7 @@ class InferenceContainerConfigForModify(AbstractModel):
39671
39756
 
39672
39757
  @property
39673
39758
  def ImageType(self):
39674
- r"""镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li>
39759
+ r"""<p>镜像类型。取值有:<li>TCR:腾讯云容器镜像服务的镜像。</li></p>
39675
39760
  :rtype: str
39676
39761
  """
39677
39762
  return self._ImageType
@@ -39682,7 +39767,7 @@ class InferenceContainerConfigForModify(AbstractModel):
39682
39767
 
39683
39768
  @property
39684
39769
  def TcrRepositoryConfig(self):
39685
- r"""TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。
39770
+ r"""<p>TCR 镜像仓库信息。当 ImageType 为 TCR 时必填。</p>
39686
39771
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceTCRRepositoryConfig`
39687
39772
  """
39688
39773
  return self._TcrRepositoryConfig
@@ -39693,7 +39778,7 @@ class InferenceContainerConfigForModify(AbstractModel):
39693
39778
 
39694
39779
  @property
39695
39780
  def StartupCommand(self):
39696
- r"""容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。
39781
+ r"""<p>容器启动时执行的命令,未填写时默认使用镜像的 Entrypoint/CMD。最长支持 1024 字符。</p>
39697
39782
  :rtype: str
39698
39783
  """
39699
39784
  return self._StartupCommand
@@ -39704,7 +39789,7 @@ class InferenceContainerConfigForModify(AbstractModel):
39704
39789
 
39705
39790
  @property
39706
39791
  def EnvironmentVariables(self):
39707
- r"""容器运行时的环境变量。最多支持 10 个变量。
39792
+ r"""<p>容器运行时的环境变量。最多支持 10 个变量。</p>
39708
39793
  :rtype: list of InferenceEnvironmentVariable
39709
39794
  """
39710
39795
  return self._EnvironmentVariables
@@ -40621,23 +40706,26 @@ class InferenceServiceConfig(AbstractModel):
40621
40706
 
40622
40707
  def __init__(self):
40623
40708
  r"""
40624
- :param _ListenPort: 模型服务需要监听的端口。
40709
+ :param _ListenPort: <p>模型服务需要监听的端口。</p>
40625
40710
  :type ListenPort: int
40626
- :param _RequestPaths: 推理服务的请求路径列表。
40711
+ :param _RequestPaths: <p>推理服务的请求路径列表。</p>
40627
40712
  :type RequestPaths: list of str
40628
- :param _Containers: 推理服务的容器配置。
40713
+ :param _Containers: <p>推理服务的容器配置。</p>
40629
40714
  :type Containers: list of InferenceContainerConfig
40630
- :param _ResourceConfig: 推理服务的资源配置。
40715
+ :param _ResourceConfig: <p>推理服务的资源配置。</p>
40631
40716
  :type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
40717
+ :param _AffinityConfig: <p>推理服务亲和性配置。</p>
40718
+ :type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
40632
40719
  """
40633
40720
  self._ListenPort = None
40634
40721
  self._RequestPaths = None
40635
40722
  self._Containers = None
40636
40723
  self._ResourceConfig = None
40724
+ self._AffinityConfig = None
40637
40725
 
40638
40726
  @property
40639
40727
  def ListenPort(self):
40640
- r"""模型服务需要监听的端口。
40728
+ r"""<p>模型服务需要监听的端口。</p>
40641
40729
  :rtype: int
40642
40730
  """
40643
40731
  return self._ListenPort
@@ -40648,7 +40736,7 @@ class InferenceServiceConfig(AbstractModel):
40648
40736
 
40649
40737
  @property
40650
40738
  def RequestPaths(self):
40651
- r"""推理服务的请求路径列表。
40739
+ r"""<p>推理服务的请求路径列表。</p>
40652
40740
  :rtype: list of str
40653
40741
  """
40654
40742
  return self._RequestPaths
@@ -40659,7 +40747,7 @@ class InferenceServiceConfig(AbstractModel):
40659
40747
 
40660
40748
  @property
40661
40749
  def Containers(self):
40662
- r"""推理服务的容器配置。
40750
+ r"""<p>推理服务的容器配置。</p>
40663
40751
  :rtype: list of InferenceContainerConfig
40664
40752
  """
40665
40753
  return self._Containers
@@ -40670,7 +40758,7 @@ class InferenceServiceConfig(AbstractModel):
40670
40758
 
40671
40759
  @property
40672
40760
  def ResourceConfig(self):
40673
- r"""推理服务的资源配置。
40761
+ r"""<p>推理服务的资源配置。</p>
40674
40762
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfig`
40675
40763
  """
40676
40764
  return self._ResourceConfig
@@ -40679,6 +40767,17 @@ class InferenceServiceConfig(AbstractModel):
40679
40767
  def ResourceConfig(self, ResourceConfig):
40680
40768
  self._ResourceConfig = ResourceConfig
40681
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
+
40682
40781
 
40683
40782
  def _deserialize(self, params):
40684
40783
  self._ListenPort = params.get("ListenPort")
@@ -40692,6 +40791,9 @@ class InferenceServiceConfig(AbstractModel):
40692
40791
  if params.get("ResourceConfig") is not None:
40693
40792
  self._ResourceConfig = InferenceResourceConfig()
40694
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"))
40695
40797
  memeber_set = set(params.keys())
40696
40798
  for name, value in vars(self).items():
40697
40799
  property_name = name[1:]
@@ -46973,6 +47075,8 @@ class ModifyInferenceServiceRequest(AbstractModel):
46973
47075
  :type Containers: list of InferenceContainerConfigForModify
46974
47076
  :param _ResourceConfig: <p>推理服务的资源配置。</p>
46975
47077
  :type ResourceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceResourceConfigForModify`
47078
+ :param _AffinityConfig: <p>推理服务亲和性配置</p>
47079
+ :type AffinityConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAffinityConfig`
46976
47080
  :param _Description: <p>描述信息。长度限制不超过 60 个字符。</p>
46977
47081
  :type Description: str
46978
47082
  """
@@ -46982,6 +47086,7 @@ class ModifyInferenceServiceRequest(AbstractModel):
46982
47086
  self._RequestPaths = None
46983
47087
  self._Containers = None
46984
47088
  self._ResourceConfig = None
47089
+ self._AffinityConfig = None
46985
47090
  self._Description = None
46986
47091
 
46987
47092
  @property
@@ -47050,6 +47155,17 @@ class ModifyInferenceServiceRequest(AbstractModel):
47050
47155
  def ResourceConfig(self, ResourceConfig):
47051
47156
  self._ResourceConfig = ResourceConfig
47052
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
+
47053
47169
  @property
47054
47170
  def Description(self):
47055
47171
  r"""<p>描述信息。长度限制不超过 60 个字符。</p>
@@ -47076,6 +47192,9 @@ class ModifyInferenceServiceRequest(AbstractModel):
47076
47192
  if params.get("ResourceConfig") is not None:
47077
47193
  self._ResourceConfig = InferenceResourceConfigForModify()
47078
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"))
47079
47198
  self._Description = params.get("Description")
47080
47199
  memeber_set = set(params.keys())
47081
47200
  for name, value in vars(self).items():
@@ -61339,6 +61458,57 @@ class ServerCertInfo(AbstractModel):
61339
61458
 
61340
61459
 
61341
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
+
61342
61512
  class SessionRateControl(AbstractModel):
61343
61513
  r"""会话速率和周期特征校验配置。
61344
61514
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.149
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.149
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.149