tencentcloud-sdk-cii 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,903 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Cii
19
+ module V20210408
20
+ # 报告分类信息
21
+ class ClassifyInfo < TencentCloud::Common::AbstractModel
22
+ # @param FirstClass: 一级分类
23
+ # @type FirstClass: String
24
+ # @param SecondClass: 二级分类
25
+ # @type SecondClass: String
26
+ # @param ThirdClass: 三级分类
27
+ # @type ThirdClass: String
28
+ # @param FirstClassId: 一级分类序号
29
+ # @type FirstClassId: Integer
30
+ # @param SecondClassId: 二级分类序号
31
+ # @type SecondClassId: Integer
32
+ # @param ThirdClassId: 三级分类序号
33
+ # @type ThirdClassId: Integer
34
+
35
+ attr_accessor :FirstClass, :SecondClass, :ThirdClass, :FirstClassId, :SecondClassId, :ThirdClassId
36
+
37
+ def initialize(firstclass=nil, secondclass=nil, thirdclass=nil, firstclassid=nil, secondclassid=nil, thirdclassid=nil)
38
+ @FirstClass = firstclass
39
+ @SecondClass = secondclass
40
+ @ThirdClass = thirdclass
41
+ @FirstClassId = firstclassid
42
+ @SecondClassId = secondclassid
43
+ @ThirdClassId = thirdclassid
44
+ end
45
+
46
+ def deserialize(params)
47
+ @FirstClass = params['FirstClass']
48
+ @SecondClass = params['SecondClass']
49
+ @ThirdClass = params['ThirdClass']
50
+ @FirstClassId = params['FirstClassId']
51
+ @SecondClassId = params['SecondClassId']
52
+ @ThirdClassId = params['ThirdClassId']
53
+ end
54
+ end
55
+
56
+ # 结构化对比指标(准确率/召回率)数据
57
+ class CompareMetricsData < TencentCloud::Common::AbstractModel
58
+ # @param ShortStructAccuracy: 短文准确率
59
+ # 注意:此字段可能返回 null,表示取不到有效值。
60
+ # @type ShortStructAccuracy: String
61
+ # @param ShortStructRecall: 短文召回率
62
+ # 注意:此字段可能返回 null,表示取不到有效值。
63
+ # @type ShortStructRecall: String
64
+ # @param LongStructAccuracy: 长文结构化准确率
65
+ # 注意:此字段可能返回 null,表示取不到有效值。
66
+ # @type LongStructAccuracy: String
67
+ # @param LongStructRecall: 长文结构化召回率
68
+ # 注意:此字段可能返回 null,表示取不到有效值。
69
+ # @type LongStructRecall: String
70
+ # @param LongContentAccuracy: 长文提取准确率
71
+ # 注意:此字段可能返回 null,表示取不到有效值。
72
+ # @type LongContentAccuracy: String
73
+ # @param LongContentRecall: 长文提取召回率
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type LongContentRecall: String
76
+
77
+ attr_accessor :ShortStructAccuracy, :ShortStructRecall, :LongStructAccuracy, :LongStructRecall, :LongContentAccuracy, :LongContentRecall
78
+
79
+ def initialize(shortstructaccuracy=nil, shortstructrecall=nil, longstructaccuracy=nil, longstructrecall=nil, longcontentaccuracy=nil, longcontentrecall=nil)
80
+ @ShortStructAccuracy = shortstructaccuracy
81
+ @ShortStructRecall = shortstructrecall
82
+ @LongStructAccuracy = longstructaccuracy
83
+ @LongStructRecall = longstructrecall
84
+ @LongContentAccuracy = longcontentaccuracy
85
+ @LongContentRecall = longcontentrecall
86
+ end
87
+
88
+ def deserialize(params)
89
+ @ShortStructAccuracy = params['ShortStructAccuracy']
90
+ @ShortStructRecall = params['ShortStructRecall']
91
+ @LongStructAccuracy = params['LongStructAccuracy']
92
+ @LongStructRecall = params['LongStructRecall']
93
+ @LongContentAccuracy = params['LongContentAccuracy']
94
+ @LongContentRecall = params['LongContentRecall']
95
+ end
96
+ end
97
+
98
+ # 创建结构化任务子任务信息
99
+ class CreateStructureTaskInfo < TencentCloud::Common::AbstractModel
100
+ # @param TaskType: 任务类型
101
+ # @type TaskType: String
102
+ # @param FileList: 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
103
+ # @type FileList: Array
104
+ # @param CustomerId: 客户号
105
+ # @type CustomerId: String
106
+ # @param CustomerName: 客户姓名
107
+ # @type CustomerName: String
108
+ # @param ImageList: 报告上传的图片内容数组,图片内容采用base64编码,需按顺序排列
109
+ # @type ImageList: Array
110
+ # @param Year: 报告年份
111
+ # @type Year: String
112
+
113
+ attr_accessor :TaskType, :FileList, :CustomerId, :CustomerName, :ImageList, :Year
114
+
115
+ def initialize(tasktype=nil, filelist=nil, customerid=nil, customername=nil, imagelist=nil, year=nil)
116
+ @TaskType = tasktype
117
+ @FileList = filelist
118
+ @CustomerId = customerid
119
+ @CustomerName = customername
120
+ @ImageList = imagelist
121
+ @Year = year
122
+ end
123
+
124
+ def deserialize(params)
125
+ @TaskType = params['TaskType']
126
+ @FileList = params['FileList']
127
+ @CustomerId = params['CustomerId']
128
+ @CustomerName = params['CustomerName']
129
+ @ImageList = params['ImageList']
130
+ @Year = params['Year']
131
+ end
132
+ end
133
+
134
+ # CreateStructureTask请求参数结构体
135
+ class CreateStructureTaskRequest < TencentCloud::Common::AbstractModel
136
+ # @param ServiceType: 服务类型
137
+ # Structured 仅结构化
138
+ # Underwrite 结构化+核保
139
+ # @type ServiceType: String
140
+ # @param TaskInfos: 创建任务时可以上传多个报告,后台生成多个识别子任务,子任务的详细信息
141
+ # @type TaskInfos: Array
142
+ # @param PolicyId: 保单号
143
+ # @type PolicyId: String
144
+ # @param TriggerType: 核保触发方式
145
+ # Auto 自动
146
+ # Manual 手动
147
+ # @type TriggerType: String
148
+ # @param InsuranceTypes: 险种,如果是体检报告类型,此参数是必填,类型说明如下:
149
+ # CriticalDiseaseInsurance:重疾险
150
+ # LifeInsurance:寿险
151
+ # AccidentInsurance:意外险
152
+ # @type InsuranceTypes: Array
153
+ # @param CallbackUrl: 回调地址,接收Post请求传送结果
154
+ # @type CallbackUrl: String
155
+
156
+ attr_accessor :ServiceType, :TaskInfos, :PolicyId, :TriggerType, :InsuranceTypes, :CallbackUrl
157
+
158
+ def initialize(servicetype=nil, taskinfos=nil, policyid=nil, triggertype=nil, insurancetypes=nil, callbackurl=nil)
159
+ @ServiceType = servicetype
160
+ @TaskInfos = taskinfos
161
+ @PolicyId = policyid
162
+ @TriggerType = triggertype
163
+ @InsuranceTypes = insurancetypes
164
+ @CallbackUrl = callbackurl
165
+ end
166
+
167
+ def deserialize(params)
168
+ @ServiceType = params['ServiceType']
169
+ unless params['TaskInfos'].nil?
170
+ @TaskInfos = []
171
+ params['TaskInfos'].each do |i|
172
+ createstructuretaskinfo_tmp = CreateStructureTaskInfo.new
173
+ createstructuretaskinfo_tmp.deserialize(i)
174
+ @TaskInfos << createstructuretaskinfo_tmp
175
+ end
176
+ end
177
+ @PolicyId = params['PolicyId']
178
+ @TriggerType = params['TriggerType']
179
+ @InsuranceTypes = params['InsuranceTypes']
180
+ @CallbackUrl = params['CallbackUrl']
181
+ end
182
+ end
183
+
184
+ # CreateStructureTask返回参数结构体
185
+ class CreateStructureTaskResponse < TencentCloud::Common::AbstractModel
186
+ # @param MainTaskId: 创建的主任务号,用于查询结果
187
+ # @type MainTaskId: String
188
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
189
+ # @type RequestId: String
190
+
191
+ attr_accessor :MainTaskId, :RequestId
192
+
193
+ def initialize(maintaskid=nil, requestid=nil)
194
+ @MainTaskId = maintaskid
195
+ @RequestId = requestid
196
+ end
197
+
198
+ def deserialize(params)
199
+ @MainTaskId = params['MainTaskId']
200
+ @RequestId = params['RequestId']
201
+ end
202
+ end
203
+
204
+ # CreateUnderwriteTaskById请求参数结构体
205
+ class CreateUnderwriteTaskByIdRequest < TencentCloud::Common::AbstractModel
206
+ # @param MainTaskIds: 主任务ID数组,
207
+ # @type MainTaskIds: Array
208
+ # @param CallbackUrl: 回调地址,可不传(提供轮询机制)。
209
+ # @type CallbackUrl: String
210
+
211
+ attr_accessor :MainTaskIds, :CallbackUrl
212
+
213
+ def initialize(maintaskids=nil, callbackurl=nil)
214
+ @MainTaskIds = maintaskids
215
+ @CallbackUrl = callbackurl
216
+ end
217
+
218
+ def deserialize(params)
219
+ @MainTaskIds = params['MainTaskIds']
220
+ @CallbackUrl = params['CallbackUrl']
221
+ end
222
+ end
223
+
224
+ # CreateUnderwriteTaskById返回参数结构体
225
+ class CreateUnderwriteTaskByIdResponse < TencentCloud::Common::AbstractModel
226
+ # @param UnderwriteTaskIds: 核保任务ID数据
227
+ # @type UnderwriteTaskIds: Array
228
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
229
+ # @type RequestId: String
230
+
231
+ attr_accessor :UnderwriteTaskIds, :RequestId
232
+
233
+ def initialize(underwritetaskids=nil, requestid=nil)
234
+ @UnderwriteTaskIds = underwritetaskids
235
+ @RequestId = requestid
236
+ end
237
+
238
+ def deserialize(params)
239
+ @UnderwriteTaskIds = params['UnderwriteTaskIds']
240
+ @RequestId = params['RequestId']
241
+ end
242
+ end
243
+
244
+ # DescribeMachineUnderwrite请求参数结构体
245
+ class DescribeMachineUnderwriteRequest < TencentCloud::Common::AbstractModel
246
+ # @param UnderwriteTaskId: 核保任务ID
247
+ # @type UnderwriteTaskId: String
248
+
249
+ attr_accessor :UnderwriteTaskId
250
+
251
+ def initialize(underwritetaskid=nil)
252
+ @UnderwriteTaskId = underwritetaskid
253
+ end
254
+
255
+ def deserialize(params)
256
+ @UnderwriteTaskId = params['UnderwriteTaskId']
257
+ end
258
+ end
259
+
260
+ # DescribeMachineUnderwrite返回参数结构体
261
+ class DescribeMachineUnderwriteResponse < TencentCloud::Common::AbstractModel
262
+ # @param Uin: 腾讯云主账号ID
263
+ # @type Uin: String
264
+ # @param SubAccountUin: 操作人子账户ID
265
+ # @type SubAccountUin: String
266
+ # @param PolicyId: 保单ID
267
+ # @type PolicyId: String
268
+ # @param MainTaskId: 主任务ID
269
+ # @type MainTaskId: String
270
+ # @param UnderwriteTaskId: 核保任务ID
271
+ # @type UnderwriteTaskId: String
272
+ # @param Status: 状态码
273
+ # @type Status: Integer
274
+ # @param UnderwriteResults: 机器核保结果
275
+ # @type UnderwriteResults: Array
276
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
277
+ # @type RequestId: String
278
+
279
+ attr_accessor :Uin, :SubAccountUin, :PolicyId, :MainTaskId, :UnderwriteTaskId, :Status, :UnderwriteResults, :RequestId
280
+
281
+ def initialize(uin=nil, subaccountuin=nil, policyid=nil, maintaskid=nil, underwritetaskid=nil, status=nil, underwriteresults=nil, requestid=nil)
282
+ @Uin = uin
283
+ @SubAccountUin = subaccountuin
284
+ @PolicyId = policyid
285
+ @MainTaskId = maintaskid
286
+ @UnderwriteTaskId = underwritetaskid
287
+ @Status = status
288
+ @UnderwriteResults = underwriteresults
289
+ @RequestId = requestid
290
+ end
291
+
292
+ def deserialize(params)
293
+ @Uin = params['Uin']
294
+ @SubAccountUin = params['SubAccountUin']
295
+ @PolicyId = params['PolicyId']
296
+ @MainTaskId = params['MainTaskId']
297
+ @UnderwriteTaskId = params['UnderwriteTaskId']
298
+ @Status = params['Status']
299
+ unless params['UnderwriteResults'].nil?
300
+ @UnderwriteResults = []
301
+ params['UnderwriteResults'].each do |i|
302
+ machineunderwriteoutput_tmp = MachineUnderwriteOutput.new
303
+ machineunderwriteoutput_tmp.deserialize(i)
304
+ @UnderwriteResults << machineunderwriteoutput_tmp
305
+ end
306
+ end
307
+ @RequestId = params['RequestId']
308
+ end
309
+ end
310
+
311
+ # DescribeStructCompareData请求参数结构体
312
+ class DescribeStructCompareDataRequest < TencentCloud::Common::AbstractModel
313
+ # @param MainTaskId: 主任务号
314
+ # @type MainTaskId: String
315
+ # @param SubTaskId: 子任务号
316
+ # @type SubTaskId: String
317
+
318
+ attr_accessor :MainTaskId, :SubTaskId
319
+
320
+ def initialize(maintaskid=nil, subtaskid=nil)
321
+ @MainTaskId = maintaskid
322
+ @SubTaskId = subtaskid
323
+ end
324
+
325
+ def deserialize(params)
326
+ @MainTaskId = params['MainTaskId']
327
+ @SubTaskId = params['SubTaskId']
328
+ end
329
+ end
330
+
331
+ # DescribeStructCompareData返回参数结构体
332
+ class DescribeStructCompareDataResponse < TencentCloud::Common::AbstractModel
333
+ # @param PolicyId: 保单号
334
+ # @type PolicyId: String
335
+ # @param MainTaskId: 主任务号
336
+ # @type MainTaskId: String
337
+ # @param CustomerId: 客户号
338
+ # 注意:此字段可能返回 null,表示取不到有效值。
339
+ # @type CustomerId: String
340
+ # @param CustomerName: 客户姓名
341
+ # 注意:此字段可能返回 null,表示取不到有效值。
342
+ # @type CustomerName: String
343
+ # @param ReviewTime: 复核时间
344
+ # @type ReviewTime: String
345
+ # @param MachineResult: 算法识别结果
346
+ # @type MachineResult: String
347
+ # @param ManualResult: 人工复核结果
348
+ # @type ManualResult: String
349
+ # @param Metrics: 结构化对比指标数据
350
+ # @type Metrics: :class:`Tencentcloud::Cii.v20210408.models.CompareMetricsData`
351
+ # @param NewItems: 新增项
352
+ # @type NewItems: String
353
+ # @param ModifyItems: 修改项
354
+ # @type ModifyItems: String
355
+ # @param SubTaskId: 子任务号
356
+ # @type SubTaskId: String
357
+ # @param AllTasks: 所有的子任务
358
+ # @type AllTasks: Array
359
+ # @param TaskType: 任务类型
360
+ # @type TaskType: String
361
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
362
+ # @type RequestId: String
363
+
364
+ attr_accessor :PolicyId, :MainTaskId, :CustomerId, :CustomerName, :ReviewTime, :MachineResult, :ManualResult, :Metrics, :NewItems, :ModifyItems, :SubTaskId, :AllTasks, :TaskType, :RequestId
365
+
366
+ def initialize(policyid=nil, maintaskid=nil, customerid=nil, customername=nil, reviewtime=nil, machineresult=nil, manualresult=nil, metrics=nil, newitems=nil, modifyitems=nil, subtaskid=nil, alltasks=nil, tasktype=nil, requestid=nil)
367
+ @PolicyId = policyid
368
+ @MainTaskId = maintaskid
369
+ @CustomerId = customerid
370
+ @CustomerName = customername
371
+ @ReviewTime = reviewtime
372
+ @MachineResult = machineresult
373
+ @ManualResult = manualresult
374
+ @Metrics = metrics
375
+ @NewItems = newitems
376
+ @ModifyItems = modifyitems
377
+ @SubTaskId = subtaskid
378
+ @AllTasks = alltasks
379
+ @TaskType = tasktype
380
+ @RequestId = requestid
381
+ end
382
+
383
+ def deserialize(params)
384
+ @PolicyId = params['PolicyId']
385
+ @MainTaskId = params['MainTaskId']
386
+ @CustomerId = params['CustomerId']
387
+ @CustomerName = params['CustomerName']
388
+ @ReviewTime = params['ReviewTime']
389
+ @MachineResult = params['MachineResult']
390
+ @ManualResult = params['ManualResult']
391
+ unless params['Metrics'].nil?
392
+ @Metrics = CompareMetricsData.new
393
+ @Metrics.deserialize(params['Metrics'])
394
+ end
395
+ @NewItems = params['NewItems']
396
+ @ModifyItems = params['ModifyItems']
397
+ @SubTaskId = params['SubTaskId']
398
+ unless params['AllTasks'].nil?
399
+ @AllTasks = []
400
+ params['AllTasks'].each do |i|
401
+ reviewdatataskinfo_tmp = ReviewDataTaskInfo.new
402
+ reviewdatataskinfo_tmp.deserialize(i)
403
+ @AllTasks << reviewdatataskinfo_tmp
404
+ end
405
+ end
406
+ @TaskType = params['TaskType']
407
+ @RequestId = params['RequestId']
408
+ end
409
+ end
410
+
411
+ # DescribeStructureDifference请求参数结构体
412
+ class DescribeStructureDifferenceRequest < TencentCloud::Common::AbstractModel
413
+ # @param MainTaskId: 主任务号
414
+ # @type MainTaskId: String
415
+ # @param SubTaskId: 子任务号
416
+ # @type SubTaskId: String
417
+
418
+ attr_accessor :MainTaskId, :SubTaskId
419
+
420
+ def initialize(maintaskid=nil, subtaskid=nil)
421
+ @MainTaskId = maintaskid
422
+ @SubTaskId = subtaskid
423
+ end
424
+
425
+ def deserialize(params)
426
+ @MainTaskId = params['MainTaskId']
427
+ @SubTaskId = params['SubTaskId']
428
+ end
429
+ end
430
+
431
+ # DescribeStructureDifference返回参数结构体
432
+ class DescribeStructureDifferenceResponse < TencentCloud::Common::AbstractModel
433
+ # @param MainTaskId: 主任务号
434
+ # @type MainTaskId: String
435
+ # @param Status: 结果状态:
436
+ # 0:返回成功
437
+ # 1:结果未生成
438
+ # 2:结果生成失败
439
+ # 注意:此字段可能返回 null,表示取不到有效值。
440
+ # @type Status: Integer
441
+ # @param Results: 差异的结果数组
442
+ # @type Results: Array
443
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
444
+ # @type RequestId: String
445
+
446
+ attr_accessor :MainTaskId, :Status, :Results, :RequestId
447
+
448
+ def initialize(maintaskid=nil, status=nil, results=nil, requestid=nil)
449
+ @MainTaskId = maintaskid
450
+ @Status = status
451
+ @Results = results
452
+ @RequestId = requestid
453
+ end
454
+
455
+ def deserialize(params)
456
+ @MainTaskId = params['MainTaskId']
457
+ @Status = params['Status']
458
+ unless params['Results'].nil?
459
+ @Results = []
460
+ params['Results'].each do |i|
461
+ perstructdifference_tmp = PerStructDifference.new
462
+ perstructdifference_tmp.deserialize(i)
463
+ @Results << perstructdifference_tmp
464
+ end
465
+ end
466
+ @RequestId = params['RequestId']
467
+ end
468
+ end
469
+
470
+ # DescribeStructureResult请求参数结构体
471
+ class DescribeStructureResultRequest < TencentCloud::Common::AbstractModel
472
+ # @param MainTaskId: 创建任务时返回的主任务ID
473
+ # @type MainTaskId: String
474
+
475
+ attr_accessor :MainTaskId
476
+
477
+ def initialize(maintaskid=nil)
478
+ @MainTaskId = maintaskid
479
+ end
480
+
481
+ def deserialize(params)
482
+ @MainTaskId = params['MainTaskId']
483
+ end
484
+ end
485
+
486
+ # DescribeStructureResult返回参数结构体
487
+ class DescribeStructureResultResponse < TencentCloud::Common::AbstractModel
488
+ # @param Status: 结果状态:
489
+ # 0:返回成功
490
+ # 1:结果未生成
491
+ # 2:结果生成失败
492
+ # @type Status: Integer
493
+ # @param Results: 结构化结果
494
+ # @type Results: Array
495
+ # @param MainTaskId: 主任务ID
496
+ # @type MainTaskId: String
497
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
498
+ # @type RequestId: String
499
+
500
+ attr_accessor :Status, :Results, :MainTaskId, :RequestId
501
+
502
+ def initialize(status=nil, results=nil, maintaskid=nil, requestid=nil)
503
+ @Status = status
504
+ @Results = results
505
+ @MainTaskId = maintaskid
506
+ @RequestId = requestid
507
+ end
508
+
509
+ def deserialize(params)
510
+ @Status = params['Status']
511
+ unless params['Results'].nil?
512
+ @Results = []
513
+ params['Results'].each do |i|
514
+ structureresultobject_tmp = StructureResultObject.new
515
+ structureresultobject_tmp.deserialize(i)
516
+ @Results << structureresultobject_tmp
517
+ end
518
+ end
519
+ @MainTaskId = params['MainTaskId']
520
+ @RequestId = params['RequestId']
521
+ end
522
+ end
523
+
524
+ # DescribeStructureTaskResult请求参数结构体
525
+ class DescribeStructureTaskResultRequest < TencentCloud::Common::AbstractModel
526
+ # @param MainTaskId: 结构化任务ID
527
+ # @type MainTaskId: String
528
+
529
+ attr_accessor :MainTaskId
530
+
531
+ def initialize(maintaskid=nil)
532
+ @MainTaskId = maintaskid
533
+ end
534
+
535
+ def deserialize(params)
536
+ @MainTaskId = params['MainTaskId']
537
+ end
538
+ end
539
+
540
+ # DescribeStructureTaskResult返回参数结构体
541
+ class DescribeStructureTaskResultResponse < TencentCloud::Common::AbstractModel
542
+ # @param Status: 结果状态:
543
+ # 0:返回成功
544
+ # 1:结果未生成
545
+ # 2:结果生成失败
546
+ # @type Status: Integer
547
+ # @param Results: 结构化识别结果数组,每个数组元素对应一个图片的结构化结果,顺序和输入参数的ImageList或FileList对应。
548
+ # 注意:此字段可能返回 null,表示取不到有效值。
549
+ # @type Results: Array
550
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
551
+ # @type RequestId: String
552
+
553
+ attr_accessor :Status, :Results, :RequestId
554
+
555
+ def initialize(status=nil, results=nil, requestid=nil)
556
+ @Status = status
557
+ @Results = results
558
+ @RequestId = requestid
559
+ end
560
+
561
+ def deserialize(params)
562
+ @Status = params['Status']
563
+ unless params['Results'].nil?
564
+ @Results = []
565
+ params['Results'].each do |i|
566
+ resultobject_tmp = ResultObject.new
567
+ resultobject_tmp.deserialize(i)
568
+ @Results << resultobject_tmp
569
+ end
570
+ end
571
+ @RequestId = params['RequestId']
572
+ end
573
+ end
574
+
575
+ # 包含险种的各个核保结论
576
+ class InsuranceResult < TencentCloud::Common::AbstractModel
577
+ # @param InsuranceType: 险种
578
+ # @type InsuranceType: String
579
+ # @param Result: 对应险种的机器核保结果
580
+ # @type Result: Array
581
+
582
+ attr_accessor :InsuranceType, :Result
583
+
584
+ def initialize(insurancetype=nil, result=nil)
585
+ @InsuranceType = insurancetype
586
+ @Result = result
587
+ end
588
+
589
+ def deserialize(params)
590
+ @InsuranceType = params['InsuranceType']
591
+ unless params['Result'].nil?
592
+ @Result = []
593
+ params['Result'].each do |i|
594
+ machinepredict_tmp = MachinePredict.new
595
+ machinepredict_tmp.deserialize(i)
596
+ @Result << machinepredict_tmp
597
+ end
598
+ end
599
+ end
600
+ end
601
+
602
+ # 机器核保预测结果
603
+ class MachinePredict < TencentCloud::Common::AbstractModel
604
+ # @param Title: 核保引擎名称
605
+ # @type Title: String
606
+ # @param Conclusion: 核保结论
607
+ # @type Conclusion: String
608
+ # @param Explanation: AI决策树解释
609
+ # @type Explanation: Array
610
+ # @param Disease: 疾病指标
611
+ # @type Disease: Array
612
+ # @param Laboratory: 检查异常
613
+ # @type Laboratory: Array
614
+
615
+ attr_accessor :Title, :Conclusion, :Explanation, :Disease, :Laboratory
616
+
617
+ def initialize(title=nil, conclusion=nil, explanation=nil, disease=nil, laboratory=nil)
618
+ @Title = title
619
+ @Conclusion = conclusion
620
+ @Explanation = explanation
621
+ @Disease = disease
622
+ @Laboratory = laboratory
623
+ end
624
+
625
+ def deserialize(params)
626
+ @Title = params['Title']
627
+ @Conclusion = params['Conclusion']
628
+ unless params['Explanation'].nil?
629
+ @Explanation = []
630
+ params['Explanation'].each do |i|
631
+ underwriteitem_tmp = UnderwriteItem.new
632
+ underwriteitem_tmp.deserialize(i)
633
+ @Explanation << underwriteitem_tmp
634
+ end
635
+ end
636
+ unless params['Disease'].nil?
637
+ @Disease = []
638
+ params['Disease'].each do |i|
639
+ underwriteitem_tmp = UnderwriteItem.new
640
+ underwriteitem_tmp.deserialize(i)
641
+ @Disease << underwriteitem_tmp
642
+ end
643
+ end
644
+ unless params['Laboratory'].nil?
645
+ @Laboratory = []
646
+ params['Laboratory'].each do |i|
647
+ underwriteitem_tmp = UnderwriteItem.new
648
+ underwriteitem_tmp.deserialize(i)
649
+ @Laboratory << underwriteitem_tmp
650
+ end
651
+ end
652
+ end
653
+ end
654
+
655
+ # 机器核保输出
656
+ class MachineUnderwriteOutput < TencentCloud::Common::AbstractModel
657
+ # @param CustomerId: 客户号
658
+ # @type CustomerId: String
659
+ # @param CustomerName: 客户姓名
660
+ # @type CustomerName: String
661
+ # @param Results: 各个险种的结果
662
+ # @type Results: Array
663
+
664
+ attr_accessor :CustomerId, :CustomerName, :Results
665
+
666
+ def initialize(customerid=nil, customername=nil, results=nil)
667
+ @CustomerId = customerid
668
+ @CustomerName = customername
669
+ @Results = results
670
+ end
671
+
672
+ def deserialize(params)
673
+ @CustomerId = params['CustomerId']
674
+ @CustomerName = params['CustomerName']
675
+ unless params['Results'].nil?
676
+ @Results = []
677
+ params['Results'].each do |i|
678
+ insuranceresult_tmp = InsuranceResult.new
679
+ insuranceresult_tmp.deserialize(i)
680
+ @Results << insuranceresult_tmp
681
+ end
682
+ end
683
+ end
684
+ end
685
+
686
+ # 复核差异接口的每一份报告的差异结果
687
+ class PerStructDifference < TencentCloud::Common::AbstractModel
688
+ # @param SubTaskId: 子任务ID
689
+ # @type SubTaskId: String
690
+ # @param TaskType: 任务类型
691
+ # @type TaskType: String
692
+ # @param ModifyItems: 修改的项
693
+ # @type ModifyItems: Array
694
+ # @param NewItems: 新增的项
695
+ # @type NewItems: Array
696
+ # @param RemoveItems: 删除的项
697
+ # @type RemoveItems: Array
698
+
699
+ attr_accessor :SubTaskId, :TaskType, :ModifyItems, :NewItems, :RemoveItems
700
+
701
+ def initialize(subtaskid=nil, tasktype=nil, modifyitems=nil, newitems=nil, removeitems=nil)
702
+ @SubTaskId = subtaskid
703
+ @TaskType = tasktype
704
+ @ModifyItems = modifyitems
705
+ @NewItems = newitems
706
+ @RemoveItems = removeitems
707
+ end
708
+
709
+ def deserialize(params)
710
+ @SubTaskId = params['SubTaskId']
711
+ @TaskType = params['TaskType']
712
+ unless params['ModifyItems'].nil?
713
+ @ModifyItems = []
714
+ params['ModifyItems'].each do |i|
715
+ structuremodifyitem_tmp = StructureModifyItem.new
716
+ structuremodifyitem_tmp.deserialize(i)
717
+ @ModifyItems << structuremodifyitem_tmp
718
+ end
719
+ end
720
+ unless params['NewItems'].nil?
721
+ @NewItems = []
722
+ params['NewItems'].each do |i|
723
+ structureoneitem_tmp = StructureOneItem.new
724
+ structureoneitem_tmp.deserialize(i)
725
+ @NewItems << structureoneitem_tmp
726
+ end
727
+ end
728
+ unless params['RemoveItems'].nil?
729
+ @RemoveItems = []
730
+ params['RemoveItems'].each do |i|
731
+ structureoneitem_tmp = StructureOneItem.new
732
+ structureoneitem_tmp.deserialize(i)
733
+ @RemoveItems << structureoneitem_tmp
734
+ end
735
+ end
736
+ end
737
+ end
738
+
739
+ # 用于返回结构化任务结果
740
+ class ResultObject < TencentCloud::Common::AbstractModel
741
+ # @param Quality: 图片质量分
742
+ # @type Quality: Float
743
+ # @param StructureResult: 由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议
744
+ # @type StructureResult: String
745
+ # @param ReportType: 报告分类信息
746
+ # 注意:此字段可能返回 null,表示取不到有效值。
747
+ # @type ReportType: Array
748
+
749
+ attr_accessor :Quality, :StructureResult, :ReportType
750
+
751
+ def initialize(quality=nil, structureresult=nil, reporttype=nil)
752
+ @Quality = quality
753
+ @StructureResult = structureresult
754
+ @ReportType = reporttype
755
+ end
756
+
757
+ def deserialize(params)
758
+ @Quality = params['Quality']
759
+ @StructureResult = params['StructureResult']
760
+ unless params['ReportType'].nil?
761
+ @ReportType = []
762
+ params['ReportType'].each do |i|
763
+ classifyinfo_tmp = ClassifyInfo.new
764
+ classifyinfo_tmp.deserialize(i)
765
+ @ReportType << classifyinfo_tmp
766
+ end
767
+ end
768
+ end
769
+ end
770
+
771
+ # 人工复核数据的子任务信息
772
+ class ReviewDataTaskInfo < TencentCloud::Common::AbstractModel
773
+ # @param MainTaskId: 主任务号
774
+ # @type MainTaskId: String
775
+ # @param SubTaskId: 子任务号
776
+ # @type SubTaskId: String
777
+ # @param TaskName: 任务名
778
+ # @type TaskName: String
779
+ # @param TaskType: 任务类型
780
+ # @type TaskType: String
781
+
782
+ attr_accessor :MainTaskId, :SubTaskId, :TaskName, :TaskType
783
+
784
+ def initialize(maintaskid=nil, subtaskid=nil, taskname=nil, tasktype=nil)
785
+ @MainTaskId = maintaskid
786
+ @SubTaskId = subtaskid
787
+ @TaskName = taskname
788
+ @TaskType = tasktype
789
+ end
790
+
791
+ def deserialize(params)
792
+ @MainTaskId = params['MainTaskId']
793
+ @SubTaskId = params['SubTaskId']
794
+ @TaskName = params['TaskName']
795
+ @TaskType = params['TaskType']
796
+ end
797
+ end
798
+
799
+ # 结构化复核差异接口的修改的项
800
+ class StructureModifyItem < TencentCloud::Common::AbstractModel
801
+ # @param Path: 修改的字段的路径
802
+ # 注意:此字段可能返回 null,表示取不到有效值。
803
+ # @type Path: String
804
+ # @param Machine: 机器结果的值
805
+ # 注意:此字段可能返回 null,表示取不到有效值。
806
+ # @type Machine: String
807
+ # @param Manual: 人工结果的值
808
+ # 注意:此字段可能返回 null,表示取不到有效值。
809
+ # @type Manual: String
810
+
811
+ attr_accessor :Path, :Machine, :Manual
812
+
813
+ def initialize(path=nil, machine=nil, manual=nil)
814
+ @Path = path
815
+ @Machine = machine
816
+ @Manual = manual
817
+ end
818
+
819
+ def deserialize(params)
820
+ @Path = params['Path']
821
+ @Machine = params['Machine']
822
+ @Manual = params['Manual']
823
+ end
824
+ end
825
+
826
+ # 复核差异接口的新增或者删除的项
827
+ class StructureOneItem < TencentCloud::Common::AbstractModel
828
+ # @param Path: 新字段的路径
829
+ # 注意:此字段可能返回 null,表示取不到有效值。
830
+ # @type Path: String
831
+ # @param Value: 字段的值
832
+ # 注意:此字段可能返回 null,表示取不到有效值。
833
+ # @type Value: String
834
+
835
+ attr_accessor :Path, :Value
836
+
837
+ def initialize(path=nil, value=nil)
838
+ @Path = path
839
+ @Value = value
840
+ end
841
+
842
+ def deserialize(params)
843
+ @Path = params['Path']
844
+ @Value = params['Value']
845
+ end
846
+ end
847
+
848
+ # 结构化结果
849
+ class StructureResultObject < TencentCloud::Common::AbstractModel
850
+ # @param Code: 0表示正常返回
851
+ # @type Code: Integer
852
+ # @param TaskType: 报告类型
853
+ # @type TaskType: String
854
+ # @param StructureResult: 结构化结果
855
+ # @type StructureResult: String
856
+ # @param SubTaskId: 子任务ID
857
+ # @type SubTaskId: String
858
+
859
+ attr_accessor :Code, :TaskType, :StructureResult, :SubTaskId
860
+
861
+ def initialize(code=nil, tasktype=nil, structureresult=nil, subtaskid=nil)
862
+ @Code = code
863
+ @TaskType = tasktype
864
+ @StructureResult = structureresult
865
+ @SubTaskId = subtaskid
866
+ end
867
+
868
+ def deserialize(params)
869
+ @Code = params['Code']
870
+ @TaskType = params['TaskType']
871
+ @StructureResult = params['StructureResult']
872
+ @SubTaskId = params['SubTaskId']
873
+ end
874
+ end
875
+
876
+ # 机器核保结论子项
877
+ class UnderwriteItem < TencentCloud::Common::AbstractModel
878
+ # @param Name: 字段名
879
+ # @type Name: String
880
+ # @param Result: 结果
881
+ # @type Result: String
882
+ # @param Value: 风险值或者说明
883
+ # @type Value: String
884
+
885
+ attr_accessor :Name, :Result, :Value
886
+
887
+ def initialize(name=nil, result=nil, value=nil)
888
+ @Name = name
889
+ @Result = result
890
+ @Value = value
891
+ end
892
+
893
+ def deserialize(params)
894
+ @Name = params['Name']
895
+ @Result = params['Result']
896
+ @Value = params['Value']
897
+ end
898
+ end
899
+
900
+ end
901
+ end
902
+ end
903
+