@@ -20744,6 +20744,200 @@ def post_batch_convert_with_http_info(batch_convert_request, opts = {})
2074420744 end
2074520745 return data, status_code, headers
2074620746 end
20747+ #
20748+ #
20749+ # @param file File to upload
20750+ # @param [Hash] opts the optional parameters
20751+ # @option opts [String] :password
20752+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20753+ # @return [FileInfo]
20754+ def post_convert_workbook_to_docx(file, opts = {})
20755+ data, _status_code, _headers = post_convert_workbook_to_docx_with_http_info(file, opts)
20756+ return data
20757+ end
20758+
20759+ #
20760+ #
20761+ # @param file File to upload
20762+ # @param [Hash] opts the optional parameters
20763+ # @option opts [String] :password
20764+ # @option opts [BOOLEAN] :check_excel_restriction
20765+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20766+ def post_convert_workbook_to_docx_with_http_info(file, opts = {})
20767+ if @api_client.config.debugging
20768+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_docx ..."
20769+ end
20770+ @api_client.request_token_if_needed
20771+ # verify the required parameter 'file' is set
20772+ if @api_client.config.client_side_validation && file.nil?
20773+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_docx"
20774+ end
20775+ # resource path
20776+ local_var_path = "/cells/convert/docx"
20777+
20778+ # query parameters
20779+ query_params = {}
20780+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20781+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20782+
20783+ # header parameters
20784+ header_params = {}
20785+ # HTTP header 'Accept' (if needed)
20786+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20787+ # HTTP header 'Content-Type'
20788+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20789+
20790+ # form parameters
20791+ form_params = {}
20792+
20793+ # http body (model)
20794+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20795+ post_body =''
20796+ form_params['file'] = file
20797+ #auth_names = []
20798+ auth_names = ['JWT']
20799+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20800+ :header_params => header_params,
20801+ :query_params => query_params,
20802+ :form_params => form_params,
20803+ :body => post_body,
20804+ :auth_names => auth_names,
20805+ :return_type => 'FileInfo')
20806+ if @api_client.config.debugging
20807+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20808+ end
20809+ return data, status_code, headers
20810+ end
20811+
20812+ #
20813+ #
20814+ # @param file File to upload
20815+ # @param [Hash] opts the optional parameters
20816+ # @option opts [String] :password
20817+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20818+ # @return [FileInfo]
20819+ def post_convert_workbook_to_pdf(file, opts = {})
20820+ data, _status_code, _headers = post_convert_workbook_to_pdf_with_http_info(file, opts)
20821+ return data
20822+ end
20823+
20824+ #
20825+ #
20826+ # @param file File to upload
20827+ # @param [Hash] opts the optional parameters
20828+ # @option opts [String] :password
20829+ # @option opts [BOOLEAN] :check_excel_restriction
20830+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20831+ def post_convert_workbook_to_pdf_with_http_info(file, opts = {})
20832+ if @api_client.config.debugging
20833+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pdf ..."
20834+ end
20835+ @api_client.request_token_if_needed
20836+ # verify the required parameter 'file' is set
20837+ if @api_client.config.client_side_validation && file.nil?
20838+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pdf"
20839+ end
20840+ # resource path
20841+ local_var_path = "/cells/convert/pdf"
20842+
20843+ # query parameters
20844+ query_params = {}
20845+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20846+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20847+
20848+ # header parameters
20849+ header_params = {}
20850+ # HTTP header 'Accept' (if needed)
20851+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20852+ # HTTP header 'Content-Type'
20853+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20854+
20855+ # form parameters
20856+ form_params = {}
20857+
20858+ # http body (model)
20859+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20860+ post_body =''
20861+ form_params['file'] = file
20862+ #auth_names = []
20863+ auth_names = ['JWT']
20864+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20865+ :header_params => header_params,
20866+ :query_params => query_params,
20867+ :form_params => form_params,
20868+ :body => post_body,
20869+ :auth_names => auth_names,
20870+ :return_type => 'FileInfo')
20871+ if @api_client.config.debugging
20872+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20873+ end
20874+ return data, status_code, headers
20875+ end
20876+
20877+ #
20878+ #
20879+ # @param file File to upload
20880+ # @param [Hash] opts the optional parameters
20881+ # @option opts [String] :password
20882+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20883+ # @return [FileInfo]
20884+ def post_convert_workbook_to_png(file, opts = {})
20885+ data, _status_code, _headers = post_convert_workbook_to_png_with_http_info(file, opts)
20886+ return data
20887+ end
20888+
20889+ #
20890+ #
20891+ # @param file File to upload
20892+ # @param [Hash] opts the optional parameters
20893+ # @option opts [String] :password
20894+ # @option opts [BOOLEAN] :check_excel_restriction
20895+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20896+ def post_convert_workbook_to_png_with_http_info(file, opts = {})
20897+ if @api_client.config.debugging
20898+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_png ..."
20899+ end
20900+ @api_client.request_token_if_needed
20901+ # verify the required parameter 'file' is set
20902+ if @api_client.config.client_side_validation && file.nil?
20903+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_png"
20904+ end
20905+ # resource path
20906+ local_var_path = "/cells/convert/png"
20907+
20908+ # query parameters
20909+ query_params = {}
20910+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20911+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20912+
20913+ # header parameters
20914+ header_params = {}
20915+ # HTTP header 'Accept' (if needed)
20916+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20917+ # HTTP header 'Content-Type'
20918+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20919+
20920+ # form parameters
20921+ form_params = {}
20922+
20923+ # http body (model)
20924+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20925+ post_body =''
20926+ form_params['file'] = file
20927+ #auth_names = []
20928+ auth_names = ['JWT']
20929+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20930+ :header_params => header_params,
20931+ :query_params => query_params,
20932+ :form_params => form_params,
20933+ :body => post_body,
20934+ :auth_names => auth_names,
20935+ :return_type => 'FileInfo')
20936+ if @api_client.config.debugging
20937+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20938+ end
20939+ return data, status_code, headers
20940+ end
2074720941
2074820942 # Check if storage exists
2074920943 #
0 commit comments