tencentcloud-sdk-tmt 3.0.558 → 3.0.560
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180321/client.rb +1 -1
- data/lib/v20180321/models.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59f350bc2cf15776a447cacda35eb21e3429baf6
|
|
4
|
+
data.tar.gz: 0b6765e010e59c38853c4b401bb46c749ccca18a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15efe06b000880f8e8bfd31a55c0de826bef508c5114d180937cd429c16b6c0eef529922c199bda015b67ba44f62e81ae5d83566534bd7e0c946baa7ec0be2f7
|
|
7
|
+
data.tar.gz: e3217c052c4dea6eb95c9d32b71903332e08bb3e80a9d1937e0c4852eae11249a108280794236c5ea30968346bbce3e431ba7064c07732a71ccb0afc53f7b347
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.560
|
data/lib/v20180321/client.rb
CHANGED
|
@@ -54,7 +54,7 @@ module TencentCloud
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# 在调用文档翻译请求接口后,有回调和轮询两种方式获取识别结果。
|
|
57
|
-
# •当采用回调方式时,翻译完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL
|
|
57
|
+
# •当采用回调方式时,翻译完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见文档翻译结果回调。
|
|
58
58
|
# • 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见参数说明。
|
|
59
59
|
|
|
60
60
|
# @param request: Request instance for GetFileTranslate.
|
data/lib/v20180321/models.rb
CHANGED
|
@@ -59,11 +59,11 @@ module TencentCloud
|
|
|
59
59
|
# @type DocumentType: String
|
|
60
60
|
# @param SourceType: 数据来源,0:url,1:直接传文件编码后数据
|
|
61
61
|
# @type SourceType: Integer
|
|
62
|
-
# @param Url: 需要翻译文件url
|
|
62
|
+
# @param Url: 需要翻译文件url,文件需小于100MB。
|
|
63
63
|
# @type Url: String
|
|
64
64
|
# @param BasicDocumentType: 原始文档类型
|
|
65
65
|
# @type BasicDocumentType: String
|
|
66
|
-
# @param CallbackUrl: 回调url
|
|
66
|
+
# @param CallbackUrl: 回调url,文件大于10MB,建议采用回调方式;回调时,所有内容会放入 Body 中。
|
|
67
67
|
# @type CallbackUrl: String
|
|
68
68
|
# @param Data: 文件数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。数据要小于5MB。
|
|
69
69
|
# @type Data: String
|
|
@@ -537,7 +537,7 @@ module TencentCloud
|
|
|
537
537
|
# @type Target: String
|
|
538
538
|
# @param ProjectId: 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
|
539
539
|
# @type ProjectId: Integer
|
|
540
|
-
# @param SourceTextList: 待翻译的文本列表,批量接口可以以数组方式在一次请求中填写多个待翻译文本。文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度总和需要低于
|
|
540
|
+
# @param SourceTextList: 待翻译的文本列表,批量接口可以以数组方式在一次请求中填写多个待翻译文本。文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度总和需要低于6000字符。
|
|
541
541
|
# @type SourceTextList: Array
|
|
542
542
|
|
|
543
543
|
attr_accessor :Source, :Target, :ProjectId, :SourceTextList
|
|
@@ -559,7 +559,7 @@ module TencentCloud
|
|
|
559
559
|
|
|
560
560
|
# TextTranslateBatch返回参数结构体
|
|
561
561
|
class TextTranslateBatchResponse < TencentCloud::Common::AbstractModel
|
|
562
|
-
# @param Source: 源语言,详见入参
|
|
562
|
+
# @param Source: 源语言,详见入参Source
|
|
563
563
|
# @type Source: String
|
|
564
564
|
# @param Target: 目标语言,详见入参Target
|
|
565
565
|
# @type Target: String
|
|
@@ -587,7 +587,7 @@ module TencentCloud
|
|
|
587
587
|
|
|
588
588
|
# TextTranslate请求参数结构体
|
|
589
589
|
class TextTranslateRequest < TencentCloud::Common::AbstractModel
|
|
590
|
-
# @param SourceText: 待翻译的文本,文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于
|
|
590
|
+
# @param SourceText: 待翻译的文本,文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于6000字符。
|
|
591
591
|
# @type SourceText: String
|
|
592
592
|
# @param Source: 源语言,支持:
|
|
593
593
|
# auto:自动识别(识别为一种语言)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-tmt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.560
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-04-
|
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|