tencentcloud-sdk-cii 1.0.221 → 1.0.222

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30b8d4aa5df6688a82b31591fd16f3c8db1f5260
4
- data.tar.gz: e7152e3686ab95cdc8908ef180cd1ac5ed3c2816
3
+ metadata.gz: 6fee508d5e388c091f4bed68e78958c5f6b3d84a
4
+ data.tar.gz: c14130790e00ceaeb2f99cc28fce8898f6e1d91e
5
5
  SHA512:
6
- metadata.gz: f6c3e34765ec90ce5b2fc91df8cf0bc07492b8abbee66036014cf8ad9e80115435817cb160ea7eb7074a1f224833648b3eb1c28a48470b37dfcb1c286e83d98b
7
- data.tar.gz: 40714abbbb6704fa257b6d9200e2e9f5ec26115ade7cad93f4d85c5f20b423e3e3a451383a73616dbe927118fd47ba239a72735abf2e21e89d5619a77e053f63
6
+ metadata.gz: e7cded42624a391681cf0a4594e8a0f2bcbfb53dd3b6b8eb51abfc7c25e67fd3451c762ac694208bbfcf83cdcab2fd9606f3eac006556cd543098e19913b2291
7
+ data.tar.gz: e65b27175ef3f8513e22f47f83125a07a32db10719ecff76e85cf0835fc6937f3c17ba98e9c0dd3a3d8c805ae26d516e7f9f22583e8ca2c1386f6882d842694a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.221
1
+ 1.0.222
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口(CreateAutoClassifyStructureTask)基于提供的客户及保单信息,创建并启动结构化识别任务。
33
+
34
+ # @param request: Request instance for CreateAutoClassifyStructureTask.
35
+ # @type request: :class:`Tencentcloud::cii::V20210408::CreateAutoClassifyStructureTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::cii::V20210408::CreateAutoClassifyStructureTaskResponse`
37
+ def CreateAutoClassifyStructureTask(request)
38
+ body = send_request('CreateAutoClassifyStructureTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateAutoClassifyStructureTaskResponse.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
+
32
56
  # 本接口(CreateStructureTask)基于提供的客户及保单信息,创建并启动结构化识别任务。
33
57
 
34
58
  # @param request: Request instance for CreateStructureTask.
@@ -95,6 +95,104 @@ module TencentCloud
95
95
  end
96
96
  end
97
97
 
98
+ # 创建自动分类的结构化任务子任务信息
99
+ class CreateAutoClassifyStructureTaskInfo < TencentCloud::Common::AbstractModel
100
+ # @param FileList: 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
101
+ # @type FileList: Array
102
+ # @param CustomerId: 客户号
103
+ # @type CustomerId: String
104
+ # @param CustomerName: 客户姓名
105
+ # @type CustomerName: String
106
+ # @param ImageList: 报告上传的图片内容数组,图片内容采用base64编码,需按顺序排列
107
+ # @type ImageList: Array
108
+
109
+ attr_accessor :FileList, :CustomerId, :CustomerName, :ImageList
110
+
111
+ def initialize(filelist=nil, customerid=nil, customername=nil, imagelist=nil)
112
+ @FileList = filelist
113
+ @CustomerId = customerid
114
+ @CustomerName = customername
115
+ @ImageList = imagelist
116
+ end
117
+
118
+ def deserialize(params)
119
+ @FileList = params['FileList']
120
+ @CustomerId = params['CustomerId']
121
+ @CustomerName = params['CustomerName']
122
+ @ImageList = params['ImageList']
123
+ end
124
+ end
125
+
126
+ # CreateAutoClassifyStructureTask请求参数结构体
127
+ class CreateAutoClassifyStructureTaskRequest < TencentCloud::Common::AbstractModel
128
+ # @param ServiceType: 服务类型
129
+ # Structured 仅结构化
130
+ # Underwrite 结构化+核保
131
+ # @type ServiceType: String
132
+ # @param TaskInfos: 创建任务时可以上传多个报告,后台生成多个识别子任务,子任务的详细信息
133
+ # @type TaskInfos: Array
134
+ # @param PolicyId: 保单号
135
+ # @type PolicyId: String
136
+ # @param TriggerType: 核保触发方式
137
+ # Auto 自动
138
+ # Manual 手动
139
+ # @type TriggerType: String
140
+ # @param InsuranceTypes: 险种,如果是体检报告类型,此参数是必填,类型说明如下:
141
+ # CriticalDiseaseInsurance:重疾险
142
+ # LifeInsurance:寿险
143
+ # AccidentInsurance:意外险
144
+ # @type InsuranceTypes: Array
145
+ # @param CallbackUrl: 回调地址,接收Post请求传送结果
146
+ # @type CallbackUrl: String
147
+
148
+ attr_accessor :ServiceType, :TaskInfos, :PolicyId, :TriggerType, :InsuranceTypes, :CallbackUrl
149
+
150
+ def initialize(servicetype=nil, taskinfos=nil, policyid=nil, triggertype=nil, insurancetypes=nil, callbackurl=nil)
151
+ @ServiceType = servicetype
152
+ @TaskInfos = taskinfos
153
+ @PolicyId = policyid
154
+ @TriggerType = triggertype
155
+ @InsuranceTypes = insurancetypes
156
+ @CallbackUrl = callbackurl
157
+ end
158
+
159
+ def deserialize(params)
160
+ @ServiceType = params['ServiceType']
161
+ unless params['TaskInfos'].nil?
162
+ @TaskInfos = []
163
+ params['TaskInfos'].each do |i|
164
+ createautoclassifystructuretaskinfo_tmp = CreateAutoClassifyStructureTaskInfo.new
165
+ createautoclassifystructuretaskinfo_tmp.deserialize(i)
166
+ @TaskInfos << createautoclassifystructuretaskinfo_tmp
167
+ end
168
+ end
169
+ @PolicyId = params['PolicyId']
170
+ @TriggerType = params['TriggerType']
171
+ @InsuranceTypes = params['InsuranceTypes']
172
+ @CallbackUrl = params['CallbackUrl']
173
+ end
174
+ end
175
+
176
+ # CreateAutoClassifyStructureTask返回参数结构体
177
+ class CreateAutoClassifyStructureTaskResponse < TencentCloud::Common::AbstractModel
178
+ # @param MainTaskId: 创建的主任务号,用于查询结果
179
+ # @type MainTaskId: String
180
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
181
+ # @type RequestId: String
182
+
183
+ attr_accessor :MainTaskId, :RequestId
184
+
185
+ def initialize(maintaskid=nil, requestid=nil)
186
+ @MainTaskId = maintaskid
187
+ @RequestId = requestid
188
+ end
189
+
190
+ def deserialize(params)
191
+ @MainTaskId = params['MainTaskId']
192
+ @RequestId = params['RequestId']
193
+ end
194
+ end
195
+
98
196
  # 创建结构化任务子任务信息
99
197
  class CreateStructureTaskInfo < TencentCloud::Common::AbstractModel
100
198
  # @param TaskType: 任务类型
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cii
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.221
4
+ version: 1.0.222
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common