tencentcloud-sdk-ecc 3.0.657 → 3.0.658

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/v20181213/models.rb +58 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55f156c15d698a68364dda8eaf54fb82fb1559a4
4
- data.tar.gz: 4b9f63c2180a896bcf4db13bdd75886b8283e794
3
+ metadata.gz: 80cca9ed70eddebcec44ea2399a665183046d053
4
+ data.tar.gz: 73068fce1157797e2ad179aab0def01f4310d936
5
5
  SHA512:
6
- metadata.gz: 05a7e505bd37b685236b061344c2c354ae3a7428794f0fef7f1ed342993ecbccce5fba6060529047c6f7ec94e719ac883cbc84463f91bcacdc58176338f5fb34
7
- data.tar.gz: 2adee915ceee6e65b43a8aeca0849a50245952388fdf47c0dc21304856cb27695d677b720d2c37e6a0626ba2e8706daf547f9d3547c462fa25cb4ca7bff643f8
6
+ metadata.gz: 9b41bc789bd7d86e8e832e113461da78c91d18ab979762b09942d9c0000cf0aa3e704abee51a19ac8e6a3781b57b0cea335087cf49f39a1999bf850f7e6d5285
7
+ data.tar.gz: 9e32e3594d3eb042043950783135eba793f25e3e7c12192af6eba8bcd2ad4a46f1bb95505dd47b0396683b17163e6577c80213a2173f2a8687b84df2f615ad64
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.657
1
+ 3.0.658
@@ -41,6 +41,40 @@ module TencentCloud
41
41
  end
42
42
  end
43
43
 
44
+ # 图像识别批改接口返回的作文文本信息或批改信息
45
+ class CompositionContext < TencentCloud::Common::AbstractModel
46
+ # @param Content: 作文内容
47
+ # @type Content: String
48
+ # @param CorrectData: 批改结果
49
+ # 注意:此字段可能返回 null,表示取不到有效值。
50
+ # @type CorrectData: :class:`Tencentcloud::Ecc.v20181213.models.CorrectData`
51
+ # @param TaskId: 任务 id,用于查询接口
52
+ # 注意:此字段可能返回 null,表示取不到有效值。
53
+ # @type TaskId: String
54
+ # @param SessionId: 图像识别唯一标识,一次识别一个 SessionId
55
+ # 注意:此字段可能返回 null,表示取不到有效值。
56
+ # @type SessionId: String
57
+
58
+ attr_accessor :Content, :CorrectData, :TaskId, :SessionId
59
+
60
+ def initialize(content=nil, correctdata=nil, taskid=nil, sessionid=nil)
61
+ @Content = content
62
+ @CorrectData = correctdata
63
+ @TaskId = taskid
64
+ @SessionId = sessionid
65
+ end
66
+
67
+ def deserialize(params)
68
+ @Content = params['Content']
69
+ unless params['CorrectData'].nil?
70
+ @CorrectData = CorrectData.new
71
+ @CorrectData.deserialize(params['CorrectData'])
72
+ end
73
+ @TaskId = params['TaskId']
74
+ @SessionId = params['SessionId']
75
+ end
76
+ end
77
+
44
78
  # 图像识别批改接口返回的作文文本信息或批改信息
45
79
  class CompostionContext < TencentCloud::Common::AbstractModel
46
80
  # @param Content: 作文内容
@@ -173,13 +207,19 @@ module TencentCloud
173
207
  class CorrectMultiImageResponse < TencentCloud::Common::AbstractModel
174
208
  # @param Data: 接口返回数据
175
209
  # @type Data: :class:`Tencentcloud::Ecc.v20181213.models.CompostionContext`
210
+ # @param ResultData: 接口返回数据
211
+ # @type ResultData: :class:`Tencentcloud::Ecc.v20181213.models.CompositionContext`
176
212
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
177
213
  # @type RequestId: String
178
214
 
179
- attr_accessor :Data, :RequestId
215
+ attr_accessor :Data, :ResultData, :RequestId
216
+ extend Gem::Deprecate
217
+ deprecate :Data, :none, 2023, 9
218
+ deprecate :Data=, :none, 2023, 9
180
219
 
181
- def initialize(data=nil, requestid=nil)
220
+ def initialize(data=nil, resultdata=nil, requestid=nil)
182
221
  @Data = data
222
+ @ResultData = resultdata
183
223
  @RequestId = requestid
184
224
  end
185
225
 
@@ -188,6 +228,10 @@ module TencentCloud
188
228
  @Data = CompostionContext.new
189
229
  @Data.deserialize(params['Data'])
190
230
  end
231
+ unless params['ResultData'].nil?
232
+ @ResultData = CompositionContext.new
233
+ @ResultData.deserialize(params['ResultData'])
234
+ end
191
235
  @RequestId = params['RequestId']
192
236
  end
193
237
  end
@@ -382,13 +426,19 @@ module TencentCloud
382
426
  class EHOCRResponse < TencentCloud::Common::AbstractModel
383
427
  # @param Data: 接口返回数据
384
428
  # @type Data: :class:`Tencentcloud::Ecc.v20181213.models.CompostionContext`
429
+ # @param ResultData: 接口返回数据
430
+ # @type ResultData: :class:`Tencentcloud::Ecc.v20181213.models.CompositionContext`
385
431
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
386
432
  # @type RequestId: String
387
433
 
388
- attr_accessor :Data, :RequestId
434
+ attr_accessor :Data, :ResultData, :RequestId
435
+ extend Gem::Deprecate
436
+ deprecate :Data, :none, 2023, 9
437
+ deprecate :Data=, :none, 2023, 9
389
438
 
390
- def initialize(data=nil, requestid=nil)
439
+ def initialize(data=nil, resultdata=nil, requestid=nil)
391
440
  @Data = data
441
+ @ResultData = resultdata
392
442
  @RequestId = requestid
393
443
  end
394
444
 
@@ -397,6 +447,10 @@ module TencentCloud
397
447
  @Data = CompostionContext.new
398
448
  @Data.deserialize(params['Data'])
399
449
  end
450
+ unless params['ResultData'].nil?
451
+ @ResultData = CompositionContext.new
452
+ @ResultData.deserialize(params['ResultData'])
453
+ end
400
454
  @RequestId = params['RequestId']
401
455
  end
402
456
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ecc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.657
4
+ version: 3.0.658
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-09-12 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common