tencentcloud-sdk-cii 1.0.219 → 1.0.223

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: 960d27e3e07525461c9efca1b077568d0f9ce452
4
- data.tar.gz: c3db053eed06a142691b961230d9ca9b0b009b87
3
+ metadata.gz: 47d0e6d112fcaeba0c8425231585a9a5d4f3803e
4
+ data.tar.gz: 45622b00a908c2fbaa1240072b654ecfff8a6370
5
5
  SHA512:
6
- metadata.gz: 068c4533a584508b421df90778ac907d01df26523e91c2e1a3b9d4589fa522b38a54eb654830690d33c4771eff51b7c9cb0190e18265991227356a2a3fa608c4
7
- data.tar.gz: 85c20558d4afb7ba9570a2fc8dce675369e5873ba02dfcb3865e945b7fa81716e5f7e58b6b039a0f90178f4142e68079a09939bb770c1eb9285f7d428eb1bcbc
6
+ metadata.gz: 73e89c61924c283d256a17e51318bc94f2df326628aeee325ec5a731dfce3908d14fc5c4a87d84b2b57a34f7d22602376cb71e2ce93de9026915b6413c83b011
7
+ data.tar.gz: 3a477413b828b380ad3a8067d03f94fed0fb70344063016eca34e6fc472c71a712e30ba1bae4f2cebdd2db92e8b42b24978fb51372a59d977c79c8411a87948c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.219
1
+ 1.0.223
@@ -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.219
4
+ version: 1.0.223
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-08 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common