tencentcloud-sdk-tmt 3.0.942 → 3.0.944
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 +30 -13
- 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: f599764432a49d1a033cd7f49aa919450ff3dddd
|
4
|
+
data.tar.gz: d49a6e23bfb3cb548dc46342379e807472a42ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ffcf8da2e81bb0c2eb6e58794545482a6ecd49326a79328287f9d6f01eb59434f558c7cbd32adde1c7d93066828e3866c3d91f527d4d8b5b7cb526d8e52e41e
|
7
|
+
data.tar.gz: 6d14b38124d3de5874a98641049f3ae0032bdcf143c1d93deed718a54a8e9f7ec828fa8d0d8568a1e8b06ecf948941c12c1bd07260d36f822e9168d075d597bf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.944
|
data/lib/v20180321/models.rb
CHANGED
@@ -116,11 +116,16 @@ module TencentCloud
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
#
|
119
|
+
# 文件翻译任务结果
|
120
120
|
class GetFileTranslateData < TencentCloud::Common::AbstractModel
|
121
121
|
# @param TaskId: 任务ID
|
122
122
|
# @type TaskId: String
|
123
|
-
# @param Status:
|
123
|
+
# @param Status: 任务状态
|
124
|
+
|
125
|
+
# - init:任务已初始化
|
126
|
+
# - wait:任务等待执行
|
127
|
+
# - success:任务执行成功
|
128
|
+
# - fail:任务执行失败
|
124
129
|
# @type Status: String
|
125
130
|
# @param FileData: 文件数据,目标文件必须小于50M,否则请通过回调方式请求文件翻译接口
|
126
131
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -128,17 +133,20 @@ module TencentCloud
|
|
128
133
|
# @param Message: 错误提示
|
129
134
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
130
135
|
# @type Message: String
|
131
|
-
# @param Progress:
|
136
|
+
# @param Progress: 任务进度
|
132
137
|
# @type Progress: Integer
|
138
|
+
# @param UsedAmount: 本次翻译消耗的字符数
|
139
|
+
# @type UsedAmount: Integer
|
133
140
|
|
134
|
-
attr_accessor :TaskId, :Status, :FileData, :Message, :Progress
|
141
|
+
attr_accessor :TaskId, :Status, :FileData, :Message, :Progress, :UsedAmount
|
135
142
|
|
136
|
-
def initialize(taskid=nil, status=nil, filedata=nil, message=nil, progress=nil)
|
143
|
+
def initialize(taskid=nil, status=nil, filedata=nil, message=nil, progress=nil, usedamount=nil)
|
137
144
|
@TaskId = taskid
|
138
145
|
@Status = status
|
139
146
|
@FileData = filedata
|
140
147
|
@Message = message
|
141
148
|
@Progress = progress
|
149
|
+
@UsedAmount = usedamount
|
142
150
|
end
|
143
151
|
|
144
152
|
def deserialize(params)
|
@@ -147,6 +155,7 @@ module TencentCloud
|
|
147
155
|
@FileData = params['FileData']
|
148
156
|
@Message = params['Message']
|
149
157
|
@Progress = params['Progress']
|
158
|
+
@UsedAmount = params['UsedAmount']
|
150
159
|
end
|
151
160
|
end
|
152
161
|
|
@@ -399,10 +408,10 @@ module TencentCloud
|
|
399
408
|
|
400
409
|
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :IsEnd, :Data, :ProjectId, :Mode, :TransType
|
401
410
|
extend Gem::Deprecate
|
402
|
-
deprecate :Mode, :none, 2024,
|
403
|
-
deprecate :Mode=, :none, 2024,
|
404
|
-
deprecate :TransType, :none, 2024,
|
405
|
-
deprecate :TransType=, :none, 2024,
|
411
|
+
deprecate :Mode, :none, 2024, 11
|
412
|
+
deprecate :Mode=, :none, 2024, 11
|
413
|
+
deprecate :TransType, :none, 2024, 11
|
414
|
+
deprecate :TransType=, :none, 2024, 11
|
406
415
|
|
407
416
|
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, isend=nil, data=nil, projectid=nil, mode=nil, transtype=nil)
|
408
417
|
@SessionUuid = sessionuuid
|
@@ -577,15 +586,18 @@ module TencentCloud
|
|
577
586
|
# @type Target: String
|
578
587
|
# @param TargetTextList: 翻译后的文本列表
|
579
588
|
# @type TargetTextList: Array
|
589
|
+
# @param UsedAmount: 本次翻译消耗的字符数
|
590
|
+
# @type UsedAmount: Integer
|
580
591
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
581
592
|
# @type RequestId: String
|
582
593
|
|
583
|
-
attr_accessor :Source, :Target, :TargetTextList, :RequestId
|
594
|
+
attr_accessor :Source, :Target, :TargetTextList, :UsedAmount, :RequestId
|
584
595
|
|
585
|
-
def initialize(source=nil, target=nil, targettextlist=nil, requestid=nil)
|
596
|
+
def initialize(source=nil, target=nil, targettextlist=nil, usedamount=nil, requestid=nil)
|
586
597
|
@Source = source
|
587
598
|
@Target = target
|
588
599
|
@TargetTextList = targettextlist
|
600
|
+
@UsedAmount = usedamount
|
589
601
|
@RequestId = requestid
|
590
602
|
end
|
591
603
|
|
@@ -593,6 +605,7 @@ module TencentCloud
|
|
593
605
|
@Source = params['Source']
|
594
606
|
@Target = params['Target']
|
595
607
|
@TargetTextList = params['TargetTextList']
|
608
|
+
@UsedAmount = params['UsedAmount']
|
596
609
|
@RequestId = params['RequestId']
|
597
610
|
end
|
598
611
|
end
|
@@ -683,15 +696,18 @@ module TencentCloud
|
|
683
696
|
# @type Source: String
|
684
697
|
# @param Target: 目标语言,详见入参Target
|
685
698
|
# @type Target: String
|
699
|
+
# @param UsedAmount: 本次翻译消耗的字符数
|
700
|
+
# @type UsedAmount: Integer
|
686
701
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
687
702
|
# @type RequestId: String
|
688
703
|
|
689
|
-
attr_accessor :TargetText, :Source, :Target, :RequestId
|
704
|
+
attr_accessor :TargetText, :Source, :Target, :UsedAmount, :RequestId
|
690
705
|
|
691
|
-
def initialize(targettext=nil, source=nil, target=nil, requestid=nil)
|
706
|
+
def initialize(targettext=nil, source=nil, target=nil, usedamount=nil, requestid=nil)
|
692
707
|
@TargetText = targettext
|
693
708
|
@Source = source
|
694
709
|
@Target = target
|
710
|
+
@UsedAmount = usedamount
|
695
711
|
@RequestId = requestid
|
696
712
|
end
|
697
713
|
|
@@ -699,6 +715,7 @@ module TencentCloud
|
|
699
715
|
@TargetText = params['TargetText']
|
700
716
|
@Source = params['Source']
|
701
717
|
@Target = params['Target']
|
718
|
+
@UsedAmount = params['UsedAmount']
|
702
719
|
@RequestId = params['RequestId']
|
703
720
|
end
|
704
721
|
end
|
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.944
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|