tencentcloud-sdk-python-clb 3.1.182__tar.gz → 3.1.192__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.182 → tencentcloud_sdk_python_clb-3.1.192}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/setup.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/clb_client.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/clb_client_async.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/errorcodes.py +6 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/models.py +215 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_clb-3.1.192/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_clb-3.1.182/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/README.rst +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/setup.cfg +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.182 → tencentcloud_sdk_python_clb-3.1.192}/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.192
|
|
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.192
|
|
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.192,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Clb SDK for Python',
|
|
@@ -729,7 +729,7 @@ class ClbClient(AbstractClient):
|
|
|
729
729
|
|
|
730
730
|
|
|
731
731
|
def CreateUserGroup(self, request):
|
|
732
|
-
r"""在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs
|
|
732
|
+
r"""在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
|
|
733
733
|
|
|
734
734
|
:param request: Request instance for CreateUserGroup.
|
|
735
735
|
:type request: :class:`tencentcloud.clb.v20180317.models.CreateUserGroupRequest`
|
|
@@ -588,7 +588,7 @@ class ClbClient(AbstractClient):
|
|
|
588
588
|
opts: Dict = None,
|
|
589
589
|
) -> models.CreateUserGroupResponse:
|
|
590
590
|
"""
|
|
591
|
-
在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs
|
|
591
|
+
在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
|
|
592
592
|
"""
|
|
593
593
|
|
|
594
594
|
kwargs = {}
|
|
@@ -173,6 +173,12 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
|
173
173
|
# 资源不存在。
|
|
174
174
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
175
175
|
|
|
176
|
+
# 提示词未找到
|
|
177
|
+
RESOURCENOTFOUND_PROMPT = 'ResourceNotFound.Prompt'
|
|
178
|
+
|
|
179
|
+
# ResourceNotFound.PromptVersion
|
|
180
|
+
RESOURCENOTFOUND_PROMPTVERSION = 'ResourceNotFound.PromptVersion'
|
|
181
|
+
|
|
176
182
|
# BYOK 实例(ServiceProvider)未找到或不属于当前用户。
|
|
177
183
|
RESOURCENOTFOUND_SERVICEPROVIDER = 'ResourceNotFound.ServiceProvider'
|
|
178
184
|
|
|
@@ -5159,6 +5159,8 @@ class Coefficient(AbstractModel):
|
|
|
5159
5159
|
:type InputVideoSecondCoefficient: float
|
|
5160
5160
|
:param _OutputVideoSecondCoefficient: <p>输出视频每秒系数</p>
|
|
5161
5161
|
:type OutputVideoSecondCoefficient: float
|
|
5162
|
+
:param _OutputImageCoefficient: <p>输出图片系数</p>
|
|
5163
|
+
:type OutputImageCoefficient: float
|
|
5162
5164
|
"""
|
|
5163
5165
|
self._InputCachedCoefficient = None
|
|
5164
5166
|
self._InputCacheCreationCoefficient = None
|
|
@@ -5167,6 +5169,7 @@ class Coefficient(AbstractModel):
|
|
|
5167
5169
|
self._InputImageCoefficient = None
|
|
5168
5170
|
self._InputVideoSecondCoefficient = None
|
|
5169
5171
|
self._OutputVideoSecondCoefficient = None
|
|
5172
|
+
self._OutputImageCoefficient = None
|
|
5170
5173
|
|
|
5171
5174
|
@property
|
|
5172
5175
|
def InputCachedCoefficient(self):
|
|
@@ -5245,6 +5248,17 @@ class Coefficient(AbstractModel):
|
|
|
5245
5248
|
def OutputVideoSecondCoefficient(self, OutputVideoSecondCoefficient):
|
|
5246
5249
|
self._OutputVideoSecondCoefficient = OutputVideoSecondCoefficient
|
|
5247
5250
|
|
|
5251
|
+
@property
|
|
5252
|
+
def OutputImageCoefficient(self):
|
|
5253
|
+
r"""<p>输出图片系数</p>
|
|
5254
|
+
:rtype: float
|
|
5255
|
+
"""
|
|
5256
|
+
return self._OutputImageCoefficient
|
|
5257
|
+
|
|
5258
|
+
@OutputImageCoefficient.setter
|
|
5259
|
+
def OutputImageCoefficient(self, OutputImageCoefficient):
|
|
5260
|
+
self._OutputImageCoefficient = OutputImageCoefficient
|
|
5261
|
+
|
|
5248
5262
|
|
|
5249
5263
|
def _deserialize(self, params):
|
|
5250
5264
|
self._InputCachedCoefficient = params.get("InputCachedCoefficient")
|
|
@@ -5254,6 +5268,7 @@ class Coefficient(AbstractModel):
|
|
|
5254
5268
|
self._InputImageCoefficient = params.get("InputImageCoefficient")
|
|
5255
5269
|
self._InputVideoSecondCoefficient = params.get("InputVideoSecondCoefficient")
|
|
5256
5270
|
self._OutputVideoSecondCoefficient = params.get("OutputVideoSecondCoefficient")
|
|
5271
|
+
self._OutputImageCoefficient = params.get("OutputImageCoefficient")
|
|
5257
5272
|
memeber_set = set(params.keys())
|
|
5258
5273
|
for name, value in vars(self).items():
|
|
5259
5274
|
property_name = name[1:]
|
|
@@ -8062,6 +8077,8 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
8062
8077
|
:type RerankConfig: :class:`tencentcloud.clb.v20180317.models.RerankConfig`
|
|
8063
8078
|
:param _DecisionsConfig: <p>Decisions 调度配置</p>
|
|
8064
8079
|
:type DecisionsConfig: :class:`tencentcloud.clb.v20180317.models.DecisionsConfig`
|
|
8080
|
+
:param _ImageConfig: <p>Images 生图配置</p>
|
|
8081
|
+
:type ImageConfig: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
8065
8082
|
"""
|
|
8066
8083
|
self._ModelRouterType = None
|
|
8067
8084
|
self._BudgetId = None
|
|
@@ -8084,6 +8101,7 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
8084
8101
|
self._VideoConfig = None
|
|
8085
8102
|
self._RerankConfig = None
|
|
8086
8103
|
self._DecisionsConfig = None
|
|
8104
|
+
self._ImageConfig = None
|
|
8087
8105
|
|
|
8088
8106
|
@property
|
|
8089
8107
|
def ModelRouterType(self):
|
|
@@ -8316,6 +8334,17 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
8316
8334
|
def DecisionsConfig(self, DecisionsConfig):
|
|
8317
8335
|
self._DecisionsConfig = DecisionsConfig
|
|
8318
8336
|
|
|
8337
|
+
@property
|
|
8338
|
+
def ImageConfig(self):
|
|
8339
|
+
r"""<p>Images 生图配置</p>
|
|
8340
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
8341
|
+
"""
|
|
8342
|
+
return self._ImageConfig
|
|
8343
|
+
|
|
8344
|
+
@ImageConfig.setter
|
|
8345
|
+
def ImageConfig(self, ImageConfig):
|
|
8346
|
+
self._ImageConfig = ImageConfig
|
|
8347
|
+
|
|
8319
8348
|
|
|
8320
8349
|
def _deserialize(self, params):
|
|
8321
8350
|
self._ModelRouterType = params.get("ModelRouterType")
|
|
@@ -8360,6 +8389,9 @@ class CreateModelRouterRequest(AbstractModel):
|
|
|
8360
8389
|
if params.get("DecisionsConfig") is not None:
|
|
8361
8390
|
self._DecisionsConfig = DecisionsConfig()
|
|
8362
8391
|
self._DecisionsConfig._deserialize(params.get("DecisionsConfig"))
|
|
8392
|
+
if params.get("ImageConfig") is not None:
|
|
8393
|
+
self._ImageConfig = ImageConfig()
|
|
8394
|
+
self._ImageConfig._deserialize(params.get("ImageConfig"))
|
|
8363
8395
|
memeber_set = set(params.keys())
|
|
8364
8396
|
for name, value in vars(self).items():
|
|
8365
8397
|
property_name = name[1:]
|
|
@@ -9124,6 +9156,10 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9124
9156
|
:type UserGroupName: str
|
|
9125
9157
|
:param _BudgetId: <p>建组时直接关联的预算 ID(须为已存在的 Budget)。关联后由该 Budget 统一管理本组的消费上限与限速。不传表示不关联预算,可建组后再用 AssociateBudget 关联。</p>
|
|
9126
9158
|
:type BudgetId: str
|
|
9159
|
+
:param _PromptId: <p>建组时绑定的 Prompt 资源 ID(pmt-xxx,须为该实例下已存在的 Prompt)。与 PromptVersion 必须成对传入,仅传其一将返回错误。不传表示默认不绑定 Prompt,可建组后再调用 ModifyUserGroupPrompt 绑定或更换版本。绑定后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容。</p>
|
|
9160
|
+
:type PromptId: str
|
|
9161
|
+
:param _PromptVersion: <p>绑定的 Prompt 版本号(如 v1、v2,由 CreatePrompt / CreatePromptVersion 生成,长度不超过16个字符),与 PromptId 必须成对传入,须为该 Prompt 下已存在的版本。版本为不可变快照,Prompt 后续新增版本不会自动生效于已绑定的用户组,需显式重新绑定新版本。一个用户组同时只关联一份 Prompt 的一个版本,重复绑定即为替换。</p>
|
|
9162
|
+
:type PromptVersion: str
|
|
9127
9163
|
:param _IntentRouters: <p>用户组意图路由白名单(ir-xxx)。每一项须为该实例已创建的意图路由名。命中意图路由名时其内部真实模型自动豁免白名单。为空表示不授权任何意图路由。</p>
|
|
9128
9164
|
:type IntentRouters: list of str
|
|
9129
9165
|
:param _KeyIds: <p>建组时同时绑定的已有 Key ID 列表,最多100个。每个 Key 须属于同一模型路由实例。建组与绑定为一个原子异步任务,任一 Key 失败则整组创建回滚。不传表示建空组。</p>
|
|
@@ -9136,6 +9172,8 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9136
9172
|
self._ModelRouterId = None
|
|
9137
9173
|
self._UserGroupName = None
|
|
9138
9174
|
self._BudgetId = None
|
|
9175
|
+
self._PromptId = None
|
|
9176
|
+
self._PromptVersion = None
|
|
9139
9177
|
self._IntentRouters = None
|
|
9140
9178
|
self._KeyIds = None
|
|
9141
9179
|
self._Models = None
|
|
@@ -9174,6 +9212,28 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9174
9212
|
def BudgetId(self, BudgetId):
|
|
9175
9213
|
self._BudgetId = BudgetId
|
|
9176
9214
|
|
|
9215
|
+
@property
|
|
9216
|
+
def PromptId(self):
|
|
9217
|
+
r"""<p>建组时绑定的 Prompt 资源 ID(pmt-xxx,须为该实例下已存在的 Prompt)。与 PromptVersion 必须成对传入,仅传其一将返回错误。不传表示默认不绑定 Prompt,可建组后再调用 ModifyUserGroupPrompt 绑定或更换版本。绑定后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容。</p>
|
|
9218
|
+
:rtype: str
|
|
9219
|
+
"""
|
|
9220
|
+
return self._PromptId
|
|
9221
|
+
|
|
9222
|
+
@PromptId.setter
|
|
9223
|
+
def PromptId(self, PromptId):
|
|
9224
|
+
self._PromptId = PromptId
|
|
9225
|
+
|
|
9226
|
+
@property
|
|
9227
|
+
def PromptVersion(self):
|
|
9228
|
+
r"""<p>绑定的 Prompt 版本号(如 v1、v2,由 CreatePrompt / CreatePromptVersion 生成,长度不超过16个字符),与 PromptId 必须成对传入,须为该 Prompt 下已存在的版本。版本为不可变快照,Prompt 后续新增版本不会自动生效于已绑定的用户组,需显式重新绑定新版本。一个用户组同时只关联一份 Prompt 的一个版本,重复绑定即为替换。</p>
|
|
9229
|
+
:rtype: str
|
|
9230
|
+
"""
|
|
9231
|
+
return self._PromptVersion
|
|
9232
|
+
|
|
9233
|
+
@PromptVersion.setter
|
|
9234
|
+
def PromptVersion(self, PromptVersion):
|
|
9235
|
+
self._PromptVersion = PromptVersion
|
|
9236
|
+
|
|
9177
9237
|
@property
|
|
9178
9238
|
def IntentRouters(self):
|
|
9179
9239
|
r"""<p>用户组意图路由白名单(ir-xxx)。每一项须为该实例已创建的意图路由名。命中意图路由名时其内部真实模型自动豁免白名单。为空表示不授权任何意图路由。</p>
|
|
@@ -9223,6 +9283,8 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9223
9283
|
self._ModelRouterId = params.get("ModelRouterId")
|
|
9224
9284
|
self._UserGroupName = params.get("UserGroupName")
|
|
9225
9285
|
self._BudgetId = params.get("BudgetId")
|
|
9286
|
+
self._PromptId = params.get("PromptId")
|
|
9287
|
+
self._PromptVersion = params.get("PromptVersion")
|
|
9226
9288
|
self._IntentRouters = params.get("IntentRouters")
|
|
9227
9289
|
self._KeyIds = params.get("KeyIds")
|
|
9228
9290
|
self._Models = params.get("Models")
|
|
@@ -20124,6 +20186,95 @@ class IdleLoadBalancer(AbstractModel):
|
|
|
20124
20186
|
|
|
20125
20187
|
|
|
20126
20188
|
|
|
20189
|
+
class ImageConfig(AbstractModel):
|
|
20190
|
+
r"""video配置。
|
|
20191
|
+
|
|
20192
|
+
"""
|
|
20193
|
+
|
|
20194
|
+
def __init__(self):
|
|
20195
|
+
r"""
|
|
20196
|
+
:param _RoutingStrategy: <p>模型内路由策略</p>
|
|
20197
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20198
|
+
:type RoutingStrategy: str
|
|
20199
|
+
:param _RoutingStrategyArgs: <p>路由参数</p>
|
|
20200
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20201
|
+
:type RoutingStrategyArgs: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
20202
|
+
:param _NumRetries: <p>同一模型请求重试次数</p>
|
|
20203
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20204
|
+
:type NumRetries: int
|
|
20205
|
+
:param _WaitSeconds: <p>同步超时时间</p><p>取值范围:[0, 60]</p><p>单位:秒</p>
|
|
20206
|
+
:type WaitSeconds: int
|
|
20207
|
+
"""
|
|
20208
|
+
self._RoutingStrategy = None
|
|
20209
|
+
self._RoutingStrategyArgs = None
|
|
20210
|
+
self._NumRetries = None
|
|
20211
|
+
self._WaitSeconds = None
|
|
20212
|
+
|
|
20213
|
+
@property
|
|
20214
|
+
def RoutingStrategy(self):
|
|
20215
|
+
r"""<p>模型内路由策略</p>
|
|
20216
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20217
|
+
:rtype: str
|
|
20218
|
+
"""
|
|
20219
|
+
return self._RoutingStrategy
|
|
20220
|
+
|
|
20221
|
+
@RoutingStrategy.setter
|
|
20222
|
+
def RoutingStrategy(self, RoutingStrategy):
|
|
20223
|
+
self._RoutingStrategy = RoutingStrategy
|
|
20224
|
+
|
|
20225
|
+
@property
|
|
20226
|
+
def RoutingStrategyArgs(self):
|
|
20227
|
+
r"""<p>路由参数</p>
|
|
20228
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20229
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.RoutingStrategyArgs`
|
|
20230
|
+
"""
|
|
20231
|
+
return self._RoutingStrategyArgs
|
|
20232
|
+
|
|
20233
|
+
@RoutingStrategyArgs.setter
|
|
20234
|
+
def RoutingStrategyArgs(self, RoutingStrategyArgs):
|
|
20235
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs
|
|
20236
|
+
|
|
20237
|
+
@property
|
|
20238
|
+
def NumRetries(self):
|
|
20239
|
+
r"""<p>同一模型请求重试次数</p>
|
|
20240
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
20241
|
+
:rtype: int
|
|
20242
|
+
"""
|
|
20243
|
+
return self._NumRetries
|
|
20244
|
+
|
|
20245
|
+
@NumRetries.setter
|
|
20246
|
+
def NumRetries(self, NumRetries):
|
|
20247
|
+
self._NumRetries = NumRetries
|
|
20248
|
+
|
|
20249
|
+
@property
|
|
20250
|
+
def WaitSeconds(self):
|
|
20251
|
+
r"""<p>同步超时时间</p><p>取值范围:[0, 60]</p><p>单位:秒</p>
|
|
20252
|
+
:rtype: int
|
|
20253
|
+
"""
|
|
20254
|
+
return self._WaitSeconds
|
|
20255
|
+
|
|
20256
|
+
@WaitSeconds.setter
|
|
20257
|
+
def WaitSeconds(self, WaitSeconds):
|
|
20258
|
+
self._WaitSeconds = WaitSeconds
|
|
20259
|
+
|
|
20260
|
+
|
|
20261
|
+
def _deserialize(self, params):
|
|
20262
|
+
self._RoutingStrategy = params.get("RoutingStrategy")
|
|
20263
|
+
if params.get("RoutingStrategyArgs") is not None:
|
|
20264
|
+
self._RoutingStrategyArgs = RoutingStrategyArgs()
|
|
20265
|
+
self._RoutingStrategyArgs._deserialize(params.get("RoutingStrategyArgs"))
|
|
20266
|
+
self._NumRetries = params.get("NumRetries")
|
|
20267
|
+
self._WaitSeconds = params.get("WaitSeconds")
|
|
20268
|
+
memeber_set = set(params.keys())
|
|
20269
|
+
for name, value in vars(self).items():
|
|
20270
|
+
property_name = name[1:]
|
|
20271
|
+
if property_name in memeber_set:
|
|
20272
|
+
memeber_set.remove(property_name)
|
|
20273
|
+
if len(memeber_set) > 0:
|
|
20274
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20275
|
+
|
|
20276
|
+
|
|
20277
|
+
|
|
20127
20278
|
class InputKeyInfo(AbstractModel):
|
|
20128
20279
|
r"""创建Key的信息
|
|
20129
20280
|
|
|
@@ -26414,6 +26565,8 @@ class ModelRouterDetail(AbstractModel):
|
|
|
26414
26565
|
:type RerankConfig: :class:`tencentcloud.clb.v20180317.models.RerankConfig`
|
|
26415
26566
|
:param _DecisionsConfig: <p>决策模型设置</p>
|
|
26416
26567
|
:type DecisionsConfig: :class:`tencentcloud.clb.v20180317.models.DecisionsConfig`
|
|
26568
|
+
:param _ImageConfig: <p>Images 生图配置</p>
|
|
26569
|
+
:type ImageConfig: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
26417
26570
|
"""
|
|
26418
26571
|
self._BudgetId = None
|
|
26419
26572
|
self._BudgetName = None
|
|
@@ -26445,6 +26598,7 @@ class ModelRouterDetail(AbstractModel):
|
|
|
26445
26598
|
self._VideoConfig = None
|
|
26446
26599
|
self._RerankConfig = None
|
|
26447
26600
|
self._DecisionsConfig = None
|
|
26601
|
+
self._ImageConfig = None
|
|
26448
26602
|
|
|
26449
26603
|
@property
|
|
26450
26604
|
def BudgetId(self):
|
|
@@ -26782,6 +26936,17 @@ class ModelRouterDetail(AbstractModel):
|
|
|
26782
26936
|
def DecisionsConfig(self, DecisionsConfig):
|
|
26783
26937
|
self._DecisionsConfig = DecisionsConfig
|
|
26784
26938
|
|
|
26939
|
+
@property
|
|
26940
|
+
def ImageConfig(self):
|
|
26941
|
+
r"""<p>Images 生图配置</p>
|
|
26942
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
26943
|
+
"""
|
|
26944
|
+
return self._ImageConfig
|
|
26945
|
+
|
|
26946
|
+
@ImageConfig.setter
|
|
26947
|
+
def ImageConfig(self, ImageConfig):
|
|
26948
|
+
self._ImageConfig = ImageConfig
|
|
26949
|
+
|
|
26785
26950
|
|
|
26786
26951
|
def _deserialize(self, params):
|
|
26787
26952
|
self._BudgetId = params.get("BudgetId")
|
|
@@ -26845,6 +27010,9 @@ class ModelRouterDetail(AbstractModel):
|
|
|
26845
27010
|
if params.get("DecisionsConfig") is not None:
|
|
26846
27011
|
self._DecisionsConfig = DecisionsConfig()
|
|
26847
27012
|
self._DecisionsConfig._deserialize(params.get("DecisionsConfig"))
|
|
27013
|
+
if params.get("ImageConfig") is not None:
|
|
27014
|
+
self._ImageConfig = ImageConfig()
|
|
27015
|
+
self._ImageConfig._deserialize(params.get("ImageConfig"))
|
|
26848
27016
|
memeber_set = set(params.keys())
|
|
26849
27017
|
for name, value in vars(self).items():
|
|
26850
27018
|
property_name = name[1:]
|
|
@@ -30582,6 +30750,8 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
30582
30750
|
:type RerankConfig: :class:`tencentcloud.clb.v20180317.models.RerankConfig`
|
|
30583
30751
|
:param _DecisionsConfig: <p>Decisions 调度配置</p>
|
|
30584
30752
|
:type DecisionsConfig: :class:`tencentcloud.clb.v20180317.models.DecisionsConfig`
|
|
30753
|
+
:param _ImageConfig: <p>Images 生图配置</p>
|
|
30754
|
+
:type ImageConfig: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
30585
30755
|
"""
|
|
30586
30756
|
self._ModelRouterId = None
|
|
30587
30757
|
self._CertId = None
|
|
@@ -30594,6 +30764,7 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
30594
30764
|
self._VideoConfig = None
|
|
30595
30765
|
self._RerankConfig = None
|
|
30596
30766
|
self._DecisionsConfig = None
|
|
30767
|
+
self._ImageConfig = None
|
|
30597
30768
|
|
|
30598
30769
|
@property
|
|
30599
30770
|
def ModelRouterId(self):
|
|
@@ -30716,6 +30887,17 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
30716
30887
|
def DecisionsConfig(self, DecisionsConfig):
|
|
30717
30888
|
self._DecisionsConfig = DecisionsConfig
|
|
30718
30889
|
|
|
30890
|
+
@property
|
|
30891
|
+
def ImageConfig(self):
|
|
30892
|
+
r"""<p>Images 生图配置</p>
|
|
30893
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.ImageConfig`
|
|
30894
|
+
"""
|
|
30895
|
+
return self._ImageConfig
|
|
30896
|
+
|
|
30897
|
+
@ImageConfig.setter
|
|
30898
|
+
def ImageConfig(self, ImageConfig):
|
|
30899
|
+
self._ImageConfig = ImageConfig
|
|
30900
|
+
|
|
30719
30901
|
|
|
30720
30902
|
def _deserialize(self, params):
|
|
30721
30903
|
self._ModelRouterId = params.get("ModelRouterId")
|
|
@@ -30741,6 +30923,9 @@ class ModifyModelRouterAttributesRequest(AbstractModel):
|
|
|
30741
30923
|
if params.get("DecisionsConfig") is not None:
|
|
30742
30924
|
self._DecisionsConfig = DecisionsConfig()
|
|
30743
30925
|
self._DecisionsConfig._deserialize(params.get("DecisionsConfig"))
|
|
30926
|
+
if params.get("ImageConfig") is not None:
|
|
30927
|
+
self._ImageConfig = ImageConfig()
|
|
30928
|
+
self._ImageConfig._deserialize(params.get("ImageConfig"))
|
|
30744
30929
|
memeber_set = set(params.keys())
|
|
30745
30930
|
for name, value in vars(self).items():
|
|
30746
30931
|
property_name = name[1:]
|
|
@@ -36216,6 +36401,8 @@ class ServiceProviderHealthCheckConfigItemInput(AbstractModel):
|
|
|
36216
36401
|
:type HealthCheckPath: str
|
|
36217
36402
|
:param _HealthCheckMethod: <p>健康检查方式。</p><p>枚举值:</p><ul><li>Service: 探测服务可用性</li><li>Model: 探测模型可用性</li></ul>
|
|
36218
36403
|
:type HealthCheckMethod: str
|
|
36404
|
+
:param _HealthCheckTimeout: <p>健康检查超时时间</p><p>取值范围:[1, 60]</p><p>单位:秒</p>
|
|
36405
|
+
:type HealthCheckTimeout: int
|
|
36219
36406
|
"""
|
|
36220
36407
|
self._HealthCheckEnabled = None
|
|
36221
36408
|
self._HealthCheckInterval = None
|
|
@@ -36224,6 +36411,7 @@ class ServiceProviderHealthCheckConfigItemInput(AbstractModel):
|
|
|
36224
36411
|
self._HealthCheckProtocol = None
|
|
36225
36412
|
self._HealthCheckPath = None
|
|
36226
36413
|
self._HealthCheckMethod = None
|
|
36414
|
+
self._HealthCheckTimeout = None
|
|
36227
36415
|
|
|
36228
36416
|
@property
|
|
36229
36417
|
def HealthCheckEnabled(self):
|
|
@@ -36302,6 +36490,17 @@ class ServiceProviderHealthCheckConfigItemInput(AbstractModel):
|
|
|
36302
36490
|
def HealthCheckMethod(self, HealthCheckMethod):
|
|
36303
36491
|
self._HealthCheckMethod = HealthCheckMethod
|
|
36304
36492
|
|
|
36493
|
+
@property
|
|
36494
|
+
def HealthCheckTimeout(self):
|
|
36495
|
+
r"""<p>健康检查超时时间</p><p>取值范围:[1, 60]</p><p>单位:秒</p>
|
|
36496
|
+
:rtype: int
|
|
36497
|
+
"""
|
|
36498
|
+
return self._HealthCheckTimeout
|
|
36499
|
+
|
|
36500
|
+
@HealthCheckTimeout.setter
|
|
36501
|
+
def HealthCheckTimeout(self, HealthCheckTimeout):
|
|
36502
|
+
self._HealthCheckTimeout = HealthCheckTimeout
|
|
36503
|
+
|
|
36305
36504
|
|
|
36306
36505
|
def _deserialize(self, params):
|
|
36307
36506
|
self._HealthCheckEnabled = params.get("HealthCheckEnabled")
|
|
@@ -36311,6 +36510,7 @@ class ServiceProviderHealthCheckConfigItemInput(AbstractModel):
|
|
|
36311
36510
|
self._HealthCheckProtocol = params.get("HealthCheckProtocol")
|
|
36312
36511
|
self._HealthCheckPath = params.get("HealthCheckPath")
|
|
36313
36512
|
self._HealthCheckMethod = params.get("HealthCheckMethod")
|
|
36513
|
+
self._HealthCheckTimeout = params.get("HealthCheckTimeout")
|
|
36314
36514
|
memeber_set = set(params.keys())
|
|
36315
36515
|
for name, value in vars(self).items():
|
|
36316
36516
|
property_name = name[1:]
|
|
@@ -36344,6 +36544,8 @@ class ServiceProviderHealthCheckConfigItemOutput(AbstractModel):
|
|
|
36344
36544
|
:type HealthCheckPath: str
|
|
36345
36545
|
:param _HealthCheckMethod: <p>健康检查方式。</p>
|
|
36346
36546
|
:type HealthCheckMethod: str
|
|
36547
|
+
:param _HealthCheckTimeout: <p>健康检查超时时间</p><p>单位:秒</p><p>默认值:15</p>
|
|
36548
|
+
:type HealthCheckTimeout: int
|
|
36347
36549
|
"""
|
|
36348
36550
|
self._HealthCheckEnabled = None
|
|
36349
36551
|
self._HealthCheckInterval = None
|
|
@@ -36352,6 +36554,7 @@ class ServiceProviderHealthCheckConfigItemOutput(AbstractModel):
|
|
|
36352
36554
|
self._HealthCheckProtocol = None
|
|
36353
36555
|
self._HealthCheckPath = None
|
|
36354
36556
|
self._HealthCheckMethod = None
|
|
36557
|
+
self._HealthCheckTimeout = None
|
|
36355
36558
|
|
|
36356
36559
|
@property
|
|
36357
36560
|
def HealthCheckEnabled(self):
|
|
@@ -36432,6 +36635,17 @@ class ServiceProviderHealthCheckConfigItemOutput(AbstractModel):
|
|
|
36432
36635
|
def HealthCheckMethod(self, HealthCheckMethod):
|
|
36433
36636
|
self._HealthCheckMethod = HealthCheckMethod
|
|
36434
36637
|
|
|
36638
|
+
@property
|
|
36639
|
+
def HealthCheckTimeout(self):
|
|
36640
|
+
r"""<p>健康检查超时时间</p><p>单位:秒</p><p>默认值:15</p>
|
|
36641
|
+
:rtype: int
|
|
36642
|
+
"""
|
|
36643
|
+
return self._HealthCheckTimeout
|
|
36644
|
+
|
|
36645
|
+
@HealthCheckTimeout.setter
|
|
36646
|
+
def HealthCheckTimeout(self, HealthCheckTimeout):
|
|
36647
|
+
self._HealthCheckTimeout = HealthCheckTimeout
|
|
36648
|
+
|
|
36435
36649
|
|
|
36436
36650
|
def _deserialize(self, params):
|
|
36437
36651
|
self._HealthCheckEnabled = params.get("HealthCheckEnabled")
|
|
@@ -36441,6 +36655,7 @@ class ServiceProviderHealthCheckConfigItemOutput(AbstractModel):
|
|
|
36441
36655
|
self._HealthCheckProtocol = params.get("HealthCheckProtocol")
|
|
36442
36656
|
self._HealthCheckPath = params.get("HealthCheckPath")
|
|
36443
36657
|
self._HealthCheckMethod = params.get("HealthCheckMethod")
|
|
36658
|
+
self._HealthCheckTimeout = params.get("HealthCheckTimeout")
|
|
36444
36659
|
memeber_set = set(params.keys())
|
|
36445
36660
|
for name, value in vars(self).items():
|
|
36446
36661
|
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.192
|
|
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.192
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.192
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.182
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|