AsposeDiagramCloud 18.10 → 20.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/AsposeDiagramCloud.gemspec +46 -0
  3. data/Gemfile +7 -0
  4. data/README.md +74 -0
  5. data/Rakefile +8 -0
  6. data/git_push.sh +55 -0
  7. data/lib/AsposeDiagramCloud.rb +85 -0
  8. data/lib/AsposeDiagramCloud/api/diagram_api.rb +768 -0
  9. data/lib/AsposeDiagramCloud/api/o_auth_api.rb +93 -0
  10. data/lib/AsposeDiagramCloud/api/storage_api.rb +905 -0
  11. data/lib/AsposeDiagramCloud/api_client.rb +391 -0
  12. data/lib/AsposeDiagramCloud/api_error.rb +38 -0
  13. data/lib/AsposeDiagramCloud/configuration.rb +209 -0
  14. data/lib/AsposeDiagramCloud/models/access_token_response.rb +251 -0
  15. data/lib/AsposeDiagramCloud/models/api_response_of_list_of_page_data.rb +190 -0
  16. data/lib/AsposeDiagramCloud/models/create_new_response.rb +188 -0
  17. data/lib/AsposeDiagramCloud/models/diagram_save_options.rb +244 -0
  18. data/lib/AsposeDiagramCloud/models/disc_usage.rb +209 -0
  19. data/lib/AsposeDiagramCloud/models/draw_shape_data.rb +262 -0
  20. data/lib/AsposeDiagramCloud/models/ellipse_data.rb +262 -0
  21. data/lib/AsposeDiagramCloud/models/error.rb +219 -0
  22. data/lib/AsposeDiagramCloud/models/error_details.rb +204 -0
  23. data/lib/AsposeDiagramCloud/models/file_version.rb +264 -0
  24. data/lib/AsposeDiagramCloud/models/file_versions.rb +191 -0
  25. data/lib/AsposeDiagramCloud/models/files_list.rb +191 -0
  26. data/lib/AsposeDiagramCloud/models/files_upload_result.rb +203 -0
  27. data/lib/AsposeDiagramCloud/models/html_save_options.rb +330 -0
  28. data/lib/AsposeDiagramCloud/models/image_save_options.rb +492 -0
  29. data/lib/AsposeDiagramCloud/models/line_data.rb +273 -0
  30. data/lib/AsposeDiagramCloud/models/modify_response.rb +202 -0
  31. data/lib/AsposeDiagramCloud/models/object_exist.rb +209 -0
  32. data/lib/AsposeDiagramCloud/models/page_data.rb +216 -0
  33. data/lib/AsposeDiagramCloud/models/page_setting.rb +219 -0
  34. data/lib/AsposeDiagramCloud/models/page_size.rb +221 -0
  35. data/lib/AsposeDiagramCloud/models/pdf_digital_signature_details.rb +248 -0
  36. data/lib/AsposeDiagramCloud/models/pdf_encryption_details.rb +260 -0
  37. data/lib/AsposeDiagramCloud/models/pdf_save_options.rb +408 -0
  38. data/lib/AsposeDiagramCloud/models/point_f.rb +221 -0
  39. data/lib/AsposeDiagramCloud/models/polyline_data.rb +273 -0
  40. data/lib/AsposeDiagramCloud/models/rectangle_f.rb +333 -0
  41. data/lib/AsposeDiagramCloud/models/rendering_save_options.rb +276 -0
  42. data/lib/AsposeDiagramCloud/models/saa_spose_response.rb +179 -0
  43. data/lib/AsposeDiagramCloud/models/save_as_response.rb +208 -0
  44. data/lib/AsposeDiagramCloud/models/save_options_model.rb +235 -0
  45. data/lib/AsposeDiagramCloud/models/save_options_request.rb +206 -0
  46. data/lib/AsposeDiagramCloud/models/shape_data.rb +221 -0
  47. data/lib/AsposeDiagramCloud/models/shape_style_data.rb +189 -0
  48. data/lib/AsposeDiagramCloud/models/storage_exist.rb +194 -0
  49. data/lib/AsposeDiagramCloud/models/storage_file.rb +239 -0
  50. data/lib/AsposeDiagramCloud/models/svg_save_options.rb +321 -0
  51. data/lib/AsposeDiagramCloud/models/swf_save_options.rb +271 -0
  52. data/lib/AsposeDiagramCloud/models/text_style_data.rb +253 -0
  53. data/lib/AsposeDiagramCloud/models/upload_response.rb +188 -0
  54. data/lib/AsposeDiagramCloud/models/xaml_save_options.rb +262 -0
  55. data/lib/AsposeDiagramCloud/models/xps_save_options.rb +271 -0
  56. data/lib/AsposeDiagramCloud/version.rb +15 -0
  57. data/spec/_spec.rb +308 -0
  58. data/spec/api/test_convert_spec.rb +308 -0
  59. data/spec/api/test_drawing_spec.rb +136 -0
  60. data/spec/api/test_page_spec.rb +92 -0
  61. data/spec/api_client_spec.rb +226 -0
  62. data/spec/configuration_spec.rb +42 -0
  63. data/spec/spec_helper.rb +120 -0
  64. data/testData/FileUpload.vdx +437 -0
  65. metadata +118 -49
@@ -0,0 +1,93 @@
1
+ =begin
2
+ #Aspose.Diagram Cloud API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module AsposeDiagramCloud
16
+ class OAuthApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get Access token
24
+ #
25
+ # @param grant_type Grant Type
26
+ # @param client_id App SID
27
+ # @param client_secret App Key
28
+ # @param [Hash] opts the optional parameters
29
+ # @return [AccessTokenResponse]
30
+ def o_auth_post(grant_type, client_id, client_secret, opts = {})
31
+ data, _status_code, _headers = o_auth_post_with_http_info(grant_type, client_id, client_secret, opts)
32
+ return data
33
+ end
34
+
35
+ # Get Access token
36
+ #
37
+ # @param grant_type Grant Type
38
+ # @param client_id App SID
39
+ # @param client_secret App Key
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(AccessTokenResponse, Fixnum, Hash)>] AccessTokenResponse data, response status code and response headers
42
+ def o_auth_post_with_http_info(grant_type, client_id, client_secret, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: OAuthApi.o_auth_post ..."
45
+ end
46
+ # verify the required parameter 'grant_type' is set
47
+ if @api_client.config.client_side_validation && grant_type.nil?
48
+ fail ArgumentError, "Missing the required parameter 'grant_type' when calling OAuthApi.o_auth_post"
49
+ end
50
+ # verify the required parameter 'client_id' is set
51
+ if @api_client.config.client_side_validation && client_id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthApi.o_auth_post"
53
+ end
54
+ # verify the required parameter 'client_secret' is set
55
+ if @api_client.config.client_side_validation && client_secret.nil?
56
+ fail ArgumentError, "Missing the required parameter 'client_secret' when calling OAuthApi.o_auth_post"
57
+ end
58
+ # resource path
59
+ local_var_path = "/connect/token"
60
+
61
+ # query parameters
62
+ query_params = {}
63
+
64
+ # header parameters
65
+ header_params = {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
+ # HTTP header 'Content-Type'
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
70
+
71
+ # form parameters
72
+ form_params = {}
73
+ form_params["grant_type"] = grant_type
74
+ form_params["client_id"] = client_id
75
+ form_params["client_secret"] = client_secret
76
+
77
+ # http body (model)
78
+ post_body = nil
79
+ auth_names = []
80
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => 'AccessTokenResponse')
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: OAuthApi#o_auth_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,905 @@
1
+ =begin
2
+ #Aspose.Diagram Cloud API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module AsposeDiagramCloud
16
+ class StorageApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(grant_type,app_sid,app_key,api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ @api_client.config.api_key['api_key'] = app_key
22
+ @api_client.config.api_key['app_sid'] = app_sid
23
+ @api_client.config.api_key['grant_type'] = grant_type
24
+ request_token
25
+
26
+ end
27
+
28
+ #
29
+ # Gets a request token from server
30
+ #
31
+ def request_token
32
+ authconfig=Configuration.new
33
+ authconfig.base_path=""
34
+ authClient=ApiClient.new(authconfig)
35
+ authApi=AsposeDiagramCloud::OAuthApi.new(authClient)
36
+ config=@api_client.config
37
+ data, _status_code, _headers=authApi.o_auth_post(config.api_key['grant_type'],config.api_key['app_sid'],config.api_key['api_key'])
38
+ #print(data.access_token)
39
+ @api_client.default_headers["Authorization"] ="Bearer " + data.access_token
40
+ end
41
+
42
+
43
+ # Copy file
44
+ #
45
+ # @param src_path Source file path e.g. &#39;/folder/file.ext&#39;
46
+ # @param dest_path Destination file path
47
+ # @param [Hash] opts the optional parameters
48
+ # @option opts [String] :src_storage_name Source storage name
49
+ # @option opts [String] :dest_storage_name Destination storage name
50
+ # @option opts [String] :version_id File version ID to copy
51
+ # @return [nil]
52
+ def copy_file(src_path, dest_path, opts = {})
53
+ copy_file_with_http_info(src_path, dest_path, opts)
54
+ return nil
55
+ end
56
+
57
+ # Copy file
58
+ #
59
+ # @param src_path Source file path e.g. &#39;/folder/file.ext&#39;
60
+ # @param dest_path Destination file path
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :src_storage_name Source storage name
63
+ # @option opts [String] :dest_storage_name Destination storage name
64
+ # @option opts [String] :version_id File version ID to copy
65
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
66
+ def copy_file_with_http_info(src_path, dest_path, opts = {})
67
+ if @api_client.config.debugging
68
+ @api_client.config.logger.debug "Calling API: StorageApi.copy_file ..."
69
+ end
70
+ # verify the required parameter 'src_path' is set
71
+ if @api_client.config.client_side_validation && src_path.nil?
72
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling StorageApi.copy_file"
73
+ end
74
+ # verify the required parameter 'dest_path' is set
75
+ if @api_client.config.client_side_validation && dest_path.nil?
76
+ fail ArgumentError, "Missing the required parameter 'dest_path' when calling StorageApi.copy_file"
77
+ end
78
+ # resource path
79
+ local_var_path = "/diagram/storage/file/copy/{srcPath}".sub('{' + 'srcPath' + '}', src_path.to_s)
80
+
81
+ # query parameters
82
+ query_params = {}
83
+ query_params[:'destPath'] = dest_path
84
+ query_params[:'srcStorageName'] = opts[:'src_storage_name'] if !opts[:'src_storage_name'].nil?
85
+ query_params[:'destStorageName'] = opts[:'dest_storage_name'] if !opts[:'dest_storage_name'].nil?
86
+ query_params[:'versionId'] = opts[:'version_id'] if !opts[:'version_id'].nil?
87
+
88
+ # header parameters
89
+ header_params = {}
90
+ # HTTP header 'Accept' (if needed)
91
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
92
+ # HTTP header 'Content-Type'
93
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
94
+
95
+ # form parameters
96
+ form_params = {}
97
+
98
+ # http body (model)
99
+ post_body = nil
100
+ auth_names = ['JWT']
101
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
102
+ :header_params => header_params,
103
+ :query_params => query_params,
104
+ :form_params => form_params,
105
+ :body => post_body,
106
+ :auth_names => auth_names)
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "API called: StorageApi#copy_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
109
+ end
110
+ return data, status_code, headers
111
+ end
112
+
113
+ # Copy folder
114
+ #
115
+ # @param src_path Source folder path e.g. &#39;/src&#39;
116
+ # @param dest_path Destination folder path e.g. &#39;/dst&#39;
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :src_storage_name Source storage name
119
+ # @option opts [String] :dest_storage_name Destination storage name
120
+ # @return [nil]
121
+ def copy_folder(src_path, dest_path, opts = {})
122
+ copy_folder_with_http_info(src_path, dest_path, opts)
123
+ return nil
124
+ end
125
+
126
+ # Copy folder
127
+ #
128
+ # @param src_path Source folder path e.g. &#39;/src&#39;
129
+ # @param dest_path Destination folder path e.g. &#39;/dst&#39;
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :src_storage_name Source storage name
132
+ # @option opts [String] :dest_storage_name Destination storage name
133
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
134
+ def copy_folder_with_http_info(src_path, dest_path, opts = {})
135
+ if @api_client.config.debugging
136
+ @api_client.config.logger.debug "Calling API: StorageApi.copy_folder ..."
137
+ end
138
+ # verify the required parameter 'src_path' is set
139
+ if @api_client.config.client_side_validation && src_path.nil?
140
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling StorageApi.copy_folder"
141
+ end
142
+ # verify the required parameter 'dest_path' is set
143
+ if @api_client.config.client_side_validation && dest_path.nil?
144
+ fail ArgumentError, "Missing the required parameter 'dest_path' when calling StorageApi.copy_folder"
145
+ end
146
+ # resource path
147
+ local_var_path = "/diagram/storage/folder/copy/{srcPath}".sub('{' + 'srcPath' + '}', src_path.to_s)
148
+
149
+ # query parameters
150
+ query_params = {}
151
+ query_params[:'destPath'] = dest_path
152
+ query_params[:'srcStorageName'] = opts[:'src_storage_name'] if !opts[:'src_storage_name'].nil?
153
+ query_params[:'destStorageName'] = opts[:'dest_storage_name'] if !opts[:'dest_storage_name'].nil?
154
+
155
+ # header parameters
156
+ header_params = {}
157
+ # HTTP header 'Accept' (if needed)
158
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
159
+ # HTTP header 'Content-Type'
160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
161
+
162
+ # form parameters
163
+ form_params = {}
164
+
165
+ # http body (model)
166
+ post_body = nil
167
+ auth_names = ['JWT']
168
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names)
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: StorageApi#copy_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # Create the folder
181
+ #
182
+ # @param path Folder path to create e.g. &#39;folder_1/folder_2/&#39;
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [String] :storage_name Storage name
185
+ # @return [nil]
186
+ def create_folder(path, opts = {})
187
+ create_folder_with_http_info(path, opts)
188
+ return nil
189
+ end
190
+
191
+ # Create the folder
192
+ #
193
+ # @param path Folder path to create e.g. &#39;folder_1/folder_2/&#39;
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [String] :storage_name Storage name
196
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
197
+ def create_folder_with_http_info(path, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug "Calling API: StorageApi.create_folder ..."
200
+ end
201
+ # verify the required parameter 'path' is set
202
+ if @api_client.config.client_side_validation && path.nil?
203
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.create_folder"
204
+ end
205
+ # resource path
206
+ local_var_path = "/diagram/storage/folder/{path}".sub('{' + 'path' + '}', path.to_s)
207
+
208
+ # query parameters
209
+ query_params = {}
210
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
211
+
212
+ # header parameters
213
+ header_params = {}
214
+ # HTTP header 'Accept' (if needed)
215
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
216
+ # HTTP header 'Content-Type'
217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
218
+
219
+ # form parameters
220
+ form_params = {}
221
+
222
+ # http body (model)
223
+ post_body = nil
224
+ auth_names = ['JWT']
225
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
226
+ :header_params => header_params,
227
+ :query_params => query_params,
228
+ :form_params => form_params,
229
+ :body => post_body,
230
+ :auth_names => auth_names)
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "API called: StorageApi#create_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
233
+ end
234
+ return data, status_code, headers
235
+ end
236
+
237
+ # Delete file
238
+ #
239
+ # @param path File path e.g. &#39;/folder/file.ext&#39;
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [String] :storage_name Storage name
242
+ # @option opts [String] :version_id File version ID to delete
243
+ # @return [nil]
244
+ def delete_file(path, opts = {})
245
+ delete_file_with_http_info(path, opts)
246
+ return nil
247
+ end
248
+
249
+ # Delete file
250
+ #
251
+ # @param path File path e.g. &#39;/folder/file.ext&#39;
252
+ # @param [Hash] opts the optional parameters
253
+ # @option opts [String] :storage_name Storage name
254
+ # @option opts [String] :version_id File version ID to delete
255
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
256
+ def delete_file_with_http_info(path, opts = {})
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "Calling API: StorageApi.delete_file ..."
259
+ end
260
+ # verify the required parameter 'path' is set
261
+ if @api_client.config.client_side_validation && path.nil?
262
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.delete_file"
263
+ end
264
+ # resource path
265
+ local_var_path = "/diagram/storage/file/{path}".sub('{' + 'path' + '}', path.to_s)
266
+
267
+ # query parameters
268
+ query_params = {}
269
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
270
+ query_params[:'versionId'] = opts[:'version_id'] if !opts[:'version_id'].nil?
271
+
272
+ # header parameters
273
+ header_params = {}
274
+ # HTTP header 'Accept' (if needed)
275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
276
+ # HTTP header 'Content-Type'
277
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
278
+
279
+ # form parameters
280
+ form_params = {}
281
+
282
+ # http body (model)
283
+ post_body = nil
284
+ auth_names = ['JWT']
285
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
286
+ :header_params => header_params,
287
+ :query_params => query_params,
288
+ :form_params => form_params,
289
+ :body => post_body,
290
+ :auth_names => auth_names)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: StorageApi#delete_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ return data, status_code, headers
295
+ end
296
+
297
+ # Delete folder
298
+ #
299
+ # @param path Folder path e.g. &#39;/folder&#39;
300
+ # @param [Hash] opts the optional parameters
301
+ # @option opts [String] :storage_name Storage name
302
+ # @option opts [BOOLEAN] :recursive Enable to delete folders, subfolders and files (default to false)
303
+ # @return [nil]
304
+ def delete_folder(path, opts = {})
305
+ delete_folder_with_http_info(path, opts)
306
+ return nil
307
+ end
308
+
309
+ # Delete folder
310
+ #
311
+ # @param path Folder path e.g. &#39;/folder&#39;
312
+ # @param [Hash] opts the optional parameters
313
+ # @option opts [String] :storage_name Storage name
314
+ # @option opts [BOOLEAN] :recursive Enable to delete folders, subfolders and files
315
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
316
+ def delete_folder_with_http_info(path, opts = {})
317
+ if @api_client.config.debugging
318
+ @api_client.config.logger.debug "Calling API: StorageApi.delete_folder ..."
319
+ end
320
+ # verify the required parameter 'path' is set
321
+ if @api_client.config.client_side_validation && path.nil?
322
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.delete_folder"
323
+ end
324
+ # resource path
325
+ local_var_path = "/diagram/storage/folder/{path}".sub('{' + 'path' + '}', path.to_s)
326
+
327
+ # query parameters
328
+ query_params = {}
329
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
330
+ query_params[:'recursive'] = opts[:'recursive'] if !opts[:'recursive'].nil?
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+
342
+ # http body (model)
343
+ post_body = nil
344
+ auth_names = ['JWT']
345
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names)
351
+ if @api_client.config.debugging
352
+ @api_client.config.logger.debug "API called: StorageApi#delete_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
+ end
354
+ return data, status_code, headers
355
+ end
356
+
357
+ # Download file
358
+ #
359
+ # @param path File path e.g. &#39;/folder/file.ext&#39;
360
+ # @param [Hash] opts the optional parameters
361
+ # @option opts [String] :storage_name Storage name
362
+ # @option opts [String] :version_id File version ID to download
363
+ # @return [File]
364
+ def download_file(path, opts = {})
365
+ data, _status_code, _headers = download_file_with_http_info(path, opts)
366
+ return data
367
+ end
368
+
369
+ # Download file
370
+ #
371
+ # @param path File path e.g. &#39;/folder/file.ext&#39;
372
+ # @param [Hash] opts the optional parameters
373
+ # @option opts [String] :storage_name Storage name
374
+ # @option opts [String] :version_id File version ID to download
375
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
376
+ def download_file_with_http_info(path, opts = {})
377
+ if @api_client.config.debugging
378
+ @api_client.config.logger.debug "Calling API: StorageApi.download_file ..."
379
+ end
380
+ # verify the required parameter 'path' is set
381
+ if @api_client.config.client_side_validation && path.nil?
382
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.download_file"
383
+ end
384
+ # resource path
385
+ local_var_path = "/diagram/storage/file/{path}".sub('{' + 'path' + '}', path.to_s)
386
+
387
+ # query parameters
388
+ query_params = {}
389
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
390
+ query_params[:'versionId'] = opts[:'version_id'] if !opts[:'version_id'].nil?
391
+
392
+ # header parameters
393
+ header_params = {}
394
+ # HTTP header 'Accept' (if needed)
395
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
396
+ # HTTP header 'Content-Type'
397
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
398
+
399
+ # form parameters
400
+ form_params = {}
401
+
402
+ # http body (model)
403
+ post_body = nil
404
+ auth_names = ['JWT']
405
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => 'File')
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug "API called: StorageApi#download_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
414
+ end
415
+ return data, status_code, headers
416
+ end
417
+
418
+ # Get disc usage
419
+ #
420
+ # @param [Hash] opts the optional parameters
421
+ # @option opts [String] :storage_name Storage name
422
+ # @return [DiscUsage]
423
+ def get_disc_usage(opts = {})
424
+ data, _status_code, _headers = get_disc_usage_with_http_info(opts)
425
+ return data
426
+ end
427
+
428
+ # Get disc usage
429
+ #
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [String] :storage_name Storage name
432
+ # @return [Array<(DiscUsage, Fixnum, Hash)>] DiscUsage data, response status code and response headers
433
+ def get_disc_usage_with_http_info(opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug "Calling API: StorageApi.get_disc_usage ..."
436
+ end
437
+ # resource path
438
+ local_var_path = "/diagram/storage/disc"
439
+
440
+ # query parameters
441
+ query_params = {}
442
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
443
+
444
+ # header parameters
445
+ header_params = {}
446
+ # HTTP header 'Accept' (if needed)
447
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
448
+ # HTTP header 'Content-Type'
449
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
450
+
451
+ # form parameters
452
+ form_params = {}
453
+
454
+ # http body (model)
455
+ post_body = nil
456
+ auth_names = ['JWT']
457
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
458
+ :header_params => header_params,
459
+ :query_params => query_params,
460
+ :form_params => form_params,
461
+ :body => post_body,
462
+ :auth_names => auth_names,
463
+ :return_type => 'DiscUsage')
464
+ if @api_client.config.debugging
465
+ @api_client.config.logger.debug "API called: StorageApi#get_disc_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
466
+ end
467
+ return data, status_code, headers
468
+ end
469
+
470
+ # Get file versions
471
+ #
472
+ # @param path File path e.g. &#39;/file.ext&#39;
473
+ # @param [Hash] opts the optional parameters
474
+ # @option opts [String] :storage_name Storage name
475
+ # @return [FileVersions]
476
+ def get_file_versions(path, opts = {})
477
+ data, _status_code, _headers = get_file_versions_with_http_info(path, opts)
478
+ return data
479
+ end
480
+
481
+ # Get file versions
482
+ #
483
+ # @param path File path e.g. &#39;/file.ext&#39;
484
+ # @param [Hash] opts the optional parameters
485
+ # @option opts [String] :storage_name Storage name
486
+ # @return [Array<(FileVersions, Fixnum, Hash)>] FileVersions data, response status code and response headers
487
+ def get_file_versions_with_http_info(path, opts = {})
488
+ if @api_client.config.debugging
489
+ @api_client.config.logger.debug "Calling API: StorageApi.get_file_versions ..."
490
+ end
491
+ # verify the required parameter 'path' is set
492
+ if @api_client.config.client_side_validation && path.nil?
493
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.get_file_versions"
494
+ end
495
+ # resource path
496
+ local_var_path = "/diagram/storage/version/{path}".sub('{' + 'path' + '}', path.to_s)
497
+
498
+ # query parameters
499
+ query_params = {}
500
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
501
+
502
+ # header parameters
503
+ header_params = {}
504
+ # HTTP header 'Accept' (if needed)
505
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
506
+ # HTTP header 'Content-Type'
507
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
508
+
509
+ # form parameters
510
+ form_params = {}
511
+
512
+ # http body (model)
513
+ post_body = nil
514
+ auth_names = ['JWT']
515
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
516
+ :header_params => header_params,
517
+ :query_params => query_params,
518
+ :form_params => form_params,
519
+ :body => post_body,
520
+ :auth_names => auth_names,
521
+ :return_type => 'FileVersions')
522
+ if @api_client.config.debugging
523
+ @api_client.config.logger.debug "API called: StorageApi#get_file_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
524
+ end
525
+ return data, status_code, headers
526
+ end
527
+
528
+ # Get all files and folders within a folder
529
+ #
530
+ # @param path Folder path e.g. &#39;/folder&#39;
531
+ # @param [Hash] opts the optional parameters
532
+ # @option opts [String] :storage_name Storage name
533
+ # @return [FilesList]
534
+ def get_files_list(path, opts = {})
535
+ data, _status_code, _headers = get_files_list_with_http_info(path, opts)
536
+ return data
537
+ end
538
+
539
+ # Get all files and folders within a folder
540
+ #
541
+ # @param path Folder path e.g. &#39;/folder&#39;
542
+ # @param [Hash] opts the optional parameters
543
+ # @option opts [String] :storage_name Storage name
544
+ # @return [Array<(FilesList, Fixnum, Hash)>] FilesList data, response status code and response headers
545
+ def get_files_list_with_http_info(path, opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug "Calling API: StorageApi.get_files_list ..."
548
+ end
549
+ # verify the required parameter 'path' is set
550
+ if @api_client.config.client_side_validation && path.nil?
551
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.get_files_list"
552
+ end
553
+ # resource path
554
+ local_var_path = "/diagram/storage/folder/{path}".sub('{' + 'path' + '}', path.to_s)
555
+
556
+ # query parameters
557
+ query_params = {}
558
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
559
+
560
+ # header parameters
561
+ header_params = {}
562
+ # HTTP header 'Accept' (if needed)
563
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
564
+ # HTTP header 'Content-Type'
565
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
566
+
567
+ # form parameters
568
+ form_params = {}
569
+
570
+ # http body (model)
571
+ post_body = nil
572
+ auth_names = ['JWT']
573
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
574
+ :header_params => header_params,
575
+ :query_params => query_params,
576
+ :form_params => form_params,
577
+ :body => post_body,
578
+ :auth_names => auth_names,
579
+ :return_type => 'FilesList')
580
+ if @api_client.config.debugging
581
+ @api_client.config.logger.debug "API called: StorageApi#get_files_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
582
+ end
583
+ return data, status_code, headers
584
+ end
585
+
586
+ # Move file
587
+ #
588
+ # @param src_path Source file path e.g. &#39;/src.ext&#39;
589
+ # @param dest_path Destination file path e.g. &#39;/dest.ext&#39;
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :src_storage_name Source storage name
592
+ # @option opts [String] :dest_storage_name Destination storage name
593
+ # @option opts [String] :version_id File version ID to move
594
+ # @return [nil]
595
+ def move_file(src_path, dest_path, opts = {})
596
+ move_file_with_http_info(src_path, dest_path, opts)
597
+ return nil
598
+ end
599
+
600
+ # Move file
601
+ #
602
+ # @param src_path Source file path e.g. &#39;/src.ext&#39;
603
+ # @param dest_path Destination file path e.g. &#39;/dest.ext&#39;
604
+ # @param [Hash] opts the optional parameters
605
+ # @option opts [String] :src_storage_name Source storage name
606
+ # @option opts [String] :dest_storage_name Destination storage name
607
+ # @option opts [String] :version_id File version ID to move
608
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
609
+ def move_file_with_http_info(src_path, dest_path, opts = {})
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug "Calling API: StorageApi.move_file ..."
612
+ end
613
+ # verify the required parameter 'src_path' is set
614
+ if @api_client.config.client_side_validation && src_path.nil?
615
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling StorageApi.move_file"
616
+ end
617
+ # verify the required parameter 'dest_path' is set
618
+ if @api_client.config.client_side_validation && dest_path.nil?
619
+ fail ArgumentError, "Missing the required parameter 'dest_path' when calling StorageApi.move_file"
620
+ end
621
+ # resource path
622
+ local_var_path = "/diagram/storage/file/move/{srcPath}".sub('{' + 'srcPath' + '}', src_path.to_s)
623
+
624
+ # query parameters
625
+ query_params = {}
626
+ query_params[:'destPath'] = dest_path
627
+ query_params[:'srcStorageName'] = opts[:'src_storage_name'] if !opts[:'src_storage_name'].nil?
628
+ query_params[:'destStorageName'] = opts[:'dest_storage_name'] if !opts[:'dest_storage_name'].nil?
629
+ query_params[:'versionId'] = opts[:'version_id'] if !opts[:'version_id'].nil?
630
+
631
+ # header parameters
632
+ header_params = {}
633
+ # HTTP header 'Accept' (if needed)
634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
635
+ # HTTP header 'Content-Type'
636
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
637
+
638
+ # form parameters
639
+ form_params = {}
640
+
641
+ # http body (model)
642
+ post_body = nil
643
+ auth_names = ['JWT']
644
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
645
+ :header_params => header_params,
646
+ :query_params => query_params,
647
+ :form_params => form_params,
648
+ :body => post_body,
649
+ :auth_names => auth_names)
650
+ if @api_client.config.debugging
651
+ @api_client.config.logger.debug "API called: StorageApi#move_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
652
+ end
653
+ return data, status_code, headers
654
+ end
655
+
656
+ # Move folder
657
+ #
658
+ # @param src_path Folder path to move e.g. &#39;/folder&#39;
659
+ # @param dest_path Destination folder path to move to e.g &#39;/dst&#39;
660
+ # @param [Hash] opts the optional parameters
661
+ # @option opts [String] :src_storage_name Source storage name
662
+ # @option opts [String] :dest_storage_name Destination storage name
663
+ # @return [nil]
664
+ def move_folder(src_path, dest_path, opts = {})
665
+ move_folder_with_http_info(src_path, dest_path, opts)
666
+ return nil
667
+ end
668
+
669
+ # Move folder
670
+ #
671
+ # @param src_path Folder path to move e.g. &#39;/folder&#39;
672
+ # @param dest_path Destination folder path to move to e.g &#39;/dst&#39;
673
+ # @param [Hash] opts the optional parameters
674
+ # @option opts [String] :src_storage_name Source storage name
675
+ # @option opts [String] :dest_storage_name Destination storage name
676
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
677
+ def move_folder_with_http_info(src_path, dest_path, opts = {})
678
+ if @api_client.config.debugging
679
+ @api_client.config.logger.debug "Calling API: StorageApi.move_folder ..."
680
+ end
681
+ # verify the required parameter 'src_path' is set
682
+ if @api_client.config.client_side_validation && src_path.nil?
683
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling StorageApi.move_folder"
684
+ end
685
+ # verify the required parameter 'dest_path' is set
686
+ if @api_client.config.client_side_validation && dest_path.nil?
687
+ fail ArgumentError, "Missing the required parameter 'dest_path' when calling StorageApi.move_folder"
688
+ end
689
+ # resource path
690
+ local_var_path = "/diagram/storage/folder/move/{srcPath}".sub('{' + 'srcPath' + '}', src_path.to_s)
691
+
692
+ # query parameters
693
+ query_params = {}
694
+ query_params[:'destPath'] = dest_path
695
+ query_params[:'srcStorageName'] = opts[:'src_storage_name'] if !opts[:'src_storage_name'].nil?
696
+ query_params[:'destStorageName'] = opts[:'dest_storage_name'] if !opts[:'dest_storage_name'].nil?
697
+
698
+ # header parameters
699
+ header_params = {}
700
+ # HTTP header 'Accept' (if needed)
701
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
702
+ # HTTP header 'Content-Type'
703
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
704
+
705
+ # form parameters
706
+ form_params = {}
707
+
708
+ # http body (model)
709
+ post_body = nil
710
+ auth_names = ['JWT']
711
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
712
+ :header_params => header_params,
713
+ :query_params => query_params,
714
+ :form_params => form_params,
715
+ :body => post_body,
716
+ :auth_names => auth_names)
717
+ if @api_client.config.debugging
718
+ @api_client.config.logger.debug "API called: StorageApi#move_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
719
+ end
720
+ return data, status_code, headers
721
+ end
722
+
723
+ # Check if file or folder exists
724
+ #
725
+ # @param path File or folder path e.g. &#39;/file.ext&#39; or &#39;/folder&#39;
726
+ # @param [Hash] opts the optional parameters
727
+ # @option opts [String] :storage_name Storage name
728
+ # @option opts [String] :version_id File version ID
729
+ # @return [ObjectExist]
730
+ def object_exists(path, opts = {})
731
+ data, _status_code, _headers = object_exists_with_http_info(path, opts)
732
+ return data
733
+ end
734
+
735
+ # Check if file or folder exists
736
+ #
737
+ # @param path File or folder path e.g. &#39;/file.ext&#39; or &#39;/folder&#39;
738
+ # @param [Hash] opts the optional parameters
739
+ # @option opts [String] :storage_name Storage name
740
+ # @option opts [String] :version_id File version ID
741
+ # @return [Array<(ObjectExist, Fixnum, Hash)>] ObjectExist data, response status code and response headers
742
+ def object_exists_with_http_info(path, opts = {})
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug "Calling API: StorageApi.object_exists ..."
745
+ end
746
+ # verify the required parameter 'path' is set
747
+ if @api_client.config.client_side_validation && path.nil?
748
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.object_exists"
749
+ end
750
+ # resource path
751
+ local_var_path = "/diagram/storage/exist/{path}".sub('{' + 'path' + '}', path.to_s)
752
+
753
+ # query parameters
754
+ query_params = {}
755
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
756
+ query_params[:'versionId'] = opts[:'version_id'] if !opts[:'version_id'].nil?
757
+
758
+ # header parameters
759
+ header_params = {}
760
+ # HTTP header 'Accept' (if needed)
761
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
762
+ # HTTP header 'Content-Type'
763
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
764
+
765
+ # form parameters
766
+ form_params = {}
767
+
768
+ # http body (model)
769
+ post_body = nil
770
+ auth_names = ['JWT']
771
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
772
+ :header_params => header_params,
773
+ :query_params => query_params,
774
+ :form_params => form_params,
775
+ :body => post_body,
776
+ :auth_names => auth_names,
777
+ :return_type => 'ObjectExist')
778
+ if @api_client.config.debugging
779
+ @api_client.config.logger.debug "API called: StorageApi#object_exists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
780
+ end
781
+ return data, status_code, headers
782
+ end
783
+
784
+ # Check if storage exists
785
+ #
786
+ # @param storage_name Storage name
787
+ # @param [Hash] opts the optional parameters
788
+ # @return [StorageExist]
789
+ def storage_exists(storage_name, opts = {})
790
+ data, _status_code, _headers = storage_exists_with_http_info(storage_name, opts)
791
+ return data
792
+ end
793
+
794
+ # Check if storage exists
795
+ #
796
+ # @param storage_name Storage name
797
+ # @param [Hash] opts the optional parameters
798
+ # @return [Array<(StorageExist, Fixnum, Hash)>] StorageExist data, response status code and response headers
799
+ def storage_exists_with_http_info(storage_name, opts = {})
800
+ if @api_client.config.debugging
801
+ @api_client.config.logger.debug "Calling API: StorageApi.storage_exists ..."
802
+ end
803
+ # verify the required parameter 'storage_name' is set
804
+ if @api_client.config.client_side_validation && storage_name.nil?
805
+ fail ArgumentError, "Missing the required parameter 'storage_name' when calling StorageApi.storage_exists"
806
+ end
807
+ # resource path
808
+ local_var_path = "/diagram/storage/{storageName}/exist".sub('{' + 'storageName' + '}', storage_name.to_s)
809
+
810
+ # query parameters
811
+ query_params = {}
812
+
813
+ # header parameters
814
+ header_params = {}
815
+ # HTTP header 'Accept' (if needed)
816
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
817
+ # HTTP header 'Content-Type'
818
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
819
+
820
+ # form parameters
821
+ form_params = {}
822
+
823
+ # http body (model)
824
+ post_body = nil
825
+ auth_names = ['JWT']
826
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
827
+ :header_params => header_params,
828
+ :query_params => query_params,
829
+ :form_params => form_params,
830
+ :body => post_body,
831
+ :auth_names => auth_names,
832
+ :return_type => 'StorageExist')
833
+ if @api_client.config.debugging
834
+ @api_client.config.logger.debug "API called: StorageApi#storage_exists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
835
+ end
836
+ return data, status_code, headers
837
+ end
838
+
839
+ # Upload file
840
+ #
841
+ # @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
842
+ # @param file File to upload
843
+ # @param [Hash] opts the optional parameters
844
+ # @option opts [String] :storage_name Storage name
845
+ # @return [FilesUploadResult]
846
+ def upload_file(path, file, opts = {})
847
+ data, _status_code, _headers = upload_file_with_http_info(path, file, opts)
848
+ return data
849
+ end
850
+
851
+ # Upload file
852
+ #
853
+ # @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
854
+ # @param file File to upload
855
+ # @param [Hash] opts the optional parameters
856
+ # @option opts [String] :storage_name Storage name
857
+ # @return [Array<(FilesUploadResult, Fixnum, Hash)>] FilesUploadResult data, response status code and response headers
858
+ def upload_file_with_http_info(path, file, opts = {})
859
+ if @api_client.config.debugging
860
+ @api_client.config.logger.debug "Calling API: StorageApi.upload_file ..."
861
+ end
862
+ # verify the required parameter 'path' is set
863
+ if @api_client.config.client_side_validation && path.nil?
864
+ fail ArgumentError, "Missing the required parameter 'path' when calling StorageApi.upload_file"
865
+ end
866
+ # verify the required parameter 'file' is set
867
+ if @api_client.config.client_side_validation && file.nil?
868
+ fail ArgumentError, "Missing the required parameter 'file' when calling StorageApi.upload_file"
869
+ end
870
+ # resource path
871
+ local_var_path = "/diagram/storage/file/{path}".sub('{' + 'path' + '}', path.to_s)
872
+
873
+ # query parameters
874
+ query_params = {}
875
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
876
+
877
+ # header parameters
878
+ header_params = {}
879
+ # HTTP header 'Accept' (if needed)
880
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
881
+ # HTTP header 'Content-Type'
882
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
883
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
884
+
885
+ # form parameters
886
+ form_params = {}
887
+ #form_params["File"] = file
888
+
889
+ # http body (model)
890
+ post_body = file
891
+ auth_names = ['JWT']
892
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
893
+ :header_params => header_params,
894
+ :query_params => query_params,
895
+ :form_params => form_params,
896
+ :body => post_body,
897
+ :auth_names => auth_names,
898
+ :return_type => 'FilesUploadResult')
899
+ if @api_client.config.debugging
900
+ @api_client.config.logger.debug "API called: StorageApi#upload_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
901
+ end
902
+ return data, status_code, headers
903
+ end
904
+ end
905
+ end