tencentcloud-sdk-python-tione 3.1.157__tar.gz → 3.1.163__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_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/setup.py +1 -1
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20211111/models.py +216 -50
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud_sdk_python_tione.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tione-3.1.163/tencentcloud_sdk_python_tione.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tione-3.1.157/tencentcloud_sdk_python_tione.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/README.rst +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/__init__.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20191022/__init__.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20191022/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20191022/models.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20191022/tione_client.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20191022/tione_client_async.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20211111/__init__.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20211111/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20211111/tione_client.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud/tione/v20211111/tione_client_async.py +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud_sdk_python_tione.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud_sdk_python_tione.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tione-3.1.157 → tencentcloud_sdk_python_tione-3.1.163}/tencentcloud_sdk_python_tione.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tione
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.163
|
|
4
4
|
Summary: Tencent Cloud Tione 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.163
|
|
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-tione',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.163,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tione SDK for Python',
|
|
@@ -1067,28 +1067,29 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1067
1067
|
|
|
1068
1068
|
def __init__(self):
|
|
1069
1069
|
r"""
|
|
1070
|
-
:param _Model:
|
|
1071
|
-
自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。
|
|
1070
|
+
:param _Model: <p>对话的目标模型ID。<br>自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。</p>
|
|
1072
1071
|
:type Model: str
|
|
1073
|
-
:param _Messages:
|
|
1072
|
+
:param _Messages: <p>输入对话历史。旧的对话在前,数组中最后一项应该为这次的问题。</p>
|
|
1074
1073
|
:type Messages: list of Message
|
|
1075
|
-
:param
|
|
1074
|
+
:param _TiProjectId: <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
1075
|
+
:type TiProjectId: str
|
|
1076
|
+
:param _Temperature: <p>仅当模型为自行部署的开源大模型时生效。采样随机值,默认值为0.7,取值范围[0,2]。较高的值(如0.8)将使输出更加随机,而较低的值(如0.2)将使输出更加确定。建议仅修改此参数或TopP,但不建议两者都修改。</p>
|
|
1076
1077
|
:type Temperature: float
|
|
1077
|
-
:param _TopP:
|
|
1078
|
+
:param _TopP: <p>仅当模型为自行部署的开源大模型时生效。核采样,默认值为1,取值范围[0,1]。指的是预先设置一个概率界限 p,然后将所有可能生成的token,根据概率大小从高到低排列,依次选取。当这些选取的token的累积概率大于或等于 p 值时停止,然后从已经选取的token中进行采样,生成下一个token。例如top_p为0.1时意味着模型只考虑累积概率为10%的token。建议仅修改此参数或Temperature,不建议两者都修改。</p>
|
|
1078
1079
|
:type TopP: float
|
|
1079
|
-
:param _MaxTokens:
|
|
1080
|
+
:param _MaxTokens: <p>仅当模型为自行部署的开源大模型时生效。默认 512,模型可生成内容的最长 token 数量,最大不能超过模型支持的上下文长度。</p>
|
|
1080
1081
|
:type MaxTokens: int
|
|
1081
1082
|
"""
|
|
1082
1083
|
self._Model = None
|
|
1083
1084
|
self._Messages = None
|
|
1085
|
+
self._TiProjectId = None
|
|
1084
1086
|
self._Temperature = None
|
|
1085
1087
|
self._TopP = None
|
|
1086
1088
|
self._MaxTokens = None
|
|
1087
1089
|
|
|
1088
1090
|
@property
|
|
1089
1091
|
def Model(self):
|
|
1090
|
-
r"""
|
|
1091
|
-
自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。
|
|
1092
|
+
r"""<p>对话的目标模型ID。<br>自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。</p>
|
|
1092
1093
|
:rtype: str
|
|
1093
1094
|
"""
|
|
1094
1095
|
return self._Model
|
|
@@ -1099,7 +1100,7 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1099
1100
|
|
|
1100
1101
|
@property
|
|
1101
1102
|
def Messages(self):
|
|
1102
|
-
r"""
|
|
1103
|
+
r"""<p>输入对话历史。旧的对话在前,数组中最后一项应该为这次的问题。</p>
|
|
1103
1104
|
:rtype: list of Message
|
|
1104
1105
|
"""
|
|
1105
1106
|
return self._Messages
|
|
@@ -1108,9 +1109,20 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1108
1109
|
def Messages(self, Messages):
|
|
1109
1110
|
self._Messages = Messages
|
|
1110
1111
|
|
|
1112
|
+
@property
|
|
1113
|
+
def TiProjectId(self):
|
|
1114
|
+
r"""<p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
1115
|
+
:rtype: str
|
|
1116
|
+
"""
|
|
1117
|
+
return self._TiProjectId
|
|
1118
|
+
|
|
1119
|
+
@TiProjectId.setter
|
|
1120
|
+
def TiProjectId(self, TiProjectId):
|
|
1121
|
+
self._TiProjectId = TiProjectId
|
|
1122
|
+
|
|
1111
1123
|
@property
|
|
1112
1124
|
def Temperature(self):
|
|
1113
|
-
r"""
|
|
1125
|
+
r"""<p>仅当模型为自行部署的开源大模型时生效。采样随机值,默认值为0.7,取值范围[0,2]。较高的值(如0.8)将使输出更加随机,而较低的值(如0.2)将使输出更加确定。建议仅修改此参数或TopP,但不建议两者都修改。</p>
|
|
1114
1126
|
:rtype: float
|
|
1115
1127
|
"""
|
|
1116
1128
|
return self._Temperature
|
|
@@ -1121,7 +1133,7 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1121
1133
|
|
|
1122
1134
|
@property
|
|
1123
1135
|
def TopP(self):
|
|
1124
|
-
r"""
|
|
1136
|
+
r"""<p>仅当模型为自行部署的开源大模型时生效。核采样,默认值为1,取值范围[0,1]。指的是预先设置一个概率界限 p,然后将所有可能生成的token,根据概率大小从高到低排列,依次选取。当这些选取的token的累积概率大于或等于 p 值时停止,然后从已经选取的token中进行采样,生成下一个token。例如top_p为0.1时意味着模型只考虑累积概率为10%的token。建议仅修改此参数或Temperature,不建议两者都修改。</p>
|
|
1125
1137
|
:rtype: float
|
|
1126
1138
|
"""
|
|
1127
1139
|
return self._TopP
|
|
@@ -1132,7 +1144,7 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1132
1144
|
|
|
1133
1145
|
@property
|
|
1134
1146
|
def MaxTokens(self):
|
|
1135
|
-
r"""
|
|
1147
|
+
r"""<p>仅当模型为自行部署的开源大模型时生效。默认 512,模型可生成内容的最长 token 数量,最大不能超过模型支持的上下文长度。</p>
|
|
1136
1148
|
:rtype: int
|
|
1137
1149
|
"""
|
|
1138
1150
|
return self._MaxTokens
|
|
@@ -1150,6 +1162,7 @@ class ChatCompletionRequest(AbstractModel):
|
|
|
1150
1162
|
obj = Message()
|
|
1151
1163
|
obj._deserialize(item)
|
|
1152
1164
|
self._Messages.append(obj)
|
|
1165
|
+
self._TiProjectId = params.get("TiProjectId")
|
|
1153
1166
|
self._Temperature = params.get("Temperature")
|
|
1154
1167
|
self._TopP = params.get("TopP")
|
|
1155
1168
|
self._MaxTokens = params.get("MaxTokens")
|
|
@@ -1170,13 +1183,13 @@ class ChatCompletionResponse(AbstractModel):
|
|
|
1170
1183
|
|
|
1171
1184
|
def __init__(self):
|
|
1172
1185
|
r"""
|
|
1173
|
-
:param _Model:
|
|
1186
|
+
:param _Model: <p>对话的模型服务组ID</p>
|
|
1174
1187
|
:type Model: str
|
|
1175
|
-
:param _Choices:
|
|
1188
|
+
:param _Choices: <p>本次问答的答案。</p>
|
|
1176
1189
|
:type Choices: list of Choice
|
|
1177
|
-
:param _Id:
|
|
1190
|
+
:param _Id: <p>会话Id。</p>
|
|
1178
1191
|
:type Id: str
|
|
1179
|
-
:param _Usage: token
|
|
1192
|
+
:param _Usage: <p>token统计</p>
|
|
1180
1193
|
:type Usage: :class:`tencentcloud.tione.v20211111.models.Usage`
|
|
1181
1194
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1182
1195
|
:type RequestId: str
|
|
@@ -1189,7 +1202,7 @@ class ChatCompletionResponse(AbstractModel):
|
|
|
1189
1202
|
|
|
1190
1203
|
@property
|
|
1191
1204
|
def Model(self):
|
|
1192
|
-
r"""
|
|
1205
|
+
r"""<p>对话的模型服务组ID</p>
|
|
1193
1206
|
:rtype: str
|
|
1194
1207
|
"""
|
|
1195
1208
|
return self._Model
|
|
@@ -1200,7 +1213,7 @@ class ChatCompletionResponse(AbstractModel):
|
|
|
1200
1213
|
|
|
1201
1214
|
@property
|
|
1202
1215
|
def Choices(self):
|
|
1203
|
-
r"""
|
|
1216
|
+
r"""<p>本次问答的答案。</p>
|
|
1204
1217
|
:rtype: list of Choice
|
|
1205
1218
|
"""
|
|
1206
1219
|
return self._Choices
|
|
@@ -1211,7 +1224,7 @@ class ChatCompletionResponse(AbstractModel):
|
|
|
1211
1224
|
|
|
1212
1225
|
@property
|
|
1213
1226
|
def Id(self):
|
|
1214
|
-
r"""
|
|
1227
|
+
r"""<p>会话Id。</p>
|
|
1215
1228
|
:rtype: str
|
|
1216
1229
|
"""
|
|
1217
1230
|
return self._Id
|
|
@@ -1222,7 +1235,7 @@ class ChatCompletionResponse(AbstractModel):
|
|
|
1222
1235
|
|
|
1223
1236
|
@property
|
|
1224
1237
|
def Usage(self):
|
|
1225
|
-
r"""token
|
|
1238
|
+
r"""<p>token统计</p>
|
|
1226
1239
|
:rtype: :class:`tencentcloud.tione.v20211111.models.Usage`
|
|
1227
1240
|
"""
|
|
1228
1241
|
return self._Usage
|
|
@@ -2350,20 +2363,23 @@ class CreateModelServiceAuthTokenRequest(AbstractModel):
|
|
|
2350
2363
|
|
|
2351
2364
|
def __init__(self):
|
|
2352
2365
|
r"""
|
|
2353
|
-
:param _ServiceGroupId:
|
|
2366
|
+
:param _ServiceGroupId: <p>服务组 id</p>
|
|
2354
2367
|
:type ServiceGroupId: str
|
|
2355
|
-
:param
|
|
2368
|
+
:param _TiProjectId: <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
2369
|
+
:type TiProjectId: str
|
|
2370
|
+
:param _Name: <p>token 名称</p>
|
|
2356
2371
|
:type Name: str
|
|
2357
|
-
:param _Description: Description
|
|
2372
|
+
:param _Description: <p>Description 描述</p>
|
|
2358
2373
|
:type Description: str
|
|
2359
2374
|
"""
|
|
2360
2375
|
self._ServiceGroupId = None
|
|
2376
|
+
self._TiProjectId = None
|
|
2361
2377
|
self._Name = None
|
|
2362
2378
|
self._Description = None
|
|
2363
2379
|
|
|
2364
2380
|
@property
|
|
2365
2381
|
def ServiceGroupId(self):
|
|
2366
|
-
r"""
|
|
2382
|
+
r"""<p>服务组 id</p>
|
|
2367
2383
|
:rtype: str
|
|
2368
2384
|
"""
|
|
2369
2385
|
return self._ServiceGroupId
|
|
@@ -2372,9 +2388,20 @@ class CreateModelServiceAuthTokenRequest(AbstractModel):
|
|
|
2372
2388
|
def ServiceGroupId(self, ServiceGroupId):
|
|
2373
2389
|
self._ServiceGroupId = ServiceGroupId
|
|
2374
2390
|
|
|
2391
|
+
@property
|
|
2392
|
+
def TiProjectId(self):
|
|
2393
|
+
r"""<p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
2394
|
+
:rtype: str
|
|
2395
|
+
"""
|
|
2396
|
+
return self._TiProjectId
|
|
2397
|
+
|
|
2398
|
+
@TiProjectId.setter
|
|
2399
|
+
def TiProjectId(self, TiProjectId):
|
|
2400
|
+
self._TiProjectId = TiProjectId
|
|
2401
|
+
|
|
2375
2402
|
@property
|
|
2376
2403
|
def Name(self):
|
|
2377
|
-
r"""token
|
|
2404
|
+
r"""<p>token 名称</p>
|
|
2378
2405
|
:rtype: str
|
|
2379
2406
|
"""
|
|
2380
2407
|
return self._Name
|
|
@@ -2385,7 +2412,7 @@ class CreateModelServiceAuthTokenRequest(AbstractModel):
|
|
|
2385
2412
|
|
|
2386
2413
|
@property
|
|
2387
2414
|
def Description(self):
|
|
2388
|
-
r"""Description
|
|
2415
|
+
r"""<p>Description 描述</p>
|
|
2389
2416
|
:rtype: str
|
|
2390
2417
|
"""
|
|
2391
2418
|
return self._Description
|
|
@@ -2397,6 +2424,7 @@ class CreateModelServiceAuthTokenRequest(AbstractModel):
|
|
|
2397
2424
|
|
|
2398
2425
|
def _deserialize(self, params):
|
|
2399
2426
|
self._ServiceGroupId = params.get("ServiceGroupId")
|
|
2427
|
+
self._TiProjectId = params.get("TiProjectId")
|
|
2400
2428
|
self._Name = params.get("Name")
|
|
2401
2429
|
self._Description = params.get("Description")
|
|
2402
2430
|
memeber_set = set(params.keys())
|
|
@@ -7292,17 +7320,20 @@ class DeleteModelServiceAuthTokenRequest(AbstractModel):
|
|
|
7292
7320
|
|
|
7293
7321
|
def __init__(self):
|
|
7294
7322
|
r"""
|
|
7295
|
-
:param _ServiceGroupId:
|
|
7323
|
+
:param _ServiceGroupId: <p>服务组 id</p>
|
|
7296
7324
|
:type ServiceGroupId: str
|
|
7297
|
-
:param
|
|
7325
|
+
:param _TiProjectId: <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
7326
|
+
:type TiProjectId: str
|
|
7327
|
+
:param _AuthTokenValue: <p>token 值</p>
|
|
7298
7328
|
:type AuthTokenValue: str
|
|
7299
7329
|
"""
|
|
7300
7330
|
self._ServiceGroupId = None
|
|
7331
|
+
self._TiProjectId = None
|
|
7301
7332
|
self._AuthTokenValue = None
|
|
7302
7333
|
|
|
7303
7334
|
@property
|
|
7304
7335
|
def ServiceGroupId(self):
|
|
7305
|
-
r"""
|
|
7336
|
+
r"""<p>服务组 id</p>
|
|
7306
7337
|
:rtype: str
|
|
7307
7338
|
"""
|
|
7308
7339
|
return self._ServiceGroupId
|
|
@@ -7311,9 +7342,20 @@ class DeleteModelServiceAuthTokenRequest(AbstractModel):
|
|
|
7311
7342
|
def ServiceGroupId(self, ServiceGroupId):
|
|
7312
7343
|
self._ServiceGroupId = ServiceGroupId
|
|
7313
7344
|
|
|
7345
|
+
@property
|
|
7346
|
+
def TiProjectId(self):
|
|
7347
|
+
r"""<p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
7348
|
+
:rtype: str
|
|
7349
|
+
"""
|
|
7350
|
+
return self._TiProjectId
|
|
7351
|
+
|
|
7352
|
+
@TiProjectId.setter
|
|
7353
|
+
def TiProjectId(self, TiProjectId):
|
|
7354
|
+
self._TiProjectId = TiProjectId
|
|
7355
|
+
|
|
7314
7356
|
@property
|
|
7315
7357
|
def AuthTokenValue(self):
|
|
7316
|
-
r"""token
|
|
7358
|
+
r"""<p>token 值</p>
|
|
7317
7359
|
:rtype: str
|
|
7318
7360
|
"""
|
|
7319
7361
|
return self._AuthTokenValue
|
|
@@ -7325,6 +7367,7 @@ class DeleteModelServiceAuthTokenRequest(AbstractModel):
|
|
|
7325
7367
|
|
|
7326
7368
|
def _deserialize(self, params):
|
|
7327
7369
|
self._ServiceGroupId = params.get("ServiceGroupId")
|
|
7370
|
+
self._TiProjectId = params.get("TiProjectId")
|
|
7328
7371
|
self._AuthTokenValue = params.get("AuthTokenValue")
|
|
7329
7372
|
memeber_set = set(params.keys())
|
|
7330
7373
|
for name, value in vars(self).items():
|
|
@@ -15403,25 +15446,28 @@ class ImageInfo(AbstractModel):
|
|
|
15403
15446
|
|
|
15404
15447
|
def __init__(self):
|
|
15405
15448
|
r"""
|
|
15406
|
-
:param _ImageType:
|
|
15449
|
+
:param _ImageType: <p>镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像,CUSTOM为第三方自定义镜像</p>
|
|
15407
15450
|
:type ImageType: str
|
|
15408
|
-
:param _ImageUrl:
|
|
15451
|
+
:param _ImageUrl: <p>镜像地址</p>
|
|
15409
15452
|
:type ImageUrl: str
|
|
15410
|
-
:param _RegistryRegion: TCR
|
|
15453
|
+
:param _RegistryRegion: <p>TCR镜像对应的地域</p>
|
|
15411
15454
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15412
15455
|
:type RegistryRegion: str
|
|
15413
|
-
:param _RegistryId: TCR镜像对应的实例id
|
|
15456
|
+
:param _RegistryId: <p>TCR镜像对应的实例id</p>
|
|
15414
15457
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15415
15458
|
:type RegistryId: str
|
|
15416
|
-
:param _AllowSaveAllContent:
|
|
15459
|
+
:param _AllowSaveAllContent: <p>是否允许导出全部内容</p>
|
|
15417
15460
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15418
15461
|
:type AllowSaveAllContent: bool
|
|
15419
|
-
:param _ImageName:
|
|
15462
|
+
:param _ImageName: <p>镜像名称</p>
|
|
15420
15463
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15421
15464
|
:type ImageName: str
|
|
15422
|
-
:param _SupportDataPipeline:
|
|
15465
|
+
:param _SupportDataPipeline: <p>是否支持数据构建</p>
|
|
15423
15466
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15424
15467
|
:type SupportDataPipeline: bool
|
|
15468
|
+
:param _ImageSecret: <p>镜像仓库用户名密码信息(仅当ImageType为CUSTOM第三方镜像的时候需要)</p>
|
|
15469
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15470
|
+
:type ImageSecret: :class:`tencentcloud.tione.v20211111.models.ImageSecret`
|
|
15425
15471
|
"""
|
|
15426
15472
|
self._ImageType = None
|
|
15427
15473
|
self._ImageUrl = None
|
|
@@ -15430,10 +15476,11 @@ class ImageInfo(AbstractModel):
|
|
|
15430
15476
|
self._AllowSaveAllContent = None
|
|
15431
15477
|
self._ImageName = None
|
|
15432
15478
|
self._SupportDataPipeline = None
|
|
15479
|
+
self._ImageSecret = None
|
|
15433
15480
|
|
|
15434
15481
|
@property
|
|
15435
15482
|
def ImageType(self):
|
|
15436
|
-
r"""
|
|
15483
|
+
r"""<p>镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像,CUSTOM为第三方自定义镜像</p>
|
|
15437
15484
|
:rtype: str
|
|
15438
15485
|
"""
|
|
15439
15486
|
return self._ImageType
|
|
@@ -15444,7 +15491,7 @@ class ImageInfo(AbstractModel):
|
|
|
15444
15491
|
|
|
15445
15492
|
@property
|
|
15446
15493
|
def ImageUrl(self):
|
|
15447
|
-
r"""
|
|
15494
|
+
r"""<p>镜像地址</p>
|
|
15448
15495
|
:rtype: str
|
|
15449
15496
|
"""
|
|
15450
15497
|
return self._ImageUrl
|
|
@@ -15455,7 +15502,7 @@ class ImageInfo(AbstractModel):
|
|
|
15455
15502
|
|
|
15456
15503
|
@property
|
|
15457
15504
|
def RegistryRegion(self):
|
|
15458
|
-
r"""TCR
|
|
15505
|
+
r"""<p>TCR镜像对应的地域</p>
|
|
15459
15506
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15460
15507
|
:rtype: str
|
|
15461
15508
|
"""
|
|
@@ -15467,7 +15514,7 @@ class ImageInfo(AbstractModel):
|
|
|
15467
15514
|
|
|
15468
15515
|
@property
|
|
15469
15516
|
def RegistryId(self):
|
|
15470
|
-
r"""TCR镜像对应的实例id
|
|
15517
|
+
r"""<p>TCR镜像对应的实例id</p>
|
|
15471
15518
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15472
15519
|
:rtype: str
|
|
15473
15520
|
"""
|
|
@@ -15479,7 +15526,7 @@ class ImageInfo(AbstractModel):
|
|
|
15479
15526
|
|
|
15480
15527
|
@property
|
|
15481
15528
|
def AllowSaveAllContent(self):
|
|
15482
|
-
r"""
|
|
15529
|
+
r"""<p>是否允许导出全部内容</p>
|
|
15483
15530
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15484
15531
|
:rtype: bool
|
|
15485
15532
|
"""
|
|
@@ -15491,7 +15538,7 @@ class ImageInfo(AbstractModel):
|
|
|
15491
15538
|
|
|
15492
15539
|
@property
|
|
15493
15540
|
def ImageName(self):
|
|
15494
|
-
r"""
|
|
15541
|
+
r"""<p>镜像名称</p>
|
|
15495
15542
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15496
15543
|
:rtype: str
|
|
15497
15544
|
"""
|
|
@@ -15503,7 +15550,7 @@ class ImageInfo(AbstractModel):
|
|
|
15503
15550
|
|
|
15504
15551
|
@property
|
|
15505
15552
|
def SupportDataPipeline(self):
|
|
15506
|
-
r"""
|
|
15553
|
+
r"""<p>是否支持数据构建</p>
|
|
15507
15554
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15508
15555
|
:rtype: bool
|
|
15509
15556
|
"""
|
|
@@ -15513,6 +15560,18 @@ class ImageInfo(AbstractModel):
|
|
|
15513
15560
|
def SupportDataPipeline(self, SupportDataPipeline):
|
|
15514
15561
|
self._SupportDataPipeline = SupportDataPipeline
|
|
15515
15562
|
|
|
15563
|
+
@property
|
|
15564
|
+
def ImageSecret(self):
|
|
15565
|
+
r"""<p>镜像仓库用户名密码信息(仅当ImageType为CUSTOM第三方镜像的时候需要)</p>
|
|
15566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15567
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.ImageSecret`
|
|
15568
|
+
"""
|
|
15569
|
+
return self._ImageSecret
|
|
15570
|
+
|
|
15571
|
+
@ImageSecret.setter
|
|
15572
|
+
def ImageSecret(self, ImageSecret):
|
|
15573
|
+
self._ImageSecret = ImageSecret
|
|
15574
|
+
|
|
15516
15575
|
|
|
15517
15576
|
def _deserialize(self, params):
|
|
15518
15577
|
self._ImageType = params.get("ImageType")
|
|
@@ -15522,6 +15581,98 @@ class ImageInfo(AbstractModel):
|
|
|
15522
15581
|
self._AllowSaveAllContent = params.get("AllowSaveAllContent")
|
|
15523
15582
|
self._ImageName = params.get("ImageName")
|
|
15524
15583
|
self._SupportDataPipeline = params.get("SupportDataPipeline")
|
|
15584
|
+
if params.get("ImageSecret") is not None:
|
|
15585
|
+
self._ImageSecret = ImageSecret()
|
|
15586
|
+
self._ImageSecret._deserialize(params.get("ImageSecret"))
|
|
15587
|
+
memeber_set = set(params.keys())
|
|
15588
|
+
for name, value in vars(self).items():
|
|
15589
|
+
property_name = name[1:]
|
|
15590
|
+
if property_name in memeber_set:
|
|
15591
|
+
memeber_set.remove(property_name)
|
|
15592
|
+
if len(memeber_set) > 0:
|
|
15593
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15594
|
+
|
|
15595
|
+
|
|
15596
|
+
|
|
15597
|
+
class ImageSecret(AbstractModel):
|
|
15598
|
+
r"""自定义镜像仓库凭据
|
|
15599
|
+
|
|
15600
|
+
"""
|
|
15601
|
+
|
|
15602
|
+
def __init__(self):
|
|
15603
|
+
r"""
|
|
15604
|
+
:param _KeyId: 用于加密密码的KMS公钥ID
|
|
15605
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15606
|
+
:type KeyId: str
|
|
15607
|
+
:param _Username: 用户名
|
|
15608
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15609
|
+
:type Username: str
|
|
15610
|
+
:param _Password: 密码,base64编码; 当keyId不为空时,密码是加密后的
|
|
15611
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15612
|
+
:type Password: str
|
|
15613
|
+
:param _SecretId: 用户凭据ID
|
|
15614
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15615
|
+
:type SecretId: str
|
|
15616
|
+
"""
|
|
15617
|
+
self._KeyId = None
|
|
15618
|
+
self._Username = None
|
|
15619
|
+
self._Password = None
|
|
15620
|
+
self._SecretId = None
|
|
15621
|
+
|
|
15622
|
+
@property
|
|
15623
|
+
def KeyId(self):
|
|
15624
|
+
r"""用于加密密码的KMS公钥ID
|
|
15625
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15626
|
+
:rtype: str
|
|
15627
|
+
"""
|
|
15628
|
+
return self._KeyId
|
|
15629
|
+
|
|
15630
|
+
@KeyId.setter
|
|
15631
|
+
def KeyId(self, KeyId):
|
|
15632
|
+
self._KeyId = KeyId
|
|
15633
|
+
|
|
15634
|
+
@property
|
|
15635
|
+
def Username(self):
|
|
15636
|
+
r"""用户名
|
|
15637
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15638
|
+
:rtype: str
|
|
15639
|
+
"""
|
|
15640
|
+
return self._Username
|
|
15641
|
+
|
|
15642
|
+
@Username.setter
|
|
15643
|
+
def Username(self, Username):
|
|
15644
|
+
self._Username = Username
|
|
15645
|
+
|
|
15646
|
+
@property
|
|
15647
|
+
def Password(self):
|
|
15648
|
+
r"""密码,base64编码; 当keyId不为空时,密码是加密后的
|
|
15649
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15650
|
+
:rtype: str
|
|
15651
|
+
"""
|
|
15652
|
+
return self._Password
|
|
15653
|
+
|
|
15654
|
+
@Password.setter
|
|
15655
|
+
def Password(self, Password):
|
|
15656
|
+
self._Password = Password
|
|
15657
|
+
|
|
15658
|
+
@property
|
|
15659
|
+
def SecretId(self):
|
|
15660
|
+
r"""用户凭据ID
|
|
15661
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15662
|
+
:rtype: str
|
|
15663
|
+
"""
|
|
15664
|
+
return self._SecretId
|
|
15665
|
+
|
|
15666
|
+
@SecretId.setter
|
|
15667
|
+
def SecretId(self, SecretId):
|
|
15668
|
+
self._SecretId = SecretId
|
|
15669
|
+
|
|
15670
|
+
|
|
15671
|
+
def _deserialize(self, params):
|
|
15672
|
+
self._KeyId = params.get("KeyId")
|
|
15673
|
+
self._Username = params.get("Username")
|
|
15674
|
+
self._Password = params.get("Password")
|
|
15675
|
+
self._SecretId = params.get("SecretId")
|
|
15525
15676
|
memeber_set = set(params.keys())
|
|
15526
15677
|
for name, value in vars(self).items():
|
|
15527
15678
|
property_name = name[1:]
|
|
@@ -18453,20 +18604,23 @@ class ModifyModelServiceAuthTokenRequest(AbstractModel):
|
|
|
18453
18604
|
|
|
18454
18605
|
def __init__(self):
|
|
18455
18606
|
r"""
|
|
18456
|
-
:param _ServiceGroupId:
|
|
18607
|
+
:param _ServiceGroupId: <p>服务组 id</p>
|
|
18457
18608
|
:type ServiceGroupId: str
|
|
18458
|
-
:param
|
|
18609
|
+
:param _TiProjectId: <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
18610
|
+
:type TiProjectId: str
|
|
18611
|
+
:param _NeedReset: <p>是否需要重置,如果为 true,重置 token 值</p>
|
|
18459
18612
|
:type NeedReset: bool
|
|
18460
|
-
:param _AuthToken: AuthToken
|
|
18613
|
+
:param _AuthToken: <p>AuthToken 数据</p>
|
|
18461
18614
|
:type AuthToken: :class:`tencentcloud.tione.v20211111.models.AuthToken`
|
|
18462
18615
|
"""
|
|
18463
18616
|
self._ServiceGroupId = None
|
|
18617
|
+
self._TiProjectId = None
|
|
18464
18618
|
self._NeedReset = None
|
|
18465
18619
|
self._AuthToken = None
|
|
18466
18620
|
|
|
18467
18621
|
@property
|
|
18468
18622
|
def ServiceGroupId(self):
|
|
18469
|
-
r"""
|
|
18623
|
+
r"""<p>服务组 id</p>
|
|
18470
18624
|
:rtype: str
|
|
18471
18625
|
"""
|
|
18472
18626
|
return self._ServiceGroupId
|
|
@@ -18475,9 +18629,20 @@ class ModifyModelServiceAuthTokenRequest(AbstractModel):
|
|
|
18475
18629
|
def ServiceGroupId(self, ServiceGroupId):
|
|
18476
18630
|
self._ServiceGroupId = ServiceGroupId
|
|
18477
18631
|
|
|
18632
|
+
@property
|
|
18633
|
+
def TiProjectId(self):
|
|
18634
|
+
r"""<p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
18635
|
+
:rtype: str
|
|
18636
|
+
"""
|
|
18637
|
+
return self._TiProjectId
|
|
18638
|
+
|
|
18639
|
+
@TiProjectId.setter
|
|
18640
|
+
def TiProjectId(self, TiProjectId):
|
|
18641
|
+
self._TiProjectId = TiProjectId
|
|
18642
|
+
|
|
18478
18643
|
@property
|
|
18479
18644
|
def NeedReset(self):
|
|
18480
|
-
r"""
|
|
18645
|
+
r"""<p>是否需要重置,如果为 true,重置 token 值</p>
|
|
18481
18646
|
:rtype: bool
|
|
18482
18647
|
"""
|
|
18483
18648
|
return self._NeedReset
|
|
@@ -18488,7 +18653,7 @@ class ModifyModelServiceAuthTokenRequest(AbstractModel):
|
|
|
18488
18653
|
|
|
18489
18654
|
@property
|
|
18490
18655
|
def AuthToken(self):
|
|
18491
|
-
r"""AuthToken
|
|
18656
|
+
r"""<p>AuthToken 数据</p>
|
|
18492
18657
|
:rtype: :class:`tencentcloud.tione.v20211111.models.AuthToken`
|
|
18493
18658
|
"""
|
|
18494
18659
|
return self._AuthToken
|
|
@@ -18500,6 +18665,7 @@ class ModifyModelServiceAuthTokenRequest(AbstractModel):
|
|
|
18500
18665
|
|
|
18501
18666
|
def _deserialize(self, params):
|
|
18502
18667
|
self._ServiceGroupId = params.get("ServiceGroupId")
|
|
18668
|
+
self._TiProjectId = params.get("TiProjectId")
|
|
18503
18669
|
self._NeedReset = params.get("NeedReset")
|
|
18504
18670
|
if params.get("AuthToken") is not None:
|
|
18505
18671
|
self._AuthToken = AuthToken()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tione
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.163
|
|
4
4
|
Summary: Tencent Cloud Tione 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.163
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.163
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.157
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|