tencentcloud-sdk-cii 1.0.207 → 1.0.208
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/v20210408/client.rb +25 -0
- data/lib/v20210408/models.rb +41 -0
- 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: 7a191dada4a3043764cf76ff0c09add876e880f4
|
4
|
+
data.tar.gz: 4cc5cbc40546d3b885dcfad8b51bddb0ff552a09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e3f04d58a658bacbba1f87eef1507046e63aaf7584dc7999acca1d8e1a85d43f6cf31d125461a7637775eaf1884cc0e1d211d1f279228a2d6f656d55afc05d
|
7
|
+
data.tar.gz: 6e75ed02a7d9d16d0a5d5353ee01e47935cee7c939625baf77b561e3435618d35efd0bf8d30ddd9aed0855ad58bd928d1997bcbae25b1b83d0d5b80df8f54bbb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.208
|
data/lib/v20210408/client.rb
CHANGED
@@ -197,6 +197,31 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
+
# 上传医疗影像文件,可以用来做结构化。
|
201
|
+
|
202
|
+
# @param request: Request instance for UploadMedicalFile.
|
203
|
+
# @type request: :class:`Tencentcloud::cii::V20210408::UploadMedicalFileRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::cii::V20210408::UploadMedicalFileResponse`
|
205
|
+
def UploadMedicalFile(request)
|
206
|
+
options = {'IsMultipart': True, 'BinaryParams': [u'File']}
|
207
|
+
body = send_request('UploadMedicalFile', request.serialize, options)
|
208
|
+
response = JSON.parse(body)
|
209
|
+
if response['Response'].key?('Error') == false
|
210
|
+
model = UploadMedicalFileResponse.new
|
211
|
+
model.deserialize(response['Response'])
|
212
|
+
model
|
213
|
+
else
|
214
|
+
code = response['Response']['Error']['Code']
|
215
|
+
message = response['Response']['Error']['Message']
|
216
|
+
reqid = response['Response']['RequestId']
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
218
|
+
end
|
219
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
220
|
+
raise e
|
221
|
+
rescue StandardError => e
|
222
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
223
|
+
end
|
224
|
+
|
200
225
|
|
201
226
|
end
|
202
227
|
end
|
data/lib/v20210408/models.rb
CHANGED
@@ -897,6 +897,47 @@ module TencentCloud
|
|
897
897
|
end
|
898
898
|
end
|
899
899
|
|
900
|
+
# UploadMedicalFile请求参数结构体
|
901
|
+
class UploadMedicalFileRequest < TencentCloud::Common::AbstractModel
|
902
|
+
# @param File: 文件内容的base64的值。FileBase64与FileURL有一个不为空即可,若FileURL同时存在,那么取FileBase64。
|
903
|
+
# @type File: String
|
904
|
+
# @param FileURL: 文件的URL地址。FileBase64与FileURL有一个不为空即可,若FileBase64同时存在,那么取FileBase64。
|
905
|
+
# @type FileURL: String
|
906
|
+
|
907
|
+
attr_accessor :File, :FileURL
|
908
|
+
|
909
|
+
def initialize(file=nil, fileurl=nil)
|
910
|
+
@File = file
|
911
|
+
@FileURL = fileurl
|
912
|
+
end
|
913
|
+
|
914
|
+
def deserialize(params)
|
915
|
+
@File = params['File']
|
916
|
+
@FileURL = params['FileURL']
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
920
|
+
# UploadMedicalFile返回参数结构体
|
921
|
+
class UploadMedicalFileResponse < TencentCloud::Common::AbstractModel
|
922
|
+
# @param FileKey: 文件存储的key,可以用来创建结构化任务。
|
923
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
924
|
+
# @type FileKey: String
|
925
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
926
|
+
# @type RequestId: String
|
927
|
+
|
928
|
+
attr_accessor :FileKey, :RequestId
|
929
|
+
|
930
|
+
def initialize(filekey=nil, requestid=nil)
|
931
|
+
@FileKey = filekey
|
932
|
+
@RequestId = requestid
|
933
|
+
end
|
934
|
+
|
935
|
+
def deserialize(params)
|
936
|
+
@FileKey = params['FileKey']
|
937
|
+
@RequestId = params['RequestId']
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
900
941
|
end
|
901
942
|
end
|
902
943
|
end
|
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.
|
4
|
+
version: 1.0.208
|
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-11-
|
11
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|