@@ -28560,6 +28560,126 @@ def cells_worksheets_delete_worksheet_freeze_panes_with_http_info(self, name, sh
2856028560 _request_timeout=params.get('_request_timeout'),
2856128561 collection_formats=collection_formats)
2856228562
28563+ def cells_worksheets_delete_worksheets(self, name, match_condition, **kwargs):
28564+ """
28565+ Read worksheets info.
28566+ This method makes a synchronous HTTP request by default. To make an
28567+ asynchronous HTTP request, please define a `callback` function
28568+ to be invoked when receiving the response.
28569+ >>> def callback_function(response):
28570+ >>> pprint(response)
28571+ >>>
28572+ >>> thread = api.cells_worksheets_delete_worksheets(name, match_condition, callback=callback_function)
28573+
28574+ :param callback function: The callback function
28575+ for asynchronous request. (optional)
28576+ :param str name: (required)
28577+ :param MatchConditionRequest match_condition: (required)
28578+ :param str folder:
28579+ :param str storage_name:
28580+ :return: CellsCloudResponse
28581+ If the method is called asynchronously,
28582+ returns the request thread.
28583+ """
28584+ kwargs['_return_http_data_only'] = True
28585+ self.check_access_token()
28586+ if kwargs.get('callback'):
28587+ return self.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, **kwargs)
28588+ else:
28589+ (data) = self.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, **kwargs)
28590+ return data
28591+
28592+ def cells_worksheets_delete_worksheets_with_http_info(self, name, match_condition, **kwargs):
28593+ """
28594+ Read worksheets info.
28595+ This method makes a synchronous HTTP request by default. To make an
28596+ asynchronous HTTP request, please define a `callback` function
28597+ to be invoked when receiving the response.
28598+ >>> def callback_function(response):
28599+ >>> pprint(response)
28600+ >>>
28601+ >>> thread = api.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, callback=callback_function)
28602+
28603+ :param callback function: The callback function
28604+ for asynchronous request. (optional)
28605+ :param str name: (required)
28606+ :param MatchConditionRequest match_condition: (required)
28607+ :param str folder:
28608+ :param str storage_name:
28609+ :return: CellsCloudResponse
28610+ If the method is called asynchronously,
28611+ returns the request thread.
28612+ """
28613+
28614+ all_params = ['name', 'match_condition', 'folder', 'storage_name']
28615+ all_params.append('callback')
28616+ all_params.append('_return_http_data_only')
28617+ all_params.append('_preload_content')
28618+ all_params.append('_request_timeout')
28619+
28620+ params = locals()
28621+ for key, val in iteritems(params['kwargs']):
28622+ if key not in all_params:
28623+ raise TypeError(
28624+ "Got an unexpected keyword argument '%s'"
28625+ " to method cells_worksheets_delete_worksheets" % key
28626+ )
28627+ params[key] = val
28628+ del params['kwargs']
28629+ # verify the required parameter 'name' is set
28630+ if ('name' not in params) or (params['name'] is None):
28631+ raise ValueError("Missing the required parameter `name` when calling `cells_worksheets_delete_worksheets`")
28632+ # verify the required parameter 'match_condition' is set
28633+ if ('match_condition' not in params) or (params['match_condition'] is None):
28634+ raise ValueError("Missing the required parameter `match_condition` when calling `cells_worksheets_delete_worksheets`")
28635+
28636+
28637+ collection_formats = {}
28638+
28639+ path_params = {}
28640+ if 'name' in params:
28641+ path_params['name'] = params['name']
28642+
28643+ query_params = []
28644+ if 'folder' in params:
28645+ query_params.append(('folder', params['folder']))
28646+ if 'storage_name' in params:
28647+ query_params.append(('storageName', params['storage_name']))
28648+
28649+ header_params = {}
28650+
28651+ form_params = []
28652+ local_var_files = {}
28653+
28654+ body_params = None
28655+ if 'match_condition' in params:
28656+ body_params = params['match_condition']
28657+ # HTTP header `Accept`
28658+ header_params['Accept'] = self.api_client.\
28659+ select_header_accept(['application/json'])
28660+
28661+ # HTTP header `Content-Type`
28662+ header_params['Content-Type'] = self.api_client.\
28663+ select_header_content_type(['application/json'])
28664+
28665+ # Authentication setting
28666+ auth_settings = []
28667+
28668+ return self.api_client.call_api('/cells/{name}/worksheets', 'DELETE',
28669+ path_params,
28670+ query_params,
28671+ header_params,
28672+ body=body_params,
28673+ post_params=form_params,
28674+ files=local_var_files,
28675+ response_type='CellsCloudResponse',
28676+ auth_settings=auth_settings,
28677+ callback=params.get('callback'),
28678+ _return_http_data_only=params.get('_return_http_data_only'),
28679+ _preload_content=params.get('_preload_content', True),
28680+ _request_timeout=params.get('_request_timeout'),
28681+ collection_formats=collection_formats)
28682+
2856328683 def cells_worksheets_get_named_ranges(self, name, **kwargs):
2856428684 """
2856528685 Read worksheets ranges info.
@@ -33526,6 +33646,109 @@ def object_exists_with_http_info(self, path, **kwargs):
3352633646 _request_timeout=params.get('_request_timeout'),
3352733647 collection_formats=collection_formats)
3352833648
33649+ def post_batch_convert(self, batch_convert_request, **kwargs):
33650+ """
33651+ This method makes a synchronous HTTP request by default. To make an
33652+ asynchronous HTTP request, please define a `callback` function
33653+ to be invoked when receiving the response.
33654+ >>> def callback_function(response):
33655+ >>> pprint(response)
33656+ >>>
33657+ >>> thread = api.post_batch_convert(batch_convert_request, callback=callback_function)
33658+
33659+ :param callback function: The callback function
33660+ for asynchronous request. (optional)
33661+ :param BatchConvertRequest batch_convert_request: (required)
33662+ :return: file
33663+ If the method is called asynchronously,
33664+ returns the request thread.
33665+ """
33666+ kwargs['_return_http_data_only'] = True
33667+ self.check_access_token()
33668+ if kwargs.get('callback'):
33669+ return self.post_batch_convert_with_http_info(batch_convert_request, **kwargs)
33670+ else:
33671+ (data) = self.post_batch_convert_with_http_info(batch_convert_request, **kwargs)
33672+ return data
33673+
33674+ def post_batch_convert_with_http_info(self, batch_convert_request, **kwargs):
33675+ """
33676+ This method makes a synchronous HTTP request by default. To make an
33677+ asynchronous HTTP request, please define a `callback` function
33678+ to be invoked when receiving the response.
33679+ >>> def callback_function(response):
33680+ >>> pprint(response)
33681+ >>>
33682+ >>> thread = api.post_batch_convert_with_http_info(batch_convert_request, callback=callback_function)
33683+
33684+ :param callback function: The callback function
33685+ for asynchronous request. (optional)
33686+ :param BatchConvertRequest batch_convert_request: (required)
33687+ :return: file
33688+ If the method is called asynchronously,
33689+ returns the request thread.
33690+ """
33691+
33692+ all_params = ['batch_convert_request']
33693+ all_params.append('callback')
33694+ all_params.append('_return_http_data_only')
33695+ all_params.append('_preload_content')
33696+ all_params.append('_request_timeout')
33697+
33698+ params = locals()
33699+ for key, val in iteritems(params['kwargs']):
33700+ if key not in all_params:
33701+ raise TypeError(
33702+ "Got an unexpected keyword argument '%s'"
33703+ " to method post_batch_convert" % key
33704+ )
33705+ params[key] = val
33706+ del params['kwargs']
33707+ # verify the required parameter 'batch_convert_request' is set
33708+ if ('batch_convert_request' not in params) or (params['batch_convert_request'] is None):
33709+ raise ValueError("Missing the required parameter `batch_convert_request` when calling `post_batch_convert`")
33710+
33711+
33712+ collection_formats = {}
33713+
33714+ path_params = {}
33715+
33716+ query_params = []
33717+
33718+ header_params = {}
33719+
33720+ form_params = []
33721+ local_var_files = {}
33722+
33723+ body_params = None
33724+ if 'batch_convert_request' in params:
33725+ body_params = params['batch_convert_request']
33726+ # HTTP header `Accept`
33727+ header_params['Accept'] = self.api_client.\
33728+ select_header_accept(['application/json'])
33729+
33730+ # HTTP header `Content-Type`
33731+ header_params['Content-Type'] = self.api_client.\
33732+ select_header_content_type(['application/json'])
33733+
33734+ # Authentication setting
33735+ auth_settings = []
33736+
33737+ return self.api_client.call_api('/cells/batch/convert', 'POST',
33738+ path_params,
33739+ query_params,
33740+ header_params,
33741+ body=body_params,
33742+ post_params=form_params,
33743+ files=local_var_files,
33744+ response_type='file',
33745+ auth_settings=auth_settings,
33746+ callback=params.get('callback'),
33747+ _return_http_data_only=params.get('_return_http_data_only'),
33748+ _preload_content=params.get('_preload_content', True),
33749+ _request_timeout=params.get('_request_timeout'),
33750+ collection_formats=collection_formats)
33751+
3352933752 def storage_exists(self, storage_name, **kwargs):
3353033753 """
3353133754 Check if storage exists
0 commit comments