tencentcloud-sdk-tmt 3.0.1059 → 3.0.1061
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/models.rb +52 -4
- 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: 3c82af3c5953a33affee81365c647cbf271f5af0
|
4
|
+
data.tar.gz: 474475197af63c1111a01cd1ec997a69b88b7d3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 511df64ceb5b5225062541a0e52d8ee25caec2fa386bbdd2f87ec2a20ead44eaf86c6b42d6c1aeca893e83256871c1517a4b4e7641a974465883526b21ca253c
|
7
|
+
data.tar.gz: c36ccdcc8c613fdf0ed6723a9d146ecc2ff91a8a2982493ad7e4222f96c49aee35a2256bd3388918f99d8f84d003d01788aae34863877297f078f8752be14793
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1061
|
data/lib/v20180321/models.rb
CHANGED
@@ -253,22 +253,60 @@ module TencentCloud
|
|
253
253
|
|
254
254
|
# ImageTranslateLLM请求参数结构体
|
255
255
|
class ImageTranslateLLMRequest < TencentCloud::Common::AbstractModel
|
256
|
+
# @param Data: 图片数据的Base64字符串,经Base64编码后不超过 9M,分辨率建议600*800以上,支持PNG、JPG、JPEG格式。
|
257
|
+
# @type Data: String
|
258
|
+
# @param Target: 目标语言,支持语言列表:
|
259
|
+
|
260
|
+
# - 中文:zh
|
261
|
+
# - 繁体(台湾):zh-TW
|
262
|
+
# - 繁体(香港):zh-HK
|
263
|
+
# - 英文:en
|
264
|
+
# - 日语:ja
|
265
|
+
# - 韩语:ko
|
266
|
+
# - 泰语:th
|
267
|
+
# - 越南语:vi
|
268
|
+
# - 俄语:ru
|
269
|
+
# - 德语:de
|
270
|
+
# - 法语:fr
|
271
|
+
# - 阿拉伯语:ar
|
272
|
+
# - 西班牙语:es
|
273
|
+
# - 意大利语:it
|
274
|
+
# - 印度尼西亚语:id
|
275
|
+
# - 马来西亚语:ms
|
276
|
+
# - 葡萄牙语:pt
|
277
|
+
# - 土耳其语:tr
|
278
|
+
# -
|
279
|
+
# @type Target: String
|
256
280
|
# @param Url: 输入图 Url。 使用Url的时候,Data参数需要传入""。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。
|
257
281
|
# @type Url: String
|
258
282
|
|
259
|
-
attr_accessor :Url
|
283
|
+
attr_accessor :Data, :Target, :Url
|
260
284
|
|
261
|
-
def initialize(url=nil)
|
285
|
+
def initialize(data=nil, target=nil, url=nil)
|
286
|
+
@Data = data
|
287
|
+
@Target = target
|
262
288
|
@Url = url
|
263
289
|
end
|
264
290
|
|
265
291
|
def deserialize(params)
|
292
|
+
@Data = params['Data']
|
293
|
+
@Target = params['Target']
|
266
294
|
@Url = params['Url']
|
267
295
|
end
|
268
296
|
end
|
269
297
|
|
270
298
|
# ImageTranslateLLM返回参数结构体
|
271
299
|
class ImageTranslateLLMResponse < TencentCloud::Common::AbstractModel
|
300
|
+
# @param Data: 图片数据的Base64字符串,输出格式为JPG。
|
301
|
+
# @type Data: String
|
302
|
+
# @param Source: 原文本主要源语言。
|
303
|
+
# @type Source: String
|
304
|
+
# @param Target: 目标翻译语言。
|
305
|
+
# @type Target: String
|
306
|
+
# @param SourceText: 图片中的全部原文本。
|
307
|
+
# @type SourceText: String
|
308
|
+
# @param TargetText: 图片中全部译文。
|
309
|
+
# @type TargetText: String
|
272
310
|
# @param Angle: 逆时针图片角度,取值范围为0-359
|
273
311
|
# @type Angle: Float
|
274
312
|
# @param TransDetails: 翻译详情信息
|
@@ -276,15 +314,25 @@ module TencentCloud
|
|
276
314
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
277
315
|
# @type RequestId: String
|
278
316
|
|
279
|
-
attr_accessor :Angle, :TransDetails, :RequestId
|
317
|
+
attr_accessor :Data, :Source, :Target, :SourceText, :TargetText, :Angle, :TransDetails, :RequestId
|
280
318
|
|
281
|
-
def initialize(angle=nil, transdetails=nil, requestid=nil)
|
319
|
+
def initialize(data=nil, source=nil, target=nil, sourcetext=nil, targettext=nil, angle=nil, transdetails=nil, requestid=nil)
|
320
|
+
@Data = data
|
321
|
+
@Source = source
|
322
|
+
@Target = target
|
323
|
+
@SourceText = sourcetext
|
324
|
+
@TargetText = targettext
|
282
325
|
@Angle = angle
|
283
326
|
@TransDetails = transdetails
|
284
327
|
@RequestId = requestid
|
285
328
|
end
|
286
329
|
|
287
330
|
def deserialize(params)
|
331
|
+
@Data = params['Data']
|
332
|
+
@Source = params['Source']
|
333
|
+
@Target = params['Target']
|
334
|
+
@SourceText = params['SourceText']
|
335
|
+
@TargetText = params['TargetText']
|
288
336
|
@Angle = params['Angle']
|
289
337
|
unless params['TransDetails'].nil?
|
290
338
|
@TransDetails = []
|
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.1061
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|