@@ -1732,6 +1732,7 @@ def datasets_list_files(self, owner_slug, dataset_slug, **kwargs): # noqa: E501
1732
1732
:param async_req bool
1733
1733
:param str owner_slug: Dataset owner (required)
1734
1734
:param str dataset_slug: Dataset name (required)
1735
+ :param str dataset_version_number: Dataset version number
1735
1736
:return: Result
1736
1737
If the method is called asynchronously,
1737
1738
returns the request thread.
@@ -1754,12 +1755,13 @@ def datasets_list_files_with_http_info(self, owner_slug, dataset_slug, **kwargs)
1754
1755
:param async_req bool
1755
1756
:param str owner_slug: Dataset owner (required)
1756
1757
:param str dataset_slug: Dataset name (required)
1758
+ :param str dataset_version_number: Dataset version number
1757
1759
:return: Result
1758
1760
If the method is called asynchronously,
1759
1761
returns the request thread.
1760
1762
"""
1761
1763
1762
- all_params = ['owner_slug' , 'dataset_slug' ] # noqa: E501
1764
+ all_params = ['owner_slug' , 'dataset_slug' , 'dataset_version_number' ] # noqa: E501
1763
1765
all_params .append ('async_req' )
1764
1766
all_params .append ('_return_http_data_only' )
1765
1767
all_params .append ('_preload_content' )
@@ -1792,6 +1794,8 @@ def datasets_list_files_with_http_info(self, owner_slug, dataset_slug, **kwargs)
1792
1794
path_params ['datasetSlug' ] = params ['dataset_slug' ] # noqa: E501
1793
1795
1794
1796
query_params = []
1797
+ if 'dataset_version_number' in params :
1798
+ query_params .append (('datasetVersionNumber' , params ['dataset_version_number' ])) # noqa: E501
1795
1799
1796
1800
header_params = {}
1797
1801
@@ -2036,107 +2040,6 @@ def datasets_upload_file_with_http_info(self, file_name, content_length, last_mo
2036
2040
_request_timeout = params .get ('_request_timeout' ),
2037
2041
collection_formats = collection_formats )
2038
2042
2039
- def datasets_view (self , owner_slug , dataset_slug , ** kwargs ): # noqa: E501
2040
- """Show details about a dataset # noqa: E501
2041
-
2042
- This method makes a synchronous HTTP request by default. To make an
2043
- asynchronous HTTP request, please pass async_req=True
2044
- >>> thread = api.datasets_view(owner_slug, dataset_slug, async_req=True)
2045
- >>> result = thread.get()
2046
-
2047
- :param async_req bool
2048
- :param str owner_slug: Dataset owner (required)
2049
- :param str dataset_slug: Dataset name (required)
2050
- :return: Result
2051
- If the method is called asynchronously,
2052
- returns the request thread.
2053
- """
2054
- kwargs ['_return_http_data_only' ] = True
2055
- if kwargs .get ('async_req' ):
2056
- return self .datasets_view_with_http_info (owner_slug , dataset_slug , ** kwargs ) # noqa: E501
2057
- else :
2058
- (data ) = self .datasets_view_with_http_info (owner_slug , dataset_slug , ** kwargs ) # noqa: E501
2059
- return data
2060
-
2061
- def datasets_view_with_http_info (self , owner_slug , dataset_slug , ** kwargs ): # noqa: E501
2062
- """Show details about a dataset # noqa: E501
2063
-
2064
- This method makes a synchronous HTTP request by default. To make an
2065
- asynchronous HTTP request, please pass async_req=True
2066
- >>> thread = api.datasets_view_with_http_info(owner_slug, dataset_slug, async_req=True)
2067
- >>> result = thread.get()
2068
-
2069
- :param async_req bool
2070
- :param str owner_slug: Dataset owner (required)
2071
- :param str dataset_slug: Dataset name (required)
2072
- :return: Result
2073
- If the method is called asynchronously,
2074
- returns the request thread.
2075
- """
2076
-
2077
- all_params = ['owner_slug' , 'dataset_slug' ] # noqa: E501
2078
- all_params .append ('async_req' )
2079
- all_params .append ('_return_http_data_only' )
2080
- all_params .append ('_preload_content' )
2081
- all_params .append ('_request_timeout' )
2082
-
2083
- params = locals ()
2084
- for key , val in six .iteritems (params ['kwargs' ]):
2085
- if key not in all_params :
2086
- raise TypeError (
2087
- "Got an unexpected keyword argument '%s'"
2088
- " to method datasets_view" % key
2089
- )
2090
- params [key ] = val
2091
- del params ['kwargs' ]
2092
- # verify the required parameter 'owner_slug' is set
2093
- if ('owner_slug' not in params or
2094
- params ['owner_slug' ] is None ):
2095
- raise ValueError ("Missing the required parameter `owner_slug` when calling `datasets_view`" ) # noqa: E501
2096
- # verify the required parameter 'dataset_slug' is set
2097
- if ('dataset_slug' not in params or
2098
- params ['dataset_slug' ] is None ):
2099
- raise ValueError ("Missing the required parameter `dataset_slug` when calling `datasets_view`" ) # noqa: E501
2100
-
2101
- collection_formats = {}
2102
-
2103
- path_params = {}
2104
- if 'owner_slug' in params :
2105
- path_params ['ownerSlug' ] = params ['owner_slug' ] # noqa: E501
2106
- if 'dataset_slug' in params :
2107
- path_params ['datasetSlug' ] = params ['dataset_slug' ] # noqa: E501
2108
-
2109
- query_params = []
2110
-
2111
- header_params = {}
2112
-
2113
- form_params = []
2114
- local_var_files = {}
2115
-
2116
- body_params = None
2117
- # HTTP header `Accept`
2118
- header_params ['Accept' ] = self .api_client .select_header_accept (
2119
- ['application/json' ]) # noqa: E501
2120
-
2121
- # Authentication setting
2122
- auth_settings = ['basicAuth' ] # noqa: E501
2123
-
2124
- return self .api_client .call_api (
2125
- '/datasets/view/{ownerSlug}/{datasetSlug}' , 'GET' ,
2126
- path_params ,
2127
- query_params ,
2128
- header_params ,
2129
- body = body_params ,
2130
- post_params = form_params ,
2131
- files = local_var_files ,
2132
- response_type = 'Result' , # noqa: E501
2133
- auth_settings = auth_settings ,
2134
- async_req = params .get ('async_req' ),
2135
- _return_http_data_only = params .get ('_return_http_data_only' ),
2136
- _preload_content = params .get ('_preload_content' , True ),
2137
- _request_timeout = params .get ('_request_timeout' ),
2138
- collection_formats = collection_formats )
2139
-
2140
2043
def delete_model (self , owner_slug , model_slug , ** kwargs ): # noqa: E501
2141
2044
"""Delete a model # noqa: E501
2142
2045
0 commit comments