Skip to content

Commit 11ce498

Browse files
committed
fix(api): regenerate client for api v0.3.4
1 parent 6e03433 commit 11ce498

File tree

138 files changed

+434
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+434
-149
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44

55
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

7-
- API version: v0.2.4
7+
- API version: v0.3.4
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements
@@ -97,6 +97,7 @@ All URIs are relative to *http://localhost*
9797

9898
Class | Method | HTTP request | Description
9999
------------ | ------------- | ------------- | -------------
100+
*AccountsApi* | [**get_account**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name
100101
*ArtifactsApi* | [**create_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/ArtifactsApi.md#create_artifact) | **POST** /projects/{owner}/{name}/artifacts | Get an Artifact upload link.
101102
*ArtifactsApi* | [**delete_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/ArtifactsApi.md#delete_artifact) | **DELETE** /projects/{owner}/{name}/artifacts | Delete one or many artifacts by key/prefix
102103
*ArtifactsApi* | [**list_artifacts**](https://github.com/pollination/python-sdk/blob/master/docs/ArtifactsApi.md#list_artifacts) | **GET** /projects/{owner}/{name}/artifacts | List artifacts in a project folder

docs/AccountsApi.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# pollination_sdk.AccountsApi
2+
3+
All URIs are relative to *http://localhost*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_account**](AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name
8+
9+
10+
# **get_account**
11+
> AccountPublic get_account(name)
12+
13+
Get an account by name
14+
15+
Retrieve a workflow by name
16+
17+
### Example
18+
19+
```python
20+
from __future__ import print_function
21+
import time
22+
import pollination_sdk
23+
from pollination_sdk.rest import ApiException
24+
from pprint import pprint
25+
26+
# Create an instance of the API class
27+
api_instance = pollination_sdk.AccountsApi()
28+
name = 'name_example' # str |
29+
30+
try:
31+
# Get an account by name
32+
api_response = api_instance.get_account(name)
33+
pprint(api_response)
34+
except ApiException as e:
35+
print("Exception when calling AccountsApi->get_account: %s\n" % e)
36+
```
37+
38+
### Parameters
39+
40+
Name | Type | Description | Notes
41+
------------- | ------------- | ------------- | -------------
42+
**name** | **str**| |
43+
44+
### Return type
45+
46+
[**AccountPublic**](AccountPublic.md)
47+
48+
### Authorization
49+
50+
No authorization required
51+
52+
### HTTP request headers
53+
54+
- **Content-Type**: Not defined
55+
- **Accept**: application/json
56+
57+
### HTTP response details
58+
| Status code | Description | Response headers |
59+
|-------------|-------------|------------------|
60+
**200** | Retrieved | - |
61+
**422** | Validation Error | - |
62+
63+
[[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)
64+

docs/ArtifactsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Name | Type | Description | Notes
162162
[[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)
163163

164164
# **list_artifacts**
165-
> list[FileMeta] list_artifacts(owner, name, page=page, per_page=per_page)
165+
> list[FileMeta] list_artifacts(owner, name, page=page, per_page=per_page, path=path)
166166
167167
List artifacts in a project folder
168168

@@ -200,10 +200,11 @@ owner = 'owner_example' # str |
200200
name = 'name_example' # str |
201201
page = 1 # int | Page number starting from 1 (optional) (default to 1)
202202
per_page = 25 # int | Number of items per page (optional) (default to 25)
203+
path = ['path_example'] # list[str] | The path to an artifact within a project folder (optional)
203204

204205
try:
205206
# List artifacts in a project folder
206-
api_response = api_instance.list_artifacts(owner, name, page=page, per_page=per_page)
207+
api_response = api_instance.list_artifacts(owner, name, page=page, per_page=per_page, path=path)
207208
pprint(api_response)
208209
except ApiException as e:
209210
print("Exception when calling ArtifactsApi->list_artifacts: %s\n" % e)
@@ -217,6 +218,7 @@ Name | Type | Description | Notes
217218
**name** | **str**| |
218219
**page** | **int**| Page number starting from 1 | [optional] [default to 1]
219220
**per_page** | **int**| Number of items per page | [optional] [default to 25]
221+
**path** | [**list[str]**](str.md)| The path to an artifact within a project folder | [optional]
220222

221223
### Return type
222224

docs/CreateWorkflowDto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**type** | **str** | |
88
**name** | **str** | |
9-
**id** | **str** | | [optional] [default to '483395fd-6e1e-4c14-89fe-66de4b627c6d']
9+
**id** | **str** | | [optional] [default to '6a255061-23ff-4e97-9f45-c9b57e4dccca']
1010
**inputs** | [**Arguments**](Arguments.md) | | [optional]
1111
**operators** | [**list[Operator]**](Operator.md) | |
1212
**templates** | **list[object]** | A list of templates. Templates can be Function, DAG or a Workflow. |

docs/FileMeta.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**key** | **str** | |
7+
**type** | **str** | |
78
**file_name** | **str** | |
8-
**last_modified** | **datetime** | |
9-
**size** | **int** | |
9+
**last_modified** | **datetime** | | [optional]
10+
**size** | **int** | | [optional]
1011

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

docs/PatchWorkflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**type** | **str** | |
88
**name** | **str** | |
9-
**id** | **str** | | [optional] [default to '483395fd-6e1e-4c14-89fe-66de4b627c6d']
9+
**id** | **str** | | [optional] [default to '6a255061-23ff-4e97-9f45-c9b57e4dccca']
1010
**inputs** | [**Arguments**](Arguments.md) | | [optional]
1111
**operators** | [**list[Operator]**](Operator.md) | |
1212
**templates** | **list[object]** | A list of templates. Templates can be Function, DAG or a Workflow. |

docs/Workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**type** | **str** | |
88
**name** | **str** | |
9-
**id** | **str** | | [optional] [default to '483395fd-6e1e-4c14-89fe-66de4b627c6d']
9+
**id** | **str** | | [optional] [default to '6a255061-23ff-4e97-9f45-c9b57e4dccca']
1010
**inputs** | [**Arguments**](Arguments.md) | | [optional]
1111
**operators** | [**list[Operator]**](Operator.md) | |
1212
**templates** | **list[object]** | A list of templates. Templates can be Function, DAG or a Workflow. |

docs/WorkflowDto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**type** | **str** | |
88
**name** | **str** | |
9-
**id** | **str** | | [optional] [default to '483395fd-6e1e-4c14-89fe-66de4b627c6d']
9+
**id** | **str** | | [optional] [default to '6a255061-23ff-4e97-9f45-c9b57e4dccca']
1010
**inputs** | [**Arguments**](Arguments.md) | | [optional]
1111
**operators** | [**list[Operator]**](Operator.md) | |
1212
**templates** | **list[object]** | A list of templates. Templates can be Function, DAG or a Workflow. |

pollination_sdk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
99
10-
The version of the OpenAPI document: v0.2.4
10+
The version of the OpenAPI document: v0.3.4
1111
Generated by: https://openapi-generator.tech
1212
"""
1313

@@ -17,6 +17,7 @@
1717
__version__ = "1.0.0"
1818

1919
# import apis into sdk package
20+
from pollination_sdk.api.accounts_api import AccountsApi
2021
from pollination_sdk.api.artifacts_api import ArtifactsApi
2122
from pollination_sdk.api.orgs_api import OrgsApi
2223
from pollination_sdk.api.projects_api import ProjectsApi

pollination_sdk/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# flake8: noqa
44

55
# import apis into api package
6+
from pollination_sdk.api.accounts_api import AccountsApi
67
from pollination_sdk.api.artifacts_api import ArtifactsApi
78
from pollination_sdk.api.orgs_api import OrgsApi
89
from pollination_sdk.api.projects_api import ProjectsApi

pollination_sdk/api/accounts_api.py

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# coding: utf-8
2+
3+
"""
4+
Pollination Server
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: v0.3.4
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
from __future__ import absolute_import
14+
15+
import re # noqa: F401
16+
17+
# python 2 and python 3 compatibility library
18+
import six
19+
20+
from pollination_sdk.api_client import ApiClient
21+
from pollination_sdk.exceptions import (
22+
ApiTypeError,
23+
ApiValueError
24+
)
25+
26+
27+
class AccountsApi(object):
28+
"""NOTE: This class is auto generated by OpenAPI Generator
29+
Ref: https://openapi-generator.tech
30+
31+
Do not edit the class manually.
32+
"""
33+
34+
def __init__(self, api_client=None):
35+
if api_client is None:
36+
api_client = ApiClient()
37+
self.api_client = api_client
38+
39+
def get_account(self, name, **kwargs): # noqa: E501
40+
"""Get an account by name # noqa: E501
41+
42+
Retrieve a workflow by name # noqa: E501
43+
This method makes a synchronous HTTP request by default. To make an
44+
asynchronous HTTP request, please pass async_req=True
45+
>>> thread = api.get_account(name, async_req=True)
46+
>>> result = thread.get()
47+
48+
:param async_req bool: execute request asynchronously
49+
:param str name: (required)
50+
:param _preload_content: if False, the urllib3.HTTPResponse object will
51+
be returned without reading/decoding response
52+
data. Default is True.
53+
:param _request_timeout: timeout setting for this request. If one
54+
number provided, it will be total request
55+
timeout. It can also be a pair (tuple) of
56+
(connection, read) timeouts.
57+
:return: AccountPublic
58+
If the method is called asynchronously,
59+
returns the request thread.
60+
"""
61+
kwargs['_return_http_data_only'] = True
62+
return self.get_account_with_http_info(name, **kwargs) # noqa: E501
63+
64+
def get_account_with_http_info(self, name, **kwargs): # noqa: E501
65+
"""Get an account by name # noqa: E501
66+
67+
Retrieve a workflow by name # noqa: E501
68+
This method makes a synchronous HTTP request by default. To make an
69+
asynchronous HTTP request, please pass async_req=True
70+
>>> thread = api.get_account_with_http_info(name, async_req=True)
71+
>>> result = thread.get()
72+
73+
:param async_req bool: execute request asynchronously
74+
:param str name: (required)
75+
:param _return_http_data_only: response data without head status code
76+
and headers
77+
:param _preload_content: if False, the urllib3.HTTPResponse object will
78+
be returned without reading/decoding response
79+
data. Default is True.
80+
:param _request_timeout: timeout setting for this request. If one
81+
number provided, it will be total request
82+
timeout. It can also be a pair (tuple) of
83+
(connection, read) timeouts.
84+
:return: tuple(AccountPublic, status_code(int), headers(HTTPHeaderDict))
85+
If the method is called asynchronously,
86+
returns the request thread.
87+
"""
88+
89+
local_var_params = locals()
90+
91+
all_params = ['name'] # noqa: E501
92+
all_params.append('async_req')
93+
all_params.append('_return_http_data_only')
94+
all_params.append('_preload_content')
95+
all_params.append('_request_timeout')
96+
97+
for key, val in six.iteritems(local_var_params['kwargs']):
98+
if key not in all_params:
99+
raise ApiTypeError(
100+
"Got an unexpected keyword argument '%s'"
101+
" to method get_account" % key
102+
)
103+
local_var_params[key] = val
104+
del local_var_params['kwargs']
105+
# verify the required parameter 'name' is set
106+
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
107+
local_var_params['name'] is None): # noqa: E501
108+
raise ApiValueError("Missing the required parameter `name` when calling `get_account`") # noqa: E501
109+
110+
collection_formats = {}
111+
112+
path_params = {}
113+
if 'name' in local_var_params:
114+
path_params['name'] = local_var_params['name'] # noqa: E501
115+
116+
query_params = []
117+
118+
header_params = {}
119+
120+
form_params = []
121+
local_var_files = {}
122+
123+
body_params = None
124+
# HTTP header `Accept`
125+
header_params['Accept'] = self.api_client.select_header_accept(
126+
['application/json']) # noqa: E501
127+
128+
# Authentication setting
129+
auth_settings = [] # noqa: E501
130+
131+
return self.api_client.call_api(
132+
'/accounts/{name}', 'GET',
133+
path_params,
134+
query_params,
135+
header_params,
136+
body=body_params,
137+
post_params=form_params,
138+
files=local_var_files,
139+
response_type='AccountPublic', # noqa: E501
140+
auth_settings=auth_settings,
141+
async_req=local_var_params.get('async_req'),
142+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
143+
_preload_content=local_var_params.get('_preload_content', True),
144+
_request_timeout=local_var_params.get('_request_timeout'),
145+
collection_formats=collection_formats)

pollination_sdk/api/artifacts_api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: v0.2.4
8+
The version of the OpenAPI document: v0.3.4
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -299,6 +299,7 @@ def list_artifacts(self, owner, name, **kwargs): # noqa: E501
299299
:param str name: (required)
300300
:param int page: Page number starting from 1
301301
:param int per_page: Number of items per page
302+
:param list[str] path: The path to an artifact within a project folder
302303
:param _preload_content: if False, the urllib3.HTTPResponse object will
303304
be returned without reading/decoding response
304305
data. Default is True.
@@ -327,6 +328,7 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501
327328
:param str name: (required)
328329
:param int page: Page number starting from 1
329330
:param int per_page: Number of items per page
331+
:param list[str] path: The path to an artifact within a project folder
330332
:param _return_http_data_only: response data without head status code
331333
and headers
332334
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -343,7 +345,7 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501
343345

344346
local_var_params = locals()
345347

346-
all_params = ['owner', 'name', 'page', 'per_page'] # noqa: E501
348+
all_params = ['owner', 'name', 'page', 'per_page', 'path'] # noqa: E501
347349
all_params.append('async_req')
348350
all_params.append('_return_http_data_only')
349351
all_params.append('_preload_content')
@@ -383,6 +385,9 @@ def list_artifacts_with_http_info(self, owner, name, **kwargs): # noqa: E501
383385
query_params.append(('page', local_var_params['page'])) # noqa: E501
384386
if 'per_page' in local_var_params and local_var_params['per_page'] is not None: # noqa: E501
385387
query_params.append(('per-page', local_var_params['per_page'])) # noqa: E501
388+
if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501
389+
query_params.append(('path', local_var_params['path'])) # noqa: E501
390+
collection_formats['path'] = 'multi' # noqa: E501
386391

387392
header_params = {}
388393

pollination_sdk/api/orgs_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: v0.2.4
8+
The version of the OpenAPI document: v0.3.4
99
Generated by: https://openapi-generator.tech
1010
"""
1111

pollination_sdk/api/projects_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: v0.2.4
8+
The version of the OpenAPI document: v0.3.4
99
Generated by: https://openapi-generator.tech
1010
"""
1111

0 commit comments

Comments
 (0)