Class: AsposeSlidesCloud::SlidesAsyncApi
- Inherits:
-
Object
- Object
- AsposeSlidesCloud::SlidesAsyncApi
- Defined in:
- lib/aspose_slides_cloud/api/slides_async_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
- #get_operation_result(id) ⇒ Object
- #get_operation_result_with_http_info(id) ⇒ Object
- #get_operation_status(id) ⇒ Object
- #get_operation_status_with_http_info(id) ⇒ Object
-
#initialize(configuration = Configuration.default) ⇒ SlidesAsyncApi
constructor
A new instance of SlidesAsyncApi.
- #start_convert(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
- #start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
- #start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
- #start_convert_with_http_info(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
- #start_download_presentation(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
- #start_download_presentation_with_http_info(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
- #start_merge(files = nil, request = nil, storage = nil) ⇒ Object
- #start_merge_and_save(out_path, files = nil, request = nil, storage = nil) ⇒ Object
- #start_merge_and_save_with_http_info(out_path, files = nil, request = nil, storage = nil) ⇒ Object
- #start_merge_with_http_info(files = nil, request = nil, storage = nil) ⇒ Object
- #start_save_presentation(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
- #start_save_presentation_with_http_info(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
- #start_split(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) ⇒ Object
- #start_split_with_http_info(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) ⇒ Object
- #start_upload_and_split(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil) ⇒ Object
- #start_upload_and_split_with_http_info(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil) ⇒ Object
Constructor Details
#initialize(configuration = Configuration.default) ⇒ SlidesAsyncApi
Returns a new instance of SlidesAsyncApi.
29 30 31 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 29 def initialize(configuration = Configuration.default) @api_client = AsposeSlidesCloud::ApiClient.new(configuration) end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
27 28 29 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 27 def api_client @api_client end |
Instance Method Details
#get_operation_result(id) ⇒ Object
34 35 36 37 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 34 def get_operation_result(id) data, _status_code, _headers = get_operation_result_with_http_info(id) data end |
#get_operation_result_with_http_info(id) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 40 def get_operation_result_with_http_info(id) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.get_operation_result ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SlidesAsyncApi.get_operation_result" end # resource path local_var_path = '/slides/async/{id}/result' local_var_path = @api_client.replace_path_parameter(local_var_path, 'id', id) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # http body (model) post_body = nil # form parameters post_files = [] auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'File') return data, status_code, headers end |
#get_operation_status(id) ⇒ Object
80 81 82 83 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 80 def get_operation_status(id) data, _status_code, _headers = get_operation_status_with_http_info(id) data end |
#get_operation_status_with_http_info(id) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 86 def get_operation_status_with_http_info(id) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.get_operation_status ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SlidesAsyncApi.get_operation_status" end # resource path local_var_path = '/slides/async/{id}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'id', id) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # http body (model) post_body = nil # form parameters post_files = [] auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'Operation') return data, status_code, headers end |
#start_convert(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
132 133 134 135 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 132 def start_convert(document, format, password = nil, storage = nil, fonts_folder = nil, = nil, = nil) data, _status_code, _headers = start_convert_with_http_info(document, format, password, storage, fonts_folder, , ) data end |
#start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
206 207 208 209 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 206 def start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, = nil, = nil) data, _status_code, _headers = start_convert_and_save_with_http_info(document, format, out_path, password, storage, fonts_folder, , ) data end |
#start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 219 def start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, = nil, = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_convert_and_save ...' end # verify the required parameter 'document' is set if @api_client.config.client_side_validation && document.nil? fail ArgumentError, "Missing the required parameter 'document' when calling SlidesAsyncApi.start_convert_and_save" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert_and_save" end # verify enum value if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml" end # verify the required parameter 'out_path' is set if @api_client.config.client_side_validation && out_path.nil? fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_convert_and_save" end # resource path local_var_path = '/slides/async/convert/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? query_params[:'slides'] = @api_client.prepare_for_query() unless .nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] if document post_files = post_files.push(document) end auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_convert_with_http_info(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) ⇒ Object
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 144 def start_convert_with_http_info(document, format, password = nil, storage = nil, fonts_folder = nil, = nil, = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_convert ...' end # verify the required parameter 'document' is set if @api_client.config.client_side_validation && document.nil? fail ArgumentError, "Missing the required parameter 'document' when calling SlidesAsyncApi.start_convert" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert" end # verify enum value if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml" end # resource path local_var_path = '/slides/async/convert/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? query_params[:'slides'] = @api_client.prepare_for_query() unless .nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] if document post_files = post_files.push(document) end auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_download_presentation(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
286 287 288 289 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 286 def start_download_presentation(name, format, = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, = nil) data, _status_code, _headers = start_download_presentation_with_http_info(name, format, , password, folder, storage, fonts_folder, ) data end |
#start_download_presentation_with_http_info(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 299 def start_download_presentation_with_http_info(name, format, = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_download_presentation ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling SlidesAsyncApi.start_download_presentation" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_download_presentation" end # verify enum value if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml" end # resource path local_var_path = '/slides/async/{name}/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name) local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? query_params[:'slides'] = @api_client.prepare_for_query() unless .nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_merge(files = nil, request = nil, storage = nil) ⇒ Object
355 356 357 358 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 355 def start_merge(files = nil, request = nil, storage = nil) data, _status_code, _headers = start_merge_with_http_info(files, request, storage) data end |
#start_merge_and_save(out_path, files = nil, request = nil, storage = nil) ⇒ Object
405 406 407 408 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 405 def start_merge_and_save(out_path, files = nil, request = nil, storage = nil) data, _status_code, _headers = start_merge_and_save_with_http_info(out_path, files, request, storage) data end |
#start_merge_and_save_with_http_info(out_path, files = nil, request = nil, storage = nil) ⇒ Object
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 414 def start_merge_and_save_with_http_info(out_path, files = nil, request = nil, storage = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_merge_and_save ...' end # verify the required parameter 'out_path' is set if @api_client.config.client_side_validation && out_path.nil? fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_merge_and_save" end # resource path local_var_path = '/slides/async/merge' # query parameters query_params = {} query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) # http body (model) post_body = @api_client.object_to_http_body(request) # form parameters post_files = [] if files post_files = post_files.concat(files) end auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_merge_with_http_info(files = nil, request = nil, storage = nil) ⇒ Object
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 363 def start_merge_with_http_info(files = nil, request = nil, storage = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_merge ...' end # resource path local_var_path = '/slides/async/merge' # query parameters query_params = {} query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) # http body (model) post_body = @api_client.object_to_http_body(request) # form parameters post_files = [] if files post_files = post_files.concat(files) end auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_save_presentation(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
466 467 468 469 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 466 def start_save_presentation(name, format, out_path, = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, = nil) data, _status_code, _headers = start_save_presentation_with_http_info(name, format, out_path, , password, folder, storage, fonts_folder, ) data end |
#start_save_presentation_with_http_info(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) ⇒ Object
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 480 def start_save_presentation_with_http_info(name, format, out_path, = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_save_presentation ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling SlidesAsyncApi.start_save_presentation" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_save_presentation" end # verify enum value if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml" end # verify the required parameter 'out_path' is set if @api_client.config.client_side_validation && out_path.nil? fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_save_presentation" end # resource path local_var_path = '/slides/async/{name}/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name) local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil? query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? query_params[:'slides'] = @api_client.prepare_for_query() unless .nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_split(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) ⇒ Object
550 551 552 553 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 550 def start_split(name, format, = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) data, _status_code, _headers = start_split_with_http_info(name, format, , width, height, from, to, dest_folder, password, folder, storage, fonts_folder) data end |
#start_split_with_http_info(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) ⇒ Object
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 567 def start_split_with_http_info(name, format, = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_split ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling SlidesAsyncApi.start_split" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_split" end # verify enum value if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml" end # resource path local_var_path = '/slides/async/{name}/split/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name) local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil? query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil? query_params[:'from'] = @api_client.prepare_for_query(from) unless from.nil? query_params[:'to'] = @api_client.prepare_for_query(to) unless to.nil? query_params[:'destFolder'] = @api_client.prepare_for_query(dest_folder) unless dest_folder.nil? query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |
#start_upload_and_split(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil) ⇒ Object
635 636 637 638 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 635 def start_upload_and_split(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, = nil) data, _status_code, _headers = start_upload_and_split_with_http_info(document, format, dest_folder, width, height, from, to, password, storage, fonts_folder, ) data end |
#start_upload_and_split_with_http_info(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil) ⇒ Object
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 |
# File 'lib/aspose_slides_cloud/api/slides_async_api.rb', line 651 def start_upload_and_split_with_http_info(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, = nil) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_upload_and_split ...' end # verify the required parameter 'document' is set if @api_client.config.client_side_validation && document.nil? fail ArgumentError, "Missing the required parameter 'document' when calling SlidesAsyncApi.start_upload_and_split" end # verify the required parameter 'format' is set if @api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_upload_and_split" end # verify enum value if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 } fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml" end # resource path local_var_path = '/slides/async/split/{format}' local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format) # query parameters query_params = {} query_params[:'destFolder'] = @api_client.prepare_for_query(dest_folder) unless dest_folder.nil? query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil? query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil? query_params[:'from'] = @api_client.prepare_for_query(from) unless from.nil? query_params[:'to'] = @api_client.prepare_for_query(to) unless to.nil? query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil? query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) header_params[:'password'] = password unless password.nil? # http body (model) post_body = @api_client.object_to_http_body() # form parameters post_files = [] if document post_files = post_files.push(document) end auth_names = ['JWT'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :body => post_body, :files => post_files, :auth_names => auth_names, :return_type => 'String') return data, status_code, headers end |