tencentcloud-sdk-tmt 3.0.942 → 3.0.944

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: 4b2ade45655aa484f6f7607eb7f3bd1ec780e025
4
- data.tar.gz: 8f93b13ec2ff6de485ebb7e8a32e245c4e2c1a93
3
+ metadata.gz: f599764432a49d1a033cd7f49aa919450ff3dddd
4
+ data.tar.gz: d49a6e23bfb3cb548dc46342379e807472a42ab7
5
5
  SHA512:
6
- metadata.gz: 9d031ba6986599f63e991318ea2e1546b6767a8ae51d6a7f7364960bb7215aeb27fd61579adf2444fbccc8a09968d8be7ed5dc3143854a8fdcc1199bf3571a3d
7
- data.tar.gz: dc79d09cc4a58371f1350d0cecb3f347b3297214f4f438a61d2e7b3b06252a330328e5142fa73d535279c1f65a4d63b133626f6beea139a08b18f4c532e5d9ae
6
+ metadata.gz: 0ffcf8da2e81bb0c2eb6e58794545482a6ecd49326a79328287f9d6f01eb59434f558c7cbd32adde1c7d93066828e3866c3d91f527d4d8b5b7cb526d8e52e41e
7
+ data.tar.gz: 6d14b38124d3de5874a98641049f3ae0032bdcf143c1d93deed718a54a8e9f7ec828fa8d0d8568a1e8b06ecf948941c12c1bd07260d36f822e9168d075d597bf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.942
1
+ 3.0.944
@@ -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.942
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-15 00:00:00.000000000 Z
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