tencentcloud-sdk-python 3.1.89__py2.py3-none-any.whl → 3.1.91__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ai3d/v20250513/ai3d_client.py +47 -0
- tencentcloud/ai3d/v20250513/ai3d_client_async.py +37 -0
- tencentcloud/ai3d/v20250513/models.py +300 -0
- tencentcloud/gs/v20191118/models.py +15 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +3 -0
- tencentcloud/lke/v20231130/models.py +12 -12
- tencentcloud/ocr/v20181119/ocr_client.py +2 -0
- tencentcloud/ocr/v20181119/ocr_client_async.py +2 -0
- tencentcloud/partners/v20180321/models.py +4 -4
- tencentcloud/teo/v20220901/models.py +12 -12
- tencentcloud/teo/v20220901/teo_client.py +2 -60
- tencentcloud/teo/v20220901/teo_client_async.py +2 -60
- tencentcloud/vod/v20180717/models.py +76 -20
- tencentcloud/waf/v20180125/models.py +15 -0
- {tencentcloud_sdk_python-3.1.89.dist-info → tencentcloud_sdk_python-3.1.91.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.1.89.dist-info → tencentcloud_sdk_python-3.1.91.dist-info}/RECORD +20 -20
- {tencentcloud_sdk_python-3.1.89.dist-info → tencentcloud_sdk_python-3.1.91.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.1.89.dist-info → tencentcloud_sdk_python-3.1.91.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.1.89.dist-info → tencentcloud_sdk_python-3.1.91.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -49,6 +49,29 @@ class Ai3dClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def DescribeHunyuanTo3DMotionJob(self, request):
|
|
53
|
+
r"""查询组件生成任务。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeHunyuanTo3DMotionJob.
|
|
56
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DMotionJobRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DMotionJobResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeHunyuanTo3DMotionJob", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeHunyuanTo3DMotionJobResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def DescribeHunyuanTo3DUVJob(self, request):
|
|
53
76
|
r"""查询组件拆分任务。
|
|
54
77
|
|
|
@@ -238,6 +261,30 @@ class Ai3dClient(AbstractClient):
|
|
|
238
261
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
239
262
|
|
|
240
263
|
|
|
264
|
+
def SubmitHunyuanTo3DMotionJob(self, request):
|
|
265
|
+
r"""输入文本后,可根据文本描述生成对应的 3D人物 动作数据,输出带动画数据的FBX文件。
|
|
266
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
267
|
+
|
|
268
|
+
:param request: Request instance for SubmitHunyuanTo3DMotionJob.
|
|
269
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DMotionJobRequest`
|
|
270
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DMotionJobResponse`
|
|
271
|
+
|
|
272
|
+
"""
|
|
273
|
+
try:
|
|
274
|
+
params = request._serialize()
|
|
275
|
+
headers = request.headers
|
|
276
|
+
body = self.call("SubmitHunyuanTo3DMotionJob", params, headers=headers)
|
|
277
|
+
response = json.loads(body)
|
|
278
|
+
model = models.SubmitHunyuanTo3DMotionJobResponse()
|
|
279
|
+
model._deserialize(response["Response"])
|
|
280
|
+
return model
|
|
281
|
+
except Exception as e:
|
|
282
|
+
if isinstance(e, TencentCloudSDKException):
|
|
283
|
+
raise
|
|
284
|
+
else:
|
|
285
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
286
|
+
|
|
287
|
+
|
|
241
288
|
def SubmitHunyuanTo3DProJob(self, request):
|
|
242
289
|
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
243
290
|
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
@@ -43,6 +43,24 @@ class Ai3dClient(AbstractClient):
|
|
|
43
43
|
|
|
44
44
|
return await self.call_and_deserialize(**kwargs)
|
|
45
45
|
|
|
46
|
+
async def DescribeHunyuanTo3DMotionJob(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeHunyuanTo3DMotionJobRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeHunyuanTo3DMotionJobResponse:
|
|
51
|
+
"""
|
|
52
|
+
查询组件生成任务。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeHunyuanTo3DMotionJob"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeHunyuanTo3DMotionJobResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
46
64
|
async def DescribeHunyuanTo3DUVJob(
|
|
47
65
|
self,
|
|
48
66
|
request: models.DescribeHunyuanTo3DUVJobRequest,
|
|
@@ -192,6 +210,25 @@ class Ai3dClient(AbstractClient):
|
|
|
192
210
|
|
|
193
211
|
return await self.call_and_deserialize(**kwargs)
|
|
194
212
|
|
|
213
|
+
async def SubmitHunyuanTo3DMotionJob(
|
|
214
|
+
self,
|
|
215
|
+
request: models.SubmitHunyuanTo3DMotionJobRequest,
|
|
216
|
+
opts: Dict = None,
|
|
217
|
+
) -> models.SubmitHunyuanTo3DMotionJobResponse:
|
|
218
|
+
"""
|
|
219
|
+
输入文本后,可根据文本描述生成对应的 3D人物 动作数据,输出带动画数据的FBX文件。
|
|
220
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
kwargs = {}
|
|
224
|
+
kwargs["action"] = "SubmitHunyuanTo3DMotionJob"
|
|
225
|
+
kwargs["params"] = request._serialize()
|
|
226
|
+
kwargs["resp_cls"] = models.SubmitHunyuanTo3DMotionJobResponse
|
|
227
|
+
kwargs["headers"] = request.headers
|
|
228
|
+
kwargs["opts"] = opts or {}
|
|
229
|
+
|
|
230
|
+
return await self.call_and_deserialize(**kwargs)
|
|
231
|
+
|
|
195
232
|
async def SubmitHunyuanTo3DProJob(
|
|
196
233
|
self,
|
|
197
234
|
request: models.SubmitHunyuanTo3DProJobRequest,
|
|
@@ -112,6 +112,135 @@ class Convert3DFormatResponse(AbstractModel):
|
|
|
112
112
|
self._RequestId = params.get("RequestId")
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
class DescribeHunyuanTo3DMotionJobRequest(AbstractModel):
|
|
116
|
+
r"""DescribeHunyuanTo3DMotionJob请求参数结构体
|
|
117
|
+
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
def __init__(self):
|
|
121
|
+
r"""
|
|
122
|
+
:param _JobId: <p>任务ID。</p>
|
|
123
|
+
:type JobId: str
|
|
124
|
+
"""
|
|
125
|
+
self._JobId = None
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def JobId(self):
|
|
129
|
+
r"""<p>任务ID。</p>
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._JobId
|
|
133
|
+
|
|
134
|
+
@JobId.setter
|
|
135
|
+
def JobId(self, JobId):
|
|
136
|
+
self._JobId = JobId
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _deserialize(self, params):
|
|
140
|
+
self._JobId = params.get("JobId")
|
|
141
|
+
memeber_set = set(params.keys())
|
|
142
|
+
for name, value in vars(self).items():
|
|
143
|
+
property_name = name[1:]
|
|
144
|
+
if property_name in memeber_set:
|
|
145
|
+
memeber_set.remove(property_name)
|
|
146
|
+
if len(memeber_set) > 0:
|
|
147
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class DescribeHunyuanTo3DMotionJobResponse(AbstractModel):
|
|
152
|
+
r"""DescribeHunyuanTo3DMotionJob返回参数结构体
|
|
153
|
+
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
def __init__(self):
|
|
157
|
+
r"""
|
|
158
|
+
:param _Status: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。</p>
|
|
159
|
+
:type Status: str
|
|
160
|
+
:param _ErrorCode: <p>错误码。</p>
|
|
161
|
+
:type ErrorCode: str
|
|
162
|
+
:param _ErrorMessage: <p>错误信息。</p>
|
|
163
|
+
:type ErrorMessage: str
|
|
164
|
+
:param _ResultFile3Ds: <p>生成文件的URL地址,有效期1天。</p>
|
|
165
|
+
:type ResultFile3Ds: list of File3D
|
|
166
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
167
|
+
:type RequestId: str
|
|
168
|
+
"""
|
|
169
|
+
self._Status = None
|
|
170
|
+
self._ErrorCode = None
|
|
171
|
+
self._ErrorMessage = None
|
|
172
|
+
self._ResultFile3Ds = None
|
|
173
|
+
self._RequestId = None
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def Status(self):
|
|
177
|
+
r"""<p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。</p>
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._Status
|
|
181
|
+
|
|
182
|
+
@Status.setter
|
|
183
|
+
def Status(self, Status):
|
|
184
|
+
self._Status = Status
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def ErrorCode(self):
|
|
188
|
+
r"""<p>错误码。</p>
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._ErrorCode
|
|
192
|
+
|
|
193
|
+
@ErrorCode.setter
|
|
194
|
+
def ErrorCode(self, ErrorCode):
|
|
195
|
+
self._ErrorCode = ErrorCode
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def ErrorMessage(self):
|
|
199
|
+
r"""<p>错误信息。</p>
|
|
200
|
+
:rtype: str
|
|
201
|
+
"""
|
|
202
|
+
return self._ErrorMessage
|
|
203
|
+
|
|
204
|
+
@ErrorMessage.setter
|
|
205
|
+
def ErrorMessage(self, ErrorMessage):
|
|
206
|
+
self._ErrorMessage = ErrorMessage
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def ResultFile3Ds(self):
|
|
210
|
+
r"""<p>生成文件的URL地址,有效期1天。</p>
|
|
211
|
+
:rtype: list of File3D
|
|
212
|
+
"""
|
|
213
|
+
return self._ResultFile3Ds
|
|
214
|
+
|
|
215
|
+
@ResultFile3Ds.setter
|
|
216
|
+
def ResultFile3Ds(self, ResultFile3Ds):
|
|
217
|
+
self._ResultFile3Ds = ResultFile3Ds
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def RequestId(self):
|
|
221
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._RequestId
|
|
225
|
+
|
|
226
|
+
@RequestId.setter
|
|
227
|
+
def RequestId(self, RequestId):
|
|
228
|
+
self._RequestId = RequestId
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def _deserialize(self, params):
|
|
232
|
+
self._Status = params.get("Status")
|
|
233
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
234
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
235
|
+
if params.get("ResultFile3Ds") is not None:
|
|
236
|
+
self._ResultFile3Ds = []
|
|
237
|
+
for item in params.get("ResultFile3Ds"):
|
|
238
|
+
obj = File3D()
|
|
239
|
+
obj._deserialize(item)
|
|
240
|
+
self._ResultFile3Ds.append(obj)
|
|
241
|
+
self._RequestId = params.get("RequestId")
|
|
242
|
+
|
|
243
|
+
|
|
115
244
|
class DescribeHunyuanTo3DUVJobRequest(AbstractModel):
|
|
116
245
|
r"""DescribeHunyuanTo3DUVJob请求参数结构体
|
|
117
246
|
|
|
@@ -1309,6 +1438,177 @@ class SubmitHunyuan3DPartJobResponse(AbstractModel):
|
|
|
1309
1438
|
self._RequestId = params.get("RequestId")
|
|
1310
1439
|
|
|
1311
1440
|
|
|
1441
|
+
class SubmitHunyuanTo3DMotionJobRequest(AbstractModel):
|
|
1442
|
+
r"""SubmitHunyuanTo3DMotionJob请求参数结构体
|
|
1443
|
+
|
|
1444
|
+
"""
|
|
1445
|
+
|
|
1446
|
+
def __init__(self):
|
|
1447
|
+
r"""
|
|
1448
|
+
:param _Prompt: <p>输入文本prompt,限定最大字符为128。</p>
|
|
1449
|
+
:type Prompt: str
|
|
1450
|
+
:param _Model: <p>模型名称:HY-Motion-1.0,默认HY-Motion-1.0。</p>
|
|
1451
|
+
:type Model: str
|
|
1452
|
+
:param _RetargetFile: <p>需重定向的模型地址,只能支持混元生3D动画生成的模型(动画模板的接口)</p>
|
|
1453
|
+
:type RetargetFile: :class:`tencentcloud.ai3d.v20250513.models.InputFile3D`
|
|
1454
|
+
:param _Duration: <p>生成动画的时长,默认5,范围:1-12(单位s)</p>
|
|
1455
|
+
:type Duration: int
|
|
1456
|
+
:param _EnableMesh: <p>默认true,返回的fbx是否带蒙皮mesh</p>
|
|
1457
|
+
:type EnableMesh: bool
|
|
1458
|
+
:param _EnableRewrite: <p>是否开启prompt扩写,开启后将补充完善输入的prompt。<br>默认false。</p>
|
|
1459
|
+
:type EnableRewrite: bool
|
|
1460
|
+
:param _EnableDurationEst: <p>是否开启时长自动匹配,开启后将自动根据prompt匹配适合时长的动作数据<br>默认false。</p>
|
|
1461
|
+
:type EnableDurationEst: bool
|
|
1462
|
+
"""
|
|
1463
|
+
self._Prompt = None
|
|
1464
|
+
self._Model = None
|
|
1465
|
+
self._RetargetFile = None
|
|
1466
|
+
self._Duration = None
|
|
1467
|
+
self._EnableMesh = None
|
|
1468
|
+
self._EnableRewrite = None
|
|
1469
|
+
self._EnableDurationEst = None
|
|
1470
|
+
|
|
1471
|
+
@property
|
|
1472
|
+
def Prompt(self):
|
|
1473
|
+
r"""<p>输入文本prompt,限定最大字符为128。</p>
|
|
1474
|
+
:rtype: str
|
|
1475
|
+
"""
|
|
1476
|
+
return self._Prompt
|
|
1477
|
+
|
|
1478
|
+
@Prompt.setter
|
|
1479
|
+
def Prompt(self, Prompt):
|
|
1480
|
+
self._Prompt = Prompt
|
|
1481
|
+
|
|
1482
|
+
@property
|
|
1483
|
+
def Model(self):
|
|
1484
|
+
r"""<p>模型名称:HY-Motion-1.0,默认HY-Motion-1.0。</p>
|
|
1485
|
+
:rtype: str
|
|
1486
|
+
"""
|
|
1487
|
+
return self._Model
|
|
1488
|
+
|
|
1489
|
+
@Model.setter
|
|
1490
|
+
def Model(self, Model):
|
|
1491
|
+
self._Model = Model
|
|
1492
|
+
|
|
1493
|
+
@property
|
|
1494
|
+
def RetargetFile(self):
|
|
1495
|
+
r"""<p>需重定向的模型地址,只能支持混元生3D动画生成的模型(动画模板的接口)</p>
|
|
1496
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.InputFile3D`
|
|
1497
|
+
"""
|
|
1498
|
+
return self._RetargetFile
|
|
1499
|
+
|
|
1500
|
+
@RetargetFile.setter
|
|
1501
|
+
def RetargetFile(self, RetargetFile):
|
|
1502
|
+
self._RetargetFile = RetargetFile
|
|
1503
|
+
|
|
1504
|
+
@property
|
|
1505
|
+
def Duration(self):
|
|
1506
|
+
r"""<p>生成动画的时长,默认5,范围:1-12(单位s)</p>
|
|
1507
|
+
:rtype: int
|
|
1508
|
+
"""
|
|
1509
|
+
return self._Duration
|
|
1510
|
+
|
|
1511
|
+
@Duration.setter
|
|
1512
|
+
def Duration(self, Duration):
|
|
1513
|
+
self._Duration = Duration
|
|
1514
|
+
|
|
1515
|
+
@property
|
|
1516
|
+
def EnableMesh(self):
|
|
1517
|
+
r"""<p>默认true,返回的fbx是否带蒙皮mesh</p>
|
|
1518
|
+
:rtype: bool
|
|
1519
|
+
"""
|
|
1520
|
+
return self._EnableMesh
|
|
1521
|
+
|
|
1522
|
+
@EnableMesh.setter
|
|
1523
|
+
def EnableMesh(self, EnableMesh):
|
|
1524
|
+
self._EnableMesh = EnableMesh
|
|
1525
|
+
|
|
1526
|
+
@property
|
|
1527
|
+
def EnableRewrite(self):
|
|
1528
|
+
r"""<p>是否开启prompt扩写,开启后将补充完善输入的prompt。<br>默认false。</p>
|
|
1529
|
+
:rtype: bool
|
|
1530
|
+
"""
|
|
1531
|
+
return self._EnableRewrite
|
|
1532
|
+
|
|
1533
|
+
@EnableRewrite.setter
|
|
1534
|
+
def EnableRewrite(self, EnableRewrite):
|
|
1535
|
+
self._EnableRewrite = EnableRewrite
|
|
1536
|
+
|
|
1537
|
+
@property
|
|
1538
|
+
def EnableDurationEst(self):
|
|
1539
|
+
r"""<p>是否开启时长自动匹配,开启后将自动根据prompt匹配适合时长的动作数据<br>默认false。</p>
|
|
1540
|
+
:rtype: bool
|
|
1541
|
+
"""
|
|
1542
|
+
return self._EnableDurationEst
|
|
1543
|
+
|
|
1544
|
+
@EnableDurationEst.setter
|
|
1545
|
+
def EnableDurationEst(self, EnableDurationEst):
|
|
1546
|
+
self._EnableDurationEst = EnableDurationEst
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
def _deserialize(self, params):
|
|
1550
|
+
self._Prompt = params.get("Prompt")
|
|
1551
|
+
self._Model = params.get("Model")
|
|
1552
|
+
if params.get("RetargetFile") is not None:
|
|
1553
|
+
self._RetargetFile = InputFile3D()
|
|
1554
|
+
self._RetargetFile._deserialize(params.get("RetargetFile"))
|
|
1555
|
+
self._Duration = params.get("Duration")
|
|
1556
|
+
self._EnableMesh = params.get("EnableMesh")
|
|
1557
|
+
self._EnableRewrite = params.get("EnableRewrite")
|
|
1558
|
+
self._EnableDurationEst = params.get("EnableDurationEst")
|
|
1559
|
+
memeber_set = set(params.keys())
|
|
1560
|
+
for name, value in vars(self).items():
|
|
1561
|
+
property_name = name[1:]
|
|
1562
|
+
if property_name in memeber_set:
|
|
1563
|
+
memeber_set.remove(property_name)
|
|
1564
|
+
if len(memeber_set) > 0:
|
|
1565
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
class SubmitHunyuanTo3DMotionJobResponse(AbstractModel):
|
|
1570
|
+
r"""SubmitHunyuanTo3DMotionJob返回参数结构体
|
|
1571
|
+
|
|
1572
|
+
"""
|
|
1573
|
+
|
|
1574
|
+
def __init__(self):
|
|
1575
|
+
r"""
|
|
1576
|
+
:param _JobId: <p>任务ID(有效期24小时)</p>
|
|
1577
|
+
:type JobId: str
|
|
1578
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1579
|
+
:type RequestId: str
|
|
1580
|
+
"""
|
|
1581
|
+
self._JobId = None
|
|
1582
|
+
self._RequestId = None
|
|
1583
|
+
|
|
1584
|
+
@property
|
|
1585
|
+
def JobId(self):
|
|
1586
|
+
r"""<p>任务ID(有效期24小时)</p>
|
|
1587
|
+
:rtype: str
|
|
1588
|
+
"""
|
|
1589
|
+
return self._JobId
|
|
1590
|
+
|
|
1591
|
+
@JobId.setter
|
|
1592
|
+
def JobId(self, JobId):
|
|
1593
|
+
self._JobId = JobId
|
|
1594
|
+
|
|
1595
|
+
@property
|
|
1596
|
+
def RequestId(self):
|
|
1597
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1598
|
+
:rtype: str
|
|
1599
|
+
"""
|
|
1600
|
+
return self._RequestId
|
|
1601
|
+
|
|
1602
|
+
@RequestId.setter
|
|
1603
|
+
def RequestId(self, RequestId):
|
|
1604
|
+
self._RequestId = RequestId
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
def _deserialize(self, params):
|
|
1608
|
+
self._JobId = params.get("JobId")
|
|
1609
|
+
self._RequestId = params.get("RequestId")
|
|
1610
|
+
|
|
1611
|
+
|
|
1312
1612
|
class SubmitHunyuanTo3DProJobRequest(AbstractModel):
|
|
1313
1613
|
r"""SubmitHunyuanTo3DProJob请求参数结构体
|
|
1314
1614
|
|
|
@@ -2886,9 +2886,12 @@ class CreateAndroidInstanceAcceleratorTokenRequest(AbstractModel):
|
|
|
2886
2886
|
:type AndroidInstanceIds: list of str
|
|
2887
2887
|
:param _UserIP: 用户IP,可以根据该 IP 选择就近加速点。如果不填,将自动选择就近加速点。
|
|
2888
2888
|
:type UserIP: str
|
|
2889
|
+
:param _ExpirationDuration: 有效期,默认为 12 小时,最长为 7 天,建议设置不要过长,否则泄漏风险越大。支持 s(秒)、m(分)、h(小时)、d(天)等单位,比如 1d、24h、86400s 都表示一天,1h2m3s 表示一小时两分三秒
|
|
2890
|
+
:type ExpirationDuration: str
|
|
2889
2891
|
"""
|
|
2890
2892
|
self._AndroidInstanceIds = None
|
|
2891
2893
|
self._UserIP = None
|
|
2894
|
+
self._ExpirationDuration = None
|
|
2892
2895
|
|
|
2893
2896
|
@property
|
|
2894
2897
|
def AndroidInstanceIds(self):
|
|
@@ -2912,10 +2915,22 @@ class CreateAndroidInstanceAcceleratorTokenRequest(AbstractModel):
|
|
|
2912
2915
|
def UserIP(self, UserIP):
|
|
2913
2916
|
self._UserIP = UserIP
|
|
2914
2917
|
|
|
2918
|
+
@property
|
|
2919
|
+
def ExpirationDuration(self):
|
|
2920
|
+
r"""有效期,默认为 12 小时,最长为 7 天,建议设置不要过长,否则泄漏风险越大。支持 s(秒)、m(分)、h(小时)、d(天)等单位,比如 1d、24h、86400s 都表示一天,1h2m3s 表示一小时两分三秒
|
|
2921
|
+
:rtype: str
|
|
2922
|
+
"""
|
|
2923
|
+
return self._ExpirationDuration
|
|
2924
|
+
|
|
2925
|
+
@ExpirationDuration.setter
|
|
2926
|
+
def ExpirationDuration(self, ExpirationDuration):
|
|
2927
|
+
self._ExpirationDuration = ExpirationDuration
|
|
2928
|
+
|
|
2915
2929
|
|
|
2916
2930
|
def _deserialize(self, params):
|
|
2917
2931
|
self._AndroidInstanceIds = params.get("AndroidInstanceIds")
|
|
2918
2932
|
self._UserIP = params.get("UserIP")
|
|
2933
|
+
self._ExpirationDuration = params.get("ExpirationDuration")
|
|
2919
2934
|
memeber_set = set(params.keys())
|
|
2920
2935
|
for name, value in vars(self).items():
|
|
2921
2936
|
property_name = name[1:]
|
|
@@ -44,6 +44,9 @@ FAILEDOPERATION_CREATEKEYPAIRFAILED = 'FailedOperation.CreateKeyPairFailed'
|
|
|
44
44
|
# 对密钥对的删除操作失败。
|
|
45
45
|
FAILEDOPERATION_DELETEKEYPAIRFAILED = 'FailedOperation.DeleteKeyPairFailed'
|
|
46
46
|
|
|
47
|
+
# 资源删除操作失败。
|
|
48
|
+
FAILEDOPERATION_DELETERESOURCESFAILED = 'FailedOperation.DeleteResourcesFailed'
|
|
49
|
+
|
|
47
50
|
# 查询镜像配额失败。
|
|
48
51
|
FAILEDOPERATION_DESCRIBEBLUEPRINTQUOTAFAILED = 'FailedOperation.DescribeBlueprintQuotaFailed'
|
|
49
52
|
|
|
@@ -7247,13 +7247,13 @@ class CreateAppRequest(AbstractModel):
|
|
|
7247
7247
|
|
|
7248
7248
|
def __init__(self):
|
|
7249
7249
|
r"""
|
|
7250
|
-
:param _AppType:
|
|
7250
|
+
:param _AppType: <p>应用类型;<code>"knowledge_qa"</code> 知识问答应用(包含标准模式 单工作流 Multi-Agent 等模式)</p>
|
|
7251
7251
|
:type AppType: str
|
|
7252
|
-
:param _BaseConfig:
|
|
7252
|
+
:param _BaseConfig: <p>应用基础配置</p>
|
|
7253
7253
|
:type BaseConfig: :class:`tencentcloud.lke.v20231130.models.BaseConfig`
|
|
7254
|
-
:param _Pattern:
|
|
7254
|
+
:param _Pattern: <p>应用模式 standard:标准模式, agent: agent模式,single_workflow:单工作流模式,ClawAgent:Claw模式</p>
|
|
7255
7255
|
:type Pattern: str
|
|
7256
|
-
:param _AgentType:
|
|
7256
|
+
:param _AgentType: <p>智能体类型,用于区分应用最终以何种智能体形态对外服务(对话("dialogue") / 公众号("wechat"))。当前 ADP 创建页面不区分对话/公众号智能体,ADP 创建页默认走对话智能体。</p>
|
|
7257
7257
|
:type AgentType: str
|
|
7258
7258
|
"""
|
|
7259
7259
|
self._AppType = None
|
|
@@ -7263,7 +7263,7 @@ class CreateAppRequest(AbstractModel):
|
|
|
7263
7263
|
|
|
7264
7264
|
@property
|
|
7265
7265
|
def AppType(self):
|
|
7266
|
-
r"""
|
|
7266
|
+
r"""<p>应用类型;<code>"knowledge_qa"</code> 知识问答应用(包含标准模式 单工作流 Multi-Agent 等模式)</p>
|
|
7267
7267
|
:rtype: str
|
|
7268
7268
|
"""
|
|
7269
7269
|
return self._AppType
|
|
@@ -7274,7 +7274,7 @@ class CreateAppRequest(AbstractModel):
|
|
|
7274
7274
|
|
|
7275
7275
|
@property
|
|
7276
7276
|
def BaseConfig(self):
|
|
7277
|
-
r"""
|
|
7277
|
+
r"""<p>应用基础配置</p>
|
|
7278
7278
|
:rtype: :class:`tencentcloud.lke.v20231130.models.BaseConfig`
|
|
7279
7279
|
"""
|
|
7280
7280
|
return self._BaseConfig
|
|
@@ -7285,7 +7285,7 @@ class CreateAppRequest(AbstractModel):
|
|
|
7285
7285
|
|
|
7286
7286
|
@property
|
|
7287
7287
|
def Pattern(self):
|
|
7288
|
-
r"""
|
|
7288
|
+
r"""<p>应用模式 standard:标准模式, agent: agent模式,single_workflow:单工作流模式,ClawAgent:Claw模式</p>
|
|
7289
7289
|
:rtype: str
|
|
7290
7290
|
"""
|
|
7291
7291
|
return self._Pattern
|
|
@@ -7296,7 +7296,7 @@ class CreateAppRequest(AbstractModel):
|
|
|
7296
7296
|
|
|
7297
7297
|
@property
|
|
7298
7298
|
def AgentType(self):
|
|
7299
|
-
r"""
|
|
7299
|
+
r"""<p>智能体类型,用于区分应用最终以何种智能体形态对外服务(对话("dialogue") / 公众号("wechat"))。当前 ADP 创建页面不区分对话/公众号智能体,ADP 创建页默认走对话智能体。</p>
|
|
7300
7300
|
:rtype: str
|
|
7301
7301
|
"""
|
|
7302
7302
|
return self._AgentType
|
|
@@ -7330,10 +7330,10 @@ class CreateAppResponse(AbstractModel):
|
|
|
7330
7330
|
|
|
7331
7331
|
def __init__(self):
|
|
7332
7332
|
r"""
|
|
7333
|
-
:param _AppBizId:
|
|
7333
|
+
:param _AppBizId: <p>应用ID</p>
|
|
7334
7334
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7335
7335
|
:type AppBizId: str
|
|
7336
|
-
:param _IsCustomList:
|
|
7336
|
+
:param _IsCustomList: <p>判断账户应用列表权限是否是自定义的,用户交互提示</p>
|
|
7337
7337
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7338
7338
|
:type IsCustomList: bool
|
|
7339
7339
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -7345,7 +7345,7 @@ class CreateAppResponse(AbstractModel):
|
|
|
7345
7345
|
|
|
7346
7346
|
@property
|
|
7347
7347
|
def AppBizId(self):
|
|
7348
|
-
r"""
|
|
7348
|
+
r"""<p>应用ID</p>
|
|
7349
7349
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7350
7350
|
:rtype: str
|
|
7351
7351
|
"""
|
|
@@ -7357,7 +7357,7 @@ class CreateAppResponse(AbstractModel):
|
|
|
7357
7357
|
|
|
7358
7358
|
@property
|
|
7359
7359
|
def IsCustomList(self):
|
|
7360
|
-
r"""
|
|
7360
|
+
r"""<p>判断账户应用列表权限是否是自定义的,用户交互提示</p>
|
|
7361
7361
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7362
7362
|
:rtype: bool
|
|
7363
7363
|
"""
|
|
@@ -1608,6 +1608,7 @@ class OcrClient(AbstractClient):
|
|
|
1608
1608
|
|
|
1609
1609
|
def RecognizeAgent(self, request):
|
|
1610
1610
|
r"""支持对输入图的内容进行判断、分类以及总结;支持用户对通用文字识别输出结构进行自定义。
|
|
1611
|
+
默认接口请求频率限制:1次/秒
|
|
1611
1612
|
|
|
1612
1613
|
:param request: Request instance for RecognizeAgent.
|
|
1613
1614
|
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeAgentRequest`
|
|
@@ -2777,6 +2778,7 @@ class OcrClient(AbstractClient):
|
|
|
2777
2778
|
|
|
2778
2779
|
def VerifyScenePhoto(self, request):
|
|
2779
2780
|
r"""提供针对特定场景(如商户门头照、车牌等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对特定场景图片真实性、有效性校验的场景。
|
|
2781
|
+
默认接口请求频率限制:10次/秒
|
|
2780
2782
|
|
|
2781
2783
|
:param request: Request instance for VerifyScenePhoto.
|
|
2782
2784
|
:type request: :class:`tencentcloud.ocr.v20181119.models.VerifyScenePhotoRequest`
|
|
@@ -1342,6 +1342,7 @@ class OcrClient(AbstractClient):
|
|
|
1342
1342
|
) -> models.RecognizeAgentResponse:
|
|
1343
1343
|
"""
|
|
1344
1344
|
支持对输入图的内容进行判断、分类以及总结;支持用户对通用文字识别输出结构进行自定义。
|
|
1345
|
+
默认接口请求频率限制:1次/秒
|
|
1345
1346
|
"""
|
|
1346
1347
|
|
|
1347
1348
|
kwargs = {}
|
|
@@ -2331,6 +2332,7 @@ class OcrClient(AbstractClient):
|
|
|
2331
2332
|
) -> models.VerifyScenePhotoResponse:
|
|
2332
2333
|
"""
|
|
2333
2334
|
提供针对特定场景(如商户门头照、车牌等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对特定场景图片真实性、有效性校验的场景。
|
|
2335
|
+
默认接口请求频率限制:10次/秒
|
|
2334
2336
|
"""
|
|
2335
2337
|
|
|
2336
2338
|
kwargs = {}
|
|
@@ -1944,9 +1944,9 @@ class DealGoodsPriceNewElem(AbstractModel):
|
|
|
1944
1944
|
|
|
1945
1945
|
def __init__(self):
|
|
1946
1946
|
r"""
|
|
1947
|
-
:param _RealTotalCost:
|
|
1947
|
+
:param _RealTotalCost: <p>实付金额</p><p>单位:分</p><p>该金额与控制台展示金额一致,为订单实付价 - 代金券之后的结果</p>
|
|
1948
1948
|
:type RealTotalCost: int
|
|
1949
|
-
:param _OriginalTotalCost:
|
|
1949
|
+
:param _OriginalTotalCost: <p>原始金额(不含折扣)</p><p>单位:分</p>
|
|
1950
1950
|
:type OriginalTotalCost: int
|
|
1951
1951
|
"""
|
|
1952
1952
|
self._RealTotalCost = None
|
|
@@ -1954,7 +1954,7 @@ class DealGoodsPriceNewElem(AbstractModel):
|
|
|
1954
1954
|
|
|
1955
1955
|
@property
|
|
1956
1956
|
def RealTotalCost(self):
|
|
1957
|
-
r"""
|
|
1957
|
+
r"""<p>实付金额</p><p>单位:分</p><p>该金额与控制台展示金额一致,为订单实付价 - 代金券之后的结果</p>
|
|
1958
1958
|
:rtype: int
|
|
1959
1959
|
"""
|
|
1960
1960
|
return self._RealTotalCost
|
|
@@ -1965,7 +1965,7 @@ class DealGoodsPriceNewElem(AbstractModel):
|
|
|
1965
1965
|
|
|
1966
1966
|
@property
|
|
1967
1967
|
def OriginalTotalCost(self):
|
|
1968
|
-
r"""
|
|
1968
|
+
r"""<p>原始金额(不含折扣)</p><p>单位:分</p>
|
|
1969
1969
|
:rtype: int
|
|
1970
1970
|
"""
|
|
1971
1971
|
return self._OriginalTotalCost
|