lentiq.api.attachments_public_api_controller_api module
# coding: utf-8 """ """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from lentiq.api_client import ApiClient class AttachmentsPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def attach(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 else: (data) = self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 return data def attach_with_http_info(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ all_params = ['local_file', 'authorization', 'x_attachment_name', 'x_destination_path', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method attach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'local_file' is set if ('local_file' not in params or params['local_file'] is None): raise ValueError("Missing the required parameter `local_file` when calling `attach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `attach`") # noqa: E501 # verify the required parameter 'x_attachment_name' is set if ('x_attachment_name' not in params or params['x_attachment_name'] is None): raise ValueError("Missing the required parameter `x_attachment_name` when calling `attach`") # noqa: E501 # verify the required parameter 'x_destination_path' is set if ('x_destination_path' not in params or params['x_destination_path'] is None): raise ValueError("Missing the required parameter `x_destination_path` when calling `attach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `attach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 if 'x_attachment_name' in params: header_params['X-AttachmentName'] = params['x_attachment_name'] # noqa: E501 if 'x_destination_path' in params: header_params['X-DestinationPath'] = params['x_destination_path'] # noqa: E501 form_params = [] local_var_files = {} if 'local_file' in params: local_var_files['localFile'] = params['local_file'] # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/attach/b/{bucketName}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileStatus', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def detach(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data def detach_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method detach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `detach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `detach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `detach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/detach/b/{bucketName}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def download_attachment(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data def download_attachment_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method download_attachment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `download_attachment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/download/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_attachment_description(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data def get_attachment_description_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `get_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def list_attachments(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 return data def list_attachments_with_http_info(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments_with_http_info(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_attachments" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `list_attachments`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def set_attachment_description(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data def set_attachment_description_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method set_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `set_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
Classes
class AttachmentsPublicApiControllerApi
Ref:
class AttachmentsPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def attach(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 else: (data) = self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 return data def attach_with_http_info(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ all_params = ['local_file', 'authorization', 'x_attachment_name', 'x_destination_path', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method attach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'local_file' is set if ('local_file' not in params or params['local_file'] is None): raise ValueError("Missing the required parameter `local_file` when calling `attach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `attach`") # noqa: E501 # verify the required parameter 'x_attachment_name' is set if ('x_attachment_name' not in params or params['x_attachment_name'] is None): raise ValueError("Missing the required parameter `x_attachment_name` when calling `attach`") # noqa: E501 # verify the required parameter 'x_destination_path' is set if ('x_destination_path' not in params or params['x_destination_path'] is None): raise ValueError("Missing the required parameter `x_destination_path` when calling `attach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `attach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 if 'x_attachment_name' in params: header_params['X-AttachmentName'] = params['x_attachment_name'] # noqa: E501 if 'x_destination_path' in params: header_params['X-DestinationPath'] = params['x_destination_path'] # noqa: E501 form_params = [] local_var_files = {} if 'local_file' in params: local_var_files['localFile'] = params['local_file'] # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/attach/b/{bucketName}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileStatus', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def detach(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data def detach_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method detach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `detach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `detach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `detach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/detach/b/{bucketName}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def download_attachment(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data def download_attachment_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method download_attachment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `download_attachment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/download/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_attachment_description(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data def get_attachment_description_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `get_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def list_attachments(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 return data def list_attachments_with_http_info(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments_with_http_info(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_attachments" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `list_attachments`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def set_attachment_description(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data def set_attachment_description_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method set_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `set_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
Ancestors (in MRO)
- AttachmentsPublicApiControllerApi
- builtins.object
Static methods
def __init__(
self, api_client=None)
Initialize self. See help(type(self)) for accurate signature.
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client
def attach(
self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs)
Attaches a file to an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.attach(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread.
def attach(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 else: (data) = self.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs) # noqa: E501 return data
def attach_with_http_info(
self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs)
Attaches a file to an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread.
def attach_with_http_info(self, local_file, authorization, x_attachment_name, x_destination_path, bucket_name, **kwargs): # noqa: E501 """Attaches a file to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.attach_with_http_info(local_file, authorization, x_attachment_name, x_destination_path, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param file local_file: (required) :param str authorization: Authorization (required) :param str x_attachment_name: X-AttachmentName (required) :param str x_destination_path: X-DestinationPath (required) :param str bucket_name: bucketName (required) :return: FileStatus If the method is called asynchronously, returns the request thread. """ all_params = ['local_file', 'authorization', 'x_attachment_name', 'x_destination_path', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method attach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'local_file' is set if ('local_file' not in params or params['local_file'] is None): raise ValueError("Missing the required parameter `local_file` when calling `attach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `attach`") # noqa: E501 # verify the required parameter 'x_attachment_name' is set if ('x_attachment_name' not in params or params['x_attachment_name'] is None): raise ValueError("Missing the required parameter `x_attachment_name` when calling `attach`") # noqa: E501 # verify the required parameter 'x_destination_path' is set if ('x_destination_path' not in params or params['x_destination_path'] is None): raise ValueError("Missing the required parameter `x_destination_path` when calling `attach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `attach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 if 'x_attachment_name' in params: header_params['X-AttachmentName'] = params['x_attachment_name'] # noqa: E501 if 'x_destination_path' in params: header_params['X-DestinationPath'] = params['x_destination_path'] # noqa: E501 form_params = [] local_var_files = {} if 'local_file' in params: local_var_files['localFile'] = params['local_file'] # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/attach/b/{bucketName}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileStatus', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
def detach(
self, body, authorization, bucket_name, **kwargs)
Detaches a file from an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.detach(body, authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread.
def detach(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.detach_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data
def detach_with_http_info(
self, body, authorization, bucket_name, **kwargs)
Detaches a file from an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.detach_with_http_info(body, authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread.
def detach_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Detaches a file from an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.detach_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DetachForm body: detachForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method detach" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `detach`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `detach`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `detach`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/detach/b/{bucketName}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
def download_attachment(
self, authorization, attachment_name, bucket_name, object_path, **kwargs)
Downloads object that is attached to the given object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.download_attachment(authorization, attachment_name, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread.
def download_attachment(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data
def download_attachment_with_http_info(
self, authorization, attachment_name, bucket_name, object_path, **kwargs)
Downloads object that is attached to the given object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread.
def download_attachment_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Downloads object that is attached to the given object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_attachment_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method download_attachment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `download_attachment`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `download_attachment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/download/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
def get_attachment_description(
self, authorization, attachment_name, bucket_name, object_path, **kwargs)
Return the description for the attachment at the specified path. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_attachment_description(authorization, attachment_name, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread.
def get_attachment_description(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, **kwargs) # noqa: E501 return data
def get_attachment_description_with_http_info(
self, authorization, attachment_name, bucket_name, object_path, **kwargs)
Return the description for the attachment at the specified path. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread.
def get_attachment_description_with_http_info(self, authorization, attachment_name, bucket_name, object_path, **kwargs): # noqa: E501 """Return the description for the attachment at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attachment_description_with_http_info(authorization, attachment_name, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str attachment_name: attachmentName (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'attachment_name', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'attachment_name' is set if ('attachment_name' not in params or params['attachment_name'] is None): raise ValueError("Missing the required parameter `attachment_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `get_attachment_description`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `get_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'attachment_name' in params: query_params.append(('attachmentName', params['attachment_name'])) # noqa: E501 if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
def list_attachments(
self, authorization, bucket_name, object_path, **kwargs)
Lists the attachments belonging to an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.list_attachments(authorization, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread.
def list_attachments(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 else: (data) = self.list_attachments_with_http_info(authorization, bucket_name, object_path, **kwargs) # noqa: E501 return data
def list_attachments_with_http_info(
self, authorization, bucket_name, object_path, **kwargs)
Lists the attachments belonging to an object. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.list_attachments_with_http_info(authorization, bucket_name, object_path, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread.
def list_attachments_with_http_info(self, authorization, bucket_name, object_path, **kwargs): # noqa: E501 """Lists the attachments belonging to an object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_attachments_with_http_info(authorization, bucket_name, object_path, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str object_path: objectPath (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'object_path'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_attachments" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `list_attachments`") # noqa: E501 # verify the required parameter 'object_path' is set if ('object_path' not in params or params['object_path'] is None): raise ValueError("Missing the required parameter `object_path` when calling `list_attachments`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] if 'object_path' in params: query_params.append(('objectPath', params['object_path'])) # noqa: E501 header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[str]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
def set_attachment_description(
self, body, authorization, bucket_name, **kwargs)
Sets the description for the object at the specified path. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.set_attachment_description(body, authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_attachment_description(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.set_attachment_description_with_http_info(body, authorization, bucket_name, **kwargs) # noqa: E501 return data
def set_attachment_description_with_http_info(
self, body, authorization, bucket_name, **kwargs)
Sets the description for the object at the specified path. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.set_attachment_description_with_http_info(body, authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_attachment_description_with_http_info(self, body, authorization, bucket_name, **kwargs): # noqa: E501 """Sets the description for the object at the specified path. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.set_attachment_description_with_http_info(body, authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param DescriptionForm body: descriptionForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method set_attachment_description" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `set_attachment_description`") # noqa: E501 # verify the required parameter 'bucket_name' is set if ('bucket_name' not in params or params['bucket_name'] is None): raise ValueError("Missing the required parameter `bucket_name` when calling `set_attachment_description`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/datamanagement/atch/description/b/{bucketName}', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='bool', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
Instance variables
var api_client