@@ -35510,6 +35510,357 @@ def post_convert_workbook_to_markdown_with_http_info(self, file, **kwargs):
35510
35510
_request_timeout=params.get('_request_timeout'),
35511
35511
collection_formats=collection_formats)
35512
35512
35513
+ def post_convert_workbook_to_json(self, file, **kwargs):
35514
+ """
35515
+ This method makes a synchronous HTTP request by default. To make an
35516
+ asynchronous HTTP request, please define a `callback` function
35517
+ to be invoked when receiving the response.
35518
+ >>> def callback_function(response):
35519
+ >>> pprint(response)
35520
+ >>>
35521
+ >>> thread = api.post_convert_workbook_to_json(file, callback=callback_function)
35522
+
35523
+ :param callback function: The callback function
35524
+ for asynchronous request. (optional)
35525
+ :param file file: File to upload (required)
35526
+ :param str password:
35527
+ :param bool check_excel_restriction:
35528
+ :return: FileInfo
35529
+ If the method is called asynchronously,
35530
+ returns the request thread.
35531
+ """
35532
+ kwargs['_return_http_data_only'] = True
35533
+ self.check_access_token()
35534
+ if kwargs.get('callback'):
35535
+ return self.post_convert_workbook_to_json_with_http_info(file, **kwargs)
35536
+ else:
35537
+ (data) = self.post_convert_workbook_to_json_with_http_info(file, **kwargs)
35538
+ return data
35539
+
35540
+ def post_convert_workbook_to_json_with_http_info(self, file, **kwargs):
35541
+ """
35542
+ This method makes a synchronous HTTP request by default. To make an
35543
+ asynchronous HTTP request, please define a `callback` function
35544
+ to be invoked when receiving the response.
35545
+ >>> def callback_function(response):
35546
+ >>> pprint(response)
35547
+ >>>
35548
+ >>> thread = api.post_convert_workbook_to_json_with_http_info(file, callback=callback_function)
35549
+
35550
+ :param callback function: The callback function
35551
+ for asynchronous request. (optional)
35552
+ :param file file: File to upload (required)
35553
+ :param str password:
35554
+ :param bool check_excel_restriction:
35555
+ :return: FileInfo
35556
+ If the method is called asynchronously,
35557
+ returns the request thread.
35558
+ """
35559
+
35560
+ all_params = ['file', 'password', 'check_excel_restriction']
35561
+ all_params.append('callback')
35562
+ all_params.append('_return_http_data_only')
35563
+ all_params.append('_preload_content')
35564
+ all_params.append('_request_timeout')
35565
+
35566
+ params = locals()
35567
+ for key, val in iteritems(params['kwargs']):
35568
+ if key not in all_params:
35569
+ raise TypeError(
35570
+ "Got an unexpected keyword argument '%s'"
35571
+ " to method post_convert_workbook_to_json" % key
35572
+ )
35573
+ params[key] = val
35574
+ del params['kwargs']
35575
+ # verify the required parameter 'file' is set
35576
+ if ('file' not in params) or (params['file'] is None):
35577
+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_json`")
35578
+
35579
+
35580
+ collection_formats = {}
35581
+
35582
+ path_params = {}
35583
+
35584
+ query_params = []
35585
+ if 'password' in params:
35586
+ query_params.append(('password', params['password']))
35587
+ if 'check_excel_restriction' in params:
35588
+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35589
+
35590
+ header_params = {}
35591
+
35592
+ form_params = []
35593
+ local_var_files = {}
35594
+ if 'file' in params:
35595
+
35596
+ if isinstance(params['file'],dict):
35597
+ for filename , filecontext in params['file'].items():
35598
+ local_var_files[filename] = filecontext
35599
+ else:
35600
+ local_var_files['file'] = params['file']
35601
+
35602
+
35603
+ body_params = None
35604
+ # HTTP header `Accept`
35605
+ header_params['Accept'] = self.api_client.\
35606
+ select_header_accept(['application/json'])
35607
+
35608
+ # HTTP header `Content-Type`
35609
+ header_params['Content-Type'] = self.api_client.\
35610
+ select_header_content_type(['multipart/form-data'])
35611
+
35612
+ # Authentication setting
35613
+ auth_settings = []
35614
+
35615
+ return self.api_client.call_api('/cells/convert/json', 'POST',
35616
+ path_params,
35617
+ query_params,
35618
+ header_params,
35619
+ body=body_params,
35620
+ post_params=form_params,
35621
+ files=local_var_files,
35622
+ response_type='FileInfo',
35623
+ auth_settings=auth_settings,
35624
+ callback=params.get('callback'),
35625
+ _return_http_data_only=params.get('_return_http_data_only'),
35626
+ _preload_content=params.get('_preload_content', True),
35627
+ _request_timeout=params.get('_request_timeout'),
35628
+ collection_formats=collection_formats)
35629
+
35630
+ def post_convert_workbook_to_sql(self, file, **kwargs):
35631
+ """
35632
+ This method makes a synchronous HTTP request by default. To make an
35633
+ asynchronous HTTP request, please define a `callback` function
35634
+ to be invoked when receiving the response.
35635
+ >>> def callback_function(response):
35636
+ >>> pprint(response)
35637
+ >>>
35638
+ >>> thread = api.post_convert_workbook_to_sql(file, callback=callback_function)
35639
+
35640
+ :param callback function: The callback function
35641
+ for asynchronous request. (optional)
35642
+ :param file file: File to upload (required)
35643
+ :param str password:
35644
+ :param bool check_excel_restriction:
35645
+ :return: FileInfo
35646
+ If the method is called asynchronously,
35647
+ returns the request thread.
35648
+ """
35649
+ kwargs['_return_http_data_only'] = True
35650
+ self.check_access_token()
35651
+ if kwargs.get('callback'):
35652
+ return self.post_convert_workbook_to_sql_with_http_info(file, **kwargs)
35653
+ else:
35654
+ (data) = self.post_convert_workbook_to_sql_with_http_info(file, **kwargs)
35655
+ return data
35656
+
35657
+ def post_convert_workbook_to_sql_with_http_info(self, file, **kwargs):
35658
+ """
35659
+ This method makes a synchronous HTTP request by default. To make an
35660
+ asynchronous HTTP request, please define a `callback` function
35661
+ to be invoked when receiving the response.
35662
+ >>> def callback_function(response):
35663
+ >>> pprint(response)
35664
+ >>>
35665
+ >>> thread = api.post_convert_workbook_to_sql_with_http_info(file, callback=callback_function)
35666
+
35667
+ :param callback function: The callback function
35668
+ for asynchronous request. (optional)
35669
+ :param file file: File to upload (required)
35670
+ :param str password:
35671
+ :param bool check_excel_restriction:
35672
+ :return: FileInfo
35673
+ If the method is called asynchronously,
35674
+ returns the request thread.
35675
+ """
35676
+
35677
+ all_params = ['file', 'password', 'check_excel_restriction']
35678
+ all_params.append('callback')
35679
+ all_params.append('_return_http_data_only')
35680
+ all_params.append('_preload_content')
35681
+ all_params.append('_request_timeout')
35682
+
35683
+ params = locals()
35684
+ for key, val in iteritems(params['kwargs']):
35685
+ if key not in all_params:
35686
+ raise TypeError(
35687
+ "Got an unexpected keyword argument '%s'"
35688
+ " to method post_convert_workbook_to_sql" % key
35689
+ )
35690
+ params[key] = val
35691
+ del params['kwargs']
35692
+ # verify the required parameter 'file' is set
35693
+ if ('file' not in params) or (params['file'] is None):
35694
+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_sql`")
35695
+
35696
+
35697
+ collection_formats = {}
35698
+
35699
+ path_params = {}
35700
+
35701
+ query_params = []
35702
+ if 'password' in params:
35703
+ query_params.append(('password', params['password']))
35704
+ if 'check_excel_restriction' in params:
35705
+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35706
+
35707
+ header_params = {}
35708
+
35709
+ form_params = []
35710
+ local_var_files = {}
35711
+ if 'file' in params:
35712
+
35713
+ if isinstance(params['file'],dict):
35714
+ for filename , filecontext in params['file'].items():
35715
+ local_var_files[filename] = filecontext
35716
+ else:
35717
+ local_var_files['file'] = params['file']
35718
+
35719
+
35720
+ body_params = None
35721
+ # HTTP header `Accept`
35722
+ header_params['Accept'] = self.api_client.\
35723
+ select_header_accept(['application/json'])
35724
+
35725
+ # HTTP header `Content-Type`
35726
+ header_params['Content-Type'] = self.api_client.\
35727
+ select_header_content_type(['multipart/form-data'])
35728
+
35729
+ # Authentication setting
35730
+ auth_settings = []
35731
+
35732
+ return self.api_client.call_api('/cells/convert/sql', 'POST',
35733
+ path_params,
35734
+ query_params,
35735
+ header_params,
35736
+ body=body_params,
35737
+ post_params=form_params,
35738
+ files=local_var_files,
35739
+ response_type='FileInfo',
35740
+ auth_settings=auth_settings,
35741
+ callback=params.get('callback'),
35742
+ _return_http_data_only=params.get('_return_http_data_only'),
35743
+ _preload_content=params.get('_preload_content', True),
35744
+ _request_timeout=params.get('_request_timeout'),
35745
+ collection_formats=collection_formats)
35746
+
35747
+ def post_convert_workbook_to_csv(self, file, **kwargs):
35748
+ """
35749
+ This method makes a synchronous HTTP request by default. To make an
35750
+ asynchronous HTTP request, please define a `callback` function
35751
+ to be invoked when receiving the response.
35752
+ >>> def callback_function(response):
35753
+ >>> pprint(response)
35754
+ >>>
35755
+ >>> thread = api.post_convert_workbook_to_csv(file, callback=callback_function)
35756
+
35757
+ :param callback function: The callback function
35758
+ for asynchronous request. (optional)
35759
+ :param file file: File to upload (required)
35760
+ :param str password:
35761
+ :param bool check_excel_restriction:
35762
+ :return: FileInfo
35763
+ If the method is called asynchronously,
35764
+ returns the request thread.
35765
+ """
35766
+ kwargs['_return_http_data_only'] = True
35767
+ self.check_access_token()
35768
+ if kwargs.get('callback'):
35769
+ return self.post_convert_workbook_to_csv_with_http_info(file, **kwargs)
35770
+ else:
35771
+ (data) = self.post_convert_workbook_to_csv_with_http_info(file, **kwargs)
35772
+ return data
35773
+
35774
+ def post_convert_workbook_to_csv_with_http_info(self, file, **kwargs):
35775
+ """
35776
+ This method makes a synchronous HTTP request by default. To make an
35777
+ asynchronous HTTP request, please define a `callback` function
35778
+ to be invoked when receiving the response.
35779
+ >>> def callback_function(response):
35780
+ >>> pprint(response)
35781
+ >>>
35782
+ >>> thread = api.post_convert_workbook_to_csv_with_http_info(file, callback=callback_function)
35783
+
35784
+ :param callback function: The callback function
35785
+ for asynchronous request. (optional)
35786
+ :param file file: File to upload (required)
35787
+ :param str password:
35788
+ :param bool check_excel_restriction:
35789
+ :return: FileInfo
35790
+ If the method is called asynchronously,
35791
+ returns the request thread.
35792
+ """
35793
+
35794
+ all_params = ['file', 'password', 'check_excel_restriction']
35795
+ all_params.append('callback')
35796
+ all_params.append('_return_http_data_only')
35797
+ all_params.append('_preload_content')
35798
+ all_params.append('_request_timeout')
35799
+
35800
+ params = locals()
35801
+ for key, val in iteritems(params['kwargs']):
35802
+ if key not in all_params:
35803
+ raise TypeError(
35804
+ "Got an unexpected keyword argument '%s'"
35805
+ " to method post_convert_workbook_to_csv" % key
35806
+ )
35807
+ params[key] = val
35808
+ del params['kwargs']
35809
+ # verify the required parameter 'file' is set
35810
+ if ('file' not in params) or (params['file'] is None):
35811
+ raise ValueError("Missing the required parameter `file` when calling `post_convert_workbook_to_csv`")
35812
+
35813
+
35814
+ collection_formats = {}
35815
+
35816
+ path_params = {}
35817
+
35818
+ query_params = []
35819
+ if 'password' in params:
35820
+ query_params.append(('password', params['password']))
35821
+ if 'check_excel_restriction' in params:
35822
+ query_params.append(('checkExcelRestriction', params['check_excel_restriction']))
35823
+
35824
+ header_params = {}
35825
+
35826
+ form_params = []
35827
+ local_var_files = {}
35828
+ if 'file' in params:
35829
+
35830
+ if isinstance(params['file'],dict):
35831
+ for filename , filecontext in params['file'].items():
35832
+ local_var_files[filename] = filecontext
35833
+ else:
35834
+ local_var_files['file'] = params['file']
35835
+
35836
+
35837
+ body_params = None
35838
+ # HTTP header `Accept`
35839
+ header_params['Accept'] = self.api_client.\
35840
+ select_header_accept(['application/json'])
35841
+
35842
+ # HTTP header `Content-Type`
35843
+ header_params['Content-Type'] = self.api_client.\
35844
+ select_header_content_type(['multipart/form-data'])
35845
+
35846
+ # Authentication setting
35847
+ auth_settings = []
35848
+
35849
+ return self.api_client.call_api('/cells/convert/csv', 'POST',
35850
+ path_params,
35851
+ query_params,
35852
+ header_params,
35853
+ body=body_params,
35854
+ post_params=form_params,
35855
+ files=local_var_files,
35856
+ response_type='FileInfo',
35857
+ auth_settings=auth_settings,
35858
+ callback=params.get('callback'),
35859
+ _return_http_data_only=params.get('_return_http_data_only'),
35860
+ _preload_content=params.get('_preload_content', True),
35861
+ _request_timeout=params.get('_request_timeout'),
35862
+ collection_formats=collection_formats)
35863
+
35513
35864
def storage_exists(self, storage_name, **kwargs):
35514
35865
"""
35515
35866
Check if storage exists
0 commit comments