tencentcloud-sdk-python-tmt 3.0.1263__tar.gz → 3.0.1289__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-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/setup.cfg +0 -1
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/setup.py +1 -1
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/tmt/v20180321/models.py +60 -5
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud_sdk_python_tmt.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-tmt-3.0.1289/tencentcloud_sdk_python_tmt.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tmt-3.0.1263/tencentcloud_sdk_python_tmt.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/README.rst +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/tmt/__init__.py +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/tmt/v20180321/__init__.py +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud/tmt/v20180321/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud_sdk_python_tmt.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud_sdk_python_tmt.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tmt-3.0.1263 → tencentcloud-sdk-python-tmt-3.0.1289}/tencentcloud_sdk_python_tmt.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tmt
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1289
|
|
4
4
|
Summary: Tencent Cloud Tmt SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
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-tmt',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1289"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tmt SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -269,7 +269,7 @@ class FileTranslateResponse(AbstractModel):
|
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
class GetFileTranslateData(AbstractModel):
|
|
272
|
-
"""
|
|
272
|
+
"""文件翻译任务结果
|
|
273
273
|
|
|
274
274
|
"""
|
|
275
275
|
|
|
@@ -277,7 +277,12 @@ class GetFileTranslateData(AbstractModel):
|
|
|
277
277
|
r"""
|
|
278
278
|
:param _TaskId: 任务ID
|
|
279
279
|
:type TaskId: str
|
|
280
|
-
:param _Status:
|
|
280
|
+
:param _Status: 任务状态
|
|
281
|
+
|
|
282
|
+
- init:任务已初始化
|
|
283
|
+
- wait:任务等待执行
|
|
284
|
+
- success:任务执行成功
|
|
285
|
+
- fail:任务执行失败
|
|
281
286
|
:type Status: str
|
|
282
287
|
:param _FileData: 文件数据,目标文件必须小于50M,否则请通过回调方式请求文件翻译接口
|
|
283
288
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -285,14 +290,17 @@ class GetFileTranslateData(AbstractModel):
|
|
|
285
290
|
:param _Message: 错误提示
|
|
286
291
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
287
292
|
:type Message: str
|
|
288
|
-
:param _Progress:
|
|
293
|
+
:param _Progress: 任务进度
|
|
289
294
|
:type Progress: int
|
|
295
|
+
:param _UsedAmount: 本次翻译消耗的字符数
|
|
296
|
+
:type UsedAmount: int
|
|
290
297
|
"""
|
|
291
298
|
self._TaskId = None
|
|
292
299
|
self._Status = None
|
|
293
300
|
self._FileData = None
|
|
294
301
|
self._Message = None
|
|
295
302
|
self._Progress = None
|
|
303
|
+
self._UsedAmount = None
|
|
296
304
|
|
|
297
305
|
@property
|
|
298
306
|
def TaskId(self):
|
|
@@ -307,7 +315,12 @@ class GetFileTranslateData(AbstractModel):
|
|
|
307
315
|
|
|
308
316
|
@property
|
|
309
317
|
def Status(self):
|
|
310
|
-
"""
|
|
318
|
+
"""任务状态
|
|
319
|
+
|
|
320
|
+
- init:任务已初始化
|
|
321
|
+
- wait:任务等待执行
|
|
322
|
+
- success:任务执行成功
|
|
323
|
+
- fail:任务执行失败
|
|
311
324
|
:rtype: str
|
|
312
325
|
"""
|
|
313
326
|
return self._Status
|
|
@@ -342,7 +355,7 @@ class GetFileTranslateData(AbstractModel):
|
|
|
342
355
|
|
|
343
356
|
@property
|
|
344
357
|
def Progress(self):
|
|
345
|
-
"""
|
|
358
|
+
"""任务进度
|
|
346
359
|
:rtype: int
|
|
347
360
|
"""
|
|
348
361
|
return self._Progress
|
|
@@ -351,6 +364,17 @@ class GetFileTranslateData(AbstractModel):
|
|
|
351
364
|
def Progress(self, Progress):
|
|
352
365
|
self._Progress = Progress
|
|
353
366
|
|
|
367
|
+
@property
|
|
368
|
+
def UsedAmount(self):
|
|
369
|
+
"""本次翻译消耗的字符数
|
|
370
|
+
:rtype: int
|
|
371
|
+
"""
|
|
372
|
+
return self._UsedAmount
|
|
373
|
+
|
|
374
|
+
@UsedAmount.setter
|
|
375
|
+
def UsedAmount(self, UsedAmount):
|
|
376
|
+
self._UsedAmount = UsedAmount
|
|
377
|
+
|
|
354
378
|
|
|
355
379
|
def _deserialize(self, params):
|
|
356
380
|
self._TaskId = params.get("TaskId")
|
|
@@ -358,6 +382,7 @@ class GetFileTranslateData(AbstractModel):
|
|
|
358
382
|
self._FileData = params.get("FileData")
|
|
359
383
|
self._Message = params.get("Message")
|
|
360
384
|
self._Progress = params.get("Progress")
|
|
385
|
+
self._UsedAmount = params.get("UsedAmount")
|
|
361
386
|
memeber_set = set(params.keys())
|
|
362
387
|
for name, value in vars(self).items():
|
|
363
388
|
property_name = name[1:]
|
|
@@ -1489,12 +1514,15 @@ class TextTranslateBatchResponse(AbstractModel):
|
|
|
1489
1514
|
:type Target: str
|
|
1490
1515
|
:param _TargetTextList: 翻译后的文本列表
|
|
1491
1516
|
:type TargetTextList: list of str
|
|
1517
|
+
:param _UsedAmount: 本次翻译消耗的字符数
|
|
1518
|
+
:type UsedAmount: int
|
|
1492
1519
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1493
1520
|
:type RequestId: str
|
|
1494
1521
|
"""
|
|
1495
1522
|
self._Source = None
|
|
1496
1523
|
self._Target = None
|
|
1497
1524
|
self._TargetTextList = None
|
|
1525
|
+
self._UsedAmount = None
|
|
1498
1526
|
self._RequestId = None
|
|
1499
1527
|
|
|
1500
1528
|
@property
|
|
@@ -1530,6 +1558,17 @@ class TextTranslateBatchResponse(AbstractModel):
|
|
|
1530
1558
|
def TargetTextList(self, TargetTextList):
|
|
1531
1559
|
self._TargetTextList = TargetTextList
|
|
1532
1560
|
|
|
1561
|
+
@property
|
|
1562
|
+
def UsedAmount(self):
|
|
1563
|
+
"""本次翻译消耗的字符数
|
|
1564
|
+
:rtype: int
|
|
1565
|
+
"""
|
|
1566
|
+
return self._UsedAmount
|
|
1567
|
+
|
|
1568
|
+
@UsedAmount.setter
|
|
1569
|
+
def UsedAmount(self, UsedAmount):
|
|
1570
|
+
self._UsedAmount = UsedAmount
|
|
1571
|
+
|
|
1533
1572
|
@property
|
|
1534
1573
|
def RequestId(self):
|
|
1535
1574
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -1546,6 +1585,7 @@ class TextTranslateBatchResponse(AbstractModel):
|
|
|
1546
1585
|
self._Source = params.get("Source")
|
|
1547
1586
|
self._Target = params.get("Target")
|
|
1548
1587
|
self._TargetTextList = params.get("TargetTextList")
|
|
1588
|
+
self._UsedAmount = params.get("UsedAmount")
|
|
1549
1589
|
self._RequestId = params.get("RequestId")
|
|
1550
1590
|
|
|
1551
1591
|
|
|
@@ -1764,12 +1804,15 @@ class TextTranslateResponse(AbstractModel):
|
|
|
1764
1804
|
:type Source: str
|
|
1765
1805
|
:param _Target: 目标语言,详见入参Target
|
|
1766
1806
|
:type Target: str
|
|
1807
|
+
:param _UsedAmount: 本次翻译消耗的字符数
|
|
1808
|
+
:type UsedAmount: int
|
|
1767
1809
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1768
1810
|
:type RequestId: str
|
|
1769
1811
|
"""
|
|
1770
1812
|
self._TargetText = None
|
|
1771
1813
|
self._Source = None
|
|
1772
1814
|
self._Target = None
|
|
1815
|
+
self._UsedAmount = None
|
|
1773
1816
|
self._RequestId = None
|
|
1774
1817
|
|
|
1775
1818
|
@property
|
|
@@ -1805,6 +1848,17 @@ class TextTranslateResponse(AbstractModel):
|
|
|
1805
1848
|
def Target(self, Target):
|
|
1806
1849
|
self._Target = Target
|
|
1807
1850
|
|
|
1851
|
+
@property
|
|
1852
|
+
def UsedAmount(self):
|
|
1853
|
+
"""本次翻译消耗的字符数
|
|
1854
|
+
:rtype: int
|
|
1855
|
+
"""
|
|
1856
|
+
return self._UsedAmount
|
|
1857
|
+
|
|
1858
|
+
@UsedAmount.setter
|
|
1859
|
+
def UsedAmount(self, UsedAmount):
|
|
1860
|
+
self._UsedAmount = UsedAmount
|
|
1861
|
+
|
|
1808
1862
|
@property
|
|
1809
1863
|
def RequestId(self):
|
|
1810
1864
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -1821,4 +1875,5 @@ class TextTranslateResponse(AbstractModel):
|
|
|
1821
1875
|
self._TargetText = params.get("TargetText")
|
|
1822
1876
|
self._Source = params.get("Source")
|
|
1823
1877
|
self._Target = params.get("Target")
|
|
1878
|
+
self._UsedAmount = params.get("UsedAmount")
|
|
1824
1879
|
self._RequestId = params.get("RequestId")
|
|
@@ -173,7 +173,7 @@ class TmtClient(AbstractClient):
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def TextTranslateBatch(self, request):
|
|
176
|
-
"""
|
|
176
|
+
"""批量翻译文本的接口
|
|
177
177
|
|
|
178
178
|
:param request: Request instance for TextTranslateBatch.
|
|
179
179
|
:type request: :class:`tencentcloud.tmt.v20180321.models.TextTranslateBatchRequest`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tmt
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1289
|
|
4
4
|
Summary: Tencent Cloud Tmt SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1289
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1263
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|