Skip to content

Commit 0e11c74

Browse files
committed
fix(api): upgrade to pollination [email protected]
1 parent eaf0b0f commit 0e11c74

File tree

290 files changed

+4338
-891
lines changed

Some content is hidden

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

290 files changed

+4338
-891
lines changed

.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
25+
.gitlab-ci.yml

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.1
1+
4.3.1

README.md

Lines changed: 32 additions & 5 deletions
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: 0.5.25
7+
- API version: 0.7.5
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements
@@ -85,15 +85,17 @@ All URIs are relative to *http://localhost*
8585
Class | Method | HTTP request | Description
8686
------------ | ------------- | ------------- | -------------
8787
*AccountsApi* | [**get_account**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name
88+
*AccountsApi* | [**list_accounts**](https://github.com/pollination/python-sdk/blob/master/docs/AccountsApi.md#list_accounts) | **GET** /accounts | List Accounts on the Pollination platform
8889
*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.
8990
*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
91+
*ArtifactsApi* | [**download_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/ArtifactsApi.md#download_artifact) | **GET** /projects/{owner}/{name}/artifacts/download | Download an artifact from the project folder
9092
*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
9193
*OperatorsApi* | [**create_operator**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#create_operator) | **POST** /operators/{owner} | Create an Operator
9294
*OperatorsApi* | [**create_operator_package**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#create_operator_package) | **POST** /operators/{owner}/{name}/tags | Create a new Operator package
9395
*OperatorsApi* | [**delete_operator**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#delete_operator) | **DELETE** /operators/{owner}/{name} | Delete an Operator
9496
*OperatorsApi* | [**get_operator**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#get_operator) | **GET** /operators/{owner}/{name} | Get an operator
95-
*OperatorsApi* | [**get_operator_tag**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#get_operator_tag) | **GET** /operators/{owner}/{name}/tags/{tag} | Get an operator tag
96-
*OperatorsApi* | [**get_operator_tags**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#get_operator_tags) | **GET** /operators/{owner}/{name}/tags | Get an operator tags
97+
*OperatorsApi* | [**get_operator_by_tag**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#get_operator_by_tag) | **GET** /operators/{owner}/{name}/tags/{tag} | Get an operator tag
98+
*OperatorsApi* | [**list_operator_tags**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#list_operator_tags) | **GET** /operators/{owner}/{name}/tags | Get an operator tags
9799
*OperatorsApi* | [**list_operators**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#list_operators) | **GET** /operators | List operators
98100
*OperatorsApi* | [**update_operator**](https://github.com/pollination/python-sdk/blob/master/docs/OperatorsApi.md#update_operator) | **PUT** /operators/{owner}/{name} | Update an Operator
99101
*OrgsApi* | [**create_org**](https://github.com/pollination/python-sdk/blob/master/docs/OrgsApi.md#create_org) | **POST** /orgs | Create an Org
@@ -116,8 +118,8 @@ Class | Method | HTTP request | Description
116118
*RecipesApi* | [**create_recipe_package**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#create_recipe_package) | **POST** /recipes/{owner}/{name}/tags | Create a new Recipe package
117119
*RecipesApi* | [**delete_recipe**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#delete_recipe) | **DELETE** /recipes/{owner}/{name} | Delete a Recipe
118120
*RecipesApi* | [**get_recipe**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#get_recipe) | **GET** /recipes/{owner}/{name} | Get a recipe
119-
*RecipesApi* | [**get_recipe_tag**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#get_recipe_tag) | **GET** /recipes/{owner}/{name}/tags/{tag} | Get a recipe tag
120-
*RecipesApi* | [**get_recipe_tags**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#get_recipe_tags) | **GET** /recipes/{owner}/{name}/tags | Get a recipe tags
121+
*RecipesApi* | [**get_recipe_by_tag**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#get_recipe_by_tag) | **GET** /recipes/{owner}/{name}/tags/{tag} | Get a recipe tag
122+
*RecipesApi* | [**list_recipe_tags**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#list_recipe_tags) | **GET** /recipes/{owner}/{name}/tags | Get a recipe tags
121123
*RecipesApi* | [**list_recipes**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#list_recipes) | **GET** /recipes | List recipes
122124
*RecipesApi* | [**update_recipe**](https://github.com/pollination/python-sdk/blob/master/docs/RecipesApi.md#update_recipe) | **PUT** /recipes/{owner}/{name} | Update a Recipe
123125
*RegistriesApi* | [**get_package**](https://github.com/pollination/python-sdk/blob/master/docs/RegistriesApi.md#get_package) | **GET** /registries/{owner}/{type}/{name}/{digest} | Get Package
@@ -128,10 +130,12 @@ Class | Method | HTTP request | Description
128130
*SimulationsApi* | [**get_simulation**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation) | **GET** /projects/{owner}/{name}/simulations/{simulation_id} | Get a Simulation
129131
*SimulationsApi* | [**get_simulation_inputs**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation_inputs) | **GET** /projects/{owner}/{name}/simulations/{simulation_id}/inputs | Get simulation inputs
130132
*SimulationsApi* | [**get_simulation_logs**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation_logs) | **GET** /projects/{owner}/{name}/simulations/{simulation_id}/logs | Get simulation logs
133+
*SimulationsApi* | [**get_simulation_output_artifact**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation_output_artifact) | **GET** /projects/{owner}/{name}/simulations/{simulation_id}/outputs/artifacts/{artifact_name} | Get simulation output artifact by name
131134
*SimulationsApi* | [**get_simulation_outputs**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation_outputs) | **GET** /projects/{owner}/{name}/simulations/{simulation_id}/outputs | Get simulation outputs
132135
*SimulationsApi* | [**get_simulation_task_logs**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#get_simulation_task_logs) | **GET** /projects/{owner}/{name}/simulations/{simulation_id}/task/{task_id}/logs | Get a simulation task's logs
133136
*SimulationsApi* | [**list_simulations**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#list_simulations) | **GET** /projects/{owner}/{name}/simulations | List simulations
134137
*SimulationsApi* | [**resume_simulation**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#resume_simulation) | **PUT** /projects/{owner}/{name}/simulations/{simulation_id}/resume | resume a simulation
138+
*SimulationsApi* | [**stop_simulation**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#stop_simulation) | **PUT** /projects/{owner}/{name}/simulations/{simulation_id}/stop | Stop a simulation
135139
*SimulationsApi* | [**suspend_simulation**](https://github.com/pollination/python-sdk/blob/master/docs/SimulationsApi.md#suspend_simulation) | **PUT** /projects/{owner}/{name}/simulations/{simulation_id}/suspend | Suspend a simulation
136140
*TeamsApi* | [**create_team**](https://github.com/pollination/python-sdk/blob/master/docs/TeamsApi.md#create_team) | **POST** /orgs/{org_name}/teams | Create a Team
137141
*TeamsApi* | [**delete_org_team_member**](https://github.com/pollination/python-sdk/blob/master/docs/TeamsApi.md#delete_org_team_member) | **DELETE** /orgs/{org_name}/teams/{team_slug}/members/{username} | Remove a team member
@@ -182,9 +186,12 @@ Class | Method | HTTP request | Description
182186
- [DAGTaskOutputs](https://github.com/pollination/python-sdk/blob/master/docs/DAGTaskOutputs.md)
183187
- [DAGTaskParameterArgument](https://github.com/pollination/python-sdk/blob/master/docs/DAGTaskParameterArgument.md)
184188
- [Dependency](https://github.com/pollination/python-sdk/blob/master/docs/Dependency.md)
189+
- [DependencyType](https://github.com/pollination/python-sdk/blob/master/docs/DependencyType.md)
185190
- [DockerConfig](https://github.com/pollination/python-sdk/blob/master/docs/DockerConfig.md)
186191
- [EmailRequest](https://github.com/pollination/python-sdk/blob/master/docs/EmailRequest.md)
187192
- [FileMeta](https://github.com/pollination/python-sdk/blob/master/docs/FileMeta.md)
193+
- [FolderArtifactReference](https://github.com/pollination/python-sdk/blob/master/docs/FolderArtifactReference.md)
194+
- [FolderReference](https://github.com/pollination/python-sdk/blob/master/docs/FolderReference.md)
188195
- [Function](https://github.com/pollination/python-sdk/blob/master/docs/Function.md)
189196
- [FunctionArtifact](https://github.com/pollination/python-sdk/blob/master/docs/FunctionArtifact.md)
190197
- [FunctionInputs](https://github.com/pollination/python-sdk/blob/master/docs/FunctionInputs.md)
@@ -195,7 +202,9 @@ Class | Method | HTTP request | Description
195202
- [HTTPValidationError](https://github.com/pollination/python-sdk/blob/master/docs/HTTPValidationError.md)
196203
- [InputArtifactReference](https://github.com/pollination/python-sdk/blob/master/docs/InputArtifactReference.md)
197204
- [InputParameterReference](https://github.com/pollination/python-sdk/blob/master/docs/InputParameterReference.md)
205+
- [InputReference](https://github.com/pollination/python-sdk/blob/master/docs/InputReference.md)
198206
- [ItemParameterReference](https://github.com/pollination/python-sdk/blob/master/docs/ItemParameterReference.md)
207+
- [ItemReference](https://github.com/pollination/python-sdk/blob/master/docs/ItemReference.md)
199208
- [KeyRequest](https://github.com/pollination/python-sdk/blob/master/docs/KeyRequest.md)
200209
- [License](https://github.com/pollination/python-sdk/blob/master/docs/License.md)
201210
- [LoginDto](https://github.com/pollination/python-sdk/blob/master/docs/LoginDto.md)
@@ -205,9 +214,11 @@ Class | Method | HTTP request | Description
205214
- [NewRecipePackage](https://github.com/pollination/python-sdk/blob/master/docs/NewRecipePackage.md)
206215
- [NewRepositoryDto](https://github.com/pollination/python-sdk/blob/master/docs/NewRepositoryDto.md)
207216
- [Operator](https://github.com/pollination/python-sdk/blob/master/docs/Operator.md)
217+
- [OperatorPackage](https://github.com/pollination/python-sdk/blob/master/docs/OperatorPackage.md)
208218
- [OperatorVersion](https://github.com/pollination/python-sdk/blob/master/docs/OperatorVersion.md)
209219
- [OrgDto](https://github.com/pollination/python-sdk/blob/master/docs/OrgDto.md)
210220
- [OrgMemberDto](https://github.com/pollination/python-sdk/blob/master/docs/OrgMemberDto.md)
221+
- [OrgRoleEnum](https://github.com/pollination/python-sdk/blob/master/docs/OrgRoleEnum.md)
211222
- [PackageAbridgedDto](https://github.com/pollination/python-sdk/blob/master/docs/PackageAbridgedDto.md)
212223
- [PackageDto](https://github.com/pollination/python-sdk/blob/master/docs/PackageDto.md)
213224
- [PackageListDto](https://github.com/pollination/python-sdk/blob/master/docs/PackageListDto.md)
@@ -219,13 +230,16 @@ Class | Method | HTTP request | Description
219230
- [ProjectDto](https://github.com/pollination/python-sdk/blob/master/docs/ProjectDto.md)
220231
- [ProjectFolderSource](https://github.com/pollination/python-sdk/blob/master/docs/ProjectFolderSource.md)
221232
- [ProjectPermissions](https://github.com/pollination/python-sdk/blob/master/docs/ProjectPermissions.md)
233+
- [ProjectPolicyPermissionEnum](https://github.com/pollination/python-sdk/blob/master/docs/ProjectPolicyPermissionEnum.md)
222234
- [ProjectPolicySubjectDto](https://github.com/pollination/python-sdk/blob/master/docs/ProjectPolicySubjectDto.md)
235+
- [PublicAccountList](https://github.com/pollination/python-sdk/blob/master/docs/PublicAccountList.md)
223236
- [PublicUserDto](https://github.com/pollination/python-sdk/blob/master/docs/PublicUserDto.md)
224237
- [QueenbeeOperatorMetadataMaintainer](https://github.com/pollination/python-sdk/blob/master/docs/QueenbeeOperatorMetadataMaintainer.md)
225238
- [QueenbeeOperatorMetadataMetaData](https://github.com/pollination/python-sdk/blob/master/docs/QueenbeeOperatorMetadataMetaData.md)
226239
- [QueenbeeRecipeMetadataMaintainer](https://github.com/pollination/python-sdk/blob/master/docs/QueenbeeRecipeMetadataMaintainer.md)
227240
- [QueenbeeRecipeMetadataMetaData](https://github.com/pollination/python-sdk/blob/master/docs/QueenbeeRecipeMetadataMetaData.md)
228241
- [Recipe](https://github.com/pollination/python-sdk/blob/master/docs/Recipe.md)
242+
- [RecipePackage](https://github.com/pollination/python-sdk/blob/master/docs/RecipePackage.md)
229243
- [RecipeSelection](https://github.com/pollination/python-sdk/blob/master/docs/RecipeSelection.md)
230244
- [RecipeVersion](https://github.com/pollination/python-sdk/blob/master/docs/RecipeVersion.md)
231245
- [RefreshTokenDto](https://github.com/pollination/python-sdk/blob/master/docs/RefreshTokenDto.md)
@@ -239,13 +253,16 @@ Class | Method | HTTP request | Description
239253
- [SignUpDto](https://github.com/pollination/python-sdk/blob/master/docs/SignUpDto.md)
240254
- [SimulationList](https://github.com/pollination/python-sdk/blob/master/docs/SimulationList.md)
241255
- [SimulationStatus](https://github.com/pollination/python-sdk/blob/master/docs/SimulationStatus.md)
256+
- [StatusType](https://github.com/pollination/python-sdk/blob/master/docs/StatusType.md)
242257
- [SubmitSimulationDto](https://github.com/pollination/python-sdk/blob/master/docs/SubmitSimulationDto.md)
243258
- [TaskArtifactReference](https://github.com/pollination/python-sdk/blob/master/docs/TaskArtifactReference.md)
244259
- [TaskParameterReference](https://github.com/pollination/python-sdk/blob/master/docs/TaskParameterReference.md)
260+
- [TaskReference](https://github.com/pollination/python-sdk/blob/master/docs/TaskReference.md)
245261
- [TaskStatus](https://github.com/pollination/python-sdk/blob/master/docs/TaskStatus.md)
246262
- [TeamDto](https://github.com/pollination/python-sdk/blob/master/docs/TeamDto.md)
247263
- [TeamMemberDto](https://github.com/pollination/python-sdk/blob/master/docs/TeamMemberDto.md)
248264
- [TeamOrg](https://github.com/pollination/python-sdk/blob/master/docs/TeamOrg.md)
265+
- [TeamRoleEnum](https://github.com/pollination/python-sdk/blob/master/docs/TeamRoleEnum.md)
249266
- [UpdateAccepted](https://github.com/pollination/python-sdk/blob/master/docs/UpdateAccepted.md)
250267
- [UpdateRepositoryDto](https://github.com/pollination/python-sdk/blob/master/docs/UpdateRepositoryDto.md)
251268
- [UserMetadata](https://github.com/pollination/python-sdk/blob/master/docs/UserMetadata.md)
@@ -256,11 +273,21 @@ Class | Method | HTTP request | Description
256273
## Documentation For Authorization
257274

258275

276+
## Compulsory Auth
277+
278+
- **Type**: Bearer authentication
279+
280+
259281
## JWT
260282

261283
- **Type**: Bearer authentication
262284

263285

286+
## Optional Auth
287+
288+
- **Type**: Bearer authentication
289+
290+
264291
## Author
265292

266293

docs/AccountsApi.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ All URIs are relative to *http://localhost*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**get_account**](AccountsApi.md#get_account) | **GET** /accounts/{name} | Get an account by name
8+
[**list_accounts**](AccountsApi.md#list_accounts) | **GET** /accounts | List Accounts on the Pollination platform
89

910

1011
# **get_account**
1112
> AccountPublic get_account(name)
1213
1314
Get an account by name
1415

15-
Retrieve a workflow by name
16+
Retrieve an account by name
1617

1718
### Example
1819

@@ -62,3 +63,64 @@ No authorization required
6263

6364
[[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)
6465

66+
# **list_accounts**
67+
> PublicAccountList list_accounts(page=page, per_page=per_page, search=search, type=type)
68+
69+
List Accounts on the Pollination platform
70+
71+
List accounts
72+
73+
### Example
74+
75+
```python
76+
from __future__ import print_function
77+
import time
78+
import pollination_sdk
79+
from pollination_sdk.rest import ApiException
80+
from pprint import pprint
81+
82+
# Create an instance of the API class
83+
api_instance = pollination_sdk.AccountsApi()
84+
page = 1 # int | Page number starting from 1 (optional) (default to 1)
85+
per_page = 25 # int | Number of items per page (optional) (default to 25)
86+
search = 'search_example' # str | Search string to find accounts (optional)
87+
type = 'type_example' # str | Whether the account is for a user or an org (optional)
88+
89+
try:
90+
# List Accounts on the Pollination platform
91+
api_response = api_instance.list_accounts(page=page, per_page=per_page, search=search, type=type)
92+
pprint(api_response)
93+
except ApiException as e:
94+
print("Exception when calling AccountsApi->list_accounts: %s\n" % e)
95+
```
96+
97+
### Parameters
98+
99+
Name | Type | Description | Notes
100+
------------- | ------------- | ------------- | -------------
101+
**page** | **int**| Page number starting from 1 | [optional] [default to 1]
102+
**per_page** | **int**| Number of items per page | [optional] [default to 25]
103+
**search** | **str**| Search string to find accounts | [optional]
104+
**type** | **str**| Whether the account is for a user or an org | [optional]
105+
106+
### Return type
107+
108+
[**PublicAccountList**](PublicAccountList.md)
109+
110+
### Authorization
111+
112+
No authorization required
113+
114+
### HTTP request headers
115+
116+
- **Content-Type**: Not defined
117+
- **Accept**: application/json
118+
119+
### HTTP response details
120+
| Status code | Description | Response headers |
121+
|-------------|-------------|------------------|
122+
**200** | Retrieved | - |
123+
**422** | Validation Error | - |
124+
125+
[[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)
126+

0 commit comments

Comments
 (0)