Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MLX API Client

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 0.1.29-filter-categories
- API version: 0.1.30-upload-catalog-from-url
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen

Expand Down Expand Up @@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
*ApplicationSettingsApi* | [**modify_application_settings**](docs/ApplicationSettingsApi.md#modify_application_settings) | **PUT** /settings |
*ApplicationSettingsApi* | [**set_application_settings**](docs/ApplicationSettingsApi.md#set_application_settings) | **POST** /settings |
*CatalogServiceApi* | [**list_all_assets**](docs/CatalogServiceApi.md#list_all_assets) | **GET** /catalog |
*CatalogServiceApi* | [**upload_catalog_from_url**](docs/CatalogServiceApi.md#upload_catalog_from_url) | **POST** /catalog/upload_from_url |
*CatalogServiceApi* | [**upload_multiple_assets**](docs/CatalogServiceApi.md#upload_multiple_assets) | **POST** /catalog |
*ComponentServiceApi* | [**approve_components_for_publishing**](docs/ComponentServiceApi.md#approve_components_for_publishing) | **POST** /components/publish_approved |
*ComponentServiceApi* | [**create_component**](docs/ComponentServiceApi.md#create_component) | **POST** /components |
Expand Down
48 changes: 48 additions & 0 deletions api/client/docs/CatalogServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost/apis/v1alpha1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**list_all_assets**](CatalogServiceApi.md#list_all_assets) | **GET** /catalog |
[**upload_catalog_from_url**](CatalogServiceApi.md#upload_catalog_from_url) | **POST** /catalog/upload_from_url |
[**upload_multiple_assets**](CatalogServiceApi.md#upload_multiple_assets) | **POST** /catalog |


Expand Down Expand Up @@ -59,6 +60,53 @@ No authorization required

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **upload_catalog_from_url**
> ApiCatalogUploadResponse upload_catalog_from_url(url, access_token=access_token)



### Example
```python
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogServiceApi()
url = 'url_example' # str | URL pointing to the catalog YAML file.
access_token = 'access_token_example' # str | Optional, the Bearer token to access the 'url'. (optional)

try:
api_response = api_instance.upload_catalog_from_url(url, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogServiceApi->upload_catalog_from_url: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**url** | **str**| URL pointing to the catalog YAML file. |
**access_token** | **str**| Optional, the Bearer token to access the 'url'. | [optional]

### Return type

[**ApiCatalogUploadResponse**](ApiCatalogUploadResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: multipart/form-data
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **upload_multiple_assets**
> ApiCatalogUploadResponse upload_multiple_assets(body)

Expand Down
4 changes: 2 additions & 2 deletions api/client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand All @@ -18,7 +18,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "mlx-client"
VERSION = "0.1.29-filter-categories"
VERSION = "0.1.30-upload-catalog-from-url"
# To install the library, run the following
#
# python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/application_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
103 changes: 102 additions & 1 deletion api/client/swagger_client/api/catalog_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -133,6 +133,107 @@ def list_all_assets_with_http_info(self, **kwargs): # noqa: E501
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def upload_catalog_from_url(self, url, **kwargs): # noqa: E501
"""upload_catalog_from_url # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.upload_catalog_from_url(url, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str url: URL pointing to the catalog YAML file. (required)
:param str access_token: Optional, the Bearer token to access the 'url'.
:return: ApiCatalogUploadResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.upload_catalog_from_url_with_http_info(url, **kwargs) # noqa: E501
else:
(data) = self.upload_catalog_from_url_with_http_info(url, **kwargs) # noqa: E501
return data

def upload_catalog_from_url_with_http_info(self, url, **kwargs): # noqa: E501
"""upload_catalog_from_url # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.upload_catalog_from_url_with_http_info(url, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str url: URL pointing to the catalog YAML file. (required)
:param str access_token: Optional, the Bearer token to access the 'url'.
:return: ApiCatalogUploadResponse
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['url', 'access_token'] # 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 upload_catalog_from_url" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'url' is set
if ('url' not in params or
params['url'] is None):
raise ValueError("Missing the required parameter `url` when calling `upload_catalog_from_url`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}
if 'url' in params:
form_params.append(('url', params['url'])) # noqa: E501
if 'access_token' in params:
form_params.append(('access_token', params['access_token'])) # noqa: E501

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['multipart/form-data']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501

return self.api_client.call_api(
'/catalog/upload_from_url', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ApiCatalogUploadResponse', # 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 upload_multiple_assets(self, body, **kwargs): # noqa: E501
"""upload_multiple_assets # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/component_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/credential_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/dataset_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/health_check_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/inference_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/model_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/notebook_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api/pipeline_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
4 changes: 2 additions & 2 deletions api/client/swagger_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -235,6 +235,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.29-filter-categories\n"\
"Version of the API: 0.1.30-upload-catalog-from-url\n"\
"SDK Package Version: 0.1.0".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 1 addition & 1 deletion api/client/swagger_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/models/any_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/models/api_access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/models/api_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion api/client/swagger_client/models/api_catalog_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MLX API Extension for Kubeflow Pipelines # noqa: E501

OpenAPI spec version: 0.1.29-filter-categories
OpenAPI spec version: 0.1.30-upload-catalog-from-url

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
Loading