lentiq.api.table_browser_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 TableBrowserPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def describe_table(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def describe_table_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 describe_table" % 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 `describe_table`") # 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 `describe_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `describe_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/describe/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TableDescribe]', # 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_table_column_comment(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def get_table_column_comment_with_http_info(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'table_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 get_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_histogram(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_column_histogram_with_http_info(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'histogram_bin_size', 'recompute', 'table_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 get_table_column_histogram" % 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_table_column_histogram`") # 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_table_column_histogram`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'histogram_bin_size' is set if ('histogram_bin_size' not in params or params['histogram_bin_size'] is None): raise ValueError("Missing the required parameter `histogram_bin_size` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_histogram`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'histogram_bin_size' in params: query_params.append(('histogramBinSize', params['histogram_bin_size'])) # noqa: E501 if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/histogram/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_statistics(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_column_statistics_with_http_info(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'recompute', 'table_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 get_table_column_statistics" % 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_table_column_statistics`") # 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_table_column_statistics`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}/c/{columnName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableColumnStatistics', # 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_table_column_tags(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns tags for the specified table column. # 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_table_column_tags(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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.get_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def get_table_column_tags_with_http_info(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns tags for the specified table column. # 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_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'table_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 get_table_column_tags" % 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_table_column_tags`") # 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_table_column_tags`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_tags`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_tags`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/tags/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_comment(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def get_table_comment_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 get_table_comment" % 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}', '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 get_table_statistics(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_statistics_with_http_info(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'recompute', 'table_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 get_table_statistics" % 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_table_statistics`") # 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_table_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='dict(str, TableColumnStatistics)', # 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_tables(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 return data def list_tables_with_http_info(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables_with_http_info(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ all_params = ['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 list_tables" % 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_tables`") # 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_tables`") # 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 # 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/table/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TablesList]', # 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 select_from_table(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 else: (data) = self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 return data def select_from_table_with_http_info(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'limit', 'table_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 select_from_table" % 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 `select_from_table`") # 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 `select_from_table`") # noqa: E501 # verify the required parameter 'limit' is set if ('limit' not in params or params['limit'] is None): raise ValueError("Missing the required parameter `limit` when calling `select_from_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `select_from_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'limit' in params: query_params.append(('limit', params['limit'])) # 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/table/select/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableSelect', # 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_table_column_comment(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def set_table_column_comment_with_http_info(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'column_name', 'table_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_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `set_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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) def set_table_column_tags(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates tags for the specified table column. # 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_table_column_tags(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def set_table_column_tags_with_http_info(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates tags for the specified table column. # 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_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'column_name', 'table_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_table_column_tags" % 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_table_column_tags`") # 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_table_column_tags`") # 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_table_column_tags`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `set_table_column_tags`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_column_tags`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/tags/b/{bucketName}/t/{tableName}/c/{columnName}', '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) def set_table_comment(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def set_table_comment_with_http_info(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment_with_http_info(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'table_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_table_comment" % 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_table_comment`") # 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}', '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 TableBrowserPublicApiControllerApi
Ref:
class TableBrowserPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def describe_table(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def describe_table_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 describe_table" % 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 `describe_table`") # 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 `describe_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `describe_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/describe/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TableDescribe]', # 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_table_column_comment(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def get_table_column_comment_with_http_info(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'table_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 get_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_histogram(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_column_histogram_with_http_info(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'histogram_bin_size', 'recompute', 'table_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 get_table_column_histogram" % 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_table_column_histogram`") # 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_table_column_histogram`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'histogram_bin_size' is set if ('histogram_bin_size' not in params or params['histogram_bin_size'] is None): raise ValueError("Missing the required parameter `histogram_bin_size` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_histogram`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'histogram_bin_size' in params: query_params.append(('histogramBinSize', params['histogram_bin_size'])) # noqa: E501 if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/histogram/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_statistics(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_column_statistics_with_http_info(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'recompute', 'table_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 get_table_column_statistics" % 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_table_column_statistics`") # 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_table_column_statistics`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}/c/{columnName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableColumnStatistics', # 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_table_column_tags(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns tags for the specified table column. # 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_table_column_tags(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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.get_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def get_table_column_tags_with_http_info(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns tags for the specified table column. # 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_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'table_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 get_table_column_tags" % 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_table_column_tags`") # 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_table_column_tags`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_tags`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_tags`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/tags/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_comment(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def get_table_comment_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 get_table_comment" % 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}', '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 get_table_statistics(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 return data def get_table_statistics_with_http_info(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'recompute', 'table_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 get_table_statistics" % 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_table_statistics`") # 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_table_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='dict(str, TableColumnStatistics)', # 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_tables(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 return data def list_tables_with_http_info(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables_with_http_info(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ all_params = ['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 list_tables" % 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_tables`") # 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_tables`") # 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 # 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/table/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TablesList]', # 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 select_from_table(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 else: (data) = self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 return data def select_from_table_with_http_info(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'limit', 'table_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 select_from_table" % 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 `select_from_table`") # 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 `select_from_table`") # noqa: E501 # verify the required parameter 'limit' is set if ('limit' not in params or params['limit'] is None): raise ValueError("Missing the required parameter `limit` when calling `select_from_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `select_from_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'limit' in params: query_params.append(('limit', params['limit'])) # 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/table/select/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableSelect', # 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_table_column_comment(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def set_table_column_comment_with_http_info(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'column_name', 'table_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_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `set_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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) def set_table_column_tags(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates tags for the specified table column. # 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_table_column_tags(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data def set_table_column_tags_with_http_info(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates tags for the specified table column. # 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_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'column_name', 'table_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_table_column_tags" % 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_table_column_tags`") # 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_table_column_tags`") # 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_table_column_tags`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `set_table_column_tags`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_column_tags`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/tags/b/{bucketName}/t/{tableName}/c/{columnName}', '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) def set_table_comment(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data def set_table_comment_with_http_info(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment_with_http_info(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'table_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_table_comment" % 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_table_comment`") # 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}', '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)
- TableBrowserPublicApiControllerApi
- 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 describe_table(
self, authorization, bucket_name, table_name, **kwargs)
Returns column details for the specified table. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.describe_table(authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread.
def describe_table(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.describe_table_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data
def describe_table_with_http_info(
self, authorization, bucket_name, table_name, **kwargs)
Returns column details for the specified table. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.describe_table_with_http_info(authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread.
def describe_table_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Returns column details for the specified table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.describe_table_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: list[TableDescribe] If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 describe_table" % 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 `describe_table`") # 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 `describe_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `describe_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/describe/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TableDescribe]', # 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_table_column_comment(
self, authorization, bucket_name, column_name, table_name, **kwargs)
Returns the comment for the specified table column. # 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_table_column_comment(authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_column_comment(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data
def get_table_column_comment_with_http_info(
self, authorization, bucket_name, column_name, table_name, **kwargs)
Returns the comment for the specified table column. # 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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_column_comment_with_http_info(self, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Returns the comment for the specified table column. # 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_table_column_comment_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'table_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 get_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_histogram(
self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs)
Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_column_histogram(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs) # noqa: E501 return data
def get_table_column_histogram_with_http_info(
self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs)
Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_column_histogram_with_http_info(self, authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. Statistics are recomputed if specified. # 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_table_column_histogram_with_http_info(authorization, bucket_name, column_name, histogram_bin_size, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param int histogram_bin_size: histogramBinSize (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'histogram_bin_size', 'recompute', 'table_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 get_table_column_histogram" % 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_table_column_histogram`") # 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_table_column_histogram`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'histogram_bin_size' is set if ('histogram_bin_size' not in params or params['histogram_bin_size'] is None): raise ValueError("Missing the required parameter `histogram_bin_size` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_histogram`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_histogram`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'histogram_bin_size' in params: query_params.append(('histogramBinSize', params['histogram_bin_size'])) # noqa: E501 if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/histogram/b/{bucketName}/t/{tableName}/c/{columnName}', '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 get_table_column_statistics(
self, authorization, bucket_name, column_name, recompute, table_name, **kwargs)
Retrieves statistics for the specified table column. # 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_table_column_statistics(authorization, bucket_name, column_name, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread.
def get_table_column_statistics(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, **kwargs) # noqa: E501 return data
def get_table_column_statistics_with_http_info(
self, authorization, bucket_name, column_name, recompute, table_name, **kwargs)
Retrieves statistics for the specified table column. # 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_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread.
def get_table_column_statistics_with_http_info(self, authorization, bucket_name, column_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the specified table column. # 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_table_column_statistics_with_http_info(authorization, bucket_name, column_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: TableColumnStatistics If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'column_name', 'recompute', 'table_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 get_table_column_statistics" % 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_table_column_statistics`") # 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_table_column_statistics`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_column_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_column_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}/c/{columnName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableColumnStatistics', # 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_table_column_tags(
self, authorization, bucket_name, column_name, table_name, **kwargs)
Returns tags for the specified table column. # 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_table_column_tags(authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: list[str] If the method is called asynchronously, returns the request thread.
def get_table_column_tags_with_http_info(
self, authorization, bucket_name, column_name, table_name, **kwargs)
Returns tags for the specified table column. # 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_table_column_tags_with_http_info(authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: list[str] If the method is called asynchronously, returns the request thread.
def get_table_comment(
self, authorization, bucket_name, table_name, **kwargs)
Retrieves the comment for the specified table. # 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_table_comment(authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_comment(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_comment_with_http_info(authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data
def get_table_comment_with_http_info(
self, authorization, bucket_name, table_name, **kwargs)
Retrieves the comment for the specified table. # 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_table_comment_with_http_info(authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread.
def get_table_comment_with_http_info(self, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Retrieves the comment for the specified table. # 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_table_comment_with_http_info(authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: str If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'table_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 get_table_comment" % 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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 # 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/table/comment/b/{bucketName}/t/{tableName}', '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 get_table_statistics(
self, authorization, bucket_name, recompute, table_name, **kwargs)
Retrieves statistics for the columns of the specified table. # 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_table_statistics(authorization, bucket_name, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread.
def get_table_statistics(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 else: (data) = self.get_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, **kwargs) # noqa: E501 return data
def get_table_statistics_with_http_info(
self, authorization, bucket_name, recompute, table_name, **kwargs)
Retrieves statistics for the columns of the specified table. # 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_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread.
def get_table_statistics_with_http_info(self, authorization, bucket_name, recompute, table_name, **kwargs): # noqa: E501 """Retrieves statistics for the columns of the specified table. # 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_table_statistics_with_http_info(authorization, bucket_name, recompute, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str recompute: recompute (required) :param str table_name: tableName (required) :return: dict(str, TableColumnStatistics) If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'recompute', 'table_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 get_table_statistics" % 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_table_statistics`") # 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_table_statistics`") # noqa: E501 # verify the required parameter 'recompute' is set if ('recompute' not in params or params['recompute'] is None): raise ValueError("Missing the required parameter `recompute` when calling `get_table_statistics`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `get_table_statistics`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'recompute' in params: query_params.append(('recompute', params['recompute'])) # 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/table/statistics/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='dict(str, TableColumnStatistics)', # 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_tables(
self, authorization, bucket_name, **kwargs)
Lists all the tables for the specified bucket. # 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_tables(authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread.
def list_tables(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 else: (data) = self.list_tables_with_http_info(authorization, bucket_name, **kwargs) # noqa: E501 return data
def list_tables_with_http_info(
self, authorization, bucket_name, **kwargs)
Lists all the tables for the specified bucket. # 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_tables_with_http_info(authorization, bucket_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread.
def list_tables_with_http_info(self, authorization, bucket_name, **kwargs): # noqa: E501 """Lists all the tables for the specified bucket. # 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_tables_with_http_info(authorization, bucket_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :return: list[TablesList] If the method is called asynchronously, returns the request thread. """ all_params = ['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 list_tables" % 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_tables`") # 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_tables`") # 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 # 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/table/list/b/{bucketName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[TablesList]', # 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 select_from_table(
self, authorization, bucket_name, limit, table_name, **kwargs)
Lists a sample of data from the given table. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.select_from_table(authorization, bucket_name, limit, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread.
def select_from_table(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 else: (data) = self.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, **kwargs) # noqa: E501 return data
def select_from_table_with_http_info(
self, authorization, bucket_name, limit, table_name, **kwargs)
Lists a sample of data from the given table. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread.
def select_from_table_with_http_info(self, authorization, bucket_name, limit, table_name, **kwargs): # noqa: E501 """Lists a sample of data from the given table. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.select_from_table_with_http_info(authorization, bucket_name, limit, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param int limit: limit (required) :param str table_name: tableName (required) :return: TableSelect If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'bucket_name', 'limit', 'table_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 select_from_table" % 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 `select_from_table`") # 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 `select_from_table`") # noqa: E501 # verify the required parameter 'limit' is set if ('limit' not in params or params['limit'] is None): raise ValueError("Missing the required parameter `limit` when calling `select_from_table`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `select_from_table`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_name'] # noqa: E501 query_params = [] if 'limit' in params: query_params.append(('limit', params['limit'])) # 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/table/select/b/{bucketName}/t/{tableName}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TableSelect', # 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_table_column_comment(
self, body, authorization, bucket_name, column_name, table_name, **kwargs)
Updates the comment for the specified table column. # 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_table_column_comment(body, authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_column_comment(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, **kwargs) # noqa: E501 return data
def set_table_column_comment_with_http_info(
self, body, authorization, bucket_name, column_name, table_name, **kwargs)
Updates the comment for the specified table column. # 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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_column_comment_with_http_info(self, body, authorization, bucket_name, column_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table column. # 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_table_column_comment_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'column_name', 'table_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_table_column_comment" % 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_table_column_comment`") # 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_table_column_comment`") # 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_table_column_comment`") # noqa: E501 # verify the required parameter 'column_name' is set if ('column_name' not in params or params['column_name'] is None): raise ValueError("Missing the required parameter `column_name` when calling `set_table_column_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_column_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'column_name' in params: path_params['columnName'] = params['column_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}/c/{columnName}', '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)
def set_table_column_tags(
self, body, authorization, bucket_name, column_name, table_name, **kwargs)
Updates tags for the specified table column. # 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_table_column_tags(body, authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_column_tags_with_http_info(
self, body, authorization, bucket_name, column_name, table_name, **kwargs)
Updates tags for the specified table column. # 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_table_column_tags_with_http_info(body, authorization, bucket_name, column_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param TagsForm body: tagsForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str column_name: columnName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_comment(
self, body, authorization, bucket_name, table_name, **kwargs)
Updates the comment for the specified table. # 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_table_comment(body, authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_comment(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (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_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 else: (data) = self.set_table_comment_with_http_info(body, authorization, bucket_name, table_name, **kwargs) # noqa: E501 return data
def set_table_comment_with_http_info(
self, body, authorization, bucket_name, table_name, **kwargs)
Updates the comment for the specified table. # 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_table_comment_with_http_info(body, authorization, bucket_name, table_name, async_req=True) result = thread.get()
:param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread.
def set_table_comment_with_http_info(self, body, authorization, bucket_name, table_name, **kwargs): # noqa: E501 """Updates the comment for the specified table. # 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_table_comment_with_http_info(body, authorization, bucket_name, table_name, async_req=True) >>> result = thread.get() :param async_req bool :param CommentForm body: commentForm (required) :param str authorization: Authorization (required) :param str bucket_name: bucketName (required) :param str table_name: tableName (required) :return: bool If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'authorization', 'bucket_name', 'table_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_table_comment" % 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_table_comment`") # 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_table_comment`") # 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_table_comment`") # noqa: E501 # verify the required parameter 'table_name' is set if ('table_name' not in params or params['table_name'] is None): raise ValueError("Missing the required parameter `table_name` when calling `set_table_comment`") # noqa: E501 collection_formats = {} path_params = {} if 'bucket_name' in params: path_params['bucketName'] = params['bucket_name'] # noqa: E501 if 'table_name' in params: path_params['tableName'] = params['table_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/table/comment/b/{bucketName}/t/{tableName}', '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