@@ -20939,6 +20939,201 @@ def post_convert_workbook_to_png_with_http_info(file, opts = {})
2093920939 return data, status_code, headers
2094020940 end
2094120941
20942+ #
20943+ #
20944+ # @param file File to upload
20945+ # @param [Hash] opts the optional parameters
20946+ # @option opts [String] :password
20947+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20948+ # @return [FileInfo]
20949+ def post_convert_workbook_to_pptx(file, opts = {})
20950+ data, _status_code, _headers = post_convert_workbook_to_pptx_with_http_info(file, opts)
20951+ return data
20952+ end
20953+
20954+ #
20955+ #
20956+ # @param file File to upload
20957+ # @param [Hash] opts the optional parameters
20958+ # @option opts [String] :password
20959+ # @option opts [BOOLEAN] :check_excel_restriction
20960+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20961+ def post_convert_workbook_to_pptx_with_http_info(file, opts = {})
20962+ if @api_client.config.debugging
20963+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pptx ..."
20964+ end
20965+ @api_client.request_token_if_needed
20966+ # verify the required parameter 'file' is set
20967+ if @api_client.config.client_side_validation && file.nil?
20968+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pptx"
20969+ end
20970+ # resource path
20971+ local_var_path = "/cells/convert/pptx"
20972+
20973+ # query parameters
20974+ query_params = {}
20975+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20976+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20977+
20978+ # header parameters
20979+ header_params = {}
20980+ # HTTP header 'Accept' (if needed)
20981+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20982+ # HTTP header 'Content-Type'
20983+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20984+
20985+ # form parameters
20986+ form_params = {}
20987+
20988+ # http body (model)
20989+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20990+ post_body =''
20991+ form_params['file'] = file
20992+ #auth_names = []
20993+ auth_names = ['JWT']
20994+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20995+ :header_params => header_params,
20996+ :query_params => query_params,
20997+ :form_params => form_params,
20998+ :body => post_body,
20999+ :auth_names => auth_names,
21000+ :return_type => 'FileInfo')
21001+ if @api_client.config.debugging
21002+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21003+ end
21004+ return data, status_code, headers
21005+ end
21006+
21007+ #
21008+ #
21009+ # @param file File to upload
21010+ # @param [Hash] opts the optional parameters
21011+ # @option opts [String] :password
21012+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21013+ # @return [FileInfo]
21014+ def post_convert_workbook_to_html(file, opts = {})
21015+ data, _status_code, _headers = post_convert_workbook_to_html_with_http_info(file, opts)
21016+ return data
21017+ end
21018+
21019+ #
21020+ #
21021+ # @param file File to upload
21022+ # @param [Hash] opts the optional parameters
21023+ # @option opts [String] :password
21024+ # @option opts [BOOLEAN] :check_excel_restriction
21025+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21026+ def post_convert_workbook_to_html_with_http_info(file, opts = {})
21027+ if @api_client.config.debugging
21028+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_html ..."
21029+ end
21030+ @api_client.request_token_if_needed
21031+ # verify the required parameter 'file' is set
21032+ if @api_client.config.client_side_validation && file.nil?
21033+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_html"
21034+ end
21035+ # resource path
21036+ local_var_path = "/cells/convert/html"
21037+
21038+ # query parameters
21039+ query_params = {}
21040+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21041+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21042+
21043+ # header parameters
21044+ header_params = {}
21045+ # HTTP header 'Accept' (if needed)
21046+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21047+ # HTTP header 'Content-Type'
21048+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21049+
21050+ # form parameters
21051+ form_params = {}
21052+
21053+ # http body (model)
21054+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21055+ post_body =''
21056+ form_params['file'] = file
21057+ #auth_names = []
21058+ auth_names = ['JWT']
21059+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21060+ :header_params => header_params,
21061+ :query_params => query_params,
21062+ :form_params => form_params,
21063+ :body => post_body,
21064+ :auth_names => auth_names,
21065+ :return_type => 'FileInfo')
21066+ if @api_client.config.debugging
21067+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21068+ end
21069+ return data, status_code, headers
21070+ end
21071+
21072+ #
21073+ #
21074+ # @param file File to upload
21075+ # @param [Hash] opts the optional parameters
21076+ # @option opts [String] :password
21077+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21078+ # @return [FileInfo]
21079+ def post_convert_workbook_to_markdown(file, opts = {})
21080+ data, _status_code, _headers = post_convert_workbook_to_markdown_with_http_info(file, opts)
21081+ return data
21082+ end
21083+
21084+ #
21085+ #
21086+ # @param file File to upload
21087+ # @param [Hash] opts the optional parameters
21088+ # @option opts [String] :password
21089+ # @option opts [BOOLEAN] :check_excel_restriction
21090+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21091+ def post_convert_workbook_to_markdown_with_http_info(file, opts = {})
21092+ if @api_client.config.debugging
21093+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_markdown ..."
21094+ end
21095+ @api_client.request_token_if_needed
21096+ # verify the required parameter 'file' is set
21097+ if @api_client.config.client_side_validation && file.nil?
21098+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_markdown"
21099+ end
21100+ # resource path
21101+ local_var_path = "/cells/convert/markdown"
21102+
21103+ # query parameters
21104+ query_params = {}
21105+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21106+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21107+
21108+ # header parameters
21109+ header_params = {}
21110+ # HTTP header 'Accept' (if needed)
21111+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21112+ # HTTP header 'Content-Type'
21113+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21114+
21115+ # form parameters
21116+ form_params = {}
21117+
21118+ # http body (model)
21119+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21120+ post_body =''
21121+ form_params['file'] = file
21122+ #auth_names = []
21123+ auth_names = ['JWT']
21124+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21125+ :header_params => header_params,
21126+ :query_params => query_params,
21127+ :form_params => form_params,
21128+ :body => post_body,
21129+ :auth_names => auth_names,
21130+ :return_type => 'FileInfo')
21131+ if @api_client.config.debugging
21132+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21133+ end
21134+ return data, status_code, headers
21135+ end
21136+
2094221137 # Check if storage exists
2094321138 #
2094421139 # @param storage_name Storage name
0 commit comments