class AsposeSlidesCloud::SlidesAsyncApi

Attributes

api_client[RW]

Public Class Methods

new(configuration = Configuration.default) click to toggle source
# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 29
def initialize(configuration = Configuration.default)
  @api_client = AsposeSlidesCloud::ApiClient.new(configuration)
end

Public Instance Methods

download(path, storage_name = nil, version_id = nil) click to toggle source

@param path @param storage_name @param version_id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 36
def download(path, storage_name = nil, version_id = nil)
  data, _status_code, _headers = download_with_http_info(path, storage_name, version_id)
  data
end
download_with_http_info(path, storage_name = nil, version_id = nil) click to toggle source

@param path @param storage_name @param version_id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 44
def download_with_http_info(path, storage_name = nil, version_id = nil)
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.download ...'
  end

  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.download"
  end
  # resource path
  local_var_path = '/slides/async/storage/file/{path}'
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)

  # query parameters
  query_params = {}
  query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.nil?
  query_params[:'versionId'] = @api_client.prepare_for_query(version_id) unless version_id.nil?

  # 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_result(id) click to toggle source

@param id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 86
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) click to toggle source

@param id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 92
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) click to toggle source

@param id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 132
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) click to toggle source

@param id

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 138
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) click to toggle source

@param document Document data. @param format @param password @param storage @param fonts_folder @param slides @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 184
def start_convert(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil)
  data, _status_code, _headers = start_convert_with_http_info(document, format, password, storage, fonts_folder, slides, options)
  data
end
start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) click to toggle source

@param document Document data. @param format @param out_path @param password @param storage @param fonts_folder @param slides @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 258
def start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil)
  data, _status_code, _headers = start_convert_and_save_with_http_info(document, format, out_path, password, storage, fonts_folder, slides, options)
  data
end
start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil) click to toggle source

@param document Document data. @param format @param out_path @param password @param storage @param fonts_folder @param slides @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 271
def start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = 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(slides) unless slides.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(options)

  # 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) click to toggle source

@param document Document data. @param format @param password @param storage @param fonts_folder @param slides @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 196
def start_convert_with_http_info(document, format, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = 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(slides) unless slides.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(options)

  # 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) click to toggle source

@param name @param format @param options @param password @param folder @param storage @param fonts_folder @param slides

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 338
def start_download_presentation(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil)
  data, _status_code, _headers = start_download_presentation_with_http_info(name, format, options, password, folder, storage, fonts_folder, slides)
  data
end
start_download_presentation_with_http_info(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil) click to toggle source

@param name @param format @param options @param password @param folder @param storage @param fonts_folder @param slides

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 351
def start_download_presentation_with_http_info(name, format, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = 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(slides) unless slides.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(options)

  # 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) click to toggle source

@param files Files to merge @param request @param storage

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 407
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) click to toggle source

@param out_path @param files Files to merge @param request @param storage

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 457
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) click to toggle source

@param out_path @param files Files to merge @param request @param storage

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 466
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) click to toggle source

@param files Files to merge @param request @param storage

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 415
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) click to toggle source

@param name @param format @param out_path @param options @param password @param folder @param storage @param fonts_folder @param slides

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 518
def start_save_presentation(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil)
  data, _status_code, _headers = start_save_presentation_with_http_info(name, format, out_path, options, password, folder, storage, fonts_folder, slides)
  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) click to toggle source

@param name @param format @param out_path @param options @param password @param folder @param storage @param fonts_folder @param slides

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 532
def start_save_presentation_with_http_info(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = 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(slides) unless slides.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(options)

  # 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) click to toggle source

@param name @param format @param options @param width @param height @param from @param to @param dest_folder @param password @param folder @param storage @param fonts_folder

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 602
def 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)
  data, _status_code, _headers = start_split_with_http_info(name, format, options, 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) click to toggle source

@param name @param format @param options @param width @param height @param from @param to @param dest_folder @param password @param folder @param storage @param fonts_folder

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 619
def 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)
  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(options)

  # 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) click to toggle source

@param document Document data. @param format @param dest_folder @param width @param height @param from @param to @param password @param storage @param fonts_folder @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 687
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, options = nil)
  data, _status_code, _headers = start_upload_and_split_with_http_info(document, format, dest_folder, width, height, from, to, password, storage, fonts_folder, options)
  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) click to toggle source

@param document Document data. @param format @param dest_folder @param width @param height @param from @param to @param password @param storage @param fonts_folder @param options

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 703
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, options = 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(options)

  # 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
upload(path, file, storage_name = nil) click to toggle source

@param path @param file File to upload @param storage_name

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 764
def upload(path, file, storage_name = nil)
  data, _status_code, _headers = upload_with_http_info(path, file, storage_name)
  data
end
upload_with_http_info(path, file, storage_name = nil) click to toggle source

@param path @param file File to upload @param storage_name

# File lib/aspose_slides_cloud/api/slides_async_api.rb, line 772
def upload_with_http_info(path, file, storage_name = nil)
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlidesAsyncApi.upload ...'
  end

  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.upload"
  end
  # verify the required parameter 'file' is set
  if @api_client.config.client_side_validation && file.nil?
    fail ArgumentError, "Missing the required parameter 'file' when calling SlidesAsyncApi.upload"
  end
  # resource path
  local_var_path = '/slides/async/storage/file/{path}'
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)

  # query parameters
  query_params = {}
  query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.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 = nil

  # form parameters
  post_files = []
  if file
    post_files = post_files.push(file)
  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 => 'FilesUploadResult')
  return data, status_code, headers
end