@@ -34808,6 +34808,356 @@ def post_batch_convert_with_http_info(self, batch_convert_request, **kwargs):
3480834808 _preload_content=params.get('_preload_content', True),
3480934809 _request_timeout=params.get('_request_timeout'),
3481034810 collection_formats=collection_formats)
34811+ def post_convert_workbook_to_docx(self, file, **kwargs):
34812+ """
34813+ This method makes a synchronous HTTP request by default. To make an
34814+ asynchronous HTTP request, please define a `callback` function
34815+ to be invoked when receiving the response.
34816+ >>> def callback_function(response):
34817+ >>> pprint(response)
34818+ >>>
34819+ >>> thread = api.post_convert_workbook_to_docx(file, callback=callback_function)
34820+
34821+ :param callback function: The callback function
34822+ for asynchronous request. (optional)
34823+ :param file file: File to upload (required)
34824+ :param str password:
34825+ :param bool check_excel_restriction:
34826+ :return: FileInfo
34827+ If the method is called asynchronously,
34828+ returns the request thread.
34829+ """
34830+ kwargs['_return_http_data_only'] = True
34831+ self.check_access_token()
34832+ if kwargs.get('callback'):
34833+ return self.post_convert_workbook_to_docx_with_http_info(file, **kwargs)
34834+ else:
34835+ (data) = self.post_convert_workbook_to_docx_with_http_info(file, **kwargs)
34836+ return data
34837+
34838+ def post_convert_workbook_to_docx_with_http_info(self, file, **kwargs):
34839+ """
34840+ This method makes a synchronous HTTP request by default. To make an
34841+ asynchronous HTTP request, please define a `callback` function
34842+ to be invoked when receiving the response.
34843+ >>> def callback_function(response):
34844+ >>> pprint(response)
34845+ >>>
34846+ >>> thread = api.post_convert_workbook_to_docx_with_http_info(file, callback=callback_function)
34847+
34848+ :param callback function: The callback function
34849+ for asynchronous request. (optional)
34850+ :param file file: File to upload (required)
34851+ :param str password:
34852+ :param bool check_excel_restriction:
34853+ :return: FileInfo
34854+ If the method is called asynchronously,
34855+ returns the request thread.
34856+ """
34857+
34858+ all_params = ['file', 'password', 'check_excel_restriction']
34859+ all_params.append('callback')
34860+ all_params.append('_return_http_data_only')
34861+ all_params.append('_preload_content')
34862+ all_params.append('_request_timeout')
34863+
34864+ params = locals()
34865+ for key, val in iteritems(params['kwargs']):
34866+ if key not in all_params:
34867+ raise TypeError(
34868+ "Got an unexpected keyword argument '%s'"
34869+ " to method post_convert_workbook_to_docx" % key
34870+ )
34871+ params[key] = val
34872+ del params['kwargs']
34873+ # verify the required parameter 'file' is set
34874+ if ('file' not in params) or (params['file'] is None):
34875+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_docx`")
34876+
34877+
34878+ collection_formats = {}
34879+
34880+ path_params = {}
34881+
34882+ query_params = []
34883+ if 'password' in params:
34884+ query_params.append(('password', params['password']))
34885+ if 'check_excel_restriction' in params:
34886+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
34887+
34888+ header_params = {}
34889+
34890+ form_params = []
34891+ local_var_files = {}
34892+ if 'file' in params:
34893+
34894+ if isinstance(params['file'],dict):
34895+ for filename , filecontext in params['file'].items():
34896+ local_var_files[filename] = filecontext
34897+ else:
34898+ local_var_files['file'] = params['file']
34899+
34900+
34901+ body_params = None
34902+ # HTTP header `Accept`
34903+ header_params['Accept'] = self.api_client.\
34904+ select_header_accept(['application/json'])
34905+
34906+ # HTTP header `Content-Type`
34907+ header_params['Content-Type'] = self.api_client.\
34908+ select_header_content_type(['multipart/form-data'])
34909+
34910+ # Authentication setting
34911+ auth_settings = []
34912+
34913+ return self.api_client.call_api('/cells/convert/docx', 'POST',
34914+ path_params,
34915+ query_params,
34916+ header_params,
34917+ body=body_params,
34918+ post_params=form_params,
34919+ files=local_var_files,
34920+ response_type='FileInfo',
34921+ auth_settings=auth_settings,
34922+ callback=params.get('callback'),
34923+ _return_http_data_only=params.get('_return_http_data_only'),
34924+ _preload_content=params.get('_preload_content', True),
34925+ _request_timeout=params.get('_request_timeout'),
34926+ collection_formats=collection_formats)
34927+
34928+ def post_convert_workbook_to_pdf(self, file, **kwargs):
34929+ """
34930+ This method makes a synchronous HTTP request by default. To make an
34931+ asynchronous HTTP request, please define a `callback` function
34932+ to be invoked when receiving the response.
34933+ >>> def callback_function(response):
34934+ >>> pprint(response)
34935+ >>>
34936+ >>> thread = api.post_convert_workbook_to_pdf(file, callback=callback_function)
34937+
34938+ :param callback function: The callback function
34939+ for asynchronous request. (optional)
34940+ :param file file: File to upload (required)
34941+ :param str password:
34942+ :param bool check_excel_restriction:
34943+ :return: FileInfo
34944+ If the method is called asynchronously,
34945+ returns the request thread.
34946+ """
34947+ kwargs['_return_http_data_only'] = True
34948+ self.check_access_token()
34949+ if kwargs.get('callback'):
34950+ return self.post_convert_workbook_to_pdf_with_http_info(file, **kwargs)
34951+ else:
34952+ (data) = self.post_convert_workbook_to_pdf_with_http_info(file, **kwargs)
34953+ return data
34954+
34955+ def post_convert_workbook_to_pdf_with_http_info(self, file, **kwargs):
34956+ """
34957+ This method makes a synchronous HTTP request by default. To make an
34958+ asynchronous HTTP request, please define a `callback` function
34959+ to be invoked when receiving the response.
34960+ >>> def callback_function(response):
34961+ >>> pprint(response)
34962+ >>>
34963+ >>> thread = api.post_convert_workbook_to_pdf_with_http_info(file, callback=callback_function)
34964+
34965+ :param callback function: The callback function
34966+ for asynchronous request. (optional)
34967+ :param file file: File to upload (required)
34968+ :param str password:
34969+ :param bool check_excel_restriction:
34970+ :return: FileInfo
34971+ If the method is called asynchronously,
34972+ returns the request thread.
34973+ """
34974+
34975+ all_params = ['file', 'password', 'check_excel_restriction']
34976+ all_params.append('callback')
34977+ all_params.append('_return_http_data_only')
34978+ all_params.append('_preload_content')
34979+ all_params.append('_request_timeout')
34980+
34981+ params = locals()
34982+ for key, val in iteritems(params['kwargs']):
34983+ if key not in all_params:
34984+ raise TypeError(
34985+ "Got an unexpected keyword argument '%s'"
34986+ " to method post_convert_workbook_to_pdf" % key
34987+ )
34988+ params[key] = val
34989+ del params['kwargs']
34990+ # verify the required parameter 'file' is set
34991+ if ('file' not in params) or (params['file'] is None):
34992+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_pdf`")
34993+
34994+
34995+ collection_formats = {}
34996+
34997+ path_params = {}
34998+
34999+ query_params = []
35000+ if 'password' in params:
35001+ query_params.append(('password', params['password']))
35002+ if 'check_excel_restriction' in params:
35003+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35004+
35005+ header_params = {}
35006+
35007+ form_params = []
35008+ local_var_files = {}
35009+ if 'file' in params:
35010+
35011+ if isinstance(params['file'],dict):
35012+ for filename , filecontext in params['file'].items():
35013+ local_var_files[filename] = filecontext
35014+ else:
35015+ local_var_files['file'] = params['file']
35016+
35017+
35018+ body_params = None
35019+ # HTTP header `Accept`
35020+ header_params['Accept'] = self.api_client.\
35021+ select_header_accept(['application/json'])
35022+
35023+ # HTTP header `Content-Type`
35024+ header_params['Content-Type'] = self.api_client.\
35025+ select_header_content_type(['multipart/form-data'])
35026+
35027+ # Authentication setting
35028+ auth_settings = []
35029+
35030+ return self.api_client.call_api('/cells/convert/pdf', 'POST',
35031+ path_params,
35032+ query_params,
35033+ header_params,
35034+ body=body_params,
35035+ post_params=form_params,
35036+ files=local_var_files,
35037+ response_type='FileInfo',
35038+ auth_settings=auth_settings,
35039+ callback=params.get('callback'),
35040+ _return_http_data_only=params.get('_return_http_data_only'),
35041+ _preload_content=params.get('_preload_content', True),
35042+ _request_timeout=params.get('_request_timeout'),
35043+ collection_formats=collection_formats)
35044+
35045+ def post_convert_workbook_to_png(self, file, **kwargs):
35046+ """
35047+ This method makes a synchronous HTTP request by default. To make an
35048+ asynchronous HTTP request, please define a `callback` function
35049+ to be invoked when receiving the response.
35050+ >>> def callback_function(response):
35051+ >>> pprint(response)
35052+ >>>
35053+ >>> thread = api.post_convert_workbook_to_png(file, callback=callback_function)
35054+
35055+ :param callback function: The callback function
35056+ for asynchronous request. (optional)
35057+ :param file file: File to upload (required)
35058+ :param str password:
35059+ :param bool check_excel_restriction:
35060+ :return: FileInfo
35061+ If the method is called asynchronously,
35062+ returns the request thread.
35063+ """
35064+ kwargs['_return_http_data_only'] = True
35065+ self.check_access_token()
35066+ if kwargs.get('callback'):
35067+ return self.post_convert_workbook_to_png_with_http_info(file, **kwargs)
35068+ else:
35069+ (data) = self.post_convert_workbook_to_png_with_http_info(file, **kwargs)
35070+ return data
35071+
35072+ def post_convert_workbook_to_png_with_http_info(self, file, **kwargs):
35073+ """
35074+ This method makes a synchronous HTTP request by default. To make an
35075+ asynchronous HTTP request, please define a `callback` function
35076+ to be invoked when receiving the response.
35077+ >>> def callback_function(response):
35078+ >>> pprint(response)
35079+ >>>
35080+ >>> thread = api.post_convert_workbook_to_png_with_http_info(file, callback=callback_function)
35081+
35082+ :param callback function: The callback function
35083+ for asynchronous request. (optional)
35084+ :param file file: File to upload (required)
35085+ :param str password:
35086+ :param bool check_excel_restriction:
35087+ :return: FileInfo
35088+ If the method is called asynchronously,
35089+ returns the request thread.
35090+ """
35091+
35092+ all_params = ['file', 'password', 'check_excel_restriction']
35093+ all_params.append('callback')
35094+ all_params.append('_return_http_data_only')
35095+ all_params.append('_preload_content')
35096+ all_params.append('_request_timeout')
35097+
35098+ params = locals()
35099+ for key, val in iteritems(params['kwargs']):
35100+ if key not in all_params:
35101+ raise TypeError(
35102+ "Got an unexpected keyword argument '%s'"
35103+ " to method post_convert_workbook_to_png" % key
35104+ )
35105+ params[key] = val
35106+ del params['kwargs']
35107+ # verify the required parameter 'file' is set
35108+ if ('file' not in params) or (params['file'] is None):
35109+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_png`")
35110+
35111+
35112+ collection_formats = {}
35113+
35114+ path_params = {}
35115+
35116+ query_params = []
35117+ if 'password' in params:
35118+ query_params.append(('password', params['password']))
35119+ if 'check_excel_restriction' in params:
35120+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35121+
35122+ header_params = {}
35123+
35124+ form_params = []
35125+ local_var_files = {}
35126+ if 'file' in params:
35127+
35128+ if isinstance(params['file'],dict):
35129+ for filename , filecontext in params['file'].items():
35130+ local_var_files[filename] = filecontext
35131+ else:
35132+ local_var_files['file'] = params['file']
35133+
35134+
35135+ body_params = None
35136+ # HTTP header `Accept`
35137+ header_params['Accept'] = self.api_client.\
35138+ select_header_accept(['application/json'])
35139+
35140+ # HTTP header `Content-Type`
35141+ header_params['Content-Type'] = self.api_client.\
35142+ select_header_content_type(['multipart/form-data'])
35143+
35144+ # Authentication setting
35145+ auth_settings = []
35146+
35147+ return self.api_client.call_api('/cells/convert/png', 'POST',
35148+ path_params,
35149+ query_params,
35150+ header_params,
35151+ body=body_params,
35152+ post_params=form_params,
35153+ files=local_var_files,
35154+ response_type='FileInfo',
35155+ auth_settings=auth_settings,
35156+ callback=params.get('callback'),
35157+ _return_http_data_only=params.get('_return_http_data_only'),
35158+ _preload_content=params.get('_preload_content', True),
35159+ _request_timeout=params.get('_request_timeout'),
35160+ collection_formats=collection_formats)
3481135161
3481235162 def storage_exists(self, storage_name, **kwargs):
3481335163 """
0 commit comments