tencentcloud-sdk-mrs 3.0.656 → 3.0.657
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200910/client.rb +24 -0
- data/lib/v20200910/models.rb +3449 -696
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a17e2a937858cb8a5dc48ccafb1b3ee6d2a1369
|
4
|
+
data.tar.gz: ae7ba34c8f348d534e6ffb9e9b395538c0f7ac05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449e5e901db0fed862158dbd92d8860b603c566dd6405358cf31be45cd9f87523b2d10e701d18c8d3841508e4ec47e793972b9b84a7cfbe63274781110bc0df0
|
7
|
+
data.tar.gz: 24b05f58a1b4a7798298cacba4137ae3ecb34b7e3841cfc9bd5f5766af4c6652604a7aa19bb781c0607bcacf3d06feaa42ed0e33288e9d6bf0a76a8e72f4ba39
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.657
|
data/lib/v20200910/client.rb
CHANGED
@@ -127,6 +127,30 @@ module TencentCloud
|
|
127
127
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
128
|
end
|
129
129
|
|
130
|
+
# 将PDF格式的体检报告文件结构化,解析关键信息.
|
131
|
+
|
132
|
+
# @param request: Request instance for TurnPDFToObject.
|
133
|
+
# @type request: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectRequest`
|
134
|
+
# @rtype: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectResponse`
|
135
|
+
def TurnPDFToObject(request)
|
136
|
+
body = send_request('TurnPDFToObject', request.serialize)
|
137
|
+
response = JSON.parse(body)
|
138
|
+
if response['Response'].key?('Error') == false
|
139
|
+
model = TurnPDFToObjectResponse.new
|
140
|
+
model.deserialize(response['Response'])
|
141
|
+
model
|
142
|
+
else
|
143
|
+
code = response['Response']['Error']['Code']
|
144
|
+
message = response['Response']['Error']['Message']
|
145
|
+
reqid = response['Response']['RequestId']
|
146
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
147
|
+
end
|
148
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
149
|
+
raise e
|
150
|
+
rescue StandardError => e
|
151
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
152
|
+
end
|
153
|
+
|
130
154
|
|
131
155
|
end
|
132
156
|
end
|