tencentcloud-sdk-cii 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f6b690cb0f0ba4059daf063a178cbc09356da074
4
+ data.tar.gz: 0806dbe3c431cdbdeb0f0e57872cdc8e0ce84785
5
+ SHA512:
6
+ metadata.gz: e39637fbabfd835abc83b1f23850ef949b8f18db178477d1e93360ae9f914480c1f782f7812ea71bfbb190fd14118219845e9507b9a9b58345cad4b8eb42b987
7
+ data.tar.gz: ce56b8e52255802384f4f57137c8f0e351cd7cb49f2cfc88a4bdd53898dfb551267395f932b90ea7f325a1b4fd53ced7bf1a33a0015ef5c9dae4d0854c6c8f64
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20210408/client'
6
+ require_relative 'v20210408/models'
7
+
8
+ require_relative 'v20201210/client'
9
+ require_relative 'v20201210/models'
10
+
11
+ module TencentCloud
12
+ module Cii
13
+ end
14
+ end
@@ -0,0 +1,108 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Cii
21
+ module V20201210
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-12-10'
26
+ api_endpoint = 'cii.tencentcloudapi.com'
27
+ sdk_version = 'CII_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 基于提供的客户及保单信息,启动结构化识别任务。
33
+
34
+ # @param request: Request instance for CreateStructureTask.
35
+ # @type request: :class:`Tencentcloud::cii::V20201210::CreateStructureTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::cii::V20201210::CreateStructureTaskResponse`
37
+ def CreateStructureTask(request)
38
+ body = send_request('CreateStructureTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateStructureTaskResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 结构化对比查询接口,对比结构化复核前后数据差异,查询识别正确率,召回率。
57
+
58
+ # @param request: Request instance for DescribeStructCompareData.
59
+ # @type request: :class:`Tencentcloud::cii::V20201210::DescribeStructCompareDataRequest`
60
+ # @rtype: :class:`Tencentcloud::cii::V20201210::DescribeStructCompareDataResponse`
61
+ def DescribeStructCompareData(request)
62
+ body = send_request('DescribeStructCompareData', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeStructCompareDataResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 依据任务ID获取结构化结果接口。
81
+
82
+ # @param request: Request instance for DescribeStructureTaskResult.
83
+ # @type request: :class:`Tencentcloud::cii::V20201210::DescribeStructureTaskResultRequest`
84
+ # @rtype: :class:`Tencentcloud::cii::V20201210::DescribeStructureTaskResultResponse`
85
+ def DescribeStructureTaskResult(request)
86
+ body = send_request('DescribeStructureTaskResult', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeStructureTaskResultResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,272 @@
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 V20201210
20
+ # 结构化对比指标(准确率/召回率)数据
21
+ class CompareMetricsData < TencentCloud::Common::AbstractModel
22
+ # @param ShortStructAccuracy: 短文准确率
23
+ # @type ShortStructAccuracy: String
24
+ # @param ShortStructRecall: 短文召回率
25
+ # @type ShortStructRecall: String
26
+ # @param LongStructAccuracy: 长文结构化准确率
27
+ # @type LongStructAccuracy: String
28
+ # @param LongStructRecall: 长文结构化召回率
29
+ # @type LongStructRecall: String
30
+ # @param LongContentAccuracy: 长文提取准确率
31
+ # @type LongContentAccuracy: String
32
+ # @param LongContentRecall: 长文提取召回率
33
+ # @type LongContentRecall: String
34
+
35
+ attr_accessor :ShortStructAccuracy, :ShortStructRecall, :LongStructAccuracy, :LongStructRecall, :LongContentAccuracy, :LongContentRecall
36
+
37
+ def initialize(shortstructaccuracy=nil, shortstructrecall=nil, longstructaccuracy=nil, longstructrecall=nil, longcontentaccuracy=nil, longcontentrecall=nil)
38
+ @ShortStructAccuracy = shortstructaccuracy
39
+ @ShortStructRecall = shortstructrecall
40
+ @LongStructAccuracy = longstructaccuracy
41
+ @LongStructRecall = longstructrecall
42
+ @LongContentAccuracy = longcontentaccuracy
43
+ @LongContentRecall = longcontentrecall
44
+ end
45
+
46
+ def deserialize(params)
47
+ @ShortStructAccuracy = params['ShortStructAccuracy']
48
+ @ShortStructRecall = params['ShortStructRecall']
49
+ @LongStructAccuracy = params['LongStructAccuracy']
50
+ @LongStructRecall = params['LongStructRecall']
51
+ @LongContentAccuracy = params['LongContentAccuracy']
52
+ @LongContentRecall = params['LongContentRecall']
53
+ end
54
+ end
55
+
56
+ # CreateStructureTask请求参数结构体
57
+ class CreateStructureTaskRequest < TencentCloud::Common::AbstractModel
58
+ # @param PolicyId: 保单号
59
+ # @type PolicyId: String
60
+ # @param CustomerId: 客户号
61
+ # @type CustomerId: String
62
+ # @param CustomerName: 客户姓名
63
+ # @type CustomerName: String
64
+ # @param TaskType: 文件类型,目前只支持体检报告类型,对应的值为:HealthReport
65
+ # @type TaskType: String
66
+ # @param Year: 报告年份
67
+ # @type Year: String
68
+ # @param FileList: 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
69
+ # @type FileList: Array
70
+ # @param InsuranceTypes: 险种,如果是体检报告类型,此参数是必填,类型说明如下:
71
+ # CriticalDiseaseInsurance:重疾险
72
+ # LifeInsurance:寿险
73
+ # AccidentInsurance:意外险
74
+ # @type InsuranceTypes: Array
75
+ # @param ImageList: 报告上传的图片内容数组,图片内容采用base64编码,需按顺序排列
76
+ # @type ImageList: Array
77
+
78
+ attr_accessor :PolicyId, :CustomerId, :CustomerName, :TaskType, :Year, :FileList, :InsuranceTypes, :ImageList
79
+
80
+ def initialize(policyid=nil, customerid=nil, customername=nil, tasktype=nil, year=nil, filelist=nil, insurancetypes=nil, imagelist=nil)
81
+ @PolicyId = policyid
82
+ @CustomerId = customerid
83
+ @CustomerName = customername
84
+ @TaskType = tasktype
85
+ @Year = year
86
+ @FileList = filelist
87
+ @InsuranceTypes = insurancetypes
88
+ @ImageList = imagelist
89
+ end
90
+
91
+ def deserialize(params)
92
+ @PolicyId = params['PolicyId']
93
+ @CustomerId = params['CustomerId']
94
+ @CustomerName = params['CustomerName']
95
+ @TaskType = params['TaskType']
96
+ @Year = params['Year']
97
+ @FileList = params['FileList']
98
+ @InsuranceTypes = params['InsuranceTypes']
99
+ @ImageList = params['ImageList']
100
+ end
101
+ end
102
+
103
+ # CreateStructureTask返回参数结构体
104
+ class CreateStructureTaskResponse < TencentCloud::Common::AbstractModel
105
+ # @param TaskId: 本次结构化任务的ID
106
+ # @type TaskId: String
107
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
108
+ # @type RequestId: String
109
+
110
+ attr_accessor :TaskId, :RequestId
111
+
112
+ def initialize(taskid=nil, requestid=nil)
113
+ @TaskId = taskid
114
+ @RequestId = requestid
115
+ end
116
+
117
+ def deserialize(params)
118
+ @TaskId = params['TaskId']
119
+ @RequestId = params['RequestId']
120
+ end
121
+ end
122
+
123
+ # DescribeStructCompareData请求参数结构体
124
+ class DescribeStructCompareDataRequest < TencentCloud::Common::AbstractModel
125
+ # @param TaskId: 结构化任务ID
126
+ # @type TaskId: String
127
+
128
+ attr_accessor :TaskId
129
+
130
+ def initialize(taskid=nil)
131
+ @TaskId = taskid
132
+ end
133
+
134
+ def deserialize(params)
135
+ @TaskId = params['TaskId']
136
+ end
137
+ end
138
+
139
+ # DescribeStructCompareData返回参数结构体
140
+ class DescribeStructCompareDataResponse < TencentCloud::Common::AbstractModel
141
+ # @param PolicyId: 保单号
142
+ # @type PolicyId: String
143
+ # @param TaskId: 结构化任务ID
144
+ # @type TaskId: String
145
+ # @param CustomerId: 客户号
146
+ # @type CustomerId: String
147
+ # @param CustomerName: 客户姓名
148
+ # @type CustomerName: String
149
+ # @param ReviewTime: 复核时间
150
+ # @type ReviewTime: String
151
+ # @param MachineResult: 算法识别结果
152
+ # @type MachineResult: String
153
+ # @param ManualResult: 人工复核结果
154
+ # @type ManualResult: String
155
+ # @param Metrics: 结构化对比指标数据
156
+ # @type Metrics: :class:`Tencentcloud::Cii.v20201210.models.CompareMetricsData`
157
+ # @param NewItems: 新增项
158
+ # @type NewItems: String
159
+ # @param ModifyItems: 修改项
160
+ # @type ModifyItems: String
161
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
162
+ # @type RequestId: String
163
+
164
+ attr_accessor :PolicyId, :TaskId, :CustomerId, :CustomerName, :ReviewTime, :MachineResult, :ManualResult, :Metrics, :NewItems, :ModifyItems, :RequestId
165
+
166
+ def initialize(policyid=nil, taskid=nil, customerid=nil, customername=nil, reviewtime=nil, machineresult=nil, manualresult=nil, metrics=nil, newitems=nil, modifyitems=nil, requestid=nil)
167
+ @PolicyId = policyid
168
+ @TaskId = taskid
169
+ @CustomerId = customerid
170
+ @CustomerName = customername
171
+ @ReviewTime = reviewtime
172
+ @MachineResult = machineresult
173
+ @ManualResult = manualresult
174
+ @Metrics = metrics
175
+ @NewItems = newitems
176
+ @ModifyItems = modifyitems
177
+ @RequestId = requestid
178
+ end
179
+
180
+ def deserialize(params)
181
+ @PolicyId = params['PolicyId']
182
+ @TaskId = params['TaskId']
183
+ @CustomerId = params['CustomerId']
184
+ @CustomerName = params['CustomerName']
185
+ @ReviewTime = params['ReviewTime']
186
+ @MachineResult = params['MachineResult']
187
+ @ManualResult = params['ManualResult']
188
+ unless params['Metrics'].nil?
189
+ @Metrics = CompareMetricsData.new
190
+ @Metrics.deserialize(params['Metrics'])
191
+ end
192
+ @NewItems = params['NewItems']
193
+ @ModifyItems = params['ModifyItems']
194
+ @RequestId = params['RequestId']
195
+ end
196
+ end
197
+
198
+ # DescribeStructureTaskResult请求参数结构体
199
+ class DescribeStructureTaskResultRequest < TencentCloud::Common::AbstractModel
200
+ # @param TaskId: 结构化任务ID
201
+ # @type TaskId: String
202
+
203
+ attr_accessor :TaskId
204
+
205
+ def initialize(taskid=nil)
206
+ @TaskId = taskid
207
+ end
208
+
209
+ def deserialize(params)
210
+ @TaskId = params['TaskId']
211
+ end
212
+ end
213
+
214
+ # DescribeStructureTaskResult返回参数结构体
215
+ class DescribeStructureTaskResultResponse < TencentCloud::Common::AbstractModel
216
+ # @param Status: 结果状态:
217
+ # 0:返回成功
218
+ # 1:结果未生成
219
+ # 2:结果生成失败
220
+ # @type Status: Integer
221
+ # @param Results: 结构化识别结果数组,每个数组元素对应一个图片的结构化结果,顺序和输入参数的ImageList或FileList对应。
222
+ # 注意:此字段可能返回 null,表示取不到有效值。
223
+ # @type Results: Array
224
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
225
+ # @type RequestId: String
226
+
227
+ attr_accessor :Status, :Results, :RequestId
228
+
229
+ def initialize(status=nil, results=nil, requestid=nil)
230
+ @Status = status
231
+ @Results = results
232
+ @RequestId = requestid
233
+ end
234
+
235
+ def deserialize(params)
236
+ @Status = params['Status']
237
+ unless params['Results'].nil?
238
+ @Results = []
239
+ params['Results'].each do |i|
240
+ resultobject_tmp = ResultObject.new
241
+ resultobject_tmp.deserialize(i)
242
+ @Results << resultobject_tmp
243
+ end
244
+ end
245
+ @RequestId = params['RequestId']
246
+ end
247
+ end
248
+
249
+ # 用于返回结构化任务结果
250
+ class ResultObject < TencentCloud::Common::AbstractModel
251
+ # @param Quality: 图片质量分
252
+ # @type Quality: Float
253
+ # @param StructureResult: 由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议
254
+ # @type StructureResult: String
255
+
256
+ attr_accessor :Quality, :StructureResult
257
+
258
+ def initialize(quality=nil, structureresult=nil)
259
+ @Quality = quality
260
+ @StructureResult = structureresult
261
+ end
262
+
263
+ def deserialize(params)
264
+ @Quality = params['Quality']
265
+ @StructureResult = params['StructureResult']
266
+ end
267
+ end
268
+
269
+ end
270
+ end
271
+ end
272
+
@@ -0,0 +1,204 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Cii
21
+ module V20210408
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-04-08'
26
+ api_endpoint = 'cii.tencentcloudapi.com'
27
+ sdk_version = 'CII_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 本接口(CreateStructureTask)基于提供的客户及保单信息,创建并启动结构化识别任务。
33
+
34
+ # @param request: Request instance for CreateStructureTask.
35
+ # @type request: :class:`Tencentcloud::cii::V20210408::CreateStructureTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::cii::V20210408::CreateStructureTaskResponse`
37
+ def CreateStructureTask(request)
38
+ body = send_request('CreateStructureTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateStructureTaskResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 本接口(CreateUnderwriteTaskById)用于根据结构化任务ID创建核保任务
57
+
58
+ # @param request: Request instance for CreateUnderwriteTaskById.
59
+ # @type request: :class:`Tencentcloud::cii::V20210408::CreateUnderwriteTaskByIdRequest`
60
+ # @rtype: :class:`Tencentcloud::cii::V20210408::CreateUnderwriteTaskByIdResponse`
61
+ def CreateUnderwriteTaskById(request)
62
+ body = send_request('CreateUnderwriteTaskById', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateUnderwriteTaskByIdResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 本接口(DescribeMachineUnderwrite)用于查询机器核保任务数据
81
+
82
+ # @param request: Request instance for DescribeMachineUnderwrite.
83
+ # @type request: :class:`Tencentcloud::cii::V20210408::DescribeMachineUnderwriteRequest`
84
+ # @rtype: :class:`Tencentcloud::cii::V20210408::DescribeMachineUnderwriteResponse`
85
+ def DescribeMachineUnderwrite(request)
86
+ body = send_request('DescribeMachineUnderwrite', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeMachineUnderwriteResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 结构化对比查询接口,对比结构化复核前后数据差异,查询识别正确率,召回率。
105
+
106
+ # @param request: Request instance for DescribeStructCompareData.
107
+ # @type request: :class:`Tencentcloud::cii::V20210408::DescribeStructCompareDataRequest`
108
+ # @rtype: :class:`Tencentcloud::cii::V20210408::DescribeStructCompareDataResponse`
109
+ def DescribeStructCompareData(request)
110
+ body = send_request('DescribeStructCompareData', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeStructCompareDataResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 结构化复核差异查询接口,对比结构化复核前后数据差异,返回差异的部分。
129
+
130
+ # @param request: Request instance for DescribeStructureDifference.
131
+ # @type request: :class:`Tencentcloud::cii::V20210408::DescribeStructureDifferenceRequest`
132
+ # @rtype: :class:`Tencentcloud::cii::V20210408::DescribeStructureDifferenceResponse`
133
+ def DescribeStructureDifference(request)
134
+ body = send_request('DescribeStructureDifference', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeStructureDifferenceResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 本接口(DescribeStructureResult)用于查询结构化结果接口
153
+
154
+ # @param request: Request instance for DescribeStructureResult.
155
+ # @type request: :class:`Tencentcloud::cii::V20210408::DescribeStructureResultRequest`
156
+ # @rtype: :class:`Tencentcloud::cii::V20210408::DescribeStructureResultResponse`
157
+ def DescribeStructureResult(request)
158
+ body = send_request('DescribeStructureResult', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeStructureResultResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 依据任务ID获取结构化结果接口。
177
+
178
+ # @param request: Request instance for DescribeStructureTaskResult.
179
+ # @type request: :class:`Tencentcloud::cii::V20210408::DescribeStructureTaskResultRequest`
180
+ # @rtype: :class:`Tencentcloud::cii::V20210408::DescribeStructureTaskResultResponse`
181
+ def DescribeStructureTaskResult(request)
182
+ body = send_request('DescribeStructureTaskResult', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeStructureTaskResultResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+
201
+ end
202
+ end
203
+ end
204
+ end