Skip to content

Commit 49e1be9

Browse files
csmplatformsellisd
andcommitted
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@289eddc)
Co-authored-by: sellisd <sellisd@users.noreply.github.com>
1 parent b5c9cc8 commit 49e1be9

39 files changed

Lines changed: 1998 additions & 1165 deletions

.github/workflows/python.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install flake8 pytest
28-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29-
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
30-
- name: Lint with flake8
31-
run: |
32-
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
3629
- name: Test with pytest
3730
run: |
38-
pytest
31+
pytest --cov={{packageName}}

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov=cosmotech_api
1616

17-
pytest-3.7:
18-
extends: .pytest
19-
image: python:3.7-alpine
2017
pytest-3.8:
2118
extends: .pytest
2219
image: python:3.8-alpine
@@ -29,3 +26,6 @@ pytest-3.10:
2926
pytest-3.11:
3027
extends: .pytest
3128
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ cosmotech_api/models/twin_graph_batch_result.py
8686
cosmotech_api/models/twincache_status_enum.py
8787
cosmotech_api/models/workspace.py
8888
cosmotech_api/models/workspace_access_control.py
89+
cosmotech_api/models/workspace_create_request.py
8990
cosmotech_api/models/workspace_file.py
9091
cosmotech_api/models/workspace_role.py
9192
cosmotech_api/models/workspace_security.py
9293
cosmotech_api/models/workspace_solution.py
94+
cosmotech_api/models/workspace_update_request.py
9395
cosmotech_api/models/workspace_web_app.py
9496
cosmotech_api/py.typed
9597
cosmotech_api/rest.py
@@ -168,10 +170,12 @@ docs/TwincacheStatusEnum.md
168170
docs/Workspace.md
169171
docs/WorkspaceAccessControl.md
170172
docs/WorkspaceApi.md
173+
docs/WorkspaceCreateRequest.md
171174
docs/WorkspaceFile.md
172175
docs/WorkspaceRole.md
173176
docs/WorkspaceSecurity.md
174177
docs/WorkspaceSolution.md
178+
docs/WorkspaceUpdateRequest.md
175179
docs/WorkspaceWebApp.md
176180
git_push.sh
177181
pyproject.toml
@@ -255,9 +259,11 @@ test/test_twincache_status_enum.py
255259
test/test_workspace.py
256260
test/test_workspace_access_control.py
257261
test/test_workspace_api.py
262+
test/test_workspace_create_request.py
258263
test/test_workspace_file.py
259264
test/test_workspace_role.py
260265
test/test_workspace_security.py
261266
test/test_workspace_solution.py
267+
test/test_workspace_update_request.py
262268
test/test_workspace_web_app.py
263269
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.8.0
1+
7.10.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.7"
54
- "3.8"
65
- "3.9"
76
- "3.10"
87
- "3.11"
8+
- "3.12"
99
# uncomment the following if needed
10-
#- "3.11-dev" # 3.11 development branch
10+
#- "3.12-dev" # 3.12 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
55

66
- API version: 4.0.1-SNAPSHOT
77
- Package version: 1.0.0
8-
- Generator version: 7.8.0
8+
- Generator version: 7.10.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://github.com/Cosmo-Tech/cosmotech-api](https://github.com/Cosmo-Tech/cosmotech-api)
1111

1212
## Requirements.
1313

14-
Python 3.7+
14+
Python 3.8+
1515

1616
## Installation & Usage
1717
### pip install
@@ -184,26 +184,26 @@ Class | Method | HTTP request | Description
184184
*SolutionApi* | [**update_solution**](docs/SolutionApi.md#update_solution) | **PATCH** /organizations/{organization_id}/solutions/{solution_id} | Update a solution
185185
*SolutionApi* | [**update_solution_access_control**](docs/SolutionApi.md#update_solution_access_control) | **PATCH** /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} | Update the specified access to User for a Solution
186186
*SolutionApi* | [**update_solution_run_template**](docs/SolutionApi.md#update_solution_run_template) | **PATCH** /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} | Update the specified Solution Run Template
187-
*WorkspaceApi* | [**add_workspace_access_control**](docs/WorkspaceApi.md#add_workspace_access_control) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/access | Add a control access to the Workspace
187+
*WorkspaceApi* | [**create_dataset_link**](docs/WorkspaceApi.md#create_dataset_link) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/link |
188188
*WorkspaceApi* | [**create_workspace**](docs/WorkspaceApi.md#create_workspace) | **POST** /organizations/{organization_id}/workspaces | Create a new workspace
189-
*WorkspaceApi* | [**delete_all_workspace_files**](docs/WorkspaceApi.md#delete_all_workspace_files) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files | Delete all Workspace files
189+
*WorkspaceApi* | [**create_workspace_access_control**](docs/WorkspaceApi.md#create_workspace_access_control) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/access | Add a control access to the Workspace
190+
*WorkspaceApi* | [**create_workspace_file**](docs/WorkspaceApi.md#create_workspace_file) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/files | Upload a file for the Workspace
191+
*WorkspaceApi* | [**delete_dataset_link**](docs/WorkspaceApi.md#delete_dataset_link) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/link |
190192
*WorkspaceApi* | [**delete_workspace**](docs/WorkspaceApi.md#delete_workspace) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id} | Delete a workspace
193+
*WorkspaceApi* | [**delete_workspace_access_control**](docs/WorkspaceApi.md#delete_workspace_access_control) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Remove the specified access from the given Organization Workspace
191194
*WorkspaceApi* | [**delete_workspace_file**](docs/WorkspaceApi.md#delete_workspace_file) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files/delete | Delete a workspace file
192-
*WorkspaceApi* | [**download_workspace_file**](docs/WorkspaceApi.md#download_workspace_file) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files/download | Download the Workspace File specified
193-
*WorkspaceApi* | [**find_all_workspace_files**](docs/WorkspaceApi.md#find_all_workspace_files) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files | List all Workspace files
194-
*WorkspaceApi* | [**find_all_workspaces**](docs/WorkspaceApi.md#find_all_workspaces) | **GET** /organizations/{organization_id}/workspaces | List all Workspaces
195-
*WorkspaceApi* | [**find_workspace_by_id**](docs/WorkspaceApi.md#find_workspace_by_id) | **GET** /organizations/{organization_id}/workspaces/{workspace_id} | Get the details of an workspace
195+
*WorkspaceApi* | [**delete_workspace_files**](docs/WorkspaceApi.md#delete_workspace_files) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files | Delete all Workspace files
196+
*WorkspaceApi* | [**get_workspace**](docs/WorkspaceApi.md#get_workspace) | **GET** /organizations/{organization_id}/workspaces/{workspace_id} | Get the details of an workspace
196197
*WorkspaceApi* | [**get_workspace_access_control**](docs/WorkspaceApi.md#get_workspace_access_control) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Get a control access for the Workspace
197-
*WorkspaceApi* | [**get_workspace_permissions**](docs/WorkspaceApi.md#get_workspace_permissions) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} | Get the Workspace permission by given role
198+
*WorkspaceApi* | [**get_workspace_file**](docs/WorkspaceApi.md#get_workspace_file) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files/download | Download the Workspace File specified
198199
*WorkspaceApi* | [**get_workspace_security**](docs/WorkspaceApi.md#get_workspace_security) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security | Get the Workspace security information
199-
*WorkspaceApi* | [**get_workspace_security_users**](docs/WorkspaceApi.md#get_workspace_security_users) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/users | Get the Workspace security users list
200-
*WorkspaceApi* | [**link_dataset**](docs/WorkspaceApi.md#link_dataset) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/link |
201-
*WorkspaceApi* | [**remove_workspace_access_control**](docs/WorkspaceApi.md#remove_workspace_access_control) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Remove the specified access from the given Organization Workspace
202-
*WorkspaceApi* | [**set_workspace_default_security**](docs/WorkspaceApi.md#set_workspace_default_security) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/default | Set the Workspace default security
203-
*WorkspaceApi* | [**unlink_dataset**](docs/WorkspaceApi.md#unlink_dataset) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/unlink |
200+
*WorkspaceApi* | [**list_workspace_files**](docs/WorkspaceApi.md#list_workspace_files) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files | List all Workspace files
201+
*WorkspaceApi* | [**list_workspace_role_permissions**](docs/WorkspaceApi.md#list_workspace_role_permissions) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} | Get the Workspace permission by given role
202+
*WorkspaceApi* | [**list_workspace_security_users**](docs/WorkspaceApi.md#list_workspace_security_users) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/users | Get the Workspace security users list
203+
*WorkspaceApi* | [**list_workspaces**](docs/WorkspaceApi.md#list_workspaces) | **GET** /organizations/{organization_id}/workspaces | List all Workspaces
204204
*WorkspaceApi* | [**update_workspace**](docs/WorkspaceApi.md#update_workspace) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id} | Update a workspace
205205
*WorkspaceApi* | [**update_workspace_access_control**](docs/WorkspaceApi.md#update_workspace_access_control) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Update the specified access to User for a Workspace
206-
*WorkspaceApi* | [**upload_workspace_file**](docs/WorkspaceApi.md#upload_workspace_file) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/files | Upload a file for the Workspace
206+
*WorkspaceApi* | [**update_workspace_default_security**](docs/WorkspaceApi.md#update_workspace_default_security) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/security/default | Update the Workspace default security
207207

208208

209209
## Documentation For Models
@@ -276,10 +276,12 @@ Class | Method | HTTP request | Description
276276
- [TwincacheStatusEnum](docs/TwincacheStatusEnum.md)
277277
- [Workspace](docs/Workspace.md)
278278
- [WorkspaceAccessControl](docs/WorkspaceAccessControl.md)
279+
- [WorkspaceCreateRequest](docs/WorkspaceCreateRequest.md)
279280
- [WorkspaceFile](docs/WorkspaceFile.md)
280281
- [WorkspaceRole](docs/WorkspaceRole.md)
281282
- [WorkspaceSecurity](docs/WorkspaceSecurity.md)
282283
- [WorkspaceSolution](docs/WorkspaceSolution.md)
284+
- [WorkspaceUpdateRequest](docs/WorkspaceUpdateRequest.md)
283285
- [WorkspaceWebApp](docs/WorkspaceWebApp.md)
284286

285287

cosmotech_api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@
106106
from cosmotech_api.models.twincache_status_enum import TwincacheStatusEnum
107107
from cosmotech_api.models.workspace import Workspace
108108
from cosmotech_api.models.workspace_access_control import WorkspaceAccessControl
109+
from cosmotech_api.models.workspace_create_request import WorkspaceCreateRequest
109110
from cosmotech_api.models.workspace_file import WorkspaceFile
110111
from cosmotech_api.models.workspace_role import WorkspaceRole
111112
from cosmotech_api.models.workspace_security import WorkspaceSecurity
112113
from cosmotech_api.models.workspace_solution import WorkspaceSolution
114+
from cosmotech_api.models.workspace_update_request import WorkspaceUpdateRequest
113115
from cosmotech_api.models.workspace_web_app import WorkspaceWebApp

cosmotech_api/api/connector_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def _find_all_connectors_serialize(
265265
_query_params: List[Tuple[str, str]] = []
266266
_header_params: Dict[str, Optional[str]] = _headers or {}
267267
_form_params: List[Tuple[str, str]] = []
268-
_files: Dict[str, Union[str, bytes]] = {}
268+
_files: Dict[
269+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
270+
] = {}
269271
_body_params: Optional[bytes] = None
270272

271273
# process the path parameters
@@ -530,7 +532,9 @@ def _find_connector_by_id_serialize(
530532
_query_params: List[Tuple[str, str]] = []
531533
_header_params: Dict[str, Optional[str]] = _headers or {}
532534
_form_params: List[Tuple[str, str]] = []
533-
_files: Dict[str, Union[str, bytes]] = {}
535+
_files: Dict[
536+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
537+
] = {}
534538
_body_params: Optional[bytes] = None
535539

536540
# process the path parameters
@@ -789,7 +793,9 @@ def _register_connector_serialize(
789793
_query_params: List[Tuple[str, str]] = []
790794
_header_params: Dict[str, Optional[str]] = _headers or {}
791795
_form_params: List[Tuple[str, str]] = []
792-
_files: Dict[str, Union[str, bytes]] = {}
796+
_files: Dict[
797+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
798+
] = {}
793799
_body_params: Optional[bytes] = None
794800

795801
# process the path parameters
@@ -1062,7 +1068,9 @@ def _unregister_connector_serialize(
10621068
_query_params: List[Tuple[str, str]] = []
10631069
_header_params: Dict[str, Optional[str]] = _headers or {}
10641070
_form_params: List[Tuple[str, str]] = []
1065-
_files: Dict[str, Union[str, bytes]] = {}
1071+
_files: Dict[
1072+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1073+
] = {}
10661074
_body_params: Optional[bytes] = None
10671075

10681076
# process the path parameters

0 commit comments

Comments
 (0)