tencentcloud-sdk-python-clb 3.1.140__tar.gz → 3.1.151__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_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/setup.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/v20180317/errorcodes.py +21 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/v20180317/models.py +571 -12
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_clb-3.1.151/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_clb-3.1.140/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/README.rst +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/setup.cfg +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/v20180317/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/v20180317/clb_client.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud/clb/v20180317/clb_client_async.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.140 → tencentcloud_sdk_python_clb-3.1.151}/tencentcloud_sdk_python_clb.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-clb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Clb 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.151
|
|
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-clb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.151,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Clb SDK for Python',
|
|
@@ -26,6 +26,9 @@ DRYRUNOPERATION = 'DryRunOperation'
|
|
|
26
26
|
# 操作失败。
|
|
27
27
|
FAILEDOPERATION = 'FailedOperation'
|
|
28
28
|
|
|
29
|
+
# 已有绑定关系当前状态不允许操作。
|
|
30
|
+
FAILEDOPERATION_ASSOCIATIONNOTACTIVE = 'FailedOperation.AssociationNotActive'
|
|
31
|
+
|
|
29
32
|
# 该实例绑定的EIP资源业务带宽超过防误操作检测阈值,执行操作可能存在风险,如仍想继续,请在EIP控制台关闭对应EIP的防误操作检测开关后重试。
|
|
30
33
|
FAILEDOPERATION_EIPTRAFFICCHECKRISK = 'FailedOperation.EipTrafficCheckRisk'
|
|
31
34
|
|
|
@@ -71,6 +74,9 @@ FAILEDOPERATION_TRAFFICCHECKRISK = 'FailedOperation.TrafficCheckRisk'
|
|
|
71
74
|
# 内部错误。
|
|
72
75
|
INTERNALERROR = 'InternalError'
|
|
73
76
|
|
|
77
|
+
# 绑定关系绑定对象不可靠
|
|
78
|
+
INTERNALERROR_ASSOCIATIONREFERENCEINVALID = 'InternalError.AssociationReferenceInvalid'
|
|
79
|
+
|
|
74
80
|
# 参数错误。
|
|
75
81
|
INVALIDPARAMETER = 'InvalidParameter'
|
|
76
82
|
|
|
@@ -107,6 +113,9 @@ INVALIDPARAMETER_LISTENERIDNOTFOUND = 'InvalidParameter.ListenerIdNotFound'
|
|
|
107
113
|
# 查找不到符合条件的转发规则。
|
|
108
114
|
INVALIDPARAMETER_LOCATIONNOTFOUND = 'InvalidParameter.LocationNotFound'
|
|
109
115
|
|
|
116
|
+
# 最小Order层全部BYOK实例的Weight为0。
|
|
117
|
+
INVALIDPARAMETER_MINORDERALLZERO = 'InvalidParameter.MinOrderAllZero'
|
|
118
|
+
|
|
110
119
|
# 监听器端口检查失败,比如端口冲突。
|
|
111
120
|
INVALIDPARAMETER_PORTCHECKFAILED = 'InvalidParameter.PortCheckFailed'
|
|
112
121
|
|
|
@@ -170,6 +179,9 @@ RESOURCENOTFOUND_SERVICEPROVIDER = 'ResourceNotFound.ServiceProvider'
|
|
|
170
179
|
# BYOK 实例下指定 ModelName 的模型未找到。
|
|
171
180
|
RESOURCENOTFOUND_SERVICEPROVIDERMODEL = 'ResourceNotFound.ServiceProviderModel'
|
|
172
181
|
|
|
182
|
+
# 资源不可用。
|
|
183
|
+
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
|
184
|
+
|
|
173
185
|
# 资源售罄。
|
|
174
186
|
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
|
175
187
|
|
|
@@ -179,9 +191,15 @@ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
|
179
191
|
# 操作不支持。
|
|
180
192
|
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
181
193
|
|
|
194
|
+
# Budget只支持企业型实例
|
|
195
|
+
UNSUPPORTEDOPERATION_BUDGETONLYSUPPORTSENTERPRISE = 'UnsupportedOperation.BudgetOnlySupportsEnterprise'
|
|
196
|
+
|
|
182
197
|
# UnsupportedOperation.InvalidModelRouterStatus
|
|
183
198
|
UNSUPPORTEDOPERATION_INVALIDMODELROUTERSTATUS = 'UnsupportedOperation.InvalidModelRouterStatus'
|
|
184
199
|
|
|
200
|
+
# 无效的状态转换。
|
|
201
|
+
UNSUPPORTEDOPERATION_INVALIDSTATETRANSITION = 'UnsupportedOperation.InvalidStateTransition'
|
|
202
|
+
|
|
185
203
|
# 模型路由资源包已开启自动续订,请先关闭自动续订后再发起退款。
|
|
186
204
|
UNSUPPORTEDOPERATION_MODELROUTERRESOURCEPACKAGEAUTOPURCHASEENABLED = 'UnsupportedOperation.ModelRouterResourcePackageAutoPurchaseEnabled'
|
|
187
205
|
|
|
@@ -190,3 +208,6 @@ UNSUPPORTEDOPERATION_MODELROUTERRESOURCEPACKAGESTATUSNOTREFUNDABLE = 'Unsupporte
|
|
|
190
208
|
|
|
191
209
|
# 当前byok实例(serviceprovider)的状态不支持该操作。
|
|
192
210
|
UNSUPPORTEDOPERATION_SERVICEPROVIDERSTATUS = 'UnsupportedOperation.ServiceProviderStatus'
|
|
211
|
+
|
|
212
|
+
# BYOK 的 VPC 和 CMR 实例的 VPC 不一致。
|
|
213
|
+
UNSUPPORTEDOPERATION_VPCMISMATCH = 'UnsupportedOperation.VPCMismatch'
|
|
@@ -4787,6 +4787,57 @@ class ClusterInfo(AbstractModel):
|
|
|
4787
4787
|
|
|
4788
4788
|
|
|
4789
4789
|
|
|
4790
|
+
class ClusterInfoInput(AbstractModel):
|
|
4791
|
+
r"""创建模型路由时的集群信息
|
|
4792
|
+
|
|
4793
|
+
"""
|
|
4794
|
+
|
|
4795
|
+
def __init__(self):
|
|
4796
|
+
r"""
|
|
4797
|
+
:param _ClusterId: <p>集群ID</p>
|
|
4798
|
+
:type ClusterId: str
|
|
4799
|
+
:param _Type: <p>集群类型</p><p>枚举值:</p><ul><li>Exclusive: 独占集群</li><li>Public: 公有云共享集群</li></ul>
|
|
4800
|
+
:type Type: str
|
|
4801
|
+
"""
|
|
4802
|
+
self._ClusterId = None
|
|
4803
|
+
self._Type = None
|
|
4804
|
+
|
|
4805
|
+
@property
|
|
4806
|
+
def ClusterId(self):
|
|
4807
|
+
r"""<p>集群ID</p>
|
|
4808
|
+
:rtype: str
|
|
4809
|
+
"""
|
|
4810
|
+
return self._ClusterId
|
|
4811
|
+
|
|
4812
|
+
@ClusterId.setter
|
|
4813
|
+
def ClusterId(self, ClusterId):
|
|
4814
|
+
self._ClusterId = ClusterId
|
|
4815
|
+
|
|
4816
|
+
@property
|
|
4817
|
+
def Type(self):
|
|
4818
|
+
r"""<p>集群类型</p><p>枚举值:</p><ul><li>Exclusive: 独占集群</li><li>Public: 公有云共享集群</li></ul>
|
|
4819
|
+
:rtype: str
|
|
4820
|
+
"""
|
|
4821
|
+
return self._Type
|
|
4822
|
+
|
|
4823
|
+
@Type.setter
|
|
4824
|
+
def Type(self, Type):
|
|
4825
|
+
self._Type = Type
|
|
4826
|
+
|
|
4827
|
+
|
|
4828
|
+
def _deserialize(self, params):
|
|
4829
|
+
self._ClusterId = params.get("ClusterId")
|
|
4830
|
+
self._Type = params.get("Type")
|
|
4831
|
+
memeber_set = set(params.keys())
|
|
4832
|
+
for name, value in vars(self).items():
|
|
4833
|
+
property_name = name[1:]
|
|
4834
|
+
if property_name in memeber_set:
|
|
4835
|
+
memeber_set.remove(property_name)
|
|
4836
|
+
if len(memeber_set) > 0:
|
|
4837
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
|
|
4790
4841
|
class ClusterItem(AbstractModel):
|
|
4791
4842
|
r"""独占集群信息
|
|
4792
4843
|
|
|
@@ -5047,12 +5098,15 @@ class Coefficient(AbstractModel):
|
|
|
5047
5098
|
r"""
|
|
5048
5099
|
:param _InputCachedCoefficient: <p>缓存命中输入积分系数。</p><p>用于 provider prompt cache 命中的输入 token。</p><p>取值范围:[0, 5000]</p><p>默认值:3</p>
|
|
5049
5100
|
:type InputCachedCoefficient: float
|
|
5101
|
+
:param _InputCacheCreationCoefficient: <p>缓存创建积分系数</p>
|
|
5102
|
+
:type InputCacheCreationCoefficient: float
|
|
5050
5103
|
:param _InputCoefficient: <p>输入积分系数。</p><p>取值范围:[1, 5000]</p><p>默认值:25</p>
|
|
5051
5104
|
:type InputCoefficient: float
|
|
5052
5105
|
:param _OutputCoefficient: <p>输出积分系数。</p><p>取值范围:[1, 5000]</p><p>默认值:100</p>
|
|
5053
5106
|
:type OutputCoefficient: float
|
|
5054
5107
|
"""
|
|
5055
5108
|
self._InputCachedCoefficient = None
|
|
5109
|
+
self._InputCacheCreationCoefficient = None
|
|
5056
5110
|
self._InputCoefficient = None
|
|
5057
5111
|
self._OutputCoefficient = None
|
|
5058
5112
|
|
|
@@ -5067,6 +5121,17 @@ class Coefficient(AbstractModel):
|
|
|
5067
5121
|
def InputCachedCoefficient(self, InputCachedCoefficient):
|
|
5068
5122
|
self._InputCachedCoefficient = InputCachedCoefficient
|
|
5069
5123
|
|
|
5124
|
+
@property
|
|
5125
|
+
def InputCacheCreationCoefficient(self):
|
|
5126
|
+
r"""<p>缓存创建积分系数</p>
|
|
5127
|
+
:rtype: float
|
|
5128
|
+
"""
|
|
5129
|
+
return self._InputCacheCreationCoefficient
|
|
5130
|
+
|
|
5131
|
+
@InputCacheCreationCoefficient.setter
|
|
5132
|
+
def InputCacheCreationCoefficient(self, InputCacheCreationCoefficient):
|
|
5133
|
+
self._InputCacheCreationCoefficient = InputCacheCreationCoefficient
|
|
5134
|
+
|
|
5070
5135
|
@property
|
|
5071
5136
|
def InputCoefficient(self):
|
|
5072
5137
|
r"""<p>输入积分系数。</p><p>取值范围:[1, 5000]</p><p>默认值:25</p>
|
|
@@ -5092,6 +5157,7 @@ class Coefficient(AbstractModel):
|
|
|
5092
5157
|
|
|
5093
5158
|
def _deserialize(self, params):
|
|
5094
5159
|
self._InputCachedCoefficient = params.get("InputCachedCoefficient")
|
|
5160
|
+
self._InputCacheCreationCoefficient = params.get("InputCacheCreationCoefficient")
|
|
5095
5161
|
self._InputCoefficient = params.get("InputCoefficient")
|
|
5096
5162
|
self._OutputCoefficient = params.get("OutputCoefficient")
|
|
5097
5163
|
memeber_set = set(params.keys())
|
|
@@ -7558,10 +7624,10 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7558
7624
|
:type ModelRouterType: str
|
|
7559
7625
|
:param _BudgetId: <p>关联的积分预算ID</p>
|
|
7560
7626
|
:type BudgetId: str
|
|
7561
|
-
:param _CertId: <p>证书ID</p><p>入参限制:当
|
|
7627
|
+
:param _CertId: <p>证书ID</p><p>入参限制:当Scheme为HTTPS时,该参数必传</p>
|
|
7562
7628
|
:type CertId: str
|
|
7563
7629
|
:param _ClusterInfo: <p>集群信息</p>
|
|
7564
|
-
:type ClusterInfo: :class:`tencentcloud.clb.v20180317.models.
|
|
7630
|
+
:type ClusterInfo: :class:`tencentcloud.clb.v20180317.models.ClusterInfoInput`
|
|
7565
7631
|
:param _ModelRouterName: <p>模型路由实例名称</p><p>默认值:-</p>
|
|
7566
7632
|
:type ModelRouterName: str
|
|
7567
7633
|
:param _NetworkType: <p>网络类型</p><p>枚举值:</p><ul><li>Internet: 公网</li><li>Intranet: 内网</li></ul>
|
|
@@ -7580,6 +7646,10 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7580
7646
|
:type Tags: list of TagInfo
|
|
7581
7647
|
:param _VpcId: <p>模型路由实例所属VPC的ID</p>
|
|
7582
7648
|
:type VpcId: str
|
|
7649
|
+
:param _ModelRouterBillingConfig: <p>模型路由实例计费信息</p>
|
|
7650
|
+
:type ModelRouterBillingConfig: :class:`tencentcloud.clb.v20180317.models.ModelRouterBillingConfigInput`
|
|
7651
|
+
:param _ClientToken: <p>客户端Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。</p>
|
|
7652
|
+
:type ClientToken: str
|
|
7583
7653
|
"""
|
|
7584
7654
|
self._ModelRouterType = None
|
|
7585
7655
|
self._BudgetId = None
|
|
@@ -7594,6 +7664,8 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7594
7664
|
self._SubnetId = None
|
|
7595
7665
|
self._Tags = None
|
|
7596
7666
|
self._VpcId = None
|
|
7667
|
+
self._ModelRouterBillingConfig = None
|
|
7668
|
+
self._ClientToken = None
|
|
7597
7669
|
|
|
7598
7670
|
@property
|
|
7599
7671
|
def ModelRouterType(self):
|
|
@@ -7619,7 +7691,7 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7619
7691
|
|
|
7620
7692
|
@property
|
|
7621
7693
|
def CertId(self):
|
|
7622
|
-
r"""<p>证书ID</p><p>入参限制:当
|
|
7694
|
+
r"""<p>证书ID</p><p>入参限制:当Scheme为HTTPS时,该参数必传</p>
|
|
7623
7695
|
:rtype: str
|
|
7624
7696
|
"""
|
|
7625
7697
|
return self._CertId
|
|
@@ -7631,7 +7703,7 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7631
7703
|
@property
|
|
7632
7704
|
def ClusterInfo(self):
|
|
7633
7705
|
r"""<p>集群信息</p>
|
|
7634
|
-
:rtype: :class:`tencentcloud.clb.v20180317.models.
|
|
7706
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.ClusterInfoInput`
|
|
7635
7707
|
"""
|
|
7636
7708
|
return self._ClusterInfo
|
|
7637
7709
|
|
|
@@ -7738,13 +7810,35 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7738
7810
|
def VpcId(self, VpcId):
|
|
7739
7811
|
self._VpcId = VpcId
|
|
7740
7812
|
|
|
7813
|
+
@property
|
|
7814
|
+
def ModelRouterBillingConfig(self):
|
|
7815
|
+
r"""<p>模型路由实例计费信息</p>
|
|
7816
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.ModelRouterBillingConfigInput`
|
|
7817
|
+
"""
|
|
7818
|
+
return self._ModelRouterBillingConfig
|
|
7819
|
+
|
|
7820
|
+
@ModelRouterBillingConfig.setter
|
|
7821
|
+
def ModelRouterBillingConfig(self, ModelRouterBillingConfig):
|
|
7822
|
+
self._ModelRouterBillingConfig = ModelRouterBillingConfig
|
|
7823
|
+
|
|
7824
|
+
@property
|
|
7825
|
+
def ClientToken(self):
|
|
7826
|
+
r"""<p>客户端Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。</p>
|
|
7827
|
+
:rtype: str
|
|
7828
|
+
"""
|
|
7829
|
+
return self._ClientToken
|
|
7830
|
+
|
|
7831
|
+
@ClientToken.setter
|
|
7832
|
+
def ClientToken(self, ClientToken):
|
|
7833
|
+
self._ClientToken = ClientToken
|
|
7834
|
+
|
|
7741
7835
|
|
|
7742
7836
|
def _deserialize(self, params):
|
|
7743
7837
|
self._ModelRouterType = params.get("ModelRouterType")
|
|
7744
7838
|
self._BudgetId = params.get("BudgetId")
|
|
7745
7839
|
self._CertId = params.get("CertId")
|
|
7746
7840
|
if params.get("ClusterInfo") is not None:
|
|
7747
|
-
self._ClusterInfo =
|
|
7841
|
+
self._ClusterInfo = ClusterInfoInput()
|
|
7748
7842
|
self._ClusterInfo._deserialize(params.get("ClusterInfo"))
|
|
7749
7843
|
self._ModelRouterName = params.get("ModelRouterName")
|
|
7750
7844
|
self._NetworkType = params.get("NetworkType")
|
|
@@ -7764,6 +7858,10 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
7764
7858
|
obj._deserialize(item)
|
|
7765
7859
|
self._Tags.append(obj)
|
|
7766
7860
|
self._VpcId = params.get("VpcId")
|
|
7861
|
+
if params.get("ModelRouterBillingConfig") is not None:
|
|
7862
|
+
self._ModelRouterBillingConfig = ModelRouterBillingConfigInput()
|
|
7863
|
+
self._ModelRouterBillingConfig._deserialize(params.get("ModelRouterBillingConfig"))
|
|
7864
|
+
self._ClientToken = params.get("ClientToken")
|
|
7767
7865
|
memeber_set = set(params.keys())
|
|
7768
7866
|
for name, value in vars(self).items():
|
|
7769
7867
|
property_name = name[1:]
|
|
@@ -18256,7 +18354,7 @@ class DisassociateModelsFromModelRouterRequest(AbstractModel):
|
|
|
18256
18354
|
:param _ModelRouterId: <p>模型路由实例ID</p>
|
|
18257
18355
|
:type ModelRouterId: str
|
|
18258
18356
|
:param _Models: <p>需要解除关联的模型信息</p>
|
|
18259
|
-
:type Models: list of
|
|
18357
|
+
:type Models: list of ModelRouterModelToDisassociate
|
|
18260
18358
|
"""
|
|
18261
18359
|
self._ModelRouterId = None
|
|
18262
18360
|
self._Models = None
|
|
@@ -18275,7 +18373,7 @@ class DisassociateModelsFromModelRouterRequest(AbstractModel):
|
|
|
18275
18373
|
@property
|
|
18276
18374
|
def Models(self):
|
|
18277
18375
|
r"""<p>需要解除关联的模型信息</p>
|
|
18278
|
-
:rtype: list of
|
|
18376
|
+
:rtype: list of ModelRouterModelToDisassociate
|
|
18279
18377
|
"""
|
|
18280
18378
|
return self._Models
|
|
18281
18379
|
|
|
@@ -18289,7 +18387,7 @@ class DisassociateModelsFromModelRouterRequest(AbstractModel):
|
|
|
18289
18387
|
if params.get("Models") is not None:
|
|
18290
18388
|
self._Models = []
|
|
18291
18389
|
for item in params.get("Models"):
|
|
18292
|
-
obj =
|
|
18390
|
+
obj = ModelRouterModelToDisassociate()
|
|
18293
18391
|
obj._deserialize(item)
|
|
18294
18392
|
self._Models.append(obj)
|
|
18295
18393
|
memeber_set = set(params.keys())
|
|
@@ -25128,6 +25226,72 @@ class ModelNameAggregatedItem(AbstractModel):
|
|
|
25128
25226
|
|
|
25129
25227
|
|
|
25130
25228
|
|
|
25229
|
+
class ModelRouterBillingConfigInput(AbstractModel):
|
|
25230
|
+
r"""模型路由计费信息
|
|
25231
|
+
|
|
25232
|
+
"""
|
|
25233
|
+
|
|
25234
|
+
def __init__(self):
|
|
25235
|
+
r"""
|
|
25236
|
+
:param _ChargeType: <p>模型路由计费模式</p><p>枚举值:</p><ul><li>POSTPAID_BY_HOUR: 按量计费</li><li>RESOURCE_PACKAGE: 按资源包抵扣</li></ul>
|
|
25237
|
+
:type ChargeType: str
|
|
25238
|
+
:param _SlaType: <p>实例规格</p><p>枚举值:</p><ul><li>t1.nano-01: 入门版</li><li>t1.nano-02: 轻量版</li><li>t1.nano-03: 轻量增强版</li><li>t1.micro-01: 微型版</li><li>t1.micro-02: 基础版</li><li>t1.small-01: 标准版</li><li>t1.small-02: 标准增强版</li><li>t1.medium-01: 进阶版</li><li>t1.medium-02: 进阶增强版</li><li>t1.large-01: 专业版</li><li>t1.large-02: 专业增强版</li><li>t1.xlarge-01: 旗舰版</li><li>t1.xlarge-02: 至尊版</li></ul>
|
|
25239
|
+
:type SlaType: str
|
|
25240
|
+
:param _AssociateResourcePackage: <p>是否关联资源包抵扣</p><p>枚举值:</p><ul><li>true: 关联</li><li>false: 不关联</li></ul>
|
|
25241
|
+
:type AssociateResourcePackage: bool
|
|
25242
|
+
"""
|
|
25243
|
+
self._ChargeType = None
|
|
25244
|
+
self._SlaType = None
|
|
25245
|
+
self._AssociateResourcePackage = None
|
|
25246
|
+
|
|
25247
|
+
@property
|
|
25248
|
+
def ChargeType(self):
|
|
25249
|
+
r"""<p>模型路由计费模式</p><p>枚举值:</p><ul><li>POSTPAID_BY_HOUR: 按量计费</li><li>RESOURCE_PACKAGE: 按资源包抵扣</li></ul>
|
|
25250
|
+
:rtype: str
|
|
25251
|
+
"""
|
|
25252
|
+
return self._ChargeType
|
|
25253
|
+
|
|
25254
|
+
@ChargeType.setter
|
|
25255
|
+
def ChargeType(self, ChargeType):
|
|
25256
|
+
self._ChargeType = ChargeType
|
|
25257
|
+
|
|
25258
|
+
@property
|
|
25259
|
+
def SlaType(self):
|
|
25260
|
+
r"""<p>实例规格</p><p>枚举值:</p><ul><li>t1.nano-01: 入门版</li><li>t1.nano-02: 轻量版</li><li>t1.nano-03: 轻量增强版</li><li>t1.micro-01: 微型版</li><li>t1.micro-02: 基础版</li><li>t1.small-01: 标准版</li><li>t1.small-02: 标准增强版</li><li>t1.medium-01: 进阶版</li><li>t1.medium-02: 进阶增强版</li><li>t1.large-01: 专业版</li><li>t1.large-02: 专业增强版</li><li>t1.xlarge-01: 旗舰版</li><li>t1.xlarge-02: 至尊版</li></ul>
|
|
25261
|
+
:rtype: str
|
|
25262
|
+
"""
|
|
25263
|
+
return self._SlaType
|
|
25264
|
+
|
|
25265
|
+
@SlaType.setter
|
|
25266
|
+
def SlaType(self, SlaType):
|
|
25267
|
+
self._SlaType = SlaType
|
|
25268
|
+
|
|
25269
|
+
@property
|
|
25270
|
+
def AssociateResourcePackage(self):
|
|
25271
|
+
r"""<p>是否关联资源包抵扣</p><p>枚举值:</p><ul><li>true: 关联</li><li>false: 不关联</li></ul>
|
|
25272
|
+
:rtype: bool
|
|
25273
|
+
"""
|
|
25274
|
+
return self._AssociateResourcePackage
|
|
25275
|
+
|
|
25276
|
+
@AssociateResourcePackage.setter
|
|
25277
|
+
def AssociateResourcePackage(self, AssociateResourcePackage):
|
|
25278
|
+
self._AssociateResourcePackage = AssociateResourcePackage
|
|
25279
|
+
|
|
25280
|
+
|
|
25281
|
+
def _deserialize(self, params):
|
|
25282
|
+
self._ChargeType = params.get("ChargeType")
|
|
25283
|
+
self._SlaType = params.get("SlaType")
|
|
25284
|
+
self._AssociateResourcePackage = params.get("AssociateResourcePackage")
|
|
25285
|
+
memeber_set = set(params.keys())
|
|
25286
|
+
for name, value in vars(self).items():
|
|
25287
|
+
property_name = name[1:]
|
|
25288
|
+
if property_name in memeber_set:
|
|
25289
|
+
memeber_set.remove(property_name)
|
|
25290
|
+
if len(memeber_set) > 0:
|
|
25291
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25292
|
+
|
|
25293
|
+
|
|
25294
|
+
|
|
25131
25295
|
class ModelRouterDetail(AbstractModel):
|
|
25132
25296
|
r"""查询单个实例详细信息
|
|
25133
25297
|
|
|
@@ -25182,6 +25346,10 @@ class ModelRouterDetail(AbstractModel):
|
|
|
25182
25346
|
:type Vip: str
|
|
25183
25347
|
:param _VpcId: <p>模型路由实例所属VPC的ID</p>
|
|
25184
25348
|
:type VpcId: str
|
|
25349
|
+
:param _Bandwidth: <p>带宽</p><p>单位:Mbps</p>
|
|
25350
|
+
:type Bandwidth: int
|
|
25351
|
+
:param _EipAddressId: <p>弹性公网IP的ID</p>
|
|
25352
|
+
:type EipAddressId: str
|
|
25185
25353
|
"""
|
|
25186
25354
|
self._BudgetId = None
|
|
25187
25355
|
self._BudgetName = None
|
|
@@ -25205,6 +25373,8 @@ class ModelRouterDetail(AbstractModel):
|
|
|
25205
25373
|
self._TradeStatus = None
|
|
25206
25374
|
self._Vip = None
|
|
25207
25375
|
self._VpcId = None
|
|
25376
|
+
self._Bandwidth = None
|
|
25377
|
+
self._EipAddressId = None
|
|
25208
25378
|
|
|
25209
25379
|
@property
|
|
25210
25380
|
def BudgetId(self):
|
|
@@ -25451,6 +25621,28 @@ class ModelRouterDetail(AbstractModel):
|
|
|
25451
25621
|
def VpcId(self, VpcId):
|
|
25452
25622
|
self._VpcId = VpcId
|
|
25453
25623
|
|
|
25624
|
+
@property
|
|
25625
|
+
def Bandwidth(self):
|
|
25626
|
+
r"""<p>带宽</p><p>单位:Mbps</p>
|
|
25627
|
+
:rtype: int
|
|
25628
|
+
"""
|
|
25629
|
+
return self._Bandwidth
|
|
25630
|
+
|
|
25631
|
+
@Bandwidth.setter
|
|
25632
|
+
def Bandwidth(self, Bandwidth):
|
|
25633
|
+
self._Bandwidth = Bandwidth
|
|
25634
|
+
|
|
25635
|
+
@property
|
|
25636
|
+
def EipAddressId(self):
|
|
25637
|
+
r"""<p>弹性公网IP的ID</p>
|
|
25638
|
+
:rtype: str
|
|
25639
|
+
"""
|
|
25640
|
+
return self._EipAddressId
|
|
25641
|
+
|
|
25642
|
+
@EipAddressId.setter
|
|
25643
|
+
def EipAddressId(self, EipAddressId):
|
|
25644
|
+
self._EipAddressId = EipAddressId
|
|
25645
|
+
|
|
25454
25646
|
|
|
25455
25647
|
def _deserialize(self, params):
|
|
25456
25648
|
self._BudgetId = params.get("BudgetId")
|
|
@@ -25496,6 +25688,8 @@ class ModelRouterDetail(AbstractModel):
|
|
|
25496
25688
|
self._TradeStatus = params.get("TradeStatus")
|
|
25497
25689
|
self._Vip = params.get("Vip")
|
|
25498
25690
|
self._VpcId = params.get("VpcId")
|
|
25691
|
+
self._Bandwidth = params.get("Bandwidth")
|
|
25692
|
+
self._EipAddressId = params.get("EipAddressId")
|
|
25499
25693
|
memeber_set = set(params.keys())
|
|
25500
25694
|
for name, value in vars(self).items():
|
|
25501
25695
|
property_name = name[1:]
|
|
@@ -25720,7 +25914,118 @@ class ModelRouterModel(AbstractModel):
|
|
|
25720
25914
|
:type Provider: str
|
|
25721
25915
|
:param _Type: <p>模型类型。</p><p>枚举值:</p><ul><li>BYOK: BYOK类型</li><li>Platform: 平台类型</li></ul>
|
|
25722
25916
|
:type Type: str
|
|
25723
|
-
:param _ServiceProviderId: <p
|
|
25917
|
+
:param _ServiceProviderId: <p>BYOK实例ID</p>
|
|
25918
|
+
:type ServiceProviderId: str
|
|
25919
|
+
:param _Order: <p>当前 CMR、当前绑定模型下该 BYOK实例的调度优先级。</p><p>取值范围:[0, 2]</p><p>默认值:0</p>
|
|
25920
|
+
:type Order: int
|
|
25921
|
+
:param _Weight: <p>当前CMR、当前绑定模型的同一有效Order层内,BYOK实例之间的相对选择权重。</p><p>取值范围:[0, 100]</p><p>默认值:10</p>
|
|
25922
|
+
:type Weight: int
|
|
25923
|
+
"""
|
|
25924
|
+
self._ModelName = None
|
|
25925
|
+
self._Provider = None
|
|
25926
|
+
self._Type = None
|
|
25927
|
+
self._ServiceProviderId = None
|
|
25928
|
+
self._Order = None
|
|
25929
|
+
self._Weight = None
|
|
25930
|
+
|
|
25931
|
+
@property
|
|
25932
|
+
def ModelName(self):
|
|
25933
|
+
r"""<p>模型名称</p>
|
|
25934
|
+
:rtype: str
|
|
25935
|
+
"""
|
|
25936
|
+
return self._ModelName
|
|
25937
|
+
|
|
25938
|
+
@ModelName.setter
|
|
25939
|
+
def ModelName(self, ModelName):
|
|
25940
|
+
self._ModelName = ModelName
|
|
25941
|
+
|
|
25942
|
+
@property
|
|
25943
|
+
def Provider(self):
|
|
25944
|
+
r"""<p>所属厂商</p>
|
|
25945
|
+
:rtype: str
|
|
25946
|
+
"""
|
|
25947
|
+
return self._Provider
|
|
25948
|
+
|
|
25949
|
+
@Provider.setter
|
|
25950
|
+
def Provider(self, Provider):
|
|
25951
|
+
self._Provider = Provider
|
|
25952
|
+
|
|
25953
|
+
@property
|
|
25954
|
+
def Type(self):
|
|
25955
|
+
r"""<p>模型类型。</p><p>枚举值:</p><ul><li>BYOK: BYOK类型</li><li>Platform: 平台类型</li></ul>
|
|
25956
|
+
:rtype: str
|
|
25957
|
+
"""
|
|
25958
|
+
return self._Type
|
|
25959
|
+
|
|
25960
|
+
@Type.setter
|
|
25961
|
+
def Type(self, Type):
|
|
25962
|
+
self._Type = Type
|
|
25963
|
+
|
|
25964
|
+
@property
|
|
25965
|
+
def ServiceProviderId(self):
|
|
25966
|
+
r"""<p>BYOK实例ID</p>
|
|
25967
|
+
:rtype: str
|
|
25968
|
+
"""
|
|
25969
|
+
return self._ServiceProviderId
|
|
25970
|
+
|
|
25971
|
+
@ServiceProviderId.setter
|
|
25972
|
+
def ServiceProviderId(self, ServiceProviderId):
|
|
25973
|
+
self._ServiceProviderId = ServiceProviderId
|
|
25974
|
+
|
|
25975
|
+
@property
|
|
25976
|
+
def Order(self):
|
|
25977
|
+
r"""<p>当前 CMR、当前绑定模型下该 BYOK实例的调度优先级。</p><p>取值范围:[0, 2]</p><p>默认值:0</p>
|
|
25978
|
+
:rtype: int
|
|
25979
|
+
"""
|
|
25980
|
+
return self._Order
|
|
25981
|
+
|
|
25982
|
+
@Order.setter
|
|
25983
|
+
def Order(self, Order):
|
|
25984
|
+
self._Order = Order
|
|
25985
|
+
|
|
25986
|
+
@property
|
|
25987
|
+
def Weight(self):
|
|
25988
|
+
r"""<p>当前CMR、当前绑定模型的同一有效Order层内,BYOK实例之间的相对选择权重。</p><p>取值范围:[0, 100]</p><p>默认值:10</p>
|
|
25989
|
+
:rtype: int
|
|
25990
|
+
"""
|
|
25991
|
+
return self._Weight
|
|
25992
|
+
|
|
25993
|
+
@Weight.setter
|
|
25994
|
+
def Weight(self, Weight):
|
|
25995
|
+
self._Weight = Weight
|
|
25996
|
+
|
|
25997
|
+
|
|
25998
|
+
def _deserialize(self, params):
|
|
25999
|
+
self._ModelName = params.get("ModelName")
|
|
26000
|
+
self._Provider = params.get("Provider")
|
|
26001
|
+
self._Type = params.get("Type")
|
|
26002
|
+
self._ServiceProviderId = params.get("ServiceProviderId")
|
|
26003
|
+
self._Order = params.get("Order")
|
|
26004
|
+
self._Weight = params.get("Weight")
|
|
26005
|
+
memeber_set = set(params.keys())
|
|
26006
|
+
for name, value in vars(self).items():
|
|
26007
|
+
property_name = name[1:]
|
|
26008
|
+
if property_name in memeber_set:
|
|
26009
|
+
memeber_set.remove(property_name)
|
|
26010
|
+
if len(memeber_set) > 0:
|
|
26011
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26012
|
+
|
|
26013
|
+
|
|
26014
|
+
|
|
26015
|
+
class ModelRouterModelToDisassociate(AbstractModel):
|
|
26016
|
+
r"""CMR实例待解绑的模型信息
|
|
26017
|
+
|
|
26018
|
+
"""
|
|
26019
|
+
|
|
26020
|
+
def __init__(self):
|
|
26021
|
+
r"""
|
|
26022
|
+
:param _ModelName: <p>模型名称</p>
|
|
26023
|
+
:type ModelName: str
|
|
26024
|
+
:param _Provider: <p>所属厂商</p>
|
|
26025
|
+
:type Provider: str
|
|
26026
|
+
:param _Type: <p>模型类型。</p><p>枚举值:</p><ul><li>BYOK: BYOK类型</li><li>Platform: 平台类型</li></ul>
|
|
26027
|
+
:type Type: str
|
|
26028
|
+
:param _ServiceProviderId: <p>BYOK实例ID</p>
|
|
25724
26029
|
:type ServiceProviderId: str
|
|
25725
26030
|
"""
|
|
25726
26031
|
self._ModelName = None
|
|
@@ -25763,7 +26068,7 @@ class ModelRouterModel(AbstractModel):
|
|
|
25763
26068
|
|
|
25764
26069
|
@property
|
|
25765
26070
|
def ServiceProviderId(self):
|
|
25766
|
-
r"""<p
|
|
26071
|
+
r"""<p>BYOK实例ID</p>
|
|
25767
26072
|
:rtype: str
|
|
25768
26073
|
"""
|
|
25769
26074
|
return self._ServiceProviderId
|
|
@@ -26330,6 +26635,10 @@ class ModelRouterSet(AbstractModel):
|
|
|
26330
26635
|
:type Vip: str
|
|
26331
26636
|
:param _VpcId: <p>模型路由实例所属VPC的ID</p>
|
|
26332
26637
|
:type VpcId: str
|
|
26638
|
+
:param _Bandwidth: <p>带宽</p><p>单位:Mbps</p>
|
|
26639
|
+
:type Bandwidth: int
|
|
26640
|
+
:param _EipAddressId: <p>弹性公网IP的ID</p>
|
|
26641
|
+
:type EipAddressId: str
|
|
26333
26642
|
"""
|
|
26334
26643
|
self._BudgetId = None
|
|
26335
26644
|
self._BudgetName = None
|
|
@@ -26348,6 +26657,8 @@ class ModelRouterSet(AbstractModel):
|
|
|
26348
26657
|
self._TradeStatus = None
|
|
26349
26658
|
self._Vip = None
|
|
26350
26659
|
self._VpcId = None
|
|
26660
|
+
self._Bandwidth = None
|
|
26661
|
+
self._EipAddressId = None
|
|
26351
26662
|
|
|
26352
26663
|
@property
|
|
26353
26664
|
def BudgetId(self):
|
|
@@ -26538,6 +26849,28 @@ class ModelRouterSet(AbstractModel):
|
|
|
26538
26849
|
def VpcId(self, VpcId):
|
|
26539
26850
|
self._VpcId = VpcId
|
|
26540
26851
|
|
|
26852
|
+
@property
|
|
26853
|
+
def Bandwidth(self):
|
|
26854
|
+
r"""<p>带宽</p><p>单位:Mbps</p>
|
|
26855
|
+
:rtype: int
|
|
26856
|
+
"""
|
|
26857
|
+
return self._Bandwidth
|
|
26858
|
+
|
|
26859
|
+
@Bandwidth.setter
|
|
26860
|
+
def Bandwidth(self, Bandwidth):
|
|
26861
|
+
self._Bandwidth = Bandwidth
|
|
26862
|
+
|
|
26863
|
+
@property
|
|
26864
|
+
def EipAddressId(self):
|
|
26865
|
+
r"""<p>弹性公网IP的ID</p>
|
|
26866
|
+
:rtype: str
|
|
26867
|
+
"""
|
|
26868
|
+
return self._EipAddressId
|
|
26869
|
+
|
|
26870
|
+
@EipAddressId.setter
|
|
26871
|
+
def EipAddressId(self, EipAddressId):
|
|
26872
|
+
self._EipAddressId = EipAddressId
|
|
26873
|
+
|
|
26541
26874
|
|
|
26542
26875
|
def _deserialize(self, params):
|
|
26543
26876
|
self._BudgetId = params.get("BudgetId")
|
|
@@ -26569,6 +26902,8 @@ class ModelRouterSet(AbstractModel):
|
|
|
26569
26902
|
self._TradeStatus = params.get("TradeStatus")
|
|
26570
26903
|
self._Vip = params.get("Vip")
|
|
26571
26904
|
self._VpcId = params.get("VpcId")
|
|
26905
|
+
self._Bandwidth = params.get("Bandwidth")
|
|
26906
|
+
self._EipAddressId = params.get("EipAddressId")
|
|
26572
26907
|
memeber_set = set(params.keys())
|
|
26573
26908
|
for name, value in vars(self).items():
|
|
26574
26909
|
property_name = name[1:]
|
|
@@ -28939,12 +29274,15 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
28939
29274
|
:type RateLimitConfig: :class:`tencentcloud.clb.v20180317.models.RateLimitConfigForModelRouter`
|
|
28940
29275
|
:param _RouterSetting: <p>路由配置</p>
|
|
28941
29276
|
:type RouterSetting: :class:`tencentcloud.clb.v20180317.models.RouterSettingWithFallBack`
|
|
29277
|
+
:param _Bandwidth: <p>带宽</p><p>取值范围:[1, 2048]</p><p>单位:Mbps</p>
|
|
29278
|
+
:type Bandwidth: int
|
|
28942
29279
|
"""
|
|
28943
29280
|
self._ModelRouterId = None
|
|
28944
29281
|
self._CertId = None
|
|
28945
29282
|
self._ModelRouterName = None
|
|
28946
29283
|
self._RateLimitConfig = None
|
|
28947
29284
|
self._RouterSetting = None
|
|
29285
|
+
self._Bandwidth = None
|
|
28948
29286
|
|
|
28949
29287
|
@property
|
|
28950
29288
|
def ModelRouterId(self):
|
|
@@ -29001,6 +29339,17 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
29001
29339
|
def RouterSetting(self, RouterSetting):
|
|
29002
29340
|
self._RouterSetting = RouterSetting
|
|
29003
29341
|
|
|
29342
|
+
@property
|
|
29343
|
+
def Bandwidth(self):
|
|
29344
|
+
r"""<p>带宽</p><p>取值范围:[1, 2048]</p><p>单位:Mbps</p>
|
|
29345
|
+
:rtype: int
|
|
29346
|
+
"""
|
|
29347
|
+
return self._Bandwidth
|
|
29348
|
+
|
|
29349
|
+
@Bandwidth.setter
|
|
29350
|
+
def Bandwidth(self, Bandwidth):
|
|
29351
|
+
self._Bandwidth = Bandwidth
|
|
29352
|
+
|
|
29004
29353
|
|
|
29005
29354
|
def _deserialize(self, params):
|
|
29006
29355
|
self._ModelRouterId = params.get("ModelRouterId")
|
|
@@ -29012,6 +29361,7 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
29012
29361
|
if params.get("RouterSetting") is not None:
|
|
29013
29362
|
self._RouterSetting = RouterSettingWithFallBack()
|
|
29014
29363
|
self._RouterSetting._deserialize(params.get("RouterSetting"))
|
|
29364
|
+
self._Bandwidth = params.get("Bandwidth")
|
|
29015
29365
|
memeber_set = set(params.keys())
|
|
29016
29366
|
for name, value in vars(self).items():
|
|
29017
29367
|
property_name = name[1:]
|
|
@@ -32530,7 +32880,7 @@ class RouterSettingWithFallBack(AbstractModel):
|
|
|
32530
32880
|
|
|
32531
32881
|
def __init__(self):
|
|
32532
32882
|
r"""
|
|
32533
|
-
:param _CrossModelGroupRoutingStrategy: <p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>
|
|
32883
|
+
:param _CrossModelGroupRoutingStrategy: <p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
32534
32884
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
32535
32885
|
:type CrossModelGroupRoutingStrategy: str
|
|
32536
32886
|
:param _FallBack: <p>回退策略</p>
|
|
@@ -32539,14 +32889,22 @@ class RouterSettingWithFallBack(AbstractModel):
|
|
|
32539
32889
|
:param _RoutingStrategy: <p>模型内路由策略</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>LeastBusy: 最低繁忙路由</li><li>LatencyBasedRouting: 最低延迟路由</li><li>UsageBasedRouting: 用量均衡路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
32540
32890
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
32541
32891
|
:type RoutingStrategy: str
|
|
32892
|
+
:param _NumRetries: <p>CMR实例级别请求组内重试次数</p><p>取值范围:[0, 5]</p><p>默认值:2</p>
|
|
32893
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
32894
|
+
:type NumRetries: int
|
|
32895
|
+
:param _RoutingStrategyArgs: <p>L2模型组内路由调度算法参数</p>
|
|
32896
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
32897
|
+
:type RoutingStrategyArgs: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
32542
32898
|
"""
|
|
32543
32899
|
self._CrossModelGroupRoutingStrategy = None
|
|
32544
32900
|
self._FallBack = None
|
|
32545
32901
|
self._RoutingStrategy = None
|
|
32902
|
+
self._NumRetries = None
|
|
32903
|
+
self._RoutingStrategyArgs = None
|
|
32546
32904
|
|
|
32547
32905
|
@property
|
|
32548
32906
|
def CrossModelGroupRoutingStrategy(self):
|
|
32549
|
-
r"""<p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>
|
|
32907
|
+
r"""<p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
32550
32908
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
32551
32909
|
:rtype: str
|
|
32552
32910
|
"""
|
|
@@ -32580,6 +32938,30 @@ class RouterSettingWithFallBack(AbstractModel):
|
|
|
32580
32938
|
def RoutingStrategy(self, RoutingStrategy):
|
|
32581
32939
|
self._RoutingStrategy = RoutingStrategy
|
|
32582
32940
|
|
|
32941
|
+
@property
|
|
32942
|
+
def NumRetries(self):
|
|
32943
|
+
r"""<p>CMR实例级别请求组内重试次数</p><p>取值范围:[0, 5]</p><p>默认值:2</p>
|
|
32944
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
32945
|
+
:rtype: int
|
|
32946
|
+
"""
|
|
32947
|
+
return self._NumRetries
|
|
32948
|
+
|
|
32949
|
+
@NumRetries.setter
|
|
32950
|
+
def NumRetries(self, NumRetries):
|
|
32951
|
+
self._NumRetries = NumRetries
|
|
32952
|
+
|
|
32953
|
+
@property
|
|
32954
|
+
def RoutingStrategyArgs(self):
|
|
32955
|
+
r"""<p>L2模型组内路由调度算法参数</p>
|
|
32956
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
32957
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
32958
|
+
"""
|
|
32959
|
+
return self._RoutingStrategyArgs
|
|
32960
|
+
|
|
32961
|
+
@RoutingStrategyArgs.setter
|
|
32962
|
+
def RoutingStrategyArgs(self, RoutingStrategyArgs):
|
|
32963
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs
|
|
32964
|
+
|
|
32583
32965
|
|
|
32584
32966
|
def _deserialize(self, params):
|
|
32585
32967
|
self._CrossModelGroupRoutingStrategy = params.get("CrossModelGroupRoutingStrategy")
|
|
@@ -32587,6 +32969,10 @@ class RouterSettingWithFallBack(AbstractModel):
|
|
|
32587
32969
|
self._FallBack = FallBackItem()
|
|
32588
32970
|
self._FallBack._deserialize(params.get("FallBack"))
|
|
32589
32971
|
self._RoutingStrategy = params.get("RoutingStrategy")
|
|
32972
|
+
self._NumRetries = params.get("NumRetries")
|
|
32973
|
+
if params.get("RoutingStrategyArgs") is not None:
|
|
32974
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs()
|
|
32975
|
+
self._RoutingStrategyArgs._deserialize(params.get("RoutingStrategyArgs"))
|
|
32590
32976
|
memeber_set = set(params.keys())
|
|
32591
32977
|
for name, value in vars(self).items():
|
|
32592
32978
|
property_name = name[1:]
|
|
@@ -32606,8 +32992,17 @@ class RouterSettingWithoutFallBack(AbstractModel):
|
|
|
32606
32992
|
r"""
|
|
32607
32993
|
:param _RoutingStrategy: <p>路由策略</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>LeastBusy: 最低繁忙路由</li><li>LatencyBasedRouting: 最低延迟路由</li><li>UsageBasedRouting: 用量均衡路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
32608
32994
|
:type RoutingStrategy: str
|
|
32995
|
+
:param _CrossModelGroupRoutingStrategy: <p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
32996
|
+
:type CrossModelGroupRoutingStrategy: str
|
|
32997
|
+
:param _RoutingStrategyArgs: <p>L2模型组内路由调度算法参数</p>
|
|
32998
|
+
:type RoutingStrategyArgs: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
32999
|
+
:param _NumRetries: <p>CMR实例级别请求组内重试次数</p><p>取值范围:[0, 5]</p><p>默认值:2</p>
|
|
33000
|
+
:type NumRetries: int
|
|
32609
33001
|
"""
|
|
32610
33002
|
self._RoutingStrategy = None
|
|
33003
|
+
self._CrossModelGroupRoutingStrategy = None
|
|
33004
|
+
self._RoutingStrategyArgs = None
|
|
33005
|
+
self._NumRetries = None
|
|
32611
33006
|
|
|
32612
33007
|
@property
|
|
32613
33008
|
def RoutingStrategy(self):
|
|
@@ -32620,9 +33015,128 @@ class RouterSettingWithoutFallBack(AbstractModel):
|
|
|
32620
33015
|
def RoutingStrategy(self, RoutingStrategy):
|
|
32621
33016
|
self._RoutingStrategy = RoutingStrategy
|
|
32622
33017
|
|
|
33018
|
+
@property
|
|
33019
|
+
def CrossModelGroupRoutingStrategy(self):
|
|
33020
|
+
r"""<p>模型间路由策略。</p><p>枚举值:</p><ul><li>SimpleShuffle: 简单随机路由</li><li>CostBasedRouting: 最低积分路由</li></ul>
|
|
33021
|
+
:rtype: str
|
|
33022
|
+
"""
|
|
33023
|
+
return self._CrossModelGroupRoutingStrategy
|
|
33024
|
+
|
|
33025
|
+
@CrossModelGroupRoutingStrategy.setter
|
|
33026
|
+
def CrossModelGroupRoutingStrategy(self, CrossModelGroupRoutingStrategy):
|
|
33027
|
+
self._CrossModelGroupRoutingStrategy = CrossModelGroupRoutingStrategy
|
|
33028
|
+
|
|
33029
|
+
@property
|
|
33030
|
+
def RoutingStrategyArgs(self):
|
|
33031
|
+
r"""<p>L2模型组内路由调度算法参数</p>
|
|
33032
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
33033
|
+
"""
|
|
33034
|
+
return self._RoutingStrategyArgs
|
|
33035
|
+
|
|
33036
|
+
@RoutingStrategyArgs.setter
|
|
33037
|
+
def RoutingStrategyArgs(self, RoutingStrategyArgs):
|
|
33038
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs
|
|
33039
|
+
|
|
33040
|
+
@property
|
|
33041
|
+
def NumRetries(self):
|
|
33042
|
+
r"""<p>CMR实例级别请求组内重试次数</p><p>取值范围:[0, 5]</p><p>默认值:2</p>
|
|
33043
|
+
:rtype: int
|
|
33044
|
+
"""
|
|
33045
|
+
return self._NumRetries
|
|
33046
|
+
|
|
33047
|
+
@NumRetries.setter
|
|
33048
|
+
def NumRetries(self, NumRetries):
|
|
33049
|
+
self._NumRetries = NumRetries
|
|
33050
|
+
|
|
32623
33051
|
|
|
32624
33052
|
def _deserialize(self, params):
|
|
32625
33053
|
self._RoutingStrategy = params.get("RoutingStrategy")
|
|
33054
|
+
self._CrossModelGroupRoutingStrategy = params.get("CrossModelGroupRoutingStrategy")
|
|
33055
|
+
if params.get("RoutingStrategyArgs") is not None:
|
|
33056
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs()
|
|
33057
|
+
self._RoutingStrategyArgs._deserialize(params.get("RoutingStrategyArgs"))
|
|
33058
|
+
self._NumRetries = params.get("NumRetries")
|
|
33059
|
+
memeber_set = set(params.keys())
|
|
33060
|
+
for name, value in vars(self).items():
|
|
33061
|
+
property_name = name[1:]
|
|
33062
|
+
if property_name in memeber_set:
|
|
33063
|
+
memeber_set.remove(property_name)
|
|
33064
|
+
if len(memeber_set) > 0:
|
|
33065
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33066
|
+
|
|
33067
|
+
|
|
33068
|
+
|
|
33069
|
+
class RoutingStrategyArgs(AbstractModel):
|
|
33070
|
+
r"""L2模型内路由算法策略参数
|
|
33071
|
+
|
|
33072
|
+
"""
|
|
33073
|
+
|
|
33074
|
+
def __init__(self):
|
|
33075
|
+
r"""
|
|
33076
|
+
:param _LeastBusyBuffer: <p>最低繁忙路由算法相对近优容差。</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低繁忙路由算法生效。0 表示请求仅会路由到在途数最小的上游大模型部署,0.10 表示请求路由到的上游大模型部署在途请求数最多比最小在途数高10%,依次类推。</p>
|
|
33077
|
+
:type LeastBusyBuffer: float
|
|
33078
|
+
:param _UsageBasedBuffer: <p>用量均衡路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅用量均衡路由算法生效。0 表示请求仅会路由到TPM最低的上游大模型部署;0.10 表示请求最多会路由到比TPM最小值高10%的上游大模型部署,依次类推。</p>
|
|
33079
|
+
:type UsageBasedBuffer: float
|
|
33080
|
+
:param _LowestLatencyBuffer: <p>最低延迟路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低延迟路由算法生效。0 表示请求仅会路由到延迟最低的上游大模型部署;0.10 表示请求最多会路由到比延迟最小值高10%的上游大模型部署,依次类推。</p>
|
|
33081
|
+
:type LowestLatencyBuffer: float
|
|
33082
|
+
:param _LowestCostBuffer: <p>最低积分系数路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低积分系数路由算法生效。0 表示请求仅会路由到积分系数最低的上游大模型部署;0.10 表示请求最多会路由到比积分系数最小值高10%的上游大模型部署,依次类推。</p>
|
|
33083
|
+
:type LowestCostBuffer: float
|
|
33084
|
+
"""
|
|
33085
|
+
self._LeastBusyBuffer = None
|
|
33086
|
+
self._UsageBasedBuffer = None
|
|
33087
|
+
self._LowestLatencyBuffer = None
|
|
33088
|
+
self._LowestCostBuffer = None
|
|
33089
|
+
|
|
33090
|
+
@property
|
|
33091
|
+
def LeastBusyBuffer(self):
|
|
33092
|
+
r"""<p>最低繁忙路由算法相对近优容差。</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低繁忙路由算法生效。0 表示请求仅会路由到在途数最小的上游大模型部署,0.10 表示请求路由到的上游大模型部署在途请求数最多比最小在途数高10%,依次类推。</p>
|
|
33093
|
+
:rtype: float
|
|
33094
|
+
"""
|
|
33095
|
+
return self._LeastBusyBuffer
|
|
33096
|
+
|
|
33097
|
+
@LeastBusyBuffer.setter
|
|
33098
|
+
def LeastBusyBuffer(self, LeastBusyBuffer):
|
|
33099
|
+
self._LeastBusyBuffer = LeastBusyBuffer
|
|
33100
|
+
|
|
33101
|
+
@property
|
|
33102
|
+
def UsageBasedBuffer(self):
|
|
33103
|
+
r"""<p>用量均衡路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅用量均衡路由算法生效。0 表示请求仅会路由到TPM最低的上游大模型部署;0.10 表示请求最多会路由到比TPM最小值高10%的上游大模型部署,依次类推。</p>
|
|
33104
|
+
:rtype: float
|
|
33105
|
+
"""
|
|
33106
|
+
return self._UsageBasedBuffer
|
|
33107
|
+
|
|
33108
|
+
@UsageBasedBuffer.setter
|
|
33109
|
+
def UsageBasedBuffer(self, UsageBasedBuffer):
|
|
33110
|
+
self._UsageBasedBuffer = UsageBasedBuffer
|
|
33111
|
+
|
|
33112
|
+
@property
|
|
33113
|
+
def LowestLatencyBuffer(self):
|
|
33114
|
+
r"""<p>最低延迟路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低延迟路由算法生效。0 表示请求仅会路由到延迟最低的上游大模型部署;0.10 表示请求最多会路由到比延迟最小值高10%的上游大模型部署,依次类推。</p>
|
|
33115
|
+
:rtype: float
|
|
33116
|
+
"""
|
|
33117
|
+
return self._LowestLatencyBuffer
|
|
33118
|
+
|
|
33119
|
+
@LowestLatencyBuffer.setter
|
|
33120
|
+
def LowestLatencyBuffer(self, LowestLatencyBuffer):
|
|
33121
|
+
self._LowestLatencyBuffer = LowestLatencyBuffer
|
|
33122
|
+
|
|
33123
|
+
@property
|
|
33124
|
+
def LowestCostBuffer(self):
|
|
33125
|
+
r"""<p>最低积分系数路由算法相对近优容差</p><p>取值范围:[0, 100]</p><p>默认值:0</p><p>仅最低积分系数路由算法生效。0 表示请求仅会路由到积分系数最低的上游大模型部署;0.10 表示请求最多会路由到比积分系数最小值高10%的上游大模型部署,依次类推。</p>
|
|
33126
|
+
:rtype: float
|
|
33127
|
+
"""
|
|
33128
|
+
return self._LowestCostBuffer
|
|
33129
|
+
|
|
33130
|
+
@LowestCostBuffer.setter
|
|
33131
|
+
def LowestCostBuffer(self, LowestCostBuffer):
|
|
33132
|
+
self._LowestCostBuffer = LowestCostBuffer
|
|
33133
|
+
|
|
33134
|
+
|
|
33135
|
+
def _deserialize(self, params):
|
|
33136
|
+
self._LeastBusyBuffer = params.get("LeastBusyBuffer")
|
|
33137
|
+
self._UsageBasedBuffer = params.get("UsageBasedBuffer")
|
|
33138
|
+
self._LowestLatencyBuffer = params.get("LowestLatencyBuffer")
|
|
33139
|
+
self._LowestCostBuffer = params.get("LowestCostBuffer")
|
|
32626
33140
|
memeber_set = set(params.keys())
|
|
32627
33141
|
for name, value in vars(self).items():
|
|
32628
33142
|
property_name = name[1:]
|
|
@@ -33913,6 +34427,12 @@ class ServiceProvider(AbstractModel):
|
|
|
33913
34427
|
:type ServiceProviderId: str
|
|
33914
34428
|
:param _ServiceProviderName: <p>BYOK名称</p>
|
|
33915
34429
|
:type ServiceProviderName: str
|
|
34430
|
+
:param _Order: <p>绑定的指定模型组内BYOK实例的调度优先级</p><p>取值范围[0,2],优先级随数值增大而降低。</p>
|
|
34431
|
+
:type Order: int
|
|
34432
|
+
:param _Weight: <p>绑定的指定模型组Order相同层级内BYOK实例的调度权重</p>
|
|
34433
|
+
:type Weight: int
|
|
34434
|
+
:param _AssociationStatus: <p>CMR实例-BYOK实例的模型调度绑定关系状态</p><p>枚举值:</p><ul><li>Configuring: 变配中</li><li>ConfigureFailed: 变配失败</li><li>Deleting: 删除中</li><li>Provisioning: 创建中</li><li>Active: 正常可用</li><li>ProvisionFailed: 创建失败</li><li>DeletionFailed: 删除失败</li></ul>
|
|
34435
|
+
:type AssociationStatus: str
|
|
33916
34436
|
"""
|
|
33917
34437
|
self._AccessType = None
|
|
33918
34438
|
self._InputModalities = None
|
|
@@ -33920,6 +34440,9 @@ class ServiceProvider(AbstractModel):
|
|
|
33920
34440
|
self._Provider = None
|
|
33921
34441
|
self._ServiceProviderId = None
|
|
33922
34442
|
self._ServiceProviderName = None
|
|
34443
|
+
self._Order = None
|
|
34444
|
+
self._Weight = None
|
|
34445
|
+
self._AssociationStatus = None
|
|
33923
34446
|
|
|
33924
34447
|
@property
|
|
33925
34448
|
def AccessType(self):
|
|
@@ -33987,6 +34510,39 @@ class ServiceProvider(AbstractModel):
|
|
|
33987
34510
|
def ServiceProviderName(self, ServiceProviderName):
|
|
33988
34511
|
self._ServiceProviderName = ServiceProviderName
|
|
33989
34512
|
|
|
34513
|
+
@property
|
|
34514
|
+
def Order(self):
|
|
34515
|
+
r"""<p>绑定的指定模型组内BYOK实例的调度优先级</p><p>取值范围[0,2],优先级随数值增大而降低。</p>
|
|
34516
|
+
:rtype: int
|
|
34517
|
+
"""
|
|
34518
|
+
return self._Order
|
|
34519
|
+
|
|
34520
|
+
@Order.setter
|
|
34521
|
+
def Order(self, Order):
|
|
34522
|
+
self._Order = Order
|
|
34523
|
+
|
|
34524
|
+
@property
|
|
34525
|
+
def Weight(self):
|
|
34526
|
+
r"""<p>绑定的指定模型组Order相同层级内BYOK实例的调度权重</p>
|
|
34527
|
+
:rtype: int
|
|
34528
|
+
"""
|
|
34529
|
+
return self._Weight
|
|
34530
|
+
|
|
34531
|
+
@Weight.setter
|
|
34532
|
+
def Weight(self, Weight):
|
|
34533
|
+
self._Weight = Weight
|
|
34534
|
+
|
|
34535
|
+
@property
|
|
34536
|
+
def AssociationStatus(self):
|
|
34537
|
+
r"""<p>CMR实例-BYOK实例的模型调度绑定关系状态</p><p>枚举值:</p><ul><li>Configuring: 变配中</li><li>ConfigureFailed: 变配失败</li><li>Deleting: 删除中</li><li>Provisioning: 创建中</li><li>Active: 正常可用</li><li>ProvisionFailed: 创建失败</li><li>DeletionFailed: 删除失败</li></ul>
|
|
34538
|
+
:rtype: str
|
|
34539
|
+
"""
|
|
34540
|
+
return self._AssociationStatus
|
|
34541
|
+
|
|
34542
|
+
@AssociationStatus.setter
|
|
34543
|
+
def AssociationStatus(self, AssociationStatus):
|
|
34544
|
+
self._AssociationStatus = AssociationStatus
|
|
34545
|
+
|
|
33990
34546
|
|
|
33991
34547
|
def _deserialize(self, params):
|
|
33992
34548
|
self._AccessType = params.get("AccessType")
|
|
@@ -33995,6 +34551,9 @@ class ServiceProvider(AbstractModel):
|
|
|
33995
34551
|
self._Provider = params.get("Provider")
|
|
33996
34552
|
self._ServiceProviderId = params.get("ServiceProviderId")
|
|
33997
34553
|
self._ServiceProviderName = params.get("ServiceProviderName")
|
|
34554
|
+
self._Order = params.get("Order")
|
|
34555
|
+
self._Weight = params.get("Weight")
|
|
34556
|
+
self._AssociationStatus = params.get("AssociationStatus")
|
|
33998
34557
|
memeber_set = set(params.keys())
|
|
33999
34558
|
for name, value in vars(self).items():
|
|
34000
34559
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-clb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Clb 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.151
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.140
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|