tencentcloud-sdk-tmt 3.0.941 → 3.0.943

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180321/models.rb +30 -13
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc68a95e25bf0659455d6a912260ecb9fe8ba783
4
- data.tar.gz: 4a5a2bff186c526cf7e8d3bfb49be2ce45d9f2f2
3
+ metadata.gz: 0b0146682afc32e904264ee4bd47520063317d2c
4
+ data.tar.gz: d5c3df4adb109828508f574ac82f4581b5a6c8bc
5
5
  SHA512:
6
- metadata.gz: a9b019115575826627272c67e078a759b2e7b68b6b0a6aa13014310c7e57ef81fb48bb2eb345964c71865038e49b566bb1401b0273d88193c29e5dcd6d1da428
7
- data.tar.gz: 79e3a7cc3fc3e9fc17bdf584c6ac0c796806bc37da2b8ee48d0281856b50e4fe0cbd41e7ad0a5fa2bacf08e87cf2fc51f829d897d317890e9336b94d1351f2eb
6
+ metadata.gz: 80d82a74411119ac53c6b5d2baf9739f43f03926841e325c29409a428063547f20c1a7adf41f203e837229f2d02807e77b3d42b9fdc03f78e1879b405d411257
7
+ data.tar.gz: 451337e3c5e441914025f61d21f8074aebcd1e065f6da87b191568a0ac6708837612d422bbc9f23e133a31956ca5288915341d76ea020208875616d13bb2c70e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.941
1
+ 3.0.943
@@ -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, 10
403
- deprecate :Mode=, :none, 2024, 10
404
- deprecate :TransType, :none, 2024, 10
405
- deprecate :TransType=, :none, 2024, 10
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.941
4
+ version: 3.0.943
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-12 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common